Get all flights for a given airport
Returns all recent and upcoming flights departing from or arriving at the specified airport. Filtering/ordering behavior for the optional start and end parameters for each type (scheduled_departures, scheduled_arrivals, departures, arrivals) match the behavior in their corresponding endpoints.
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_arrivals": [
{
"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"
}
],
"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"
}
],
"arrivals": [
{
"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"
}
],
"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.