Back to all APIs
Business Days Calculator
Calculate business days between dates for all GCC countries with holiday awareness
Category: FinanceEndpoint:
/v1/business-daysAvg 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' }); // Count business days between two datesconst range = await client.finance.getBusinessDays({ country: 'AE', from: '2025-01-01', to: '2025-01-31',});console.log(range.businessDays); // 22 // Add 10 business daysconst added = await client.finance.getBusinessDays({ country: 'SA', from: '2025-03-01', add: 10,});console.log(added.resultDate); // "2025-03-15"Python
python
from khaleejiapi import KhaleejiAPI client = KhaleejiAPI('your_api_key') # Count business days between two datesresult = client.finance.get_business_days( country="AE", from_date="2025-01-01", to_date="2025-01-31")print(result["businessDays"]) # 22 # Add 10 business daysadded = client.finance.get_business_days( country="SA", from_date="2025-03-01", add=10)print(added["resultDate"])cURL
curl
curl -X GET "https://khaleejiapi.dev/api/v1/business-days?country=AE&from=2025-01-01&to=2025-01-31" \ -H "x-api-key: your_api_key"