published

Open Weather Map API

OpenWeatherMap API offers free access to real-time weather data, forecasts, and historical climate data, ideal for developing weather-related applications and services.

Developed by OpenWeather Ltd.

99.90%Uptime
250msLatency
1.8kStars
API KeyAuth
NoCredit Card
RESTStyle
2.5Version
API Endpoints

Reference for available routes, request structures, and live examples.

Get current weather data for any location

Full Endpoint URL
https://api.openweathermap.org/weather
Implementation Example
curl -X GET 'https://api.openweathermap.org/weather' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Request Payload
{
  "q": "Tokyo",
  "appid": "API_KEY",
  "units": "metric"
}
Expected Response
{
  "main": {
    "temp": 25.3,
    "humidity": 65,
    "feels_like": 26.1
  },
  "name": "Tokyo",
  "wind": {
    "deg": 120,
    "speed": 3.6
  },
  "coord": {
    "lat": 35.6895,
    "lon": 139.6917
  },
  "weather": [
    {
      "id": 800,
      "main": "Clear",
      "description": "clear sky"
    }
  ],
  "visibility": 10000
}
Version:2.5
Limit:60 calls/minute
Real-World Applications
  • Integrating real-time weather data into mobile or web applications.Optimized Capability
  • Building dashboards to visualize weather conditions and forecasts.Optimized Capability
  • Creating location-based services requiring accurate weather information.Optimized Capability
  • Developing analytics tools utilizing historical weather data for trends analysis.Optimized Capability
Advantages
  • Comprehensive global weather data coverage.
  • Multiple data formats (JSON, XML) for flexible integration.
  • Supports detailed forecasts including minute-by-minute updates.
  • Easy authentication with API key and quick setup.
Limitations
  • Rate limits on free tier can be restrictive for high-volume apps.
  • Historical data access may require higher-tier plans.
  • Some advanced weather data features are behind paid plans.
  • API response times may vary by geographic region.

FAQs

API Specifications

2.5
Pricing Model
Freemium with tiered paid plans based on usage and features
Credit Card
Not Required
Response Formats
JSON, XML
Supported Languages
7 Languages
SDK Support
Python, JavaScript, Java, PHP
Time to Hello World

Minutes to sign up and start integrating with well-documented REST endpoints.

Rate Limit

60 calls per minute on free tier; higher limits available on paid plans

Free Tier Usage

60 API calls per minute with basic weather data access, limited to current weather and 5-day forecast endpoints.

Use Case: Best For

Developers looking for reliable, scalable weather data integration for web, mobile, and IoT applications.

Not Recommended For

Use cases needing extremely high-frequency data or very large historical datasets without upgrading to paid plans.

#climate#forecast#weather

Explore Related APIs

Discover similar APIs to Open Weather Map API

View All APIs
PUBLIC

Weather.gov API

The Weather.gov API offers developers free and seamless access to real-time and forecasted weather data, suitable for apps requiring timely weather updates.

PUBLIC

WeatherAPI

The WeatherAPI provides developers free access to real-time and forecast weather data, ideal for building weather applications and tools.

PUBLIC

Open-Meteo Historical

The Open-Meteo Historical API offers developers free access to comprehensive historical weather data, suitable for climate research and related applications.