Data API Examples

METARs

TypeExamplesDescription
Single station/cgi-bin/data/metar.php?ids=KORDReturns the latest METAR from a station
Single station, multiple hours/cgi-bin/data/metar.php?ids=KORD&hours=12Returns the last 12 hours of METAR from a station
Single station, decoded output/cgi-bin/data/metar.php?ids=KORD&format=decodedOutputs decoded data
Single station, ADDS XML output/cgi-bin/data/metar.php?ids=KORD&format=xmlOutputs ADDS Dataserver compatible XML
Single station, IWXXM output/cgi-bin/data/metar.php?ids=KORD&format=iwxxmReturns IWXXM ver 3
Multiple stations/cgi-bin/data/metar.php?ids=KORD,KSEA,KATLReturns the latest METAR from a set of stations
Multiple station, ADDS XML output/cgi-bin/data/metar.php?ids=KORD,KSEA,KATL&format=xmlOutputs ADDS Dataserver compatible XML
Multiple station, IWXXM output/cgi-bin/data/metar.php?ids=KORD,KSEA,KATL&format=iwxxmReturns IWXXM ver 3, embeds within collection
Multiple stations, lists/cgi-bin/data/metar.php?ids=@TOPReturns the latest METAR from a preset of stations
Multiple stations, state/cgi-bin/data/metar.php?ids=@NYReturns the latest METAR from a preset of stations

TAFs

TypeExamplesDescription
Single station/cgi-bin/data/taf.php?ids=KORDReturns the latest TAF from a station
Single station, multiple hours/cgi-bin/data/taf.php?ids=KORD&hours=12Returns the last 12 hours of TAFs from a station
Single station, decoded output/cgi-bin/data/taf.php?ids=KORD&format=decodedOutputs decoded data
Single station, ADDS XML output/cgi-bin/data/taf.php?ids=KORD&format=xmlOutputs ADDS Dataserver compatible XML
Single station, IWXXM output/cgi-bin/data/taf.php?ids=KORD&format=iwxxmReturns IWXXM ver 3

PIREPs

TypeExamplesDescription
Near a station/cgi-bin/data/pirep.php?ids=KORDReturns the latest AIREPs/PIREPs within 200 sm of KORD
Decoded output/cgi-bin/data/pirep.php?ids=KORD&format=decodedReturns the latest AIREPs/PIREPs in decoded format
ADDS XML output/cgi-bin/data/pirep.php?ids=KORD&format=xmlOutputs ADDS Dataserver compatible XML

CONUS AIRMETs/SIGMETs

TypeExamplesDescription
Latest SIGMETs/cgi-bin/data/airsigmet.phpReturns the active SIGMETs
ADDS XML output/cgi-bin/data/airsigmet.php?format=xmlOutputs ADDS Dataserver compatible XML

G-AIRMETs

TypeExamplesDescription
Latest G-AIRMETs, decoded output/cgi-bin/data/gairmet.phpReturns the active G-AIRMETs
ADDS XML output/cgi-bin/data/gairmet.php?format=xmlOutputs ADDS Dataserver compatible XML

OCONUS Forecast Discussion

Station Info

Station Info for a site/cgi-bin/data/stationinfo.php?ids=KORDReturns information on a site
ADDS XML output/cgi-bin/data/stationinfo.php?ids=KORD&format=xmlOutputs ADDS Dataserver compatible XML