OpenWeatherMap
Current weather, 5-day forecasts and alerts for 200,000+ cities globally, including Israel.
About this API
OpenWeatherMap is the most-used weather API among developers, largely thanks to its generous free tier (60 calls/min, 1M/month). It exposes hourly/daily forecasts, historical data, temperature/precipitation map tiles, and air quality. Set `lang=he` for Hebrew condition strings.
Who it's for
Weather apps
Agriculture dashboards
Smart-home/IoT systems
Blogs and news sites
How to use it
- 1Register at openweathermap.org and get a key by email.
- 2Wait ~10 minutes for activation.
- 3Call /data/2.5/weather with lat/lon or city name.
- 4Add units=metric for Celsius (default is Kelvin).
Installation & setup
Store the key in .env.local (`OPENWEATHER_KEY=…`) — never expose it client-side. In Next.js wrap the call in an API route. Limit is 60/min — cache aggressively for any real traffic.
Code examples
curl "https://api.openweathermap.org/data/2.5/weather?q=Tel+Aviv&units=metric&lang=he&appid=YOUR_KEY"Sample response
{
"coord": {
"lon": 34.78,
"lat": 32.08
},
"weather": [
{
"id": 800,
"main": "Clear",
"description": "שמיים בהירים"
}
],
"main": {
"temp": 24.3,
"feels_like": 24.1,
"humidity": 62
},
"wind": {
"speed": 3.4,
"deg": 280
},
"name": "Tel Aviv"
}FAQ
Yes — up to 1M calls/month and 60/min.
Tips & pitfalls
Use the One Call API (3.0) — current + hourly + daily in one call.
Cache for at least 10 minutes. Weather doesn't change every second.