Overview
ETFs contain hundreds of stocks, some compliant and some not. The halal.sh API analyzes each holding individually and provides:- Purity percentage — what portion of the ETF (by weight) is Shariah-compliant
- Holdings breakdown — per-holding compliance status
- Purification data — how much to purify from dividends
Get ETF purity
Get per-holding compliance
Filter by compliance status
Use thestatus query parameter to get only the holdings you care about:
| Value | Returns |
|---|---|
compliant | Only Shariah-compliant holdings |
non-compliant | Only non-compliant holdings |
pending | Holdings with analysis in progress |
| (omit) | All holdings |
Use cases
- Robo-advisors: Show users which ETFs are “most halal” and by how much
- Portfolio tools: Calculate portfolio-level purity across multiple ETFs
- Research: Track how ETF purity changes over time as holdings shift