Support Center

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

ID in API

Russ Feb 08, 2019 10:33AM GMT

I am a newbie, and just registered with Open Weather for a free account. I requested and have an API key.

I am looking at your API documentation under "Example of using API key in API call" and see the following example:

http://api.openweathermap.org/data/2.5/forecast?id=524901&APPID={APIKEY}

My question is, what is my ID? Is everyone's ID 524901?

Thanks in advance for the help.

Up 0 rated Down
Pavel Zuykov Feb 08, 2019 11:03AM GMT OpenWeatherMap Agent

Hello,

It is City ID. You should choose appropriate city ID from this list http://bulk.openweathermap.org/sample/city.list.json.gz, or use city names instead. https://openweathermap.org/current#name

Up 0 rated Down
Russ Feb 08, 2019 11:40AM GMT
Thank you.

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)
9eda11838f597e7a95b6a1c991dcae0a@openweathermap.desk-mail.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete