PWS Hourly Historical Data

  • 1
  • Question
  • Updated 3 weeks ago
  • (Edited)
I understand that the free apis will be shutdown in February. In the meantime, is there a way to get historical data on an hourly basis for a PWS?

The following call gets me summary data for each day in the range, but I need hourly.
http://api.wunderground.com/api/{key}/history_2018010120190105/units:english/v:2.0/q/pws:...
Photo of Aliza Levinger

Aliza Levinger

  • 2 Posts
  • 0 Reply Likes

Posted 4 weeks ago

  • 1
Photo of Tom Johnson

Tom Johnson

  • 15 Posts
  • 6 Reply Likes
According to the documentation it should be 

http://api.wunderground.com/api/{key}/hourly/q/pws:KNYWEST13.json

Documentation here:  https://www.wunderground.com/weather/api/d/docs?d=data/hourly

Though the documentation is written specifically for city calls.
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 323 Posts
  • 49 Reply Likes
Aliza, if I understand you correctly, you want past data from a PWS by the hour, yes?  The =history= call isn't set up to do that, and as far as I know, =hourly= doesn't allow you to set a time in the past, yes?  

One way to get around that is to download the data on the PWS dashboard page.  You can set the date there, but keep in mind the data can only show you what the PWS was alive for.  So if you pick a date before it existed, you're not going to get anything.  

If I'm misinterpreting your question, please let me know.

Victoria Gardner
victoria.gardner@ibm.com
Photo of Aliza Levinger

Aliza Levinger

  • 2 Posts
  • 0 Reply Likes
Thanks for your reply. Some of the history calls do provide hourly data. Looking for historical data for an airport does and so does looking by zipcode. I wanted to know if it was possible to do the same when looking at a PWS. If not I'll look by zipcode for the applicable weather station.
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 322 Posts
  • 49 Reply Likes
Okay!  Keep in mind that depending on your key, you won't get an unlimited number of history calls.  The history data has always been on tighter rein; I think you may run into issues at >10 calls/min, again, depending on how your key is set up.

--Victoria