Weather forecasts

OpenWeatherMap

by openweathermap.org

Weather forecasts Added on July 23rd, 2014 Checked and working on November 16th, 2026
Visit openweathermap.org →

What it does

OpenWeatherMap provides current weather, hourly and daily forecasts, historical data, air pollution data, geocoding and weather map layers for any location in the world. Its data comes from global weather models and more than 40,000 weather stations. Responses are JSON or XML. Free plan with a limit per minute and per month; paid plans for more calls and features.
  • API
  • HTTP-GET
  • JSON
  • REST
  • XML

At a glance

API key
Needed, free · More APIs with a free key
Pricing
Free plan with a limit per minute and per month; paid plans for more calls and features.
From the browser
Yes (CORS)
Formats
JSON, XML
Interface
REST, HTTP-GET
Provider
openweathermap.org
Last checked
Working on November 16th, 2026

More information: https://openweathermap.org/api

Compare: Open-Meteo vs OpenWeatherMap

Is this your service? Show that it is listed

Put this badge on your website or in your README; it links to this page. About the badge

Listed on Free Web Services

openweathermap.org
OpenWeatherMap

Example request

curl

curl 'https://api.openweathermap.org/data/2.5/weather?q=London&appid=YOUR_API_KEY'

JavaScript

const response = await fetch("https://api.openweathermap.org/data/2.5/weather?q=London&appid=YOUR_API_KEY");
const data = await response.json();
console.log(data);

Python

import requests

response = requests.get(
    "https://api.openweathermap.org/data/2.5/weather?q=London&appid=YOUR_API_KEY",
    timeout=30,
)
print(response.json())

Replace YOUR_API_KEY with your own key. The JavaScript works in a web page as well as in Node.js 18 or newer.

Did it work for you?

Tell us what you found when you tried OpenWeatherMap.