Beta - Now Available

AfroTools API

Tax calculation infrastructure for 54 African countries. Build payroll, HR, and fintech products with accurate PAYE, VAT, and compliance data.

Getting Started

Go from zero to production in minutes.

1

Get Your API Key

Sign up for a free account and generate an API key from your dashboard. No credit card required.

2

Make Your First Call

Send a POST request to our calculate endpoint with your tool ID and inputs. Get structured JSON results instantly.

3

Go to Production

Upgrade to Pro or Enterprise when you need higher limits, SLA guarantees, and dedicated support.

Code Examples

Calculate Nigerian PAYE tax in one API call.

curl -X POST https://afrotools.com/api/v1/calculate \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{"tool":"ng-paye","inputs":{"grossAnnual":5000000,"pension":true}}'
const res = await fetch('https://afrotools.com/api/v1/calculate', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'x-api-key': 'YOUR_API_KEY'
  },
  body: JSON.stringify({
    tool: 'ng-paye',
    inputs: { grossAnnual: 5000000, pension: true }
  })
});
const data = await res.json();
console.log(data.result);
import requests

resp = requests.post('https://afrotools.com/api/v1/calculate',
    headers={'x-api-key': 'YOUR_API_KEY'},
    json={'tool': 'ng-paye', 'inputs': {'grossAnnual': 5000000, 'pension': True}}
)
print(resp.json()['result'])

API Tiers

Simple, transparent pricing. Start free, scale as you grow.

Free

$0 /month
  • 100 API calls / month
  • PAYE calculators
  • Community support
Get Started

Enterprise

Custom
  • Unlimited API calls
  • All tools + SLA
  • Dedicated support
Contact Us

Endpoints Reference

All calculations go through a single, unified endpoint.

POST /api/v1/calculate

Request Body

{
  "tool": "ng-paye",
  "inputs": {
    "grossAnnual": 5000000,
    "pension": true
  }
}

Response

{
  "result": {
    "tax": 374550,
    "netAnnual": 4225450,
    "effectiveRate": "7.49%"
  },
  "meta": {
    "tool": "ng-paye",
    "version": "0.1.0-beta",
    "timestamp": "2026-03-13T12:00:00.000Z",
    "usage": {
      "current": 42,
      "limit": 100,
      "tier": "free"
    }
  }
}

Get Your API Key

Start building with AfroTools API today. Free tier available, no credit card required.

Sign Up for Free