Return to API Services | View Map Frontend or Table Frontend
Documentation for /geojson/cli.py
This service emits atomic data for a given date of NWS CLImate reporting. This is based on a parsing of the CLI product, which contains daily climate summaries for mostly airport weather stations. This service primarily is used to output GeoJSON, but there is a CSV option as well.
Changelog
- 2024-08-09: Initial documentation update
Example Usage
Provide CLI data for 2024-07-01 in GeoJSON format:
https://mesonet.agron.iastate.edu/geojson/cli.py?dt=2024-07-01&fmt=geojson
Same data, but in CSV format:
https://mesonet.agron.iastate.edu/geojson/cli.py?dt=2024-07-01&fmt=csv
Same data, but in CSV format and force download:
https://mesonet.agron.iastate.edu/geojson/cli.py?dt=2024-07-01&fmt=csv&dl=1
CGI Arguments
The following table lists the CGI arguments that are accepted by this service. A HTTP GET request is required. Fields of type Multi-Params or CSV value can accept either a comma separated list or multiple parameter and value combinations. For example, ?foo=1&foo=2 is equivalent to ?foo=1,2.
| Field | Type | Description |
|---|---|---|
| callback | string or null | Legacy JSON-P style callback. It is likely best to not depend on this usage. The IEM website has a permissive CORS. |
| dl | boolean | Force download of CSV file. |
| dt | string | Date of interest. |
| fmt | string | The output format requested. |