countries
Get list of Countries
Changed onGet list of Country records. All parameters are optional
get/v3/countries/
Request
- Base URLhttps://api.aviapages.com (the document declares no server; this is the origin it was published from)
- URLhttps://api.aviapages.com/v3/countries/
- AuthAPI key in header Authorization
Query parameters
id_ininteger[]
Multiple values may be separated by commas.
iso_alpha2_instring[]
Multiple values may be separated by commas.
iso_alpha3_instring[]
Multiple values may be separated by commas.
orderingstring[]
Ordering fields: id, name, iso_alpha2, iso_alpha3
- id - id
- -id - id (descending)
- name - Country name
- -name - Country name (descending)
- iso_alpha2 - Country ISO 3166-1 alpha-2
- -iso_alpha2 - Country ISO 3166-1 alpha-2 (descending)
- iso_alpha3 - Country ISO 3166-1 alpha-3
- -iso_alpha3 - Country ISO 3166-1 alpha-3 (descending)
pageinteger
A page number within the paginated result set.
searchstring
Search by country name, ISO 3166-1 alpha-2 and ISO 3166-1 alpha-3 codes
Response
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
- info