GET /api/data/metar
aviationweather.gov:aviationweather
Summary: Get METAR observations
Operation ID: getMetar
Auth: none
Operation ID: getMetar
Auth: none
Description
Retrieve current METAR (Meteorological Aerodrome Report) observations. Returns weather conditions at airports including temperature, wind, visibility, and cloud cover.
Parameters (4)
bbox
(string, query, optional)
Bounding box in format minLon,minLat,maxLon,maxLat
format
(string, query, optional, default: raw)
Response format
Constraints: {'enum': ['xml', 'json', 'geojson', 'raw']}
hoursBeforeNow
(integer, query, optional)
Hours before now for historical data
ids
(string, query, optional)
Comma-separated list of airport ICAO identifiers (e.g., KJFK,KLAX)
Examples (2)
| Title | Type | URL | Action |
|---|---|---|---|
| Get METAR observations | openapi-spec |
https://www.aviationweather.gov/api/data/metar?ids=KJFK,KLAX&bbox=-80,25,-70,45&hoursBeforeNow=24 |
|
| Get METAR observations | probe-gate |
https://www.aviationweather.gov/api/data/metar?ids=KJFK%2CKLAX&bbox=-80%2C25%2C-70%2C45&format=raw&hoursBeforeNow=24 |
Probe History
Status Codes
| Time | Status | Latency | Size |
|---|---|---|---|
| 2026-03-23 09:00:37.436067 | 204 | 309ms | |
| 2026-03-22T10:25:34.833562 | 204 | 828ms |