Weather — entry 019 of 31

OpenWeatherMap

Verified Jul 2026

OpenWeatherMap provides real-time weather conditions, hourly and daily forecasts, historical archives, and specialized layers such as air pollution, UV, and solar irradiance for locations worldwide. Beyond core weather data, it offers agriculture, fire-risk, and road-risk products aimed at both hobby projects and enterprise integrations, plus map tile overlays for visualizing conditions.

OpenWeatherMap serves current conditions, forecasts, and historical weather data for any location worldwide, keyed by city name, coordinates, or ZIP code.

forecasthistoricalair-qualitygeocodingmaps
AuthenticationAPI KeySign up with the provider to obtain credentials.
HTTPSSupportedTraffic is encrypted in transit.
CORSUnknownNot documented — test from the browser before relying on it.
PricingFreemiumA usable free tier exists, with paid plans for more volume.
FormatsJSON, XML, HTMLResponses can be requested as JSON or XML or HTML.

GreatAPIs Score

Score67out of 100
Authentication15/25API key required
Pricing17/20Freemium tier available
Docs0/20No docs or spec available
Formats15/15Supports 3 response formats
Freshness20/20Verified within 6 months

Embed this badge

Scored 67 on greatapis.com
<a href="https://greatapis.com/api/openweathermap/"><img src="https://greatapis.com/badge/openweathermap.svg" alt="Scored 67 on greatapis.com"></a>

Auth quickstart

  1. Create a free account at openweathermap.org
  2. Copy your API key from the API keys tab
  3. Append it as the `appid` query parameter on every request
Stored keyNo key stored

Your key is stored only in this browser (localStorage) and sent directly to the API — never to greatapis.

Current weather for a city

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

200 application/json

{
  "weather": [{ "main": "Clouds", "description": "broken clouds" }],
  "main": {
    "temp": 286.24,
    "feels_like": 285.79,
    "humidity": 76
  },
  "wind": { "speed": 3.6 },
  "name": "London",
  "cod": 200
}

Try it

Developer reference

Base URLhttps://api.openweathermap.org/data/2.5
Rate limit

60 calls/min, 1,000,000 calls/month (free tier)

Key endpoints
  • GET/weather
  • GET/forecast

Gotchas & limits

  • New API keys take about 10 minutes to activate — expect HTTP 401 until then
  • `appid` goes in the query string, not a header
  • Free tier is capped at 60 calls/min and 1,000,000 calls/month
  • Temperatures are in Kelvin by default — add `units=metric` or `units=imperial` for °C/°F