# Zakat Calculation

> Zakat Calculation is a paid API for AI agents from api.qist.info, paid per call via x402, $0.1/call, status unknown (last checked 2026-10-11).

Computes Islamic zakat obligation on multiple asset classes (cash, gold, silver, crypto, stocks, business inventory, receivables) against both gold and silver nisab thresholds, returning the zakat amount due and flagging threshold disagreements.

## Facts

- Endpoint: GET https://api.qist.info/api/zakat?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/zakat-calculation-4f781fcc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mgfzx7ekfbLA-6b_BamXi

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability zakat-calculation-4f781fcc
```

Example prompt: Calculate my zakat using both gold and silver nisab standards — I have $18,000 cash, $3,500 in crypto, $2,000 in stocks, $1,200 in business inventory, and $800 in liabilities; gold is currently $85 per gram and silver is $1.05 per gram, use USD and a lunar year.

## When to prefer this

Choose this endpoint when you need a deterministic, reproducible zakat calculation where you supply the metal prices yourself — ideal for financial apps, Islamic fintech, personal finance agents, and educational tools that need to show their workings. It uniquely supports both gold and silver nisab standards simultaneously and flags disagreements, which is critical for users following different scholarly opinions. Prefer this over generic finance calculators when the Islamic jurisprudential context (nisab, hawl, lunar/solar rate distinction) matters.

## Known failure modes

- Missing required metal prices when nisabBasis includes gold or silver — calculation cannot proceed without goldPricePerGram or silverPricePerGram
- Invalid yearType value — must be 'lunar' or 'solar'
- Invalid nisabBasis value — must be 'gold', 'silver', or 'both'
- Negative or non-numeric values for asset fields causing unexpected results
- All asset fields omitted — returns zero zakat with no meaningful output

## How this service works

Compute zakat due on wealth: cash, gold, silver, business inventory, receivables, crypto and stocks, less deductible liabilities. Returns the nisab threshold under BOTH the gold (85g) and silver (595g) standards and flags when they disagree, since the choice changes who owes. Supports lunar (2.5%) and solar (2.577%) years. Deterministic — you supply metal prices, so you control the source. Educational calculation, not a fatwa.

## Output

Returns the total zakatable wealth after deducting liabilities, the calculated zakat amount due (at 2.5% lunar or 2.577% solar rate), the nisab threshold value under the gold standard (85g of gold) and the silver standard (595g of silver), and a flag indicating whether the two standards disagree on whether zakat is owed — helping the user understand which standard would change their obligation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "cash": {
       "type": "string",
       "description": "Cash in hand and in bank accounts"
      },
      "crypto": {
       "type": "string",
       "description": "Digital assets at market value"
      },
      "stocks": {
       "type": "string",
       "description": "Shares held for trading, at market value"
      },
      "currency": {
       "type": "string",
       "description": "Currency label for the output, e.g. AED, SAR, USD"
      },
      "yearType": {
       "type": "string",
       "description": "lunar (default, 2.5%) or solar (2.577%)"
      },
      "goldGrams": {
       "type": "string",
       "description": "Weight of zakatable gold in grams"
      },
      "nisabBasis": {
       "type": "string",
       "description": "gold, silver, or both (default) — silver is lower so it obliges more payers"
      },
      "liabilities": {
       "type": "string",
       "description": "Immediately-due debts, deducted from zakatable wealth"
      },
      "receivables": {
       "type": "string",
       "description": "Good debt owed to you and expected to be repaid"
      },
      "silverGrams": {
       "type": "string",
       "description": "Weight of zakatable silver in grams"
      },
      "goldPricePerGram": {
       "type": "string",
       "description": "Current gold price per gram in your currency — needed for the gold nisab"
      },
      "businessInventory": {
       "type": "string",
       "description": "Trade goods at market value"
      },
      "silverPricePerGram": {
       "type": "string",
       "description": "Current silver price per gram — needed for the silver nisab (the lower, more common threshold)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/zakat-calculation-4f781fcc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.qist.info](https://www.zero.xyz/host/api.qist.info/llms.txt)
