Return to API Services

Documentation for /cgi-bin/request/daily.py

This data source contains a combination of IEM computed calendar day summaries and some more official totals with some sites reporting explicit values. One should also note that typically the airport stations are for a 24 hour period over standard time, which means 1 AM to 1 AM daylight time.

Changelog

  • 2026-02-26: Address issue with non-ASCII characters breaking service (GIGO).

Example Usage

Request all high temperature data for Ames, IA (AMW) for the month of January 2019:

https://mesonet.agron.iastate.edu/cgi-bin/request/daily.py?sts=2019-01-01&ets=2019-01-31&network=IA_ASOS&stations=AMW&var=max_temp_f&format=csv

Request daily precipitation and the climatology for all stations in Washington state on 23 June 2023 in Excel format:

https://mesonet.agron.iastate.edu/cgi-bin/request/daily.py?sts=2023-06-23&ets=2023-06-23&network=WA_ASOS&stations=_ALL&var=precip_in,climo_precip_in&format=excel

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
ets string or null End date to query
format string The format of the output
na string The NA value to use
network string (required) IEM network identifier. Typically a combination of a US state abbreviation and a network classification, ie IA_ASOS.
station Multi-Params or CSV value Comma delimited or multi-param station identifiers, _ALL for all stations in network (deprecated)
stations Multi-Params or CSV value Comma delimited or multi-param station identifiers, _ALL for all stations in network
sts string or null Start date to query
var array or null Comma delimited or multi-param variable names to include in output, columns are: ['max_temp_f', 'min_temp_f', 'max_dewpoint_f', 'min_dewpoint_f', 'precip_in', 'avg_wind_speed_kts', 'avg_wind_drct', 'min_rh', 'avg_rh', 'max_rh', 'climo_high_f', 'climo_low_f', 'climo_precip_in', 'snow_in', 'snowd_in', 'min_feel', 'avg_feel', 'max_feel', 'max_wind_speed_kts', 'max_wind_gust_kts', 'srad_mj']
year1 integer or null Start year when sts is not provided
month1 integer or null Start month when sts is not provided
day1 integer or null Day of the month
year2 integer or null End year when ets is not provided
month2 integer or null End month when ets is not provided
day2 integer or null Day of the month