Everything you need to integrate EsakoAPI into your applications.
EsakoAPI is a free, open-source API designed to simplify Zakat calculations in accordance with Islamic Shariah. It requires no API key for basic usage, making it incredibly easy to get started.
Calculate Zakat on monetary assets.
{
"code": 200,
"response": 247.475,
"conditions": [
"The amount must be in US dollars (USD).",
"You must have possessed it for one full year.",
"Zakat calculated using current silver price of 1.6685."
],
"unit": "$",
"date": "Tuesday 14-October-2025",
"time": "09:22 AM"
}
Calculate Zakat on gold based on its purity (Karat).
Supported Types (Karats):
{
"code": 200,
"response": 3.625,
"conditions": [
"It must be 100% pure gold.",
"You must have possessed it for one full year.",
"If paying in cash, the amount is 482.5836$."
],
"unit": "Gram",
"date": "Tuesday 14-October-2025"
}
{
"code": 200,
"response": 23,
"unit": "Gram"
}
Calculate Zakat on livestock numbers.
Calculate Zakat on agricultural produce based on irrigation method.
Irrigation Types:
The HTTP status describes whether the request succeeded. The JSON
code describes the application result and
does not have to match the HTTP status.
| HTTP status | Description |
|---|---|
| 200 | Calculation completed, including amounts below Nisaab. |
| 422 | Invalid numeric amount or calculation type. |
| 404 | The requested URL does not exist. |
| 500 | Internal server failure, including unavailable or unreadable report data. |
Below-Nisaab results keep JSON codes 320–327
and ok: true, with HTTP 200. Gold below Nisaab
after purity conversion uses JSON code 466
with the same HTTP status and success flag.
Validation errors keep JSON codes 461, 463, 464, 465, 468
and ok: false, with HTTP 422. Clients that
previously received HTTP 200 for invalid input must now handle HTTP 422.