v3
Get countries
Changed onProvides a list of countries
get/v3/countries
Request
- Base URLhttps://api.openaq.org (the document declares no server; this is the origin it was published from)
- AuthAPI key in header X-API-Key
Query parameters
order_by'id' nullable
The field by which to order results
sort_order'asc' | 'desc' nullable
Sort results ascending or descending. Default ASC
providers_idinteger[] nullable
Limit the results to a specific provider or multiple providers with a single provider ID or a comma delimited list of IDs
parameters_idinteger[] nullable
limitinteger
Change the number of results returned. e.g. limit=100 will return up to 100 results
pageinteger
Paginate through results. e.g. page=1 will return first page of results
Response
Successful Response
Changes
- breaking
the
metaresponse's property type changed from no type toobjectfor status - info
added the enum value
idto the propertyanyOf[subschema #1: CountriesSortFields]/of thequeryrequest parameterorder_by - info
added the optional property
meta/foundto the response with the status
5 more changes in this revision
- breaking