Back to all APIs
Public Holidays
GCC public holidays (2024–2027) with smart queries — check if a date is a holiday, get the next upcoming holiday, and filter by month or sector
Category: FinanceEndpoint:
/v1/holidaysAvg 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' }); // Get next upcoming holidayconst next = await client.finance.getHolidays({ country: 'AE', mode: 'next' });console.log(next.holiday.name, `in ${next.holiday.daysUntil} days`); // Check if today is a holidayconst check = await client.finance.getHolidays({ country: 'AE', mode: 'check', date: 'today' });console.log(check.isHoliday, check.isWeekend, check.isDayOff); // List all holidays with smart metadataconst result = await client.finance.getHolidays({ country: 'AE', year: 2025 });for (const h of result.holidays) { console.log(`${h.date} — ${h.name} (${h.dayOfWeek}, ${h.sector})`);}Python
python
from khaleejiapi import KhaleejiAPI client = KhaleejiAPI('your_api_key') # Check if a specific date is a day offresult = client.finance.get_holidays(country="AE", mode="check", date="2025-12-02")print(f"Holiday: {result['isHoliday']}, Day off: {result['isDayOff']}") # Get next upcoming holidaynext_h = client.finance.get_holidays(country="SA", mode="next")print(f"Next: {next_h['holiday']['name']} in {next_h['holiday']['daysUntil']} days")cURL
curl
# Get next holidaycurl -X GET "https://khaleejiapi.dev/api/v1/holidays?country=AE&mode=next" \ -H "x-api-key: your_api_key" # Check if date is a holidaycurl -X GET "https://khaleejiapi.dev/api/v1/holidays?country=AE&mode=check&date=today" \ -H "x-api-key: your_api_key"