OpenAQ.
countries
(**kwargs)[source]¶Returns a listing of all countries within the platform
Parameters: |
|
---|---|
Returns: | dictionary containing the code, name, count, cities, and number of locations. |
Example: |
>>> import openaq
>>> api = openaq.OpenAQ()
>>> status, resp = api.countries()
>>> resp['results']
[
{
"cities": 174,
"code": "AT",
"count": 121987,
"locations": 174,
"name": "Austria"
},
{
"cities": 28,
"code": "AU",
"count": 1066179,
"locations": 28,
"name": "Australia",
},
...
]