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/weather
Method:GET
Latency:~200ms / ~5ms (cached)

Try it out

GET/v1/weather

Parameters

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

NameTypeRequiredDescription
citystringOptionalCity name (13 MENA cities supported). Required if lat/lng not provided
latnumberOptionalLatitude (-90 to 90). Requires lng
lngnumberOptionalLongitude (-180 to 180). Requires lat
daysnumberOptionalForecast 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

PlanRequests/MonthRate Limit
Free1,00010 req/min
Starter10,00060 req/min
Professional100,000300 req/min
Business500,000500 req/min