zip code not returning data

  • 1
  • Question
  • Updated 4 years ago
Hi,

What is wrong with this URL? Other than I have taken out my api key that is.

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

I get back:

"error": {
"type": "invalidformat"

,"description": "you must supply a valid output format"

}

I want a JSON string of the 10 day forecast for a given zip code: 97035
Photo of kmtwunder

kmtwunder

  • 2 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of WunderWilliam

WunderWilliam

  • 267 Posts
  • 18 Reply Likes
At the end of the URL, it should be a .json rather than a /json, like this:

http://api.wunderground.com/api/__YOU...
Photo of kmtwunder

kmtwunder

  • 2 Posts
  • 0 Reply Likes
Ahhhhh, thanks very much for the clarification. Might want to put that in the documentation. :)