Weather Forecast API
Global weather by city or coordinates: current conditions, 90-hour hourly & 10-day daily forecast, UV, wind, rain chance, sunrise/sunset, alerts.
Get a free API key on RapidAPI Try it in the playgroundWeather Forecast API
Accurate global weather for any city or coordinate, in metric or imperial units.
🌤️ Current
Temperature, feels-like, humidity, dew point, pressure, wind speed, gusts and direction, clouds, fog, UV index, precipitation and its probability, thunder probability, and a condition with an icon.
📅 Forecast
Hourly for up to 90 hours and daily for 10 days: min and max temperature, rain total and chance, maximum wind and UV.
🌅 Astronomy
Sunrise, sunset, solar noon, day length, moonrise, moonset and moon phase.
📍 Places
Worldwide geocoding: search by city, address or place.
⚠️ Alerts
Official US National Weather Service warnings and watches, by state or location.
Use cases: weather apps and widgets · travel and events · agriculture · logistics · smart home · bots
Keywords: weather api, weather forecast api, current weather api, hourly forecast, 10 day forecast, openweathermap alternative, sunrise sunset api, weather alerts api, geocoding api
Endpoints (6)
| Endpoint | What it returns |
|---|---|
GET/current | Current weather Current conditions: temperature, feels-like, humidity, dew point, pressure, wind speed/gust/direction, clouds, fog, UV index, precipitation and its probability, thunder probability, condition with icon. |
GET/forecast/hourly | Hourly forecast Hour-by-hour forecast for up to 90 hours with every variable of /current. |
GET/forecast/daily | Daily forecast Up to 10 days: min/max temperature, precipitation total and probability, max wind, max UV, average humidity and the day's dominant condition. |
GET/sun | Sunrise, sunset & moon Sunrise, sunset, solar noon, day length, moonrise, moonset and moon phase for any date. |
GET/geocode | Geocoding / place search Search cities, addresses and places worldwide; returns coordinates, state and country. |
GET/alerts | Weather alerts (US) Active official weather warnings and watches from the US National Weather Service - by state or location. |
Quick start
Subscribe on RapidAPI (free plan available), copy your key, and call GET /current:
curl --request GET \
--url 'https://weather-forecast-api20.p.rapidapi.com/current?city=London&units=metric' \
--header 'x-rapidapi-host: weather-forecast-api20.p.rapidapi.com' \
--header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'import requests
url = "https://weather-forecast-api20.p.rapidapi.com/current?city=London&units=metric"
headers = {
"x-rapidapi-host": "weather-forecast-api20.p.rapidapi.com",
"x-rapidapi-key": "YOUR_RAPIDAPI_KEY",
}
resp = requests.get(url, headers=headers)
print(resp.json())const res = await fetch("https://weather-forecast-api20.p.rapidapi.com/current?city=London&units=metric", {
method: "GET",
headers: {
"x-rapidapi-host": "weather-forecast-api20.p.rapidapi.com",
"x-rapidapi-key": "YOUR_RAPIDAPI_KEY"
}
});
console.log(await res.json());
Start free. Every plan includes all endpoints; upgrade only when you need more requests. Runs on Cloudflare's global network for low latency worldwide.
Subscribe on RapidAPIRelated APIs
Aviation Weather API - METAR & TAF
Live decoded METAR & TAF for airports worldwide, flight category (VFR/IFR), airport info, runways & crosswind, nearby stations, SIGMETs.
WeatherSunrise Sunset & Moon Phase API
Sunrise, sunset, twilight, golden & blue hour, day length and sun position for any place and date. Moon phase, illumination, moonrise & moonset.