FreeAPIHub
HomeAPIsAI ModelsAI ToolsBlog
Favorites
FreeAPIHub

The central hub for discovering, testing, and integrating the world's best AI models and APIs.

Platform

  • Categories
  • AI Models
  • APIs

Company

  • About Us
  • Contact
  • FAQ

Help

  • Terms of Service
  • Privacy Policy
  • Cookies

© 2026 FreeAPIHub. All rights reserved.

GitHubTwitterLinkedIn
  1. Home
  2. Categories
  3. Weather
  4. OpenWeatherMap API
published

OpenWeatherMap API

The OpenWeatherMap API offers developers free access to current weather and 7-day forecasts for over 200,000 cities, facilitating diverse application scenarios.

Developed by OpenWeather Ltd.

Live API
99.90%Uptime
300msLatency
1.2kStars
API KeyAuth
NoCredit Card
RESTStyle
3.0Version

Reference

API Endpoints

Endpoints

Available routes, request structures, and code examples.

Get current weather data for any location

Endpoint URL
https://api.openweathermap.org/weather
Code 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

Integration

Quick Start

cURL ExampleREST
curl -X GET "https://api.openweathermap.org/data/3.0/weather?q=London&appid=YOUR_API_KEY"

Docs

Technical Documentation

What this API does

The OpenWeatherMap API provides developers comprehensive access to real-time weather data and forecasts worldwide, covering over 200,000 cities. It offers current weather conditions, 7-day forecasts, and detailed historical weather information. The API supports querying by city name, geographic coordinates, or ZIP code, allowing flexible use in a variety of applications.

How it works

Developers can send HTTP GET requests to retrieve current weather, forecasts, and air quality data. Integration is simple with support for JSON response formats, making it suitable for various programming languages. Example endpoints include current weather data retrieval and 7-day forecasts using parameters like city name or coordinates.

Authentication

Accessing the OpenWeatherMap API requires an API key, which can be obtained by creating an account on the official website. This key must be included in all API requests for authentication purposes.

Example usage

  • /weather?q={city name}&appid={your api key} - Retrieves current weather data for the specified city.
  • /forecast?q={city name}&appid={your api key} - Provides a 7-day weather forecast for the specified city.
  • /air_pollution?lat={lat}&lon={lon}&appid={your api key} - Fetches air quality data based on geographical coordinates.

Limits

Each free account can make up to 1,000 API calls per day. To increase this limit, higher usage plans are available on the official website.

Ideal use cases

  • Integrating live weather updates into mobile and web applications.
  • Creating dashboards for operational weather analysis.
  • Building smart home systems that adjust based on weather conditions.
  • Utilizing climate data for research and educational purposes.

Examples

Real-World Applications

  • Developing mobile and web applications that provide real-time weather updates.
  • Creating dashboards that visualize weather data and trends.
  • Integrating weather alerts and notifications into existing applications.
  • Building local weather services tailored to geographic areas.
  • Analyzing historical weather patterns for research and planning.

Evaluation

Advantages & Limitations

Advantages
  • ✓ Extensive global coverage with data for over 200,000 cities.
  • ✓ Multiple data types including current weather, forecasts, air quality, and UV index.
  • ✓ Supports both JSON and XML formats for flexible integration.
  • ✓ Simple API key authentication and quick setup.
Limitations
  • ✗ Rate limits on the free tier may be restrictive for high-volume applications.
  • ✗ No official SDKs for some popular languages; community SDKs vary in quality.
  • ✗ Detailed rate limits beyond free tier not extensively documented.
  • ✗ Historical weather data may have limited granularity depending on location.

Support

Frequently Asked Questions

Important Notice

Verify Before You Decide

Last verified · Apr 30, 2026

The details on this page — including pricing, features, and availability — are based on our last review and may not reflect the provider's current offering. Providers update their products frequently, sometimes without prior notice.

What may have changed

Pricing Plans
Features & Limits
Availability
Terms & Policies

Always visit the official provider website to confirm the latest pricing, terms, and feature availability before subscribing or integrating.

Check official site

External Resources

Documentation Official Website Pricing Details Postman Collection

API Specifications

3.0
Pricing Model
Freemium with paid plans offering higher limits and more data features.
Credit Card
Not Required
Response Formats
JSON, XML
Supported Languages
8 Languages
SDK Support
Java, Python, JavaScript
Rate Limit

1,000 calls per day on free tier; higher limits available on paid plans

Time to Hello World

5-10 minutes

Free Tier

Up to 1,000 API calls per day, access to current weather, forecasts, and basic air quality data.

Best For

Developers needing reliable global weather data for app development and dashboards.

Not Ideal For

Applications requiring very high request volumes without a paid plan or advanced historical weather data analysis.

Tags

#temperature#meteorology#openweathermap#json#free-api#forecast#weather

You Might Also Like

More APIs Similar to OpenWeatherMap API

Weather.gov API

The Weather.gov API offers developers free access to real-time US weather data, forecasts, alerts, and radar imagery suitable for applications.

publicREST

Open-Meteo API

The Open-Meteo API provides developers with free access to extensive global historical weather data, including over 80 variables for precise integration.

publicREST

WeatherAPI

WeatherAPI provides developers with free access to extensive weather data services, including real-time updates, forecasts, and historical records, suitable for various applications.

publicREST