AfroFX API

Real-time exchange rates for 42 African currencies against major global pairs. Updated every 15 minutes with bid/ask spreads.

Overview

The AfroFX API provides live and historical exchange rates sourced from central banks, commercial banks, and interbank markets across Africa. Rates include bid/ask spreads and are updated every 15 minutes during market hours.

Key Features

  • 42 African currencies — From NGN and KES to XOF and ZAR
  • Major pairs — USD, EUR, GBP, CNY, and more as base currencies
  • Crypto rates — BTC and ETH priced in African currencies
  • Bid/ask spreads — Real market data, not just mid-rates
  • Historical data — Access rates back to 2020 (Pro plan and above)

Endpoints

Base URL
https://afrotools.com/api/forex

Quick Example
# Get USD to NGN exchange rate curl "https://afrotools.com/api/forex?from=USD&to=NGN" \ -H "x-api-key: afro_test_abc123"

Example Response
{ "success": true, "data": { "from": "USD", "to": "NGN", "rate": 1580.25, "bid": 1578.50, "ask": 1582.00, "change_24h": -0.35, "change_pct_24h": -0.022, "timestamp": "2026-03-15T10:30:00Z", "source": "CBN" } }

Supported Currencies (sample)
NGN Nigerian Naira KES Kenyan Shilling ZAR South African Rand GHS Ghanaian Cedi EGP Egyptian Pound XOF West African CFA Franc XAF Central African CFA Franc MAD Moroccan Dirham TZS Tanzanian Shilling UGX Ugandan Shilling ETB Ethiopian Birr ... and 31 more