OpenAQ.
fetches
(**kwargs)[source]¶Provides data about individual fetch operations that are used to populate data in the platform.
Parameters: |
|
---|---|
Returns: | dictionary containing the timeStarted, timeEnded, count, and results |
Example: |
>>> import openaq
>>> api = openaq.OpenAQ()
>>> status, resp = api.fetches()
>>> resp
{
"meta": {
"name": "openaq-api",
"license":
"website":
"page": 1,
"limit": 100,
"found": 3,
"pages": 1
},
"results": [
{
"count": 0,
"results": [
{
"message": "New measurements inserted for Mandir Marg: 1",
"failures": {},
"count": 0,
"duration": 0.153,
"sourceName": "Mandir Marg"
},
{
"message": "New measurements inserted for Sao Paulo: 1898",
"failures": {},
"count": 1898,
"duration": 16.918,
"sourceName": "Sao Paulo"
},
...
],
"timeStarted": "2016-02-07T15:25:04.603Z",
"timeEnded": "2016-02-07T15:25:04.793Z",
}
]
}