/v1/metar
Current METAR observation(s) for ICAO station(s)
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/metar-api/v1/metar" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/metar-api/v1/metar", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/metar-api/v1/metar");
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/metar-api/v1/metar",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"raw": "METAR KJFK 310451Z 03004KT 10SM CLR 09/06 A3010 RMK AO2 SLP192 T00890056 401940083 $",
"name": "New York/JF Kennedy Intl, NY, US",
"wind": {
"gust_kt": null,
"speed_kt": 4,
"direction_deg": 30
},
"cover": "CLR",
"clouds": [],
"station": "KJFK",
"weather": null,
"latitude": 40.6392,
"longitude": -73.7639,
"dewpoint_c": 5.6,
"visibility": "10+",
"elevation_m": 3,
"observed_at": "2026-05-31T05:00:00.000Z",
"altimeter_hpa": 1019.4,
"temperature_c": 8.9,
"flight_category": "VFR",
"sea_level_pressure_hpa": 1019.2
},
"meta": {
"timestamp": "2026-05-31T05:48:01.446Z",
"request_id": "525a8d2d-f740-4b58-8e93-b2b9f4694c4d"
},
"status": "ok",
"message": "METAR retrieved",
"success": true
}