Developers

A small, read-only API

The figures the calculator uses, as JSON: zakat per share for US stocks and funds, gold and silver prices and exchange rates. No key, no sign-up.

What it is

The base URL is https://zakat.finance/api. Everything here is read-only and needs no credentials; see auth.md. Machine-readable versions: the OpenAPI 3.1 description and the API catalog (RFC 9727).

Signing in, saved figures, linked accounts and the tracker are part of the site for the person using it and have no public API.

Zakat figures per share

GET /api/zakat-data?tickers=AAPL,MSFT,BRK.B returns, for each ticker that has figures:

  • zps: zakatable assets per share in US dollars. Zakat due per share is 2.5% of it.
  • pct: the zakatable share of a holding's market value, from 0 to 1. For funds it is looked through to what the fund holds.

Unknown tickers are left out. asOf is when the data was generated and notice the data-use notice. Up to 50 tickers per request, with dots as listed (BRK.B).

curl "https://zakat.finance/api/zakat-data?tickers=AAPL,MSFT"

An answer (the figures change as companies file):

{"zps": {"AAPL": 11.9635, "MSFT": 25.0622}, "pct": {"AAPL": 0.03595, "MSFT": 0.04886}, "asOf": "2026-11-27T08:23:24", "notice": "Zakat figures © zakat.finance. ..."}

The same figures are on each stock and fund page, at /zakat/<ticker>/ in lower case with dots as dashes (/zakat/brk-b/). How they are produced: about zakat.finance.

Prices and exchange rates

GET /api/gold-silver: gold and silver per gram in US dollars, with the source (sheet, yahoo, or fallback when every live source failed) and asOf.

curl "https://zakat.finance/api/gold-silver"

GET /api/exchange-rates: units of each supported currency per 1 USD in rates, the source of each rate in sources, and lastUpdated.

curl "https://zakat.finance/api/exchange-rates"

Both are cached for an hour. Today's nisab, worked out from these prices, is on /nisab/.

Share images and health

GET /api/og/<slug>.png: the 1200x630 share image of a ticker page (/api/og/aapl.png). It carries an ETag; send it back as If-None-Match for a 304. Unknown tickers get 404.

GET /api/health answers {"status": "ok"}.

curl "https://zakat.finance/api/health"

Search

GET /.well-known/search?q=<query> searches the whole site: tickers, company names, guides, lists and the other pages. Keywords or a question both work. The answer is Markdown, starting # Search results for: "<query>", with each result's title, URL and description (and a snippet for guides and other content pages), best first. limit sets the number of results (default 10, at most 20).

curl "https://zakat.finance/.well-known/search?q=zakat+on+401k"

MCP server

AI assistants can use zakat.finance directly through its MCP server: https://zakat.finance/mcp (Streamable HTTP, JSON answers, no sessions). There is nothing to sign in to and no key: every tool is a public, read-only read, and none touches anyone's account.

  • lookup_zakat: zakat figures per share for up to 50 US stocks and funds: zakatable assets and zakat per share, the zakatable share of the price, the basis and date, and the page.
  • get_nisab: today's nisab in gold and silver, with the price per gram, in USD, GBP, CAD, EUR, AUD, AED, SAR, PKR or INR.
  • search_site: search the guides, stock and fund pages and the rest of the site.
  • get_page: any public page as Markdown.
  • calculate_zakat: an estimate from cash, gold, silver, holdings (long-term or trading) and debts, in US dollars, worked out as the calculator does.

To add it in Claude, open Settings, then Connectors, choose Add custom connector and enter https://zakat.finance/mcp. In ChatGPT, turn on developer mode (Settings, Apps & Connectors, Advanced), then create a connector with that URL and no authentication. Other MCP clients take the same URL.

curl -X POST "https://zakat.finance/mcp" -H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"lookup_zakat","arguments":{"tickers":["AAPL"]}}}'

lookup_zakat and calculate_zakat count against the same per-IP limits as /api/zakat-data. calculate_zakat is an estimate, not a fatwa; for other currencies, retirement accounts or to save the figures, use the calculator. The MCP Server Card describes the server for clients and directories.

Pages as Markdown

Every public page is also available as Markdown: send Accept: text/markdown. The answer has a short front matter (title, description, URL), then the page's content with absolute links.

curl -H "Accept: text/markdown" "https://zakat.finance/zakat/aapl/"

A summary of the site for language models is at /llms.txt.

Limits

Limits are per IP address. Zakat figures: 30 requests per minute (a burst of 30, refilling one every 2 seconds) and 1500 distinct tickers per hour. Share images: 120 requests per minute. Past a limit you get HTTP 429 with a Retry-After header in seconds. Ask for the tickers you need, when you need them.

Terms

Zakat figures © zakat.finance. Free to use for calculating your own zakat; copying, republishing or bulk downloading this data is not permitted without written permission. Use is free and subject to the terms of use. The figures come from public SEC filings and published fund holdings, can contain errors or be out of date, and are guidance, not a fatwa. For permission to use the data in other ways, write to [email protected].