Overview
weather-api is a lightweight, open-source RESTful API that provides current weather data for cities around the world with no authentication required. It is built on top of open data sources and is perfect for learning how to consume a weather API without worrying about API keys or rate limits. Beginners can get started in minutes by simply querying a city name.
Beginner Tip
No API key is needed. Just pass a city name as a path parameter and you will get back current temperature, humidity, and weather conditions in a simple JSON response.
Available Data
The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.
Example Response
Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded 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
temperature Current temperature with degree symbol, typically in Celsius wind Current wind speed and direction as a descriptive string description Short weather condition description such as "Sunny" or "Overcast" forecast Array of upcoming daily forecast objects with day, temperature, and wind fields forecast[].day Relative day label such as "1" or "2" indicating days from today Implementation Example
Calls a real endpoint of this API. Replace any placeholder credentials with your own key.
const url = "https://goweather.herokuapp.com/weather/London";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); 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
Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.
Metadata Score Breakdown
Estimated from metadata — endpoint not independently tested
Metadata estimate · endpoint not independently tested
Technical Specifications
Related Tags
Similar APIs
View All →7Timer!
⭐ Beginner's Pick7Timer!
AviationWeather
AviationWeather.gov is a free NOAA service that provides official aviation weather data including METARs, TAFs, PIREPs, and SIGMETs used by pilots and flight planners.
Hong Kong Obervatory
⭐ Beginner's PickThe Hong Kong Observatory Open Data API provides free access to weather observations, forecasts, earthquake reports, and climate data for Hong Kong and the surrounding region.
ODWeather
⭐ Beginner's PickODWeather is a free weather and webcam API from OceanDrivers that provides real-time marine and coastal weather data including wind, waves, and temperature.
QWeather
QWeather delivers accurate location-based weather data including real-time conditions, hourly and daily forecasts, air quality index, and severe weather warnings across global locations.