Open-Meteo API

⭐ Beginner's Pick Weather / No Auth Required Beginner HTTPS CORS
Free to Use 600 calls/minute, 5,000 calls/hour, 300,000 calls/month

Overview

Open-Meteo is a completely free and open-source weather API for non-commercial use that provides hourly and daily forecasts, historical data, and climate projections for any location worldwide without requiring an API key. You can start making requests immediately with just a latitude and longitude. It is one of the best beginner weather APIs due to its simplicity, generous free tier, and excellent documentation.

💡

Beginner Tip

No sign-up or API key is needed — just provide latitude and longitude and a list of the weather variables you want. The hourly parameter accepts a comma-separated list like temperature_2m,precipitation,wind_speed_10m to customize the response.

Available Data

Current Temperature
Wind Speed
Weather Code
weather conditions
humidity
forecast data

Example Response

JSON Response
{
  "location": "Tokyo",
  "temperature": {
    "current": 22,
    "feels_like": 24,
    "min": 18,
    "max": 26
  },
  "condition": "Partly Cloudy",
  "humidity": 65,
  "wind": {
    "speed": 12,
    "direction": "NE"
  },
  "forecast": [
    {
      "date": "2025-01-16",
      "high": 25,
      "low": 17,
      "condition": "Sunny"
    }
  ]
}

Field Reference

latitude Latitude of the nearest grid point used for the forecast.
longitude Longitude of the nearest grid point used for the forecast.
hourly.time Array of ISO 8601 timestamps (one per hour) for the forecast period.
hourly.temperature_2m Hourly air temperature at 2 metres above ground in degrees Celsius.
hourly.precipitation Hourly total precipitation in millimetres.
hourly.wind_speed_10m Hourly wind speed at 10 metres above ground in km/h.

Implementation Example

// Get current weather and forecast by coordinates (no API key required)
const url = "https://api.open-meteo.com/v1/forecast?latitude=52.52&longitude=13.41&current_weather=true&hourly=temperature_2m,precipitation";

const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();

console.log(`Current Temperature: ${data.current_weather.temperature}°C`);
console.log(`Wind Speed: ${data.current_weather.windspeed} km/h`);
console.log(`Weather Code: ${data.current_weather.weathercode}`);
console.log(`Hourly forecast available for ${data.hourly.time.length} hours`);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

Empty hourly object in response No weather variables were specified in the hourly or daily parameter.
Add at least one variable to the hourly parameter, e.g., hourly=temperature_2m.
Coordinates out of bounds Latitude or longitude values are outside the valid range (-90 to 90 and -180 to 180).
Double-check that latitude and longitude are not accidentally swapped and are valid decimal numbers.
Large response or slow parsing Many variables were requested over a long time range.
Limit the forecast window with start_date and end_date parameters, or request fewer variables.

Matrix Score Breakdown

🌐 Reachability 15/30
⚡ Speed 15/20
🔒 Security 15/15
🛠 Developer XP 20/20
✓ Reliability 7/15
Response Time 275ms

Fully tested on Apr 5, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS YES
Category Weather
Difficulty Beginner
Verified: 2026-04-04

Alternatives to Open-Meteo

Technical alternatives for different use cases.

Simple astronomical and weather forecast, no auth required

Better For

Astronomy-related weather forecasts

Trade-off

Detailed current conditions and historical data

Includes air quality data with no API key required

Better For

Real-time AQI station-level reporting

Trade-off

Quick prototyping of air quality features

More features like weather alerts and air pollution data

Better For

Apps needing weather alerts and push notifications

Trade-off

Cost-sensitive projects (requires paid plan for serious use)

No API key needed, fully open-source weather data

Better For

Production apps needing guaranteed uptime

Trade-off

Quick prototyping without registration

Recipes Using Open-Meteo

Build something with this API. Each recipe includes step-by-step instructions and code outlines.

Similar APIs

View All →