Skip to main content

Overview

GET /buoys?country=XX returns every active buoy in a country with its latest reading — in one call.

Getting all French buoys

Pass any ISO 3166-1 alpha-2 country code. France has roughly 25–35 active buoys, so all results fit in the default page. Response structure:
When ?country= is set, the per-page cap increases to 500 (from the default 100) since the geographic scope already constrains the result set.

Building a cron job

Here’s a complete cron job pattern to collect the latest readings for all French buoys every 30 minutes:

Cron schedule

Buoy readings are typically updated every 30 minutes, so 30 minutes is a reasonable polling interval. Polling more often returns duplicates.

Handling missing readings

Some buoys may temporarily have no reading (e.g., maintenance, transmission gaps). The last_reading field will be null in those cases. Always guard against this:

Supported countries

Any ISO 3166-1 alpha-2 code works. Currently active networks include:
Use GET /api/v2/countries to get the full list of countries with active buoys.