Support Center

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

Zip code returns city no found response

Theo Nov 12, 2017 05:55PM GMT


I want to report a problem that has been existing since yesterday.

My url: http://api.openweathermap.org/data/2.5/forecast/daily?q=94043&mode=json&units=metric&cnt=14&APPID= KEY_GOES_HERE doesn't work. It gives me this response.

{
"cod": "404",
"message": "city not found"
}

Thanks

Theo.

Up 0 rated Down
Pavel Zuykov Nov 13, 2017 08:36AM GMT OpenWeatherMap Agent

Hello,

The 16 daily froecast has been transefred to the paid version of the service.
It has been in the beta mode previously.
However, the testing period has ended.

It is now available starting from the Startup plan.
Prcing for your reference: http://openweathermap.org/price

Thanks for understanding.

Up 0 rated Down
RIch Schmidt Nov 19, 2017 01:16AM GMT
I cannot find my little town: Washington, D.C. USA coords approx 38.9 -77.1
Up 0 rated Down
Pavel Zuykov Nov 20, 2017 03:30PM GMT OpenWeatherMap Agent

Hello,

Please stick to the format of request that described in the docs:

http://openweathermap.org/current

http://openweathermap.org/forecast16

Examples:

http://api.openweathermap.org/data/2.5/weather?q=Lisbon&units=metric&appid=XXXX

http://api.openweathermap.org/data/2.5/forecast/daily?q=Lisbon&units=metric&cnt=6&appid=XXXX

Do not write full name of the country. You can add just a country code:

http://api.openweathermap.org/data/2.5/weather?q=Lisbon,PT&units=metric&appid=XXXX

We used to have some supporting functionality that was not documented. We are fixing this.

So, from now please focus on this types of requests.

Thanks for understanding.

Up 0 rated Down
Roger O'Brien Nov 20, 2017 03:34PM GMT
Are you freaking serious? So querying by zip code and and city+state is completely unsupported now? What if the same name of the city exists in several states? This is absolutely ridiculous.
Up 0 rated Down
Pavel Zuykov Nov 20, 2017 03:54PM GMT OpenWeatherMap Agent

The quering by zip codes works.

It should be used how it is described in the docs:

http://api.openweathermap.org/data/2.5/forecast/daily?zip=94043,US&mode=json&units=metric&cnt=14&APPID=xxxxxxxxx

We are working on the fix for supporting functionlity.

The state name approach have never been documented on our website. So, it was used as a supporting approach.

Thanks.

Up 2 rated Down
Roger O'Brien Nov 20, 2017 06:18PM GMT
This is still freaking ridiculous, on your API page you put as an example: London,UK. At first glance, and it was indeed working for years, this would be okay: New York,NY. Why is that not working any more? That's straight deceptive and not like everybody here noticed that little fine print. And how are we supposed to know to put the country code after the zip code all of a sudden? You know how much extra work you gave your customers for no reason? So I have to tell my users *not* to enter their State for it work? What kind of weather service is this? There's a New York in Florida, Iowa, Kentucky, Missouri, Texas, and Minnesota. If they enter "New York" how are they going to know which city in which state it is????
Up 0 rated Down
Pavel Zuykov Nov 23, 2017 10:04AM GMT OpenWeatherMap Agent

We understand that it is not pleasent info formation you.

However, this functionality has never been official. So, it was used mostly for security reasons and avoiding incorrect requests.

So, please be patient. We are working on the improoving this functionality.

Thanks.

Up 0 rated Down
Pavel Zuykov Nov 23, 2017 10:05AM GMT OpenWeatherMap Agent

As a temporary soultion you can use this API:

http://openweathermap.org/current#cycle

It allows to see all locations with the same name.

Thanks.

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