sensortoolkit.reference._ref_api_query.query_airnow
- query_airnow(param, data_period, bbox, key=None)[source]
Construct an AirNow API query request and parse response.
- Parameters
param (str) – The evaluation parameter for which to query data.
data_period (list) – List with two elements, the first is the start date and time for the query and the second is the end date and time for the query. The API is sequentially queried in monthly intervals, so the start date will usually be something like ‘2021-01-01T00’ and the end date will follow as ‘2021-01-31T23’.
bbox (dict) – Bounding box of latitude andlongitude values for AirNow API queries.
key (str) – User key for API authentication.
- Returns
Data returned by the API for the specified query parameter and time period.
- Return type
data (pandas DataFrame)