OpenWeatherMap Historical API for students return "no data" when given city, country as input

I am trying to get the historical weather data when city and country is given as the input. It returns the value 404000 (invalid location according to the documentation) and the message "no data" even when I copy-paste the example from their site (I deleted my API key),UK&type=hour&appid={API_KEY}

However, it works when I give the latitude and longitude of the same location (London, UK) as the input.{{lat}}&lon={{lon}}&type=hour&appid={{appid}}

I am using the student plan.

Try GB not UK.
from the api docs

q required City name, state code and country code divided by comma, use ISO 3166 country codes.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.