Country code to use for Turkey

  • 1
  • Question
  • Updated 6 years ago
Which country code should I use for Turkey when making a request for a forecast? "/forecast/q/TU/Antioch.json" does not return a forecast but "/forecast/q/TR/Antioch.json" does even though your documentation in Country to ISO matching suggests I should use TU.

Thanks
Felix
Photo of streamthru

streamthru

  • 2 Posts
  • 0 Reply Likes

Posted 6 years ago

  • 1
Photo of afelicioni

afelicioni

  • 227 Posts
  • 43 Reply Likes
According to docs, it seems that outside USA you should query for english country name, not by using ISO or WU 2-char code.

So the following appears to work
http://api.wunderground.com/api/YOURA...
Photo of streamthru

streamthru

  • 2 Posts
  • 0 Reply Likes
Thanks. That seems to work. Is there a complete list of country names anywhere in the documentation? I've looked but can't see one.
Photo of afelicioni

afelicioni

  • 227 Posts
  • 43 Reply Likes
You're right, the query paragraph is very brief; I also can't find the whole list of queryable countries, so if you really need it I'm afraid you have to arrage it by yourself, someways.. I'm sorry