airports

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.

get/airports/{id}/flights

Request

Path parameters

idstring required

ICAO, IATA or LID ID of destination airport to fetch. ICAO is highly preferred to prevent ambiguity.

Query parameters

airlinestring
Example:UAL

Airline to filter flights by. Do not provide airline if type is provided.

type'General_Aviation' | 'Airline'

Type of flights to return. Do not provide type if airline is provided.

string date-time
OR
string date

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.

string date-time
OR
string date

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.

max_pagesinteger

Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.

cursorstring

Opaque value used to get the next batch of data from a paged collection.

Response

OK

num_pagesinteger required

Number of pages returned

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.