Utilities
Weather API
Current conditions and 7-day forecasts for MENA cities powered by Open-Meteo. Returns temperatures, humidity, wind, UV index, and WMO weather codes with English/Arabic descriptions and emoji icons. Results are cached for 30 minutes.
Endpoint:
/v1/weatherMethod:GET
Latency:~200ms / ~5ms (cached)
Try it out
GET
/v1/weatherParameters
Code
curl
curl -X GET "https://khaleejiapi.dev/api/v1/weather?city=dubai&lat=25.2048&lng=55.2708&days=3" \ -H "X-API-Key: your_api_key"Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| city | string | Optional | City name (13 MENA cities supported). Required if lat/lng not provided |
| lat | number | Optional | Latitude (-90 to 90). Requires lng |
| lng | number | Optional | Longitude (-180 to 180). Requires lat |
| days | number | Optional | Forecast days (1–7) |
Supported Cities
DubaiAbu DhabiRiyadhJeddahMeccaDohaKuwait CityManamaMuscatAmmanBeirutCairoBaghdad
Use lat/lng for locations not in the predefined list.
Response Fields
current.temperature
Current temperature in °C
current.humidity
Relative humidity percentage
current.windSpeed
Wind speed in km/h
current.condition
WMO code + English/Arabic text + emoji icon
current.uvIndex
UV index (0–15 scale)
forecast[].maxTemp
Daily high temperature in °C
forecast[].precipitation
Precipitation in mm
location.timezone
IANA timezone identifier
Rate Limits
| Plan | Requests/Month | Rate Limit |
|---|---|---|
| Free | 1,000 | 10 req/min |
| Starter | 10,000 | 60 req/min |
| Professional | 100,000 | 300 req/min |
| Business | 500,000 | 500 req/min |