Recent Observed Weather API Call

  • 1
  • Question
  • Updated 5 years ago
History_YYYYMMDD does not appear to work for today(earlier in the day) or anytime less than 1 month old. I am sure I am missing it, but how do i get say, the last 24 hours of observed conditions? preferably by hour. I am mostly looking for windspeed so i can get an idea of where it is heading in the next few hours.
Photo of ddowdle

ddowdle

  • 3 Posts
  • 0 Reply Likes

Posted 5 years ago

  • 1
Photo of WunderWilliam

WunderWilliam

  • 267 Posts
  • 18 Reply Likes
We do have a "yesterday" call that you can use for the previous day's conditions.

I just did a few test calls with history and could get them to work for yesterday and the same day (up to the current hour).

Could you give me an example call, with your key omitted?

Thanks,
-William
Wunderground Support
Photo of ddowdle

ddowdle

  • 3 Posts
  • 0 Reply Likes
http://api.wunderground.com/api/3a094...

returns data up until midnight june 26th - called at 10:14pm CDT 6/27
the last history.date entry:
"date": {
"pretty": "11:55 PM CDT on June 26, 2013",

i just tried:
http://api.wunderground.com/api/3a094...
and it returned today.

thank you.

my problem was the docs for history.
returns a summary of the observed weather for the specified date.

Specify a date in the request URL with the following format:

http://api.wunderground.com/api/3a094...

i was including _YYYYMMDD with every call - (substituting year month day) for yyymmdd.

http://api.wunderground.com/api/3a094...

20130627 up to 20130727 do not return anything. While i do not need it for what i am doing how do i get data for 15 days ago then?

Thanks again
Photo of WunderWilliam

WunderWilliam

  • 7 Posts
  • 1 Reply Like
Hello,

I see the issue -- your call is asking for a July date in 2013, which hasn't occurred yet.

history_20130701 = July 1st, 2013

-William
Wunderground Support
Photo of ddowdle

ddowdle

  • 3 Posts
  • 0 Reply Likes
lol... could i be any dumber. I guess it is not in fact July yet. i have been locked in the closet on the island for too long by myself!

thanks