(GET) Latest Data

Retrieve most recent device status and measurement data from a specified Spotter.

GET https://api.sofarocean.com/api/latest-data?spotterId=:spotterId

Returns the most recently transmitted waves, sensor, and device status data from the specified Spotter.

Query Parameters

Name
Type
Description

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 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

Name
Type
Description

spotterId

string

The device's identifier.

spotterName

string

The device's display name, configured in the Spotter Dashboardarrow-up-right.

payloadType

batteryVoltage

batteryPower

solarVoltage

humidity

commSource

significantWaveHeight

peakPeriod

meanPeriod

peakDirection

peakDirectionalSpread

meanDirection

meanDirectionalSpread

timestamp

latitude

longitude

Examples

Example Request

Example Response

Last updated

Was this helpful?