todaymarketsscreenerlearnacademytoolsshoppricingmefree newsletterlog in
~ / tools / developers

Deengen Data API

API v1 · read-only JSON · Education, not a fatwa

The Deengen Data API gives you, as JSON, what recognised fatwa bodies and regulators have officially published about coins and stocks: 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.

Deengen issues no verdict, score or buy/sell call of its own. The label in each response (Halal-leaning, Ikhtilaf, Haram-leaning, Not yet ruled on) only counts the published positions, as explained in our methodology.

Not a fatwa, not financial advice. The API summarises positions published by recognised bodies. It is not a religious ruling and not a recommendation to buy, sell or hold anything. Capital is at risk.

Access

An API key comes with Deengen Pro or with a partner agreement. To ask for a key, or to discuss a partnership, email admin@deengen.com from the address on your account.

Authentication

Send your key in the Authorization header:

Authorization: Bearer dg_...

You can also pass it as ?key= in the URL, but URLs end up in logs and browser history, so prefer the header and keep the key on your server. A request without a valid key gets 401. If a key leaks, tell us and we will revoke it.

Endpoints

All endpoints are GET, return JSON and live under https://www.deengen.com/api/v1. Every response includes disclaimer, attribution and asOf (the date the record was last updated).

EndpointReturns
/coins?page=1&per_page=100The top 1,000 coins by market value: id, symbol, name, rank, label, tally of positions, count of bodies, date. per_page up to 250.
/coins/{id}One coin by CoinGecko id: every official position that applies, with body, country, date, stance, summary, source link and history.
/stocks/{TICKER}A US stock (S&P 500): published decisions, S&P 500 Shariah index inclusion, 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.
/rulingsEvery ruling on record, with history, plus bodies known to be preparing a ruling.

Coins

curl -H "Authorization: Bearer $DEENGEN_KEY" \
  "https://www.deengen.com/api/v1/coins?per_page=2"
{
  "disclaimer": "Summarises positions published by recognised bodies. Not a fatwa, not financial advice.",
  "attribution": "Data: Deengen, summarising published positions",
  "asOf": "2026-11-05",
  "page": 1,
  "per_page": 2,
  "total": 1000,
  "pages": 500,
  "data": [
    {
      "id": "bitcoin",
      "symbol": "BTC",
      "name": "Bitcoin",
      "rank": 1,
      "lean": "IKHT",
      "label": "Ikhtilaf: scholars differ",
      "tally": {
        "permit": 5,
        "conditional": 2,
        "prohibit": 6
      },
      "n": 13,
      "scListed": "2020-07-20",
      "asOf": "2026-11-05",
      "url": "https://www.deengen.com/coins/bitcoin"
    },
    {
      "id": "ethereum",
      "symbol": "ETH",
      "name": "Ethereum",
      "rank": 2,
      "lean": "IKHT",
      "label": "Ikhtilaf: scholars differ",
      "tally": {
        "permit": 2,
        "conditional": 2,
        "prohibit": 2
      },
      "n": 6,
      "scListed": "2020-07-20",
      "asOf": "2026-11-05",
      "url": "https://www.deengen.com/coins/ethereum"
    }
  ]
}
curl -H "Authorization: Bearer $DEENGEN_KEY" \
  "https://www.deengen.com/api/v1/coins/bitcoin"

The example below is real output, shortened to the first position.

{
  "disclaimer": "Summarises positions published by recognised bodies. Not a fatwa, not financial advice.",
  "attribution": "Data: Deengen, summarising published positions",
  "asOf": "2026-11-05",
  "data": {
    "id": "bitcoin",
    "symbol": "BTC",
    "name": "Bitcoin",
    "rank": 1,
    "lean": "IKHT",
    "label": "Ikhtilaf: scholars differ",
    "rule": "Ikhtilaf: recognised bodies that have ruled differ.",
    "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 positions, same shape"
    ],
    "url": "https://www.deengen.com/coins/bitcoin"
  }
}

Stocks

Ratios are plain arithmetic from the company's own filings, shown next to the SC Malaysia benchmarks for comparison. They are not a ruling. A null ratio means the figure is not reported separately in the filing data, not that it is zero.

curl -H "Authorization: Bearer $DEENGEN_KEY" \
  "https://www.deengen.com/api/v1/stocks/AAPL"
{
  "disclaimer": "Summarises positions published by recognised bodies. Not a fatwa, not financial advice.",
  "attribution": "Data: Deengen, summarising published positions",
  "asOf": "2026-11-05",
  "data": {
    "market": "US",
    "ticker": "AAPL",
    "name": "Apple Inc.",
    "sector": "Information Technology",
    "industry": "Technology Hardware, Storage & Peripherals",
    "lean": "HALAL",
    "label": "Halal-leaning",
    "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 In...",
        "source": {
          "url": "https://www.sp-funds.com/spus/",
          "name": "SP Funds SPUS holdings, 2026-11-04"
        }
      }
    ],
    "consensus": null,
    "note": null,
    "spus": {
      "held": true,
      "weight": "12.74%",
      "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
      },
      "source": {
        "url": "https://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=0000320193&type=10-",
        "name": "US SEC EDGAR XBRL company facts"
      }
    },
    "url": "https://www.deengen.com/stocks/AAPL"
  }
}
curl -H "Authorization: Bearer $DEENGEN_KEY" \
  "https://www.deengen.com/api/v1/stocks/my-7086"
{
  "disclaimer": "Summarises positions published by recognised bodies. Not a fatwa, not financial advice.",
  "attribution": "Data: Deengen, summarising published positions",
  "asOf": "2026-05-29",
  "data": {
    "market": "MY",
    "code": "7086",
    "name": "Ablegroup Bhd",
    "board": "Bursa Malaysia Main Market",
    "lean": "HALAL",
    "label": "Halal-leaning",
    "positions": [
      {
        "body": "Shariah Advisory Council, Securities Commission Malaysia",
        "country": "Malaysia",
        "date": "2026-05-29",
        "stance": "permit",
        "stanceText": "Permits",
        "summary": "Classified as a Shariah-compliant security in the council's list effective 2026-05-29. The list is reviewed twice a year, on the last Friday of May and November.",
        "source": {
          "url": "https://www.sc.com.my/development/icm/shariah-compliant-securities/list-of-shariah-compliant-securities",
          "name": "SC Malaysia, List of Shariah-Compliant Securities"
        }
      }
    ],
    "scList": {
      "effective": "2026-05-29",
      "next": "Updated on the last Friday of May and November",
      "source": {
        "url": "https://www.sc.com.my/development/icm/shariah-compliant-securities/list-of-shariah-compliant-securities",
        "name": "Securities Commission Malaysia, Shariah Advisory Council"
      }
    },
    "url": "https://www.deengen.com/stocks/my-7086"
  }
}

Rulings

curl -H "Authorization: Bearer $DEENGEN_KEY" \
  "https://www.deengen.com/api/v1/rulings"

Shortened to the first ruling. Each ruling's history lists when it was published and when it was later added to or changed on our record.

{
  "disclaimer": "Summarises positions published by recognised bodies. Not a fatwa, not financial advice.",
  "attribution": "Data: Deengen, summarising published positions",
  "asOf": "2026-11-05",
  "rule": {
    "HALAL": "Halal-leaning: a clear majority (two thirds or more) of the recognised bodies that have ruled permit it.",
    "...": "HALAL, IKHT, HARAM, NONE"
  },
  "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 rulings, same shape"
  ],
  "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/"
      }
    }
  ],
  "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",
      "...": "13 more"
    }
  }
}

Rate limits and caching

Each key may make 60 requests per minute. Responses carry X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset; above the limit you get 429 with Retry-After in seconds. Responses may be cached for up to five minutes. 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 requests are allowed, but do not put your key in public front-end code.

Errors

Errors are JSON with an error code and usually a message: 401 unauthorized (missing or invalid key), 404 not_found (unknown coin, stock or endpoint), 400 bad_id, 405 method_not_allowed, 429 rate_limited, 500 server_error.

Attribution and the disclaimer

Wherever you show this data, credit it as "Data: Deengen, summarising published positions" with a link to deengen.com, and show the disclaimer with it:

Summarises positions published by recognised bodies. Not a fatwa, not financial advice.

Do not present the labels as Deengen's ruling or as your own, and 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, keys, corrections and partnerships: admin@deengen.com.