Developers
The LeadAfrik API
Put our Kenya calculators in your own product. Payroll, tax, fees and the live statutory rates — the same numbers our tools show — as clean JSON. No key, no sign-up, CORS open, and every endpoint has a live console you can run right here.
Base URL
https://www.leadafrik.com/api/v1Every response has the same shape, so it is easy to follow:
// success
{ "ok": true, "data": { ... }, "meta": { "version": "v1", "ratesAsOf": "…" } }
// error
{ "ok": false, "error": { "code": "invalid_input", "message": "…" } }Start with GET https://www.leadafrik.com/api/v1 — it lists every endpoint. Every compute endpoint reads one live rates registry, so the API can never drift from the tools.
Pay & statutory
/api/v1/kenya/payrollFull monthly gross-to-net: NSSF, SHIF, Housing Levy, PAYE and take-home.
/api/v1/kenya/nssfNSSF Tier I + Tier II employee contribution for a gross salary.
/api/v1/kenya/shifSHIF contribution (2.75% of gross, with the monthly floor).
/api/v1/kenya/housing-levyHousing Levy (1.5% of gross, employee side).
Business & consumer tax
/api/v1/kenya/vatAdd VAT to a net price, or strip VAT out of a gross price.
/api/v1/kenya/turnover-taxTurnover Tax (1.5% of monthly gross sales), with eligibility.
/api/v1/kenya/rental-incomeMRI tax (7.5% of gross residential rent).
/api/v1/kenya/withholdingWHT on dividends, interest, royalties, fees, rent or contracts.
/api/v1/kenya/stamp-dutyStamp duty on a land transfer, shares, lease or charge.
/api/v1/kenya/import-dutyDuty, excise, IDF, RDL and VAT on a CIF import value.
Fees
Finance
Reference
Fair use
Free for reasonable use. Please cache where you can and credit LeadAfrik with a link back. Building something bigger, need higher limits, or want an endpoint we do not have yet? Tell us at info@leadafrik.com.
Results are guidance built on maintained public rates, not tax or legal advice. Confirm anything consequential with KRA or your accountant. Use is subject to our Terms.