cities

Get list of Cities

Changed on

Get list of City records. All parameters are optional

get/v3/cities/

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/cities/
  • Auth
    API key in header Authorization

Query parameters

orderingstring

Comma separated fields to use when ordering the results.

pageinteger

A page number within the paginated result set.

searchstring

Search by city name or country name or country ISO 3166-1 alpha-2 or country ISO 3166-1 alpha-3

search_countrystring

Search by country name or country ISO 3166-1 alpha-2 or country ISO 3166-1 alpha-3

search_namestring

Search by city 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

    • 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