5

I'm looking for either a website, a web service, an RSS feed, etc. that would allow me to look up current and historic weather info for a particular zipcode or region in the U.S., specifically:

  • Barometric pressure
  • Precipitation
  • Temperature
  • Humidity

Googling this turned up a couple of candidates such as:

  • Weather Web Service
  • National Digital Forecast Database

But none of these supply all the above info all at once. Does something like this exist as open source/free, or am I going to have to wrangle/"Frankenstein" this together myself by calling out to multiple services? Any ideas?

Patrick Hoefler
  • 5,790
  • 4
  • 31
  • 47
Zac
  • 153
  • 2

2 Answers2

2

The Weather API from Wunderground allows 500 free requests per day (with registration) and has a geolookup endpoint for finding the nearest weather station.

enter image description here

Once you have the nearest weather station, you can use other endpoints like forecast and history.

The full list of endpoints is here.

philshem
  • 17,647
  • 7
  • 68
  • 170
0

The national weather service has a REST-based API. You can query by zipcodes, cities, lat/lon and bounding boxes. Below is a link to the documentation.

http://graphical.weather.gov/xml/rest.php

Andrew - OpenGeoCode
  • 8,657
  • 17
  • 28
  • That seems to be for forecasts -- do they have historical data? – Joe Mar 05 '15 at 19:43
  • The queries can take a 'begin' and 'end'. Here is what the documentation says: begin 2004-04-27T12:00 The beginning time for which you want NDFD data. If the string is empty, the beginnng time is assumed to be the earliest available time in the database. Time should be in UTC time.
    end 2004-04-30T12:00 The ending time for which you want NDFD data. If the string is empty, the ending time is assumed to be the last available time in the database. Time should be in UTC time.
    – Andrew - OpenGeoCode Mar 05 '15 at 23:50
  • Um ... but it says it's 'NDFD' data ... which is forecast data. So it might not be the actual historic weather for a given day & place, but what they had forecasted for that day & place. – Joe Mar 06 '15 at 00:03