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

This service provides access to Terminal Aerodrome Forecast (TAF) data for specified stations and time ranges.

Example Usage

Request all of Des Moines TAF for the month of January 2024 in CSV format:

https://mesonet.agron.iastate.edu/cgi-bin/request/taf.py?station=DSM&sts=2024-01-01T00:00Z&ets=2024-02-01T00:00Z&fmt=csv

Request the past 240 hours of TAF data for Chicago O'Hare in Excel format:

https://mesonet.agron.iastate.edu/cgi-bin/request/taf.py?station=ORD&hours=240&fmt=excel

System Message: WARNING/2 (<string>, line 19)

Block quote ends without a blank line; unexpected unindent.

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
hours integer Request data for the time period from now until this many hours in the past. Overrides any sts or ets values.
fmt string The format of the output file, either 'csv' or 'excel'
tz string The timezone to use for timestamps
sts string The start timestamp for the data
ets string The end timestamp for the data
station Multi-Params or CSV value (required) The station(s) to request data for, either multi params or comma separated
year1 integer The start year, if not using sts
month1 integer The start month, if not using sts
day1 integer The start day, if not using sts
hour1 integer The start hour, if not using sts
minute1 integer The start minute, if not using sts
year2 integer The end year, if not using ets
month2 integer The end month, if not using ets
day2 integer The end day, if not using ets
hour2 integer The end hour, if not using ets
minute2 integer The end minute, if not using ets