Sofar Ocean's Spotter Data API gives you 30 days of a buoy you do not own

Sofar Ocean's Spotter Data API gives you 30 days of a buoy you do not own

The Sofar Ocean Spotter Data API returns data from Spotter buoys: waves, wind, surface temperature, barometric pressure, spectra and GPS track. It is one of 4 APIs that Sofar Ocean publishes on the network, next to Devices, Smart Mooring and Wave Spectra. Sofar Ocean scores 48.4 (developing). The artifact set includes an OpenAPI, documentation, an API reference and an AsyncAPI for data-forwarding webhooks.

Three operations

Operation Path What it returns
getLatestData GET /api/latest-data The most recent transmission from one Spotter
getWaveData GET /api/wave-data Samples from one Spotter between startDate and endDate
searchData GET /api/search Data from every Spotter on your account inside a circle or envelope (beta)

All three are GET requests to https://api.sofarocean.com. Most of the design is in the query parameters. Wind, surface temperature, barometer, partition data and directional moments are each turned on with their own include* flag, and each defaults to false. Only waves are on by default, and only on the historical call. Unless you request the other data, a buoy that measures six things returns one.

Ownership is part of the contract

The getWaveData description includes this sentence: “For Spotters shared but not registered to your account, access is limited to the past 30 days.” So the API has two levels of access. If you own the buoy, you get its full history. If someone shares a buoy with you, you get a rolling 30-day window. You would not find this from the operation’s name. If you plan to build a model on someone else’s buoys, start collecting now, because the older data will not be available to you.

Paging has a similar catch. limit defaults to 20 samples per data type, with a maximum of 500, and the maximum drops to 100 when includeFrequencyData is set. Requesting spectra cuts the page size to a fifth.

searchData is the most useful operation for a fleet, and it is the one Sofar marks unstable: “input and output parameters are subject to change without notice.” It takes shape (circle or envelope), shapeParams as SRID 4326 latitude-longitude pairs, a radius in meters for circles, and it pages with a nextPage cursor. Use it, but do not rely on its response shape staying the same.

The token can go in the URL

The spec defines two security schemes for the same credential. One is a token header. The other is a token query parameter. The query form is convenient for pasting into a browser, but it puts the account key in proxy and server logs. Use the header.

A provenance note: this OpenAPI was transcribed by the API Evangelist enrichment pipeline from Sofar’s public GitBook docs, and its own description says it is “not an official Sofar Ocean specification.” The operations match the docs. The spec is ours, not Sofar’s.

Takeaway

The Spotter Data API is a small, readable API with three rules you need to know before you design around it: data you do not own expires after 30 days, spectra shrink your page size, and area search is beta. Read the Spotter and Smart Mooring reference, then the API page.

← Sanctions screening maps eight providers, and misses the exemplar that does nothing else
Air traffic and airspace is led by flight-data resellers, and counter-drone companies score under 12 →