Locations unable to be queried through API but are present on the Wunderground Site

  • 1
  • Problem
  • Updated 5 years ago
Hi!

I can't find a way to query through the API Bulgarian destinations such as Borovets and Pamporovo.

Those two seem to be the only one I can't find a way to geolookfor or forecast.
I noticed on the site there is also a different identification in the URL for those two destinations that is very different from all others.

Can someone please assist fast?

Regards
Photo of YavorIvanov

YavorIvanov

  • 3 Posts
  • 0 Reply Likes
  • frustrated

Posted 5 years ago

  • 1
Photo of afelicioni

afelicioni

  • 227 Posts
  • 43 Reply Likes
I was able to spot them after a query to the Autocomplete API (see http://www.wunderground.com/weather/a... ) and grabbed the "l" key for the found and wanted city; after that, the "l" value can be used to make other feature calls.

So
http://autocomplete.wunderground.com/aq?query=Pamporovo
returned usable value, JSON-query-ready:
/q/locid:15725001.json

and
http://autocomplete.wunderground.com/aq?query=Borovets
returned usable value, JSON-query-ready:
/q/locid:15615001.json

aimed for a fast reply, so reply with more questions if you need extra info
Photo of YavorIvanov

YavorIvanov

  • 3 Posts
  • 0 Reply Likes
Yes but how do you query for forecast info with that locid?
Photo of YavorIvanov

YavorIvanov

  • 3 Posts
  • 0 Reply Likes
Oh nvm. I found zmw in the response you provided. Thank you very much for the fast response!
Photo of afelicioni

afelicioni

  • 227 Posts
  • 43 Reply Likes
You're welcome, unfortunately the Weather Underground API is not properly/straightforwardly easy to use, documentation too is not available in enough quality at the time...
Even if autocomplete documentation suggest you can use the returned "l" key, you're of course allowed to build queries using "zmw" once you know it; but at this point I see you're able to get forecast data for the cities you were missing!