API List/OpenWeatherMap API

OpenWeatherMap API

online

Current weather data, forecasts, and historical weather data for any location worldwide.

🌤️ WeatherAuth: api-keyPopularity: 88/100Latency: 150ms
Run in Explorer →

Base URL

https://api.openweathermap.org

Authentication

Requires an API key. Pass it as a query parameter or in the header.

View Documentation →

Endpoints

GET/data/2.5/weather
Try it →

Current weather data

qstringrequiredCity name
appidstringrequiredAPI key
GET/data/2.5/forecast
Try it →

5-day forecast

Example Request

GET https://api.openweathermap.org/data/2.5/weather?q=London&appid=YOUR_KEY

Example Response

{
  "weather": [{"main": "Clouds", "description": "overcast clouds"}],
  "main": {"temp": 280.32, "humidity": 81},
  "name": "London"
}

Tags

weatherforecasttemperatureclimate