Historical data for multiple days in one request ?

  • 41
  • Question
  • Updated 1 year ago
Is there a way to get historical data for multiple days in one request ?

There is hourly10day which returns an hourly forecast for the next 10 days.

Is there something similar for historical data ?

For history history_YYYYMMDD returns a summary of the observed weather for the specified date but is it possible to get history data from one date to another date.
Photo of santoshb

santoshb

  • 23 Posts
  • 0 Reply Likes

Posted 7 years ago

  • 41
Photo of altaibayar tseveenbayar

altaibayar tseveenbayar

  • 1 Post
  • 3 Reply Likes
joshlehman: you should store all results in database, so 365 requests will be done just once.
Photo of Stefano Campagnolo

Stefano Campagnolo

  • 1 Post
  • 0 Reply Likes
can you better explain please?
Photo of fearless_fool

fearless_fool

  • 13 Posts
  • 7 Reply Likes
For PWS stations, you can do things like:

http://www.wunderground.com/weatherst...

to get the raw CSV data. For airports, the format is a little different:

http://www.wunderground.com/history/a...

Is that what you were looking for?
Photo of WunderWilliam

WunderWilliam

  • 7 Posts
  • 1 Reply Like
We don't have a built-in function to get data for more than one day -- each history call is for one day.

Many of our API users create a script to automatically increment the date, and repeat the call. This is the easiest way to get a large date spread.

-William
Wunderground Support
Photo of teppattra

teppattra

  • 4 Posts
  • 0 Reply Likes
fearless_fool what program language do you use for saving data to csv file? I try C# what I get just the first line of data. One more question, what format=1 means?
Photo of fearless_fool

fearless_fool

  • 13 Posts
  • 7 Reply Likes
Well, your choice of language isn't so much an issue as your choice of library function in your language. I've used both Ruby and Python for reading and manipulating CSV files, but I'm absolutely certain that C# has libraries to work with CSV files (but I'm not much help on the particulars).

And in this context, format=1 means CSV format.
Photo of teppattra

teppattra

  • 4 Posts
  • 0 Reply Likes
Thanks for quick reply, fearless_fool :-)
Photo of Mayan Whitewater

Mayan Whitewater

  • 1 Post
  • 0 Reply Likes
Hi, is there documentation for the WXDailyHistory (or other) function (the various formats for example)? And is it true, access to PWS data is unlimited? you don't need an api id/account?