get-forecast-by-zip-code
Retrieve current or historical air quality forecast data by Zip code, specifying format and optional date or distance. Access AQI values and categories for informed decision-making.
Instructions
Get current or historical forecasted AQI values and categories for a reporting area by Zip code.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
date | No | Date to get the forecast for. Format: YYYY-MM-DD. Example: 2012-02-01 | |
distance | No | Distance in miles to search for the forecast. Example: 150 | |
format | Yes | Format of the payload file returned. Example: application/json | |
zipCode | Yes | Zip code to get the forecast for. Example: 94954 |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"date": {
"description": "Date to get the forecast for. Format: YYYY-MM-DD. Example: 2012-02-01",
"type": "string"
},
"distance": {
"description": "Distance in miles to search for the forecast. Example: 150",
"type": "string"
},
"format": {
"description": "Format of the payload file returned. Example: application/json",
"enum": [
"text/csv",
"application/json",
"application/xml"
],
"type": "string"
},
"zipCode": {
"description": "Zip code to get the forecast for. Example: 94954",
"type": "string"
}
},
"required": [
"zipCode",
"format"
],
"type": "object"
}