TAFs
GET/api/v1/tafs/batchStudent Pilot

Get 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"

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,AUS

Parameters

NameInTypeDescription
idsquerystringComma-separated ICAO codes or FAA identifiers (e.g., KDFW,KAUS,KHOU). Maximum 100.

Response Schema

200Returns the TAFs with all forecast periods
rawTextstringnullable

Raw TAF forecast text as received from the source. ex: KORD 061728Z 0618/0724 21012KT P6SM BKN250

stationIdstringnullable

ICAO station identifier (e.g., KDFW).

issueTimestringnullable

Time the TAF was issued in ISO 8601 format.

bulletinTimestringnullable

Bulletin time in ISO 8601 format.

validTimeFromstringnullable

Start of the TAF valid period in ISO 8601 format.

validTimeTostringnullable

End of the TAF valid period in ISO 8601 format.

remarksstringnullable

TAF remarks.

latitudenumbernullable

Station latitude in decimal degrees (WGS 84).

longitudenumbernullable

Station longitude in decimal degrees (WGS 84).

elevationMnumbernullable

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.

400If the ids parameter is empty or exceeds 100 identifiersApiErrorResponse
codestring

Machine-readable error code (e.g., "AIRCRAFT_NOT_FOUND").

messagestring

Human-readable error message suitable for display.

detailsstringnullable

Additional error details (only included in development environment).

servicestringnullable

Name of the external service that failed (only included for 503 errors).

validationErrorsRecord<string, string[]>nullable

Field-level validation errors (only for validation failures).

timestampstring

UTC timestamp when the error occurred.

traceIdstringnullable

Correlation ID for tracing the request.

pathstringnullable

Request path that generated the error.

Search Documentation

Search docs, endpoints, and schemas