(GET) Sensor Data
Retrieve Smart Mooring data from a Spotter for a specified time window.
GET https://api.sofarocean.com/api/sensor-data?spotterId=:spotterId&startDate=:startDate&endDate=:endDate
Returns Smart Mooring sensor data collected and transmitted by a Spotter, specified by spotterId, between startDate and endDate.
Query Parameters
spotterId
string
The Spotter ID of the device you wish to retrieve information from.
startDate
string
Default: 24 hours ago
ISO 8601-formatted timestamp indicating the start date for data inclusion.
e.g., 2021-01-01T07:00:00Z
endDate
string
Default: now()
ISO 8601-formatted timestamp indicating the end date for data inclusion.
e.g., 2021-01-02T07:00:00Z
Response Description
The response body consists of a flat (uncategorized) data stream of transmissions by the Spotter’s Smart Mooring sensors during the specified time window, ordered by timestamp. These timestamps, while ordered, are not necessarily unique. It is possible for two or more sensors to send different values at the same time, resulting in identical timestamps.
If the Spotter is configured to send multiple samples in a single transmission (e.g., to save on data telemetry costs), multiple samples in the response will have the same location data. To review a Spotter's (read-only) subsurface data transmission settings, open the Spotter Dashboard, find its Spotter card in the Map View, click the Gear icon to open the Settings tab, and scroll down to the Subsurface data transmission section.
For more information about Smart Mooring sensors and data, please refer to the Sensors & Payloads guide.
latitude
number
The Spotter's latitude when the report was encoded and transmitted.
longitude
number
The Spotter's longitude when the report was encoded and transmitted.
timestamp
string
ISO 8601-formatted timestamp indicating the end of a sample collection period.
sensorPosition
integer
The sensor's physical position in the Smart Mooring relative to the Spotter, with 1 being closest to the Spotter.
units
string
The units of measurement.
e.g., °C
value
object, string or number
The measured value.
unit_type
string
A contextual description of what is being measured.
e.g., temperature
data_type_name
string
The type of information being sent by a sensor, as ingested by the API.
e.g., sofar_temperature_12bits
configuration_checksum
string
A unique identifier for the Smart Mooring configuration. Can be cross-referenced with the configurations returned by the Configuration History endpoint to determine the sensor configuration at the time of data collection.
e.g., 0xb6929687
Examples
Example Request
Example Responses
Sensor data:
No sensor data:
Incorrect token:
Missing token:
Last updated
Was this helpful?