Basira Data API: overview
The Basira Data API gives you, as JSON, the Basira Shariah screen for coins and stocks, and what recognised fatwa bodies and regulators have officially published about them: who ruled, when, what they said, and a link to the source. It is the same record that powers our coin reports and stock reports. The full reference with try-it panels is in the API docs.
Each asset carries one rating: a band (PASS Passes screen, REVIEW Mixed, FAIL Fails screen, NONE Not screened) and a score out of 100, from the five published criteria explained in our methodology (v3.0). The single-coin and stock endpoints also return the criteria or penalties behind the score. Basira makes no buy or sell calls.
Access
Keys are not open yet. Join the waitlist on a plan card and we will write when they are. When the Free plan opens, a key is emailed to you: one key per address, for personal, non-commercial use. Until then, the MCP server answers without a key on the free universe. GET /api/v1/status says, without a key, which plans are open and when the data was last updated.
Authentication
Send your key in the Authorization header:
Authorization: Bearer dg_...
X-API-Key: dg_... works too. You can also pass the key as ?key= in the URL, but URLs end up in logs and browser history, so prefer a header and keep the key on your server. A request without a valid key gets 401.
Leaked or lost key? Write to admin@basira.fi from the address the key was sent to and quote the key id (shown in the key email and by /usage). We revoke that key, and you can ask for a new one the next day. Never send us the key itself.
Endpoints
Everything lives under https://www.basira.fi/api/v1 and returns JSON. Every response has the same shape: data holds the result and meta holds asOf, the method versions, the disclaimer and the attribution. Errors return error.code and error.message.
| Endpoint | Returns |
|---|---|
/status | No key needed. Version, data dates, plans and whether free keys are open. |
/coins?page=1&per_page=100 | The screened coins (the largest 1,000), ordered by id: id, symbol, name, rating (band, label, score), tally of positions and count of bodies. per_page up to 250. No prices, market caps or ranks. |
/coins/{id} | One coin by id (for example bitcoin): its rating with the five criteria and how the score was built, and every official position that applies, with body, country, date, stance, summary, source link and history. |
/stocks/{TICKER} | A US stock (S&P 500): its rating with each penalty, published decisions, whether the SPUS fund holds it, and the three SC Malaysia benchmark ratios from its SEC filings, with filing dates. |
/stocks/my-{code} | A Bursa Malaysia security: its entry on the SC Malaysia List of Shariah-Compliant Securities. |
/rulings, /rulings/{asset} | Every ruling on record with its history, or the ones that apply to one asset. |
/screen?symbols=BTC,AAPL | Bulk screen in one call: up to 10 symbols on Free. Costs one unit per symbol. GET or POST. |
/ethics/{symbol} | The Basira ethics score and each sourced, dated flag, separate from the Shariah screen. |
/search?q= | Find coins and stocks by name or ticker. Free of units. |
/purification, /zakat | Purification and zakat calculations with the formula and inputs returned. GET or POST. |
/usage | Your plan and the units used this month. |
/methodology, /openapi.json | No key needed. The method with its bands and sources, and the OpenAPI 3.1 spec. |
Examples
These are real responses from 2026-11-12. Long lists are shortened and marked "... N more". There is an example for every endpoint in the API docs, and small clients for JavaScript and Python are linked from its clients section.
Screen a few symbols
curl "https://www.basira.fi/api/v1/screen?symbols=AAPL,bitcoin" \
-H "Authorization: Bearer $BASIRA_API_KEY"
{
"data": [
{
"input": "AAPL",
"key": "AAPL",
"type": "stock-us",
"symbol": "AAPL",
"name": "Apple Inc.",
"rating": {
"band": "PASS",
"label": "Passes screen",
"score": 90,
"method": "3.0"
},
"summary": "Apple Inc. passes the screen with 90 out of 100: it is in the S&P 500 Shariah index and its debt and cash ratios are under 33%.",
"ratios": {
"debtToAssets": 19.8,
"cashToAssets": 14.02,
"interestIncomeToRevenue": null,
"unit": "percent"
},
"ethics": {
"status": "assessed",
"score": 100,
"band": "clear",
"flags": []
},
"url": "https://www.basira.fi/stocks/AAPL"
},
{
"input": "bitcoin",
"key": "bitcoin",
"type": "coin",
"symbol": "BTC",
"name": "Bitcoin",
"rating": {
"band": "PASS",
"label": "Passes screen",
"score": 81,
"method": "3.0"
},
"summary": "Bitcoin passes the screen with 81 out of 100, and every one of the five criteria scores 60 or more.",
"rulings": {
"tally": {
"permit": 5,
"conditional": 2,
"prohibit": 6
},
"n": 13
},
"scMalaysia": "2020-07-20",
"ethics": {
"status": "not_assessed",
"score": null,
"band": null,
"flags": []
},
"url": "https://www.basira.fi/coins/bitcoin"
}
],
"meta": {
"asOf": "2026-11-05",
"method": {
"screen": "3.0",
"screenDate": "2026-11-07",
"ethics": "1.0"
},
"disclaimer": {
"id": "dg-v1",
"version": "2026-11-10",
"text": "The Basira Shariah screen and ethics score are published methods, not fatwas. Positions are the issuing bodies' own words. Education, not financial advice: no buy, sell or hold call. Capital is at risk."
},
"attribution": "Data: Basira (basira.fi)",
"requested": 2,
"found": 2,
"notFound": 0
}
}
One coin
curl "https://www.basira.fi/api/v1/coins/bitcoin" \
-H "Authorization: Bearer $BASIRA_API_KEY"
{
"data": {
"id": "bitcoin",
"symbol": "BTC",
"name": "Bitcoin",
"rating": {
"band": "PASS",
"label": "Passes screen",
"score": 81,
"method": "3.0",
"summary": "Bitcoin passes the screen with 81 out of 100, and every one of the five criteria scores 60 or more.",
"criteria": [
{
"key": "ribaFree",
"name": "Riba-free",
"score": 74,
"reason": "Nothing in its public tags points to an interest-based mechanism."
},
"... 4 more"
],
"build": {
"base": 76.4,
"namedRulings": {
"n": 7,
"tally": {
"permit": 3,
"conditional": 0,
"prohibit": 4
},
"points": -1.4
},
"scMalaysia": 6,
"hardRule": null
}
},
"rulings": {
"tally": {
"permit": 5,
"conditional": 2,
"prohibit": 6
},
"n": 13
},
"consensus": null,
"scMalaysia": {
"listed": "2020-07-20",
"source": {
"url": "https://www.sc.com.my/digital-assets",
"name": "Securities Commission Malaysia"
}
},
"scTradeableNote": null,
"positions": [
{
"id": "nu-2026",
"body": "Nahdlatul Ulama, Bahtsul Masail of the 35th Muktamar",
"short": "Nahdlatul Ulama",
"country": "Indonesia",
"kind": "Fiqh council of a major Islamic organisation",
"date": "2026-08-29",
"stance": "permit",
"stanceText": "Permits",
"scope": "named assets",
"assets": [
"bitcoin"
],
"summary": "Bitcoin is property (mal), and transacting it as a digital asset is valid and permitted. Using it as money in Indonesia is haram, because the rupiah is the legal currency.",
"source": {
"url": "https://www.nu.or.id/nasional/komisi-waqi-iyah-tuntas-bahas-komersialisasi-dna-bitcoin-dan-chip-otak-dibawa-ke-sidang-pleno-siang-ini-NoxRE",
"name": "NU Online, Aug 2026"
},
"history": [
{
"event": "published",
"date": "2026-08-29",
"stance": "permit"
}
]
},
"... 12 more"
],
"ethics": {
"status": "not_assessed",
"score": null,
"band": null,
"flags": [],
"reason": "No documented issuer or foundation record has been reviewed for this coin yet."
},
"logo": "https://www.basira.fi/assets/logos/a/c/bitcoin.webp",
"url": "https://www.basira.fi/coins/bitcoin"
},
"meta": {
"asOf": "2026-11-05",
"method": {
"screen": "3.0",
"screenDate": "2026-11-07",
"ethics": "1.0"
},
"disclaimer": {
"id": "dg-v1",
"version": "2026-11-10",
"text": "The Basira Shariah screen and ethics score are published methods, not fatwas. Positions are the issuing bodies' own words. Education, not financial advice: no buy, sell or hold call. Capital is at risk."
},
"attribution": "Data: Basira (basira.fi)"
}
}
One stock
Ratios are plain arithmetic from the company's own filings, set against the SC Malaysia benchmarks; the stock's score is 100 minus the penalties listed in rating.penalties. A null ratio means the figure is not reported separately in the filing data, not that it is zero.
curl "https://www.basira.fi/api/v1/stocks/AAPL" \
-H "Authorization: Bearer $BASIRA_API_KEY"
{
"data": {
"market": "US",
"ticker": "AAPL",
"name": "Apple Inc.",
"sector": "Information Technology",
"industry": "Technology Hardware, Storage & Peripherals",
"rating": {
"band": "PASS",
"label": "Passes screen",
"score": 90,
"method": "3.0",
"summary": "Apple Inc. passes the screen with 90 out of 100: it is in the S&P 500 Shariah index and its debt and cash ratios are under 33%.",
"penalties": [
{
"check": "S&P 500 Shariah index",
"points": 0,
"reason": "Held by SPUS, the S&P 500 Shariah fund, at 12.74% on 2026-11-04."
},
"... 3 more"
]
},
"positions": [
{
"body": "S&P 500 Shariah index (as held by the SPUS fund)",
"country": "International",
"date": "2026-11-04",
"stance": "permit",
"stanceText": "Permits",
"summary": "Held by SPUS at 12.74% of the fund. SPUS tracks the S&P 500 Shariah Industry Exclusions Index, states it follows AAOIFI guidelines, and S&P screens its Shariah indices with a Shariah Supervisory Board via Ratings Intelligence.",
"source": {
"url": "https://www.sp-funds.com/spus/",
"name": "SP Funds SPUS holdings, 2026-11-04"
}
}
],
"consensus": null,
"note": null,
"spus": {
"held": true,
"asOf": "2026-11-04",
"source": {
"url": "https://www.sp-funds.com/spus/",
"name": "SP Funds SPUS daily holdings"
}
},
"ratios": {
"debtToAssets": {
"value": 19.8,
"unit": "percent",
"benchmark": "under 33%",
"benchmarkSource": "SC Malaysia",
"basis": "Interest-bearing debt / total assets"
},
"cashToAssets": {
"value": 14.02,
"unit": "percent",
"benchmark": "under 33%",
"benchmarkSource": "SC Malaysia",
"basis": "Cash and short-term investments / total assets"
},
"interestIncomeToRevenue": {
"value": null,
"unit": "percent",
"benchmark": "under 5%",
"benchmarkSource": "SC Malaysia",
"basis": "Interest income / revenue (null: not separately reported in the filing data)"
},
"note": "Arithmetic from the company's own SEC filings, shown next to the SC Malaysia benchmarks for comparison. Not a ruling."
},
"filings": {
"balanceSheetAsOf": "2026-09-26",
"fiscalYearEnd": "2026-09-26",
"cik": "0000320193",
"totals": {
"assets": 404548000000,
"debt": 80111000000,
"cash": 36305000000,
"shortTermInvestments": 20417000000,
"revenue": 478834000000,
"interestIncome": null,
"currency": "USD"
},
"source": {
"url": "https://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=0000320193&type=10-",
"name": "US SEC EDGAR XBRL company facts"
}
},
"ethics": {
"status": "assessed",
"score": 100,
"band": "clear",
"bandLabel": "No serious flags found",
"reviewed": "2026-11-10",
"coverage": {
"settlements": "checked",
"military_supply": "checked",
"political_spending": "checked",
"riba": "partial",
"unfair_dealings": "partial",
"labour": "not_checked"
},
"flags": []
},
"logo": "https://www.basira.fi/assets/logos/a/us/AAPL.webp",
"url": "https://www.basira.fi/stocks/AAPL"
},
"meta": {
"asOf": "2026-11-12",
"method": {
"screen": "3.0",
"screenDate": "2026-11-07",
"ethics": "1.0"
},
"disclaimer": {
"id": "dg-v1",
"version": "2026-11-10",
"text": "The Basira Shariah screen and ethics score are published methods, not fatwas. Positions are the issuing bodies' own words. Education, not financial advice: no buy, sell or hold call. Capital is at risk."
},
"attribution": "Data: Basira (basira.fi)"
}
}
Rulings
curl "https://www.basira.fi/api/v1/rulings" \
-H "Authorization: Bearer $BASIRA_API_KEY"
{
"data": [
{
"id": "diyanet-2018",
"body": "Diyanet, High Board of Religious Affairs",
"short": "Diyanet, Türkiye",
"country": "Türkiye",
"kind": "State religious authority",
"date": "2018-01-01",
"stance": "prohibit",
"stanceText": "Prohibits",
"scope": "crypto in general",
"assets": null,
"summary": "Using digital currencies that carry serious uncertainty, a high risk of deception and no guarantee is not permissible. The statement sets criteria rather than banning every digital currency, and says each type should be assessed on its own.",
"source": {
"url": "https://www.trthaber.com/haber/ekonomi/diyanetten-bitcoin-aciklamasi-dijital-kripto-paralarin-kullanimi-caiz-degil-345100.html",
"name": "TRT Haber, 1 Jan 2018 (primary text not published online)"
},
"history": [
{
"event": "published",
"date": "2018-01-01",
"stance": "prohibit"
}
]
},
"... 12 more"
],
"meta": {
"asOf": "2026-11-05",
"method": {
"screen": "3.0",
"screenDate": "2026-11-07",
"ethics": "1.0"
},
"disclaimer": {
"id": "dg-v1",
"version": "2026-11-10",
"text": "The Basira Shariah screen and ethics score are published methods, not fatwas. Positions are the issuing bodies' own words. Education, not financial advice: no buy, sell or hold call. Capital is at risk."
},
"attribution": "Data: Basira (basira.fi)",
"screen": {
"method": "3.0",
"bands": {
"PASS": "Passes screen: a score of 72 or more out of 100, every criterion at 60 or more, and no red flag.",
"REVIEW": "Mixed: neither passes nor fails.",
"FAIL": "Fails screen: a hard rule fires (interest-based lending, gambling or an impermissible industry), any criterion under 32, Riba-free under 40, Not maysir under 30, or a score under 45.",
"NONE": "Not screened: we do not have the data to screen it yet."
},
"note": "Only rulings that name a coin, and the SC Malaysia list, change its score. Rulings on crypto in general are listed for every coin but never change a score."
},
"pending": [
{
"body": "National Sharia Council (DSN-MUI), Indonesia",
"note": "Said on 13 Oct 2026 that it is preparing a fatwa on Bitcoin for November 2026.",
"source": {
"url": "https://coinedition.com/id/fatwa-bitcoin-syariah-november-2026/"
}
},
"... 1 more"
],
"scMalaysia": {
"source": {
"url": "https://www.sc.com.my/digital-assets",
"name": "Securities Commission Malaysia, list of tradeable digital assets and their Shariah status"
},
"checked": "2026-11-05",
"coins": {
"bitcoin": "2020-07-20",
"ethereum": "2020-07-20",
"ripple": "2020-07-20",
"litecoin": "2020-07-20",
"bitcoin-cash": "2021-08-23",
"solana": "2023-01-12",
"...": "9 more"
}
}
}
}
Limits and caching
The Free plan allows 1,000 units a month and 10 requests a minute. A request costs one unit; /screen costs one per symbol; /search, /zakat, /logos and /usage cost none. Responses carry X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset; above a limit you get 429 with Retry-After in seconds. During the beta the monthly count is kept per server and is approximate.
Successful GET answers carry an ETag: send it back as If-None-Match and an unchanged answer returns 304. The record changes when a recognised body publishes something new, so polling more than a few times a day gains you nothing; check asOf. Cross-origin GET requests are allowed, but do not put your key in public front-end code.
Errors
Errors are JSON with error.code, error.message and, where it helps, error.field: 400 missing_parameter or invalid_parameter, 400 too_many_symbols, 401 unauthorized (missing, invalid or revoked key), 404 not_found (unknown coin or stock) and unknown_endpoint, 405 method_not_allowed, 422 ratio_unavailable, 429 rate_limited and quota_exceeded, 500 server_error. Build on the code, not the message. The full table is in the docs.
{
"error": {
"code": "unauthorized",
"message": "Missing, invalid or revoked API key. Send Authorization: Bearer <key>. The API is coming soon: https://www.basira.fi/developers.html#plans. The MCP server works without a key: https://www.basira.fi/mcp.html",
"docs": "https://www.basira.fi/api-docs.html#errors"
},
"meta": {
"asOf": "2026-11-05",
"method": {
"screen": "3.0",
"screenDate": "2026-11-07",
"ethics": "1.0"
},
"disclaimer": {
"id": "dg-v1",
"version": "2026-11-10",
"text": "The Basira Shariah screen and ethics score are published methods, not fatwas. Positions are the issuing bodies' own words. Education, not financial advice: no buy, sell or hold call. Capital is at risk."
},
"attribution": "Data: Basira (basira.fi)"
}
}
API terms
By asking for a key you accept these terms, version 13 Nov 2026. They sit alongside the site terms and privacy notice.
- Non-commercial use during the beta. The Free plan is for personal projects, study and evaluation. Commercial use needs a paid plan, and those are not open yet.
- Attribution. Wherever you show the data, credit it as "Data: Basira" with a link to basira.fi.
- The disclaimer travels with the data. Show the text from
meta.disclaimer, or a clear link to it, next to screen results and ethics flags. Do not present a band or score as a fatwa, as your own ruling, or as advice to buy, sell or hold. - No redistribution of raw data. Do not resell, republish or mirror the responses, and do not rebuild the dataset by bulk download. Showing results inside your own project is fine.
- Rate limits. Stay within 1,000 units a month and 10 requests a minute, with one key per person. Do not split use across several keys to get around the limits.
- Keys. Keep your key private and on your server. Tell us if it leaks. We may revoke keys that break these terms.
- Beta. The service comes as it is, with no uptime promise. Limits, fields and endpoints can change, and we announce breaking changes in the docs changelog. Logos are for display next to our data only and stay the property of their owners.
Attribution and the disclaimer
Credit the data as "Data: Basira" with a link to basira.fi, and show the disclaimer with it. A short form you can use:
Data: Basira (basira.fi). A published screening method and published positions, not a fatwa and not financial advice.
Keep each position's source link available to your readers. Positions are published by the bodies named; they are dated, and newer statements may exist.
Contact
Questions, leaked keys, corrections and partnerships: admin@basira.fi.