FlightAware Flight History API Documentation List the legs of a flight number (LH400 or DLH400) or of an aircraft registration (D-AIXO) that FlightAware shows for the last 14 days, newest first. Each leg has the scheduled departure in UTC, origin, destination, aircraft type and status. Landed legs have the real departure and arrival. Legs have the same shape as the Flightradar24 flight history, with source flightaware. Fields the history page does not show are null. For gates, track and older dates use the flight endpoint. A flight number or registration with no legs answers 200 and costs no credit. Cost: 1 credit per successful request.
Run this endpoint
Endpoint
Parameters
Start with the required fields, then add optional filters only when your use case needs them.
Runnable path
1 required parameter needed before sending a request.
1 optional filter available.
string
Required
Flight number or registration, e.g. LH400, DLH400 or D-AIXO.
example
string
Optional
flight (default) or reg.
example
Response Schema
Example response fields are illustrative; inspect the JSON before integrating.
Example response fields
Scan these fields before integrating.
data
meta
success
{
"data": {
"count": 1,
"ident": "DLH400",
"query": "LH400",
"flights": [
{
"times": {
"eta": null,
"real_arrival": "2026-11-11T18:10:00Z",
"real_departure": "2026-11-11T10:36:00Z",
"estimated_arrival": null,
"scheduled_arrival": null,
"estimated_departure": null,
"scheduled_departure": "2026-11-11T10:10:00Z"
},
"origin": {
"lat": null,
"lon": null,
"city": "Frankfurt am Main",
"gate": null,
"iata": "FRA",
"icao": "EDDF",
"name": "Frankfurt/Main",
"baggage": null,
"country": null,
"website": null,
"terminal": null,
"timezone": null,
"country_code": null,
"elevation_ft": null,
"utc_offset_s": 3600
},
"source": "flightaware",
"status": {
"live": false,
"text": "Landed",
"type": "arrival",
"state": "landed",
"diverted": null,
"event_time": "2026-11-11T18:10:00Z"
},
"airline": null,
"aircraft": {
"hex": null,
"model": null,
"age_years": null,
"model_code": "A359",
"registration": null,
"serial_number": null
},
"callsign": null,
"codeshare": [],
"flight_id": null,
"destination": {
"lat": null,
"lon": null,
"city": "New York, NY",
"gate": null,
"iata": null,
"icao": "KJFK",
"name": "John F Kennedy Intl",
"baggage": null,
"country": null,
"website": null,
"terminal": null,
"timezone": null,
"country_code": null,
"elevation_ft": null,
"utc_offset_s": -18000
},
"flight_number": "LH400"
}
],
"fetch_by": "flight",
"window_days": 14
},
"meta": {
"billable": true,
"credits_charged": 1,
"endpoint_family": "flight_history"
},
"success": true
}
Errors
Handle these documented responses before retrying or showing customer-facing failures.
Validation Error
A query parameter is missing or invalid. This response is not billable.
{
"errors": {
"ident": [
"A flight number or registration is required, e.g. LH400 or D-AIXO."
]
},
"message": "The request validation failed"
}Service Unavailable
FlightAware could not be reached or changed its answer. This response is not billable. Retry later.
{
"meta": {
"billable": false,
"retryable": true,
"endpoint_family": "flight_history"
},
"error": {
"code": "UPSTREAM_UNAVAILABLE",
"message": "FlightAware is temporarily unavailable. Please retry."
},
"success": false
}Generate Code with AI
Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.
Try It Live
Test this endpoint in our interactive playground with real data.