Back to all APIs
Weather API
Real-time weather and 7-day forecasts for MENA cities via Open-Meteo
Category: UtilitiesEndpoint:
/v1/weatherAvg Response
<50ms
Uptime SLA
99.99%
Free Tier
1,000/mo
Quick Start
JavaScript / TypeScript
javascript
import { KhaleejiAPI } from '@khaleejiapi/sdk'; const client = new KhaleejiAPI({ apiKey: 'your_api_key' }); const weather = await client.geo.getWeather({ city: 'dubai' }); console.log(`${weather.temperature}°C — ${weather.conditions}`);// "38.2°C — Clear sky"console.log(weather.forecast[0]);// { date: "2025-01-16", high: 41, low: 25, conditions: "Clear sky" }Python
python
from khaleejiapi import KhaleejiAPI client = KhaleejiAPI('your_api_key') weather = client.geo.get_weather(city="dubai") print(f"{weather['temperature']}°C — {weather['conditions']}")# "38.2°C — Clear sky"cURL
curl
curl -X GET "https://khaleejiapi.dev/api/v1/weather?city=dubai" \ -H "x-api-key: your_api_key"