Support Center

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

How to retrieve city code

Mike Mar 17, 2019 08:45PM GMT

Trying to retrieve the city code for my location for the ThingPulse weather station. Entering
https://openweathermap.org/find?q=coppell returns the weather for the city. I need a
city code in my app … ???

Up -1 rated Down
Pavel Zuykov Mar 18, 2019 07:20AM GMT OpenWeatherMap Agent

Hello,

You should select the city, and press on it. New page will be opened, and it’s address will have city id, for example:
https://openweathermap.org/city/4683217; 4683217 is city ID

Or you can use list of city IDs http://bulk.openweathermap.org/sample/city.list.json.gz

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