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 UTC


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
Maxim Gushcho Nov 13, 2017 08:36AM UTC 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 UTC
I cannot find my little town: Washington, D.C. USA coords approx 38.9 -77.1
Up 0 rated Down
Maxim Gushcho Nov 20, 2017 03:30PM UTC 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 UTC
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
Maxim Gushcho Nov 20, 2017 03:54PM UTC 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 UTC
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????

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