(GET) Latest Data
Retrieve the latest data from a Spotter.
GET https://api.sofarocean.com/api/latest-data?spotterId=:spotterId
Returns the most recently transmitted device, waves and sensor data from a Spotter, specified by spotterId.
Query Parameters
spotterId
string
The identifier of the device you wish to retrieve information from.
includeWindData
boolean
Default: false
Set true to return wind data.
includeSurfaceTempData
boolean
Default: false
Set true to return surface temperature data from
Spotters equipped with SST sensors.
includeDirectionalMoments
boolean
Default: false
Set true to return directional moments data from Spotters in Waves: Spectrum (Full) mode.
includePartitionData
boolean
Default: false
Set true to return partition data from Spotters in Waves: Partition mode or HDR mode.
includeBarometerData
boolean
Default: false
Set true to return barometer data from Spotters equipped with barometers.
Response Description
The response body includes general device information, the device status and data transmission details, and a data stream of the most recently transmitted samples, grouped by data type and ordered by timestamp.
spotterId
string
The Spotter's identifier.
spotterName
string
The Spotter's display name, as configured in the Spotter Dashboard. Returns "" if no display name has been set.
payloadType
string
The type of payload. Can be waves (standard or partitioned), sensorData (Smart Mooring), full (full wave spectrum) or track (Track mode).
batteryVoltage
number
The Spotter's battery voltage level in volts.
Full battery: 3.8 - 4.1
Mid-level capacity: 3.6-3.7
Low: 3.5
Critically low: 3.3
Empty battery: 3.0
batteryPower
number
The Spotter's battery power level in watts. A negative value indicates the battery is supplying power to the system. A positive value indicates the solar system is recharging the battery.
solarVoltage
number
The Spotter's measured solar-panel voltage in volts.
humidity
number
The Spotter's internal relative humidity as a percentage (%). Sharp increases in absolute humidity (accounting for temperature) may indicate a leak. If relative humidity is greater than 70%, we recommend replacing the desiccant.
waves
array
Waves data.
wind
array
Wind data if includeWindData is set to true.
surfaceTemp
array
Surface temperature data from Spotters equipped with SST sensors if includeSurfaceTempData is set to true.
frequencyData
array
Frequency data (i.e., spectral data) from Spotters in Waves: Spectrum (Full) mode or HDR mode. Includes directional moments data if includeDirectionalMoments is set to true.
partitionData
array
Partition data from Spotters in Waves: Partition mode or HDR mode if includePartitionData is set to true.
barometerData
array
Barometer data from Spotters equipped with barometers if includeBarometerData is set to true.
track
array
The Spotter's position at given timestamps.
commSource
string
The telemetry source used to transmit the data.
Can be cellular or satellite.
Data Samples
The returned data types depend on your set query parameters as well as your Spotter's configured data mode at the time of collection.
Regardless, all data sample arrays include the location (latitude, longitude) when the report was encoded and transmitted as well as an ISO 8601-formatted timestamp, indicating the end of the sample collection period. Differences in transmission times are likely due to differences in sampling cadences.
Your Spotter's configured data mode and update rate will also impact the amount of samples included in a single data transmission. A Spotter with default settings (Waves: Standard and hourly update rate), for example, will include two 30-minute samples in an hourly update. To review or change your Spotter's data mode and update rate, 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 Satellite data and Cellular data sections.
Examples
Example Request
Example Response
Incorrect token:
Missing token:
Last updated
Was this helpful?