/api/v1/tafs/batchStudent PilotGet Tafs Batch
Gets the current TAFs for multiple airports in a single request. Accepts ICAO codes or FAA identifiers. Identifiers that don't resolve to a TAF are silently skipped.
Code Examples
curl \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://api.preflightapi.io/api/v1/tafs/batch?ids=value"curl \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
"https://api.preflightapi.io/api/v1/tafs/batch?ids=value"Description
Both ICAO codes and FAA identifiers can be mixed in the same request. Maximum 100 identifiers per request.
GET /api/v1/tafs/batch?ids=KDFW,KAUS,KHOU
GET /api/v1/tafs/batch?ids=DFW,AUSParameters
| Name | In | Type | Description |
|---|---|---|---|
| ids | query | string | Comma-separated ICAO codes or FAA identifiers (e.g., KDFW,KAUS,KHOU). Maximum 100. |
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.