1. Get your API key
Sign up at halal.sh/developers to get your sandbox API key instantly — no credit card required. Sandbox keys give you access to 10 popular stocks with real data and identical response schemas.2. Make your first request
3. Understand the response
Every compliance response includes:| Field | Description |
|---|---|
determination.status | compliant, non-compliant, or pending |
determination.confidence | 0–1.0 confidence score |
screens.business_activity | pass or fail — whether core business is permissible |
screens.debt_to_market_cap | Interest-bearing debt / market cap (threshold: ≤ 30%) |
screens.prohibited_revenue | Prohibited income / revenue (threshold: ≤ 5%) |
screens.cash_receivables_to_market_cap | (Cash + receivables) / market cap (threshold: ≤ 30%) |
purification.percentage | Percentage of dividends to purify |