← Back to Home
Weather API
Get accurate weather forecasts for any city worldwide. Powered by Open-Meteo, a free and open-source weather API with data from national weather services.
🅞 Powered by Open-Meteo
This API uses Open-Meteo, a free and open-source weather API that combines data from multiple national weather services including ECMWF, DWD, MeteoFrance, NOAA, and more. Open-Meteo provides high-resolution weather forecasts with up to 16 days of data.
API Endpoint
Send a GET request to:
https://api.ethioall.com/weather/weather.php
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| city | string | (required) | City name (e.g., "Addis Ababa", "London", "Dubai") |
Try the API
Response:
Click a button to see the response here...
Example Request
GET /weather/weather.php?city=Addis+Ababa
GET /weather/weather.php?city=London
GET /weather/weather.php?city=Dubai
Example Response
{
"source": "Open-Meteo",
"city": "Addis Ababa",
"country": "Ethiopia",
"current": {
"temperature": 22.5,
"humidity": 45,
"condition": "Partly cloudy"
},
"hourly": [
{
"time": "2026-07-09T00:00",
"temp": 16.2,
"condition": "Clear sky"
}
],
"daily": [
{
"date": "2026-07-09",
"max_temp": 24.8,
"min_temp": 14.2,
"condition": "Partly cloudy"
}
]
}
Features
🌎 Worldwide Coverage
Weather data for any city on Earth
🌡 Current Conditions
Temperature, humidity, and weather condition
📈 3-Day Forecast
Hourly (24h) and daily (3 days) forecasts
🌎 Auto Geocoding
Just provide a city name, coordinates are resolved automatically
🌍 Free & Open
Powered by Open-Meteo, completely free and open-source
💾 Cached Responses
30-minute cache for better performance
Response Fields
| Field | Description |
|---|---|
| source | Data source ("Open-Meteo") |
| city | Resolved city name |
| country | Resolved country name |
| current.temperature | Current temperature in °C |
| current.humidity | Current relative humidity (%) |
| current.condition | Current weather condition description |
| hourly[].time | ISO8601 timestamp |
| hourly[].temp | Temperature at that hour (°C) |
| hourly[].condition | Weather condition description |
| daily[].date | Date (YYYY-MM-DD) |
| daily[].max_temp | Maximum temperature (°C) |
| daily[].min_temp | Minimum temperature (°C) |
| daily[].condition | Weather condition description |
WMO Weather Codes
Weather conditions are based on WMO weather interpretation codes:
| Code | Description |
|---|---|
| 0 | Clear sky |
| 1, 2, 3 | Mainly clear, Partly cloudy, Overcast |
| 45, 48 | Foggy |
| 51-55 | Drizzle (light to dense) |
| 61-65 | Rain (slight to heavy) |
| 71-75 | Snow (slight to heavy) |
| 80-82 | Rain showers |
| 95-99 | Thunderstorm with possible hail |
Error Response
{
"error": "City is required"
}
or
{
"error": "City not found"
}