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

This service emits hourly precipitation data based on processed METAR observations by the IEM.

Changelog

  • 2024-09-04: Initial update and examples

Example Usage

Return the hourly precip for Ames, IA for the month of January 2024 with the station's state and lat/lon included:

https://mesonet.agron.iastate.edu/cgi-bin/request/hourlyprecip.py?station=AMW&network=IA_ASOS&sts=2024-01-01T00:00:00Z&ets=2024-02-01T00:00:00Z&st=1&lalo=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
ets string The end of the requested interval.
lalo boolean Include the lat/lon in the output.
network string The network to request data for.
st boolean Include the state in the output.
station Multi-Params or CSV value The station(s) to request data for.
sts string The start of the requested interval.
tz string The timezone to present the data in and for requested interval.
year1 integer The start year, when sts is unset.
month1 integer The start month, when sts is unset.
day1 integer The start day, when sts is unset.
year2 integer The end year, when ets is unset.
month2 integer The end month, when ets is unset.
day2 integer The end day, when ets is unset.