(GET) Search

Retrieve data from Spotters within an area for a specified time window.

GET https://api.sofarocean.com/api/search

Returns data from all Spotters registered to your account within the specified geospatial area between startDate and endDate. Spotters shared with your account will not be included in the response.

circle-info

This a beta endpoint. All input and output parameters are subject to change without notice.

Query Parameters

Name
Type
Description

shape

string

Either circle or envelope.

The shape of the geospatial area you want to search.

shapeParams

array

A comma-separated array of SRID 4326-compliant coordinates (latitude, longitude). If shape is set to circle, there must be one pair. If shape is set to envelope, there must be two pairs. e.g., "(1, -1), (2, -2)" translates to 1,-1,2,-2

startDate

string

ISO 8601-formatted timestamp indicating the start date for data inclusion. e.g., 2021-01-01T07:00:00Z

endDate

string

ISO 8601-formatted timestamp indicating the end date for data inclusion. e.g., 2021-01-02T07:00:00Z

pageSize

integer

Default: 500

The desired number of samples to be returned.

radius

number

The radius in meters of the geospatial area to be queried if shape is circle. This parameter is required if shape is circle.

Response Description

The response body consists of a data stream of transmissions within the specified geospatial area and during the specified time window, ordered by timestamp. Each element of the data array represents a transmission by a Spotter. The maximum number of data samples returned per page is capped at the pageSize limit.

Name
Type
Description

spotterId

string

The Spotter's identifier.

waves

object

Waves data.

wind

object

Wind data.

surfaceTemperature

object

Surface temperature data from Spotters equipped with SST sensors.

frequencyData

object

Frequency data from Spotters in Waves: Spectrum (Full) mode.

partitionData

object

Partition data from Spotters in Waves: Partition mode or HDR mode.

smartMooringData

array

Information on the positioning and tilt of any Smart Mooring sensors.

sensorData

array

Data from Smart Mooring and/or Barometer sensors.

timestamp

string

ISO 8601-formatted timestamp indicating the end of a sample collection period.

metadata

object

The pagination of the response.

Examples

Example Request

Example Responses

Results:

No Results:

Last updated

Was this helpful?