/v1/nearby
Stations within a radius of a coordinate
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/buoys-api/v1/nearby" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/buoys-api/v1/nearby", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/buoys-api/v1/nearby");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/buoys-api/v1/nearby",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"count": 10,
"total": 63,
"center": {
"lat": 25.8,
"lon": -80.1
},
"results": [
{
"id": "VAKF1",
"name": "8723214 - Virginia Key, FL",
"type": "Water Level Observation Network",
"owner": "O",
"latitude": 25.731,
"longitude": -80.162,
"distance_km": 9.9
},
{
"id": "41122",
"name": "Hollywood Beach, FL (265)",
"type": "Waverider Buoy",
"owner": "R",
"latitude": 26.001,
"longitude": -80.096,
"distance_km": 22.4
},
{
"id": "FWYF1",
"name": "Fowey Rock, FL",
"type": "C-MAN Station",
"owner": "N",
"latitude": 25.591,
"longitude": -80.097,
"distance_km": 23.2
},
{
"id": "BBNF1",
"name": "BBCW8",
"type": "C-MAN Station",
"owner": "NP",
"latitude": 25.601,
"longitude": -80.306,
"distance_km": 30.3
},
{
"id": "PEGF1",
"name": "8722956 - Port Everglades, FL",
"type": "Water Level Observation Network",
"owner": "PT",
"latitude": 26.086,
"longitude": -80.116,
"distance_km": 31.8
},
{
"id": "PVGF1",
"name": "Port Everglades Channel, FL",
"type": "Fixed Structure Weather Station",
"owner": "IC",
"latitude": 26.092,
"longitude": -80.109,
"distance_km": 32.5
},
{
"id": "BBSF1",
"name": "BBCW10",
"type": "C-MAN Station",
"owner": "NP",
"latitude": 25.472,
"longitude": -80.349,
"distance_km": 44.2
},
{
"id": "MDKF1",
"name": "Middle Key, FL",
"type": "Water Quality Station",
"owner": "NP",
"latitude": 25.289,
"longitude": -80.396,
"distance_km": 64.1
},
{
"id": "HCEF1",
"name": "Highway Creek, FL",
"type": "Water Quality Station",
"owner": "NP",
"latitude": 25.254,
"longitude": -80.444,
"distance_km": 69.8
},
{
"id": "MNBF1",
"name": "Manatee Bay, FL",
"type": "Water Quality Station",
"owner": "NP",
…