IEM API Mainpage

Documentation on /cgi-bin/request/hads.py

The backend database for this application has many billion rows of data, so requests can be slow.

Changelog

  • 2026-10-05: The AI Bots now seem to love this service, so a serial request throttle per remote client IP is now in place.
  • 2024-04-18: Allowed cross-year requests, but limited to 365 days when requesting more than one station.
  • 2024-04-09: Migrated to pydantic based CGI field validation.

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
delim string Delimiter for output
ets string or null End Time for request
network string or null IEM network identifier. Typically a combination of a US state abbreviation and a network classification, ie IA_ASOS.
stations Multi-Params or CSV value (required) Station Identifier(s)
sts string or null Start Time for request
threshold number or null Threshold Value for Searching
thresholdvar string or null Threshold Variable for Searching
what string Output format
year integer or null Year field.
year1 integer or null Year field.
year2 integer or null Year field.
month1 integer or null Month of the year
month2 integer or null Month of the year
day1 integer or null Day of the month
day2 integer or null Day of the month
hour1 integer Hour of the day, 24 hour clock
hour2 integer Hour of the day, 24 hour clock
minute1 integer Minute of the hour
minute2 integer Minute of the hour