/v1/taf
Terminal aerodrome forecast (TAF)
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/metar-api/v1/taf" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/metar-api/v1/taf", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/metar-api/v1/taf");
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/taf",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"raw": "TAF KJFK 310536Z 3106/0112 36005KT P6SM SKC FM311200 29010KT P6SM FEW080 FM311600 24014KT P6SM SCT080 FM311900 20016KT P6SM BKN080 FM010300 27008KT P6SM BKN100 FM010600 33007KT P6SM BKN080",
"name": "New York/JF Kennedy Intl",
"station": "KJFK",
"valid_to": "2026-06-01T12:00:00.000Z",
"issued_at": "2026-05-31T05:36:00.000Z",
"valid_from": "2026-05-31T06:00:00.000Z"
},
"meta": {
"timestamp": "2026-05-31T05:48:01.758Z",
"request_id": "cfc2a6b2-0688-4834-a784-b4c45fd288d8"
},
"status": "ok",
"message": "TAF retrieved",
"success": true
}