Open-Meteo API
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
Example 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¤t_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
Matrix Score Breakdown
Fully tested on Apr 5, 2026
Technical Specifications
Related Tags
Alternatives to Open-Meteo
Technical alternatives for different use cases.
Simple astronomical and weather forecast, no auth required
Astronomy-related weather forecasts
Detailed current conditions and historical data
Includes air quality data with no API key required
Real-time AQI station-level reporting
Quick prototyping of air quality features
More features like weather alerts and air pollution data
Apps needing weather alerts and push notifications
Cost-sensitive projects (requires paid plan for serious use)
No API key needed, fully open-source weather data
Production apps needing guaranteed uptime
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 →OpenWeatherMap
⭐ Beginner's PickOpenWeatherMap is one of the most popular weather APIs, providing current conditions, forecasts, and historical data for millions of locations worldwide.
WeatherAPI
⭐ Beginner's PickWeatherAPI is a feature-rich weather platform that delivers real-time weather, 14-day forecasts, historical data, and extras like astronomy data (sunrise/sunset, moon phases) and geolocation lookups.
Visual Crossing
⭐ Beginner's PickVisual Crossing offers comprehensive historical weather data, current conditions, and forecasts for any location worldwide, making it particularly valuable for data analysis and building weather-driven insights.
Weatherbit
Weatherbit is a professional-grade weather API offering current observations, hourly and daily forecasts, historical weather, and severe weather alerts sourced from global meteorological stations.
Weatherstack
⭐ Beginner's PickWeatherstack is a real-time and historical weather data API that covers over 200,000 locations worldwide.