US Weather (NWS): forecasts, alerts and METAR observations avatar

US Weather (NWS): forecasts, alerts and METAR observations

Pricing

from $0.45 / 1,000 weather records

Go to Apify Store
US Weather (NWS): forecasts, alerts and METAR observations

US Weather (NWS): forecasts, alerts and METAR observations

Forecasts, hourly forecasts and active alerts for US latitudes and longitudes, and station observations with raw METAR reports, from the National Weather Service API.

Pricing

from $0.45 / 1,000 weather records

Rating

0.0

(0)

Developer

Ed Rayyis

Ed Rayyis

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

19 days ago

Last modified

Categories

Features

Limited permissions

Share

Give it coordinates, station ids or state codes, many at once, and it pulls what you ask for from the National Weather Service API.

What you can get:

  • Forecast for a point: day and night periods about 7 days ahead, with temperature, chance of precipitation, wind and the forecast text
  • Hourly forecast for a point, as many hours as you want up to 156
  • Active alerts at a point, or across a whole state or marine area: event, severity, urgency, certainty, headline, area, issue, start and expiry times, description and instructions
  • Latest observation at the nearest station to a point
  • Station observations by station id (such as KJFK): the latest report, or every report over the last hours, with the raw METAR text and decoded values in both metric and US units

Input

  • Locations, written as latitude,longitude, such as 38.8977,-77.0365
  • Forecast (default on), hourly forecast (default off) and hours of hourly forecast (default 48)
  • Active alerts at each location (default on)
  • Latest observation nearby (default off)
  • Forecast units: US (default) or metric
  • Stations, such as KJFK or KORD
  • Hours of observations: 0 (default) returns the latest report; a number up to 168 returns every report in that window
  • Only observations with a METAR (default on). Turn it off to also get the station reports that carry no METAR text.
  • Alert areas: two letter state or marine area codes, such as TX or GM
  • Your contact for the NWS (optional): text such as your site or email address, added to the User-Agent the run sends

Output

Dataset records, told apart by recordType:

  • forecast and hourly: the location, nearest place, forecast office and grid, time zone, forecast zone, county, generation time, units and periods
  • alert: event, headline, severity, urgency, certainty, status, messageType, areaDescription, sent, effective, onset, expires, ends, issuedBy, description, instruction, response
  • observation: stationId, stationName, latitude, longitude, observedAt, rawMetar, description, temperature and dewpoint in C and F, relativeHumidity, wind direction, wind speed and gust in km/h and knots, visibility in meters and miles, pressure, heat index, wind chill, precipitation in the last hour, cloud layers and present weather codes
  • error: the input and the reason, for example a point outside NWS coverage or a station with no recent METAR. The rest of the run carries on.

Export as JSON, CSV or Excel, or read it over the API.

Pricing

Pay per event: one event per forecast, hourly forecast, alert or observation returned. Error records and the notice for an area with no active alerts are not charged. The run stops when it reaches the maximum charge you set.

Coverage

A point outside NWS coverage returns an error record that says the NWS cannot provide data for it.

Scope and conduct

Only api.weather.gov is called. The NWS intends the API's data as open data, free to use for any purpose [1]. Requests go out a few at a time, and when the NWS answers that the limit is reached, the actor waits and tries again.

Support

Questions and problems: the Issues tab on this page.

References

  1. API Web Service | National Weather Service | weather.gov. https://www.weather.gov/documentation/services-web-api