API returns -9999 for precipitation no matter the location

  • 1
  • Problem
  • Updated 6 years ago
Hi,

I understand that -999 signifies a bad value, however I get bad values for precipitation at every location using the API, whether inside or outside the US. Am I doing something wrong, or can the API simply not provide precipitation values?
Photo of dadlian

dadlian

  • 3 Posts
  • 0 Reply Likes

Posted 6 years ago

  • 1
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 123 Reply Likes
Not all stations report precip. If you list a couple of the URLs you're hitting it can be double checked. The other way to check is to find that same location/history on wunderground.com and see if precip is recorded there.
Photo of dadlian

dadlian

  • 3 Posts
  • 0 Reply Likes
Alright that makes sense. Some of the locations I tried were:

http://api.wunderground.com/api/beec2...
http://api.wunderground.com/api/beec2...
http://api.wunderground.com/api/beec2...
http://api.wunderground.com/api/beec2...

I'll check the main page and see if precip data is reported.
Photo of dadlian

dadlian

  • 3 Posts
  • 0 Reply Likes
After further testing it seems percipitation data is not available outside of the US. I confirmed by hovering over the precipitation field on the main page, and noting 'undefined' reported as the time. I'll have to make do. Thanks.
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 123 Reply Likes
Yeah, I'm afraid precip gets spotty outside of the US. You can check personal weather stations also, which are listed when you add /geolookup/ to your URL string.