Overview
GET /buoys?country=XX returns every active buoy in a country with its latest reading — in one call.
Getting all French buoys
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). Thelast_reading field will be null in those cases. Always guard against this: