get-historical-observations-by-reporting-area-by-lat-long
Retrieve historical air quality index (AQI) values and categories for a specific location using latitude and longitude, with data available in CSV, JSON, or XML formats. Ideal for analyzing past air quality trends in a reporting area or nearby regions.
Instructions
Get historical AQI values and categories for a reporting area by latitude and longitude.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
date | Yes | Date to get the historical observations for. Format: YYYY-MM-DD. Example: 2012-02-01 | |
distance | No | If no reporting area is associated with the latitude and longitude, historical observations from a nearby reporting area within this distance (in miles) will be returned, if available. Example: 150 | |
format | Yes | Format of the payload file returned. Example: application/json | |
latitude | Yes | Latitude in decimal degrees. Example: 38.33 | |
longitude | Yes | Longitude in decimal degrees. Example: -122.28 |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"date": {
"description": "Date to get the historical observations for. Format: YYYY-MM-DD. Example: 2012-02-01",
"type": "string"
},
"distance": {
"description": "If no reporting area is associated with the latitude and longitude, historical observations from a nearby reporting area within this distance (in miles) will be returned, if available. Example: 150",
"type": "string"
},
"format": {
"description": "Format of the payload file returned. Example: application/json",
"enum": [
"text/csv",
"application/json",
"application/xml"
],
"type": "string"
},
"latitude": {
"description": "Latitude in decimal degrees. Example: 38.33",
"type": "string"
},
"longitude": {
"description": "Longitude in decimal degrees. Example: -122.28",
"type": "string"
}
},
"required": [
"latitude",
"longitude",
"date",
"format"
],
"type": "object"
}