Open data ยท free ยท no key
African money data API
The rules behind our calculators, free for your app, research or story. PAYE bands for 12 countries, mobile money charges, payroll deductions and central bank rates, each with its official source and the date we checked it. Use it however you like. Just credit SwiftPesa with a link.
29
calculators with open rules
12
countries covered
2026-11-09
latest check
Quick start
No sign-up and no key. Every response is JSON, works from the browser (CORS is open) and includes a ready-made credit line under meta.credit. Calculations come with a summary.text sentence you can show as it is.
# Take-home pay on KES 150,000 a month
curl -L "https://swiftpesa.co.ke/api/open/v1/paye/kenya/?gross=150k"
# โ "On KES 150,000 a month you take home KES 103,618.15: KES 33,526.85 income tax and
# KES 12,855 in NSSF, SHIF, Housing levy. Effective tax rate 22.4%, top band 30%."
# Nigerian pay given as a yearly figure
curl -L "https://swiftpesa.co.ke/api/open/v1/paye/ng/?gross=6m&period=year"
# M-Pesa charges for sending KES 2,500
curl -L "https://swiftpesa.co.ke/api/open/v1/mobile-money/ke/?amount=2500"
# Everything for one country: central bank rate, inflation, PAYE, mobile money
curl -L "https://swiftpesa.co.ke/api/open/v1/countries/ghana/"// JavaScript
const res = await fetch("https://swiftpesa.co.ke/api/open/v1/paye/ke/?gross=150000");
const { data, meta } = await res.json();
console.log(data.summary.net); // take-home pay
console.log(data.summary.text); // the same, as a sentence
console.log(meta.credit.html); // Source: <a href="...">SwiftPesa</a># Python
import requests
r = requests.get("https://swiftpesa.co.ke/api/open/v1/indicators/", params={"country": "ke"}).json()
for s in r["data"]:
print(s["name"], s["latest"]["value"], s["latest"]["asOf"], s["direction"])Try it
A live call to the calculate endpoint. Pick a country and a gross salary.
GET /api/open/v1/calculators/kenya-paye-calculator/calculate/?gross=50000
Endpoints
Base URL https://swiftpesa.co.ke/api/open/v1/. The full spec is at openapi.json (OpenAPI 3.1) for Postman and code generators.
| GET | Returns |
|---|---|
| /countries/ | Countries covered, with their calculators and indicators |
| /countries/{country}/ | One country in one call: rates with change, PAYE with a worked example, mobile money fees |
| /paye/{country}/?gross=โฆ&period=month|year | Take-home pay: tax, each deduction, net, effective and top rates, monthly and yearly |
| /mobile-money/{country}/?amount=โฆ | Every transaction fee for an amount, in one sentence too |
| /calculators/?country=ke&type=income-tax | Calculators (filter by country and type: income-tax, tariff, bank-fees, loan, savings, dividend) |
| /calculators/{slug}/ | Full rules: tax bands, deductions, reliefs, fee tables, plus official sources and inputs |
| /calculators/{slug}/calculate/?โฆ | Runs the calculator with the same engine as our site |
| /indicators/?country=ke&key=inflation&history=1 | Policy rates and inflation with sources, the previous reading and the direction of change |
| /kenya-car-crsp/?q=toyota+vitz | KRA vehicle CRSP values (what import duty is based on), searched by make and model |
| /export/{file} | CSV and JSON downloads (below) |
Countries can be codes or names (ke, kenya, south-africa). Amounts can be written 150000, 150,000, 150k or 1.2m. Paths end with a slash; without it you get a redirect, so use curl -L. A misspelled calculator returns suggestions.
Calculate inputs by type
- income-tax:
grossand optionalperiod(monthoryear), plus any extra inputs it lists - tariff:
amount; returns every transaction type's fee for that amount - bank-fees:
amount,bank; also ranks banks cheapest first - loan:
principal,rate(% a year),months - savings:
principal,monthly,years,rate - dividend:
shares,deposits
Rates in rules are decimals (0.3 = 30%). Fields named pct, dividend and interest are percentages. Each calculator's inputs lists its parameters with defaults and limits.
Limits and caching
60 requests a minute and 5,000 a day per IP. Over that you get HTTP 429 with a Retry-After header. Responses send ETag and Cache-Control headers, so cache them: the rules change a few times a year, not by the minute. For bulk or offline use, take the dataset instead.
Use it in AI assistants (MCP)
The same data is a remote Model Context Protocol server, so Claude, ChatGPT, Cursor, VS Code and other assistants can answer pay, fee and rate questions with current figures and a source link. No key, read-only.
https://swiftpesa.co.ke/mcp/- Claude (web or desktop): Settings โ Connectors โ Add custom connector, and paste the URL.
- Claude Code:
claude mcp add --transport http swiftpesa https://swiftpesa.co.ke/mcp/ - ChatGPT: Settings โ Apps & Connectors โ developer mode โ create a connector with the URL, no authentication.
- Cursor: add
"swiftpesa": { "url": "https://swiftpesa.co.ke/mcp/" }undermcpServersinmcp.json. - VS Code: add
"swiftpesa": { "type": "http", "url": "https://swiftpesa.co.ke/mcp/" }underserversin.vscode/mcp.json.
Tools: get_take_home_pay, get_mobile_money_fees, get_country_overview, get_central_bank_rates, list_calculators, get_calculator_rules, run_calculator and search_kenya_car_crsp. Try asking: โWhat's the take-home on KES 150,000 in Kenya?โ, โHow much does M-Pesa charge to send TZS 50,000 in Tanzania?โ or โCompare central bank rates across East Africa.โ
Downloads and dataset
The same data as flat files, rebuilt from the live calculators. A versioned copy is refreshed weekly on GitHub, mirrored to Hugging Face and Kaggle, and archived on Zenodo with the DOI 10.5281/zenodo.24561517.
- paye-bands.csvIncome tax (PAYE) bands by country: one row per band.
- paye-deductions.csvPayroll deductions (social security, health, housing levies), reliefs and allowances that feed into PAYE.
- mobile-money-tariffs.csvMobile money charges: one row per amount band and transaction type. fee_pct is a percentage of the amount, capped at fee_cap.
- bank-transfer-fees.csvBank transfer fees (e.g. PesaLink) by bank and amount band, before any tax noted in tax_rate.
- sacco-dividends.csvSACCO dividend rates on share capital and interest rates on deposits, in percent.
- indicators.csvCentral bank policy rates, inflation and Treasury bill yields, every reading with its official source.
- kenya-car-crsp.csvKRA Current Retail Selling Prices (CRSP) for vehicles in Kenya, the values import duty is worked out from. Restructured from KRA's published schedule. fuel: p petrol, d diesel, e electric.
- calculators.jsonEvery public calculator in full: rules, inputs, official sources and verification dates.
How to credit SwiftPesa
The data is free under Creative Commons Attribution 4.0: use it in apps, spreadsheets, research and journalism, commercial or not. The one condition is credit. Put a visible link to SwiftPesa near where the data appears. Link to the calculator page the figures came from (each API response gives you the exact link), or to this page when you use the dataset as a whole.
HTML
Source: <a href="https://swiftpesa.co.ke/developers/">SwiftPesa</a>Markdown
Source: [SwiftPesa](https://swiftpesa.co.ke/developers/)Citation
SwiftPesa (2026). African Money Data [Data set]. Zenodo. https://doi.org/10.5281/zenodo.24561517The figures come from revenue authorities, central banks and mobile money providers, and each record lists those sources. We check them against each change, but rates move: check the official source before you file or pay. Prefer a ready-made widget? Embed any free calculator on your site instead.
What's covered
Every calculator with open rules, and the date we last checked it against the official source. Central bank indicators cover 12 countries.
Botswana
- Orange Money and MyZaka chargesMobile money charges ยท orange-money-myzaka-charges-calculator ยท checked 2026-10-29
- Botswana PAYE & net payIncome tax / PAYE and payroll deductions ยท botswana-paye-calculator ยท checked 2026-11-09
Ghana
- Ghana MoMo chargesMobile money charges ยท ghana-momo-charges-calculator ยท checked 2026-11-03
- Ghana PAYE & net payIncome tax / PAYE and payroll deductions ยท ghana-paye-calculator ยท checked 2026-10-07
Kenya
- Kenya PAYE & net payIncome tax / PAYE and payroll deductions ยท kenya-paye-calculator ยท checked 2026-09-24
- M-Pesa chargesMobile money charges ยท mpesa-charges-calculator ยท checked 2026-09-24
- PesaLink charges by bankBank transfer fees ยท pesalink-charges-calculator ยท checked 2026-10-20
- Kenya SACCO dividendsSACCO dividends and interest ยท kenya-sacco-dividends-calculator ยท checked 2026-09-25
- Kenya money market fund returnsSavings and money market funds ยท kenya-money-market-fund-calculator ยท checked 2026-10-10
- Kenya NSSF contributionsIncome tax / PAYE and payroll deductions ยท nssf-calculator-kenya ยท checked 2026-10-17
- Kenya mortgage & home loan repaymentsLoan repayments ยท kenya-mortgage-loan-calculator ยท checked 2026-10-27
Lesotho
- M-Pesa and EcoCash charges (Lesotho)Mobile money charges ยท mpesa-ecocash-charges-calculator-lesotho ยท checked 2026-10-29
- Lesotho PAYE & net payIncome tax / PAYE and payroll deductions ยท lesotho-paye-calculator ยท checked 2026-11-09
Malawi
- Malawi PAYE & net payIncome tax / PAYE and payroll deductions ยท malawi-paye-calculator ยท checked 2026-11-09
Namibia
- Namibia PAYE & net payIncome tax / PAYE and payroll deductions ยท namibia-paye-calculator ยท checked 2026-11-09
Nigeria
- Nigeria PAYE & net payIncome tax / PAYE and payroll deductions ยท nigeria-paye-tax-calculator ยท checked 2026-10-13
South Africa
- South Africa PAYE & net payIncome tax / PAYE and payroll deductions ยท south-africa-income-tax-calculator ยท checked 2026-09-27
- South Africa personal loan repaymentsLoan repayments ยท south-africa-personal-loan-calculator ยท checked 2026-10-26
- South Africa home loan & bond repaymentsLoan repayments ยท south-africa-home-loan-calculator ยท checked 2026-10-15
Tanzania
- Tanzania PAYE & net payIncome tax / PAYE and payroll deductions ยท tanzania-paye-calculator ยท checked 2026-10-03
- Tanzania mobile money chargesMobile money charges ยท tanzania-mobile-money-charges-calculator ยท checked 2026-11-09
Uganda
- Uganda MTN & Airtel mobile money feesMobile money charges ยท uganda-mobile-money-charges-calculator ยท checked 2026-10-24
- Uganda PAYE & net payIncome tax / PAYE and payroll deductions ยท uganda-paye-calculator ยท checked 2026-10-05
- Uganda MTN agent commissionMobile money charges ยท uganda-mobile-money-agent-commission-calculator ยท checked 2026-11-05
Zambia
- Zambia PAYE & net payIncome tax / PAYE and payroll deductions ยท zambia-paye-calculator ยท checked 2026-11-09
- Airtel Money charges (Zambia)Mobile money charges ยท airtel-money-charges-calculator-zambia ยท checked 2026-10-29
Zimbabwe
- EcoCash chargesMobile money charges ยท ecocash-charges-calculator ยท checked 2026-10-29
- Zimbabwe PAYE (USD)Income tax / PAYE and payroll deductions ยท zimbabwe-paye-calculator ยท checked 2026-11-09
Anywhere in Africa
- Compound interestSavings and money market funds ยท compound-interest-calculator ยท checked 2026-11-09
Changelog
- 26 November 2026: remote MCP server at
/mcp/with eight tools, and a Kenya car CRSP lookup (/kenya-car-crsp/?q=). - 26 November 2026: country snapshots,
/paye/and/mobile-money/shortcuts, plain-English summaries, monthly/yearly pay, indicator change, central bank rates for 12 countries. - 26 November 2026: v1 launched with calculators, calculate, indicators, CSV exports and OpenAPI spec.
v1 only gains fields, never loses them. Breaking changes would go to a new /v2/.