Skip to main content
Unofficial · Developer-focused API documentation

Build with real weather data

Structured documentation for the OpenWeatherMap REST API. Fetch live conditions, 5-day forecasts, and geocoding coordinates with production-ready patterns.

  • REST + JSON
  • curl, Node.js, and Python
  • Diátaxis architecture
  • Interactive API explorer
Information architecture

Structured around how developers work

Organized with the Diátaxis framework so step-by-step lessons, task recipes, endpoint specifications, and system concepts never blur together.

Multi-language integration

One request away from live weather

The OpenWeatherMap API uses standard HTTPS query parameters and JSON payloads, working cleanly with your preferred runtime and HTTP client.

  • Environment-variable API key authentication
  • Metric, imperial, and Kelvin unit systems
  • Localized descriptions in more than 40 languages
Bash · curlGET /data/2.5/weather
curl -sS "https://api.openweathermap.org/data/2.5/weather?q=Tokyo,JP&units=metric&appid=$OPENWEATHER_API_KEY"
200 OKapplication/json · Metric (°C, m/s)
{
  "coord": { "lon": 139.6917, "lat": 35.6895 },
  "weather": [
    { "id": 802, "main": "Clouds", "description": "scattered clouds", "icon": "03d" }
  ],
  "main": { "temp": 22.1, "feels_like": 21.8, "humidity": 58, "pressure": 1014 },
  "wind": { "speed": 4.1, "deg": 140 },
  "sys": { "country": "JP" },
  "name": "Tokyo",
  "cod": 200
}