Back to all APIs
Zakat Calculator
PopularCalculate zakat obligations on cash, gold, silver, stocks, and more with live nisab thresholds
Category: Islamic FinanceEndpoint:
/v1/zakat/calculateAvg 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' }); // Simple cash zakatconst simple = await client.request('/v1/zakat/calculate', { amount: 50000, currency: 'AED',});console.log(simple.calculation.zakatDue); // 1250.00 (2.5%) // Detailed multi-asset zakatconst detailed = await client.request('/v1/zakat/calculate', { assets: JSON.stringify([ { type: 'cash', value: 100000 }, { type: 'gold', weight: 200 }, { type: 'stocks', value: 50000 }, ]), currency: 'AED',});console.log(detailed.calculation.eligible); // trueconsole.log(detailed.calculation.zakatDue); // total zakat across all assetsPython
python
from khaleejiapi import KhaleejiAPI client = KhaleejiAPI('your_api_key') # Simple cash zakatresult = client.request('/v1/zakat/calculate', { 'amount': 50000, 'currency': 'AED',})print(result['calculation']['zakatDue']) # 1250.00 (2.5%)cURL
curl
curl -X GET "https://khaleejiapi.dev/api/v1/zakat/calculate?amount=50000¤cy=AED" \ -H "x-api-key: your_api_key"