Get future flights departing from an airport
Returns flights that are scheduled to depart from an airport or have recently been cancelled, ordered by estimated_off (or scheduled_off if estimated_off is missing) ascending. The optional start and end parameters will be compared against scheduled_off to limit the flights returned. The start parameter's default value is 2 hours before the current time. The end parameter's default value is 24 hours after the current time.
Request
- Base URLhttps://aeroapi.flightaware.com/aeroapi
- AuthAPI key in header x-apikey
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
ICAO, IATA or LID ID of destination airport to fetch. ICAO is highly preferred to prevent ambiguity.
Query parameters
Airline to filter flights by. Do not provide airline if type is provided.
Type of flights to return. Do not provide type if airline is provided.
The starting date range for flight results. The format is ISO8601 date or datetime, and the bound is inclusive. Specified start date must be no further than 10 days in the past and 2 days in the future. If using date instead of datetime, the time will default to 00:00:00Z.
The ending date range for flight results. The format is ISO8601 date or datetime, and the bound is exclusive. Specified end date must be no further than 10 days in the past and 2 days in the future. If using date instead of datetime, the time will default to 00:00:00Z.
Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.
Opaque value used to get the next batch of data from a paged collection.
Response
OK
Example response
{
"scheduled_departures": [
{
"origin": {
"timezone": "America/New_York",
"name": "LaGuardia",
"city": "New York"
},
"destination": {
"timezone": "America/New_York",
"name": "LaGuardia",
"city": "New York"
},
"scheduled_out": "2021-12-31T19:59:59Z",
"estimated_out": "2021-12-31T19:59:59Z",
"actual_out": "2021-12-31T19:59:59Z",
"scheduled_off": "2021-12-31T19:59:59Z",
"estimated_off": "2021-12-31T19:59:59Z",
"actual_off": "2021-12-31T19:59:59Z",
"scheduled_on": "2021-12-31T19:59:59Z",
"estimated_on": "2021-12-31T19:59:59Z",
"actual_on": "2021-12-31T19:59:59Z",
"scheduled_in": "2021-12-31T19:59:59Z",
"estimated_in": "2021-12-31T19:59:59Z",
"actual_in": "2021-12-31T19:59:59Z"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.