v3

Provides a list of countries

get/v3/countries

Request

  • Base URL
    https://api.openaq.org (the document declares no server; this is the origin it was published from)
  • Auth
    API 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 meta response's property type changed from no type to object for status

    • info

      added the enum value id to the property anyOf[subschema #1: CountriesSortFields]/ of the query request parameter order_by

    • info

      added the optional property meta/found to the response with the status

    5 more changes in this revision