O

OpenWeatherMap API

by OpenWeatherMap Free tier

OpenWeatherMap provides weather data from 40,000+ stations and weather models covering 200,000 cities. Access current conditions, 5-day/3-hour forecasts, hourly 4-day forecasts, 16-day daily forecasts, historical data going back 40 years, and weather alert polygons.

currentforecasthistoricalair-qualityalerts

Quick Reference

Base URL https://api.openweathermap.org/data/3.0 Auth type API Key Header Auth header ?appid=your_api_key Rate limit 60 calls/min (free) Pricing Free tier available Free quota 1,000 calls / day Documentation https://openweathermap.org/api Endpoint status Server online — HTTP 401 — server is online but path returned an error (may require auth)496ms (checked Mar 29, 2026) Builder score B 72% builder-friendly
Pricing
90
Latency
45
Depth
78

Authentication

Include your API key as the appid query parameter.

?appid=your_api_key

Pricing

Model freemium Starting price Free tier available Free quota 1,000 calls / day
PlanPrice/moIncluded
Free Free 1,000 calls/day, 60/min
Startup $40 100,000 calls/day
Developer $180 300,000 calls/day
Professional $470 Unlimited calls

Free: 1k calls/day. Startup: $40/mo (100k/day). Developer: $180/mo (300k/day). Professional: $470/mo (unlimited). Historical data extra.

Key Endpoints

MethodPathDescription
GET /onecall One-call API: current, minutely, hourly, daily, alerts
GET /onecall/timemachine Historical weather for a specific date
GET /onecall/day_summary Daily weather aggregates for any date
GET /air_pollution Current air quality index and pollutants
GET /air_pollution/forecast Forecasted air pollution data

Sample Request

curl "https://api.openweathermap.org/data/3.0/onecall?lat=51.5074&lon=-0.1278&units=metric&exclude=minutely&appid=$OWM_API_KEY"

Sample Response

{
  "lat": 51.5074,
  "lon": -0.1278,
  "timezone": "Europe/London",
  "current": {
    "temp": 12.5,
    "feels_like": 10.2,
    "humidity": 78,
    "wind_speed": 5.4,
    "weather": [{"main": "Clouds", "description": "overcast clouds"}]
  },
  "daily": [{"dt": 1680825600, "temp": {"day": 14, "night": 9}, "summary": "Overcast clouds"}]
}

Data sourced from API Map. Always verify pricing and rate limits against the official OpenWeatherMap documentation.