airports

Get list of Airports

Changed on

Get list of Airport records. All parameters are optional

get/v3/airports/

Request

  • Base URL
    https://api.aviapages.com (the document declares no server; this is the origin it was published from)
  • URL
    https://api.aviapages.com/v3/airports/
  • Auth
    API key in header Authorization

Query parameters

icao_instring[]

Multiple values may be separated by commas.

id_ininteger[]

Multiple values may be separated by commas.

on_datestring date

Adjusts sunrise, sunset and time_shift to chosen date, format "yyyy-mm-dd" or "yyyy-mm-ddThh:mm"

orderingstring[]

Ordering fields: id, name, city_name, country_name, iata, icao, lid, distance

  • id - id
  • -id - id (descending)
  • name - Airport name
  • -name - Airport name (descending)
  • city_name - City name
  • -city_name - City name (descending)
  • country_name - Country name
  • -country_name - Country name (descending)
  • iata - Airport IATA code
  • -iata - Airport IATA code (descending)
  • icao - Airport ICAO code
  • -icao - Airport ICAO code (descending)
  • lid - Airport local identifier
  • -lid - Airport local identifier (descending)
  • distance - Distance by ip(send "user_ip" in query params)
  • -distance - Distance by ip(send "user_ip" in query params) (descending)
pageinteger

A page number within the paginated result set.

searchstring

Search by name, country, ICAO code, IATA code or city name

search_citystring

Search by city name

search_coordsstring

Search by coordinates, "latitude,longitude". Used in conjunction with search_coords_radius.

search_coords_radiusinteger

Coordinate airport search radius parameter, km

search_countrystring

Search by country name, ISO 3166-1 alpha-2 and ISO 3166-1 alpha-3 codes

search_iatastring

Search by airport IATA code

search_icaostring

Search by airport ICAO code

search_lidstring

Search by airport local identifier

search_namestring

Search by airport name

Response

countinteger required
nextstring uri nullable
previousstring uri nullable
next_blocked_reason'authentication_required'
per_pageinteger

Example response

{
  "count": 123,
  "previous": "http://api.example.org/accounts/?page=2",
  "per_page": 20
}

Changes

    • breaking

      the // response property's maxLength was unset from 254 for the response status

    • breaking

      the // response property's maxLength was unset from 200 for the response status

    • breaking

      added subschema #1 subschema #2 to the // response property oneOf list for the response status

    • breaking

      added subschema #1 subschema #2 to the // response property oneOf list for the response status

    • breaking

      the // response's property type changed from string to no type, and format from email to no format for status

    • breaking

      the // response's property type changed from string to no type, and format from uri to no format for status

    • info

      added the optional property to the response with the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status