Are there any special parameters needed to collect weather information from international cities?

  • 1
  • Question
  • Updated 2 years ago
  • (Edited)
I am trying to collect historical weather information for Chinese cities.  An example API call I am making to do this follows (I am trying to get historical information for Shanghai): 

http://api.wunderground.com/api/API_key/history_20060405/q/China/Shanghai.json.

All that returns is some descriptive information of the city and nothing pertaining to weather.

A call like this works for US cities (I successfully ran it for San Fransico), but do I need special parameters for international cities?

  

Thanks!

Photo of Hunter Priniski

Hunter Priniski

  • 2 Posts
  • 0 Reply Likes

Posted 2 years ago

  • 1
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 123 Reply Likes
Unfortunately we have 2 city locations for Shanghai.  Take the "l" variable and use that to make the full URL when there are multiple cities returned: http://api.wunderground.com/api/APIKEY/history_20060405/q/zmw:00000.1.58367.json