(GET) Sensor Data
Retrieve data collected by a specified Spotter's Smart Mooring sensors during a specified time window.
GET https://api.sofarocean.com/api/sensor-data?spotterId=:spotterId&startDate=:startDate&endDate=:endDate
Returns Smart Mooring sensor data collected by the specified Spotter between startDate and endDate.
Query Parameters
spotterId
string
SpotterId of the device to retrieve data for.
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
If neither startDate nor endDate are specified, startDate will default to 24 hours ago and endDate will default to now.
Response Description
For more information about Smart Mooring sensors and data, please refer to the Sensors & Payloads guide.
The /sensor-data response format consists of a “flat” (uncategorized) data stream ordered by timestamp. Keep in mind that these timestamps, while ordered, are not necessarily unique. It is possible for two or more sensors to send different values with identical timestamps (e.g., a temperature sensor and a pressure sensor could emit data at the same time).
The location data in each sample dict is the location of the Spotter when the report was encoded and transmitted. If the Spotter is configured to send multiple sample periods in a single transmission (eg to save on data telemetry costs) all samples in the report will have the same location data.
latitude
longitude
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
The physical units of the data.
value
The measured value.
unit_type
A contextual description of what is being measured.
data_type_name
string
The type of information being sent by a sensor, as ingested by the API.
configuration_checksum
Property indicating the physical layout of the sensors on the Smart Mooring that can be cross-referenced with the configurations returned by the Configuration History endpoint to determine the sensor configuration in use at the time the data was collected.
The configuration_checksum property is unique to the physical layout of the sensors on the Smart Mooring, together with their respective configuration settings. It can be cross-referenced with the configurations returned by /sensor-configuration-history to determine the sensor configuration in use at the time the data was collected.
Examples
Example Request
Example Response
Last updated
Was this helpful?