Zum Inhalt springen
GET /v1/metar

Current METAR observation(s) for ICAO station(s)

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/metar-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten 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
}