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
JSON output/cgi-bin/data/metar.php?ids=KORD&format=jsonReturns JSON output
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
Include TAF/cgi-bin/data/metar.php?ids=KORD,KJFK&taf=on
Last minute/cgi-bin/data/metar.php?ids=all&latest=1Last minute based on receipt time
Archived data/cgi-bin/data/metar.php?ids=KORD,KJFK&date=202207301200Return data from 12Z on 30 July 2022

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
HTML output/cgi-bin/data/airsigmet.php?format=htmlOutputs HTML like old website
ADDS XML output/cgi-bin/data/airsigmet.php?format=xmlOutputs ADDS Dataserver compatible XML
Output for specific location/cgi-bin/data/airsigmet.php?loc=bosOutputs AIRMET/SIGMETs for Boston region
Output for specific hazard/cgi-bin/data/airsigmet.php?hazard=turbOutputs turbulence AIRMET/SIGMETs

International SIGMETs

TypeExamplesDescription
Latest SIGMETs/cgi-bin/data/isigmet.phpReturns the active SIGMETs
HTML output/cgi-bin/data/isigmet.php?format=htmlOutputs HTML like old website
ADDS XML output/cgi-bin/data/isigmet.php?format=xmlOutputs ADDS Dataserver compatible XML
Output for specific location/cgi-bin/data/isigmet.php?loc=eurOutputs SIGMETs for Europe region
Output for specific hazard/cgi-bin/data/isigmet.php?hazard=turbOutputs turbulence SIGMETs

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

Center Weather Advisories / Meteorological Impact Statements

TypeExamplesDescription
Latest CWAs/cgi-bin/data/cwa.phpReturns the active CWAs
Latest CWA by CWSU/cgi-bin/data/cwa.php?loc=zmaReturns active CWAs from Miami
Latest CWA by hazard/cgi-bin/data/cwa.php?hazard=tsReturns active thunderstorm CWAs
Latest CWA in JSON format/cgi-bin/data/cwa.php?format=jsonReturns active CWAs
Latest MIS/cgi-bin/data/mis.phpReturns the active MISs

Forecast Discussions

TypeExamplesDescription
Latest Aviation Forecast Discussion/cgi-bin/data/fcstdisc.php?cwa=keaxReturns the aviation discussion for Pleasant Hill MO
Latest Forecast Discussion/cgi-bin/data/fcstdisc.php?cwa=keax&type=afReturns the full discussion for Pleasant Hill MO

OCONUS Forecast Discussion

TypeExamplesDescription
Latest area forecasts for Gulf/cgi-bin/data/areafcst.php?region=gulf
Latest area forecasts for southern Alaska/cgi-bin/data/areafcst.php?region=aksouthRegion possibilities are gulf, carib, hawaii, aknorth, akcentral, akaleutian, aksouthwest, aksouth, aksoutheast, akpanhandle

WFO Area Forecast Discussions

TypeExamplesDescription
Latest FB Winds for a region/cgi-bin/data/windtemp.php?region=chiReturns the FB wind data for Chicago region
Latest by forecast time/cgi-bin/data/windtemp.php?region=chi&fcst=24Returns the 24 hr forecasts
Latest by level/cgi-bin/data/windtemp.php?region=chi&level=highReturns the upper level forecasts

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