Data API

This service facilitates machine-to-machine access to aviation weather information. These pages describe how to use the API and the interactive interface under Specifications can be used to learn more about available data, configure specific queries, and try them out. The weather database currently allows access to up to the previous 15 days of data.

Please keep requests limited in scope and frequency. Maximum results per query apply as well as rate limiting against frequent requests. For larger queries, please consider using the cache files which provide quick access to complete datasets.

Products

ProductDescriptionCoverageFormats
METARTerminal observationsWorldwideRaw text, JSON, GeoJSON, CSV, XML, IWXXM
TAFTerminal forecastsWorldwideRaw text, JSON, GeoJSON, XML, IWXXM
PIREPs/AIREPsPilot and aircraft reportsPrimarily US and North AtlanticRaw text, JSON, GeoJSON, XML
SIGMETsAviation warningsWorldwideRaw text, JSON, GeoJSON, XML
G-AIRMETsAviation advisoriesContiguous 48 United StatesJSON, GeoJSON, XML
AIRMETsAviation advisoriesAlaskaJSON, GeoJSON, XML, IWXXM
CONUS text AIRMETs were discontinued in January 2025. G-AIRMETs replace AIRMETs, increasing forecast precision in both time and space.
Area ForecastAviation forecastsAlaskaText
Area Forecast DiscussionsAviation discussionsUnited StatesText
Center Weather AdvisoriesRegional aviation advisoriesUnited StatesRaw text, JSON, GeoJSON
Meteorological Impact StatementsAviation statementsUnited StatesText
TFM Convective Forecast (TCF)Convective forecastUnited States, portions of CanadaRaw text, GeoJSON
Legacy wind/temp tablesWind and temperature forecastsUnited StatesText
Station infoWeather observation station informationWorldwideJSON, GeoJSON, XML
Airport infoAirport informationWorldwideJSON, GeoJSON, XML
NAVAID, fix, feature, obstacleAviation navigation featuresWorldwideJSON, GeoJSON, XML

OpenAPI

Full API specification documentation is provided in OpenAPI YAML and the following interactive interface.

Cache

The following files provide access to routinely updated full datasets. Use of these files is recommended instead of making excessively large or frequent custom queries, simplifying access to larger datasets, reducing system load, and improving access for all. All files are gzipped compressed text data.

FilenameDescriptionUpdate frequency
/data/cache/metars.cache.xml.gzAll current METARs (XML)Once a minute
/data/cache/metars.cache.csv.gzAll current METARs (CSV)Once a minute
/data/cache/tafs.cache.xml.gzAll current TAFs (XML)Every 10 minutes
/data/cache/airsigmets.cache.xml.gzAll current CONUS SIGMETs (XML)Once a minute
/data/cache/airsigmets.cache.csv.gzAll current CONUS SIGMETs (CSV)Once a minute
/data/cache/gairmets.cache.xml.gzAll current CONUS G-AIRMETs (XML)Once a minute
/data/cache/aircraftreports.cache.xml.gzAll current AIREPs/PIREPs (XML)Once a minute
/data/cache/aircraftreports.cache.csv.gzAll current AIREPs/PIREPs (CSV)Once a minute
/data/cache/stations.cache.xml.gzStations listing (XML)Once a day
/data/cache/stations.cache.json.gzStations listing (JSON)Once a day

Using the API

REST API endpoint are accessible at addresses under /api/data as outlined in the schema information. For example METARs are found at https://aviationweather.gov/api/data. Most requests require query parameters in order to specify constraints of the data being requested. For example the latest METAR from Kansas City International in JSON format can be requested by specifying the four letter ICAO identifier with https://aviationweather.gov/api/data/metar?ids=KMCI&format=json.

Requests may be made using most web browsers, command line utilities, and programming language libraries using modern HTTPS connections.

Guidelines

  • Please carefully consider requests to limit load on the system.
  • Set a custom user agent to prevent automated filtering inadvertently blocking valid traffic.
  • Wait between consecutive requests — maximum 100 requests per minute.
  • Exceeding request limits will result in access being temporarily blocked.

Restrictions

  • All requests are rate limited to 100 requests per minute and all API endpoints should not be consumed more frequently than 1 request/min per thread.
  • Most endpoints return a maximum of 400 entries (please consider using cache files for larger requests).
  • Cross-origin resource sharing is not permitted at this time.

Responses

  • Status code 204 is returned for valid requests with no data available (except GeoJSON).
  • JSON and XML formats return standardized error messages across endpoints.
  • Errors are returned using standard HTTP status codes as outline in the table below.
HTTP Status CodeDescription
204 No ContentRequest is valid however there is no data to be returned. For example no recent METARs available for a particular station or no SIGMETs valid at a particular time.
400 Invalid RequestThe request is invalid in some way. This could include:

Invalid parameters like format or date
Missing parameters required to complete a request
The URL is incorrect in some way.
404 Not FoundThe endpoint or specific item requested does not exist.
429 Too Many RequestsToo many requests have been sent. You might see this error code when rate limits are applied. See Restrictions above.
500 Internal ServerThe request may be valid but the system was unable to serve the request due to an error.
502 Bad Gateway
504 Gateway Timeout
Temporary service disruption.

Troubleshooting

  • Ensure your network connection is stable.
  • Verify that firewalls or proxies are not blocking your requests.
  • Ensure you are connecting via HTTPS.
  • Review OpenAPI documentation to ensure parameters are correct.
  • See the status page for the latest updates.