The free tier allows up to 60 calls per minute and 1,000,000 calls per month — more than enough for personal or demo use.
Create a free account
Go to openweathermap.org and click Sign in > Create an Account. Fill in your details and confirm your email address.
Navigate to API Keys
After logging in, click your username in the top-right corner and select My API keys from the dropdown menu.
Generate a new key
In the Create key section, enter a name for your key (for example,
weather-app) and click Generate. The new key will appear in the table below.Wait for the key to activate
New API keys on the free tier can take up to 2 hours to become active. If you get a
401 Unauthorized response right after generating a key, wait a while and try again.