You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the search field, type the desired city name. For precision (to avoid duplicate city names), append a 2-letter country code (e.g., London, GB to distinguish it from London, Ohio, USA).
Click the target city name in the search results.
After the page reloads, check your browser's address bar. The URL will follow this format:
https://old.openweathermap.org/city/2643743
The numeric string at the end of the URL (e.g., 2643743 in the example above) is the city ID π’.
π€οΈ Get City ID via OpenWeatherMap Search
The simplest way to obtain a unique city ID for a single location is to use the official website's search function.
π Step-by-Step Instructions
London, GBto distinguish it from London, Ohio, USA).2643743in the example above) is the city ID π’.