Get nearest METAR station observations.
Changed onReturns the N nearest METAR stations to a point, deduplicated to the latest observation per station (within the last 2 hours), sorted by distance.
Pass one location: lat and lon, zip, or location. A request without one returns 400; a ZIP or name that does not resolve returns 404; while location lookup is unavailable, a zip or location request returns 503 with Retry-After.
A point outside the 50 US states and DC returns 404 outside-coverage with next_steps.
Request
- Base URLhttps://api.smarterweather.com
- AuthHTTP bearer
Query parameters
Latitude (WGS84 decimal degrees). Give it with lon. On a route that also takes zip or location, give only one location form.
Longitude (WGS84 decimal degrees). Give it with lat. On a route that also takes zip or location, give only one location form.
5-digit US ZIP code. Mutually exclusive with lat/lon and location.
Free-text location name. Examples: "Boston, MA", "94043", "Denver", "KSLC". Resolved by the Smarter Weather geocoder (a station id resolves as on /v1/geocode/search). Mutually exclusive with lat/lon and zip.
Number of stations to return (1-10, default 1). A value that is not an integer in range falls back to 1.
Response
GeoJSON FeatureCollection of nearest METAR observations.
Changes
- info
added the optional property
alternativesto the response with the status - info
added the optional property
alternativesto the response with the status - info
added the optional property
alternativesto the response with the status
2 more changes in this revision
- info