Support Center

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

404 error with current weather by city ID in XML format

Mark Mar 08, 2019 08:18PM GMT

Please try this:
https://samples.openweathermap.org/data/2.5/weather?id=2172797&appid=b6907d289e10d714a6e88b30761fae22&mode=xml

JSON works fine, city id in XML throws 404

Any help is appreciated!

Thx, Mark.

Up 0 rated Down
Pavel Zuykov Mar 11, 2019 02:29AM GMT OpenWeatherMap Agent

Hello Mark.

You should use api endpoint and your own key. For example: https://api.openweathermap.org/data/2.5/weather?id=2172797&mode=xml&appid=yourkey

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