/api/v1/tafs/{icaoCodeOrIdent}Student PilotGet Taf By Icao Code Or Ident
Gets the current TAF for a specific airport, including all forecast periods with expected weather conditions (wind, visibility, sky cover, precipitation, turbulence, and icing).
Code Examples
curl \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://api.preflightapi.io/api/v1/tafs/KJFK"curl \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://api.preflightapi.io/api/v1/tafs/KJFK"Description
GET /api/v1/tafs/KDFW — by ICAO code
GET /api/v1/tafs/DFW — by FAA identifierParameters
| Name | In | Type | Description |
|---|---|---|---|
| icaoCodeOrIdent* | path | string | ICAO code or FAA identifier (e.g., KDFW, DFW). Case-insensitive. |
Response Schema
Raw TAF forecast text as received from the source. ex: KORD 061728Z 0618/0724 21012KT P6SM BKN250
ICAO station identifier (e.g., KDFW).
Time the TAF was issued in ISO 8601 format.
Bulletin time in ISO 8601 format.
Start of the TAF valid period in ISO 8601 format.
End of the TAF valid period in ISO 8601 format.
TAF remarks.
Station latitude in decimal degrees (WGS 84).
Station longitude in decimal degrees (WGS 84).
Station elevation in meters MSL. This field is in meters (not feet) because it originates from the NOAA Aviation Weather API which uses ICAO standard units.
Machine-readable error code (e.g., "AIRCRAFT_NOT_FOUND").
Human-readable error message suitable for display.
Additional error details (only included in development environment).
Name of the external service that failed (only included for 503 errors).
Field-level validation errors (only for validation failures).
UTC timestamp when the error occurred.
Correlation ID for tracing the request.
Request path that generated the error.