What is AfriHex?
AfriHex is a developer platform for digital addressing in Africa. It turns any
location into a precise, human-readable hex code using Uber's H3 grid — for
example, the centre of Accra's Kotoka airport is AF-GH-7-0GXTQD5RFZZZZ — and
layers a full suite of location products on top, starting with Ghana.
Where a traditional postal system gives you No. 10, Spintex Road, Accra (and
even that fails most of the country), AfriHex gives every coordinate a unique,
stable identifier that anyone can look up — no street names required.
What you can build
| Use case | What AfriHex gives you |
|---|---|
| Addresses & Geocoding | Look up GhanaPostGPS codes, reverse-geocode coordinates, search by place name, validate addresses, bulk operations |
| Hex Addressing | Encode/decode hex codes, navigate the H3 grid, render map tiles |
| Identity & KYC | Address verification for banking KYC, proximity verification with signed certificates, proof of delivery |
| Collections & Service Areas | Loan collection zones, merchant coverage areas with instant point-in-area checks |
| Location Monitoring | Consent-based background location tracking, drift detection, geofences, webhook alerts |
| Risk & Fraud | Real-time fraud detection, portfolio risk analytics, AML/PEP screening |
| Routing & Navigation | Turn-by-turn routing, distance matrices, isochrones, landmark narration |
How it works
- Sign up for a free API key (
POST /v2/self/signupor the dashboard). - Send the key in the
X-API-Keyheader on every/v2/*request. - Encode coordinates to a hex code, or resolve an address, in one call.
curl "https://api.afrihex.com/v2/hexcode?lat=5.6037&lng=-0.1870&res=7" \
-H "X-API-Key: $AFRIHEX_API_KEY"
{
"success": true,
"data": {
"code": "AF-GH-7-0GXTQD5RFZZZZ",
"h3_index": "877576970ffffff",
"resolution": 7,
"country": "Ghana",
"country_code": "GH",
"center": { "lat": 5.604078493411575, "lng": -0.19529195005881006 },
"area_km2": 3.86
}
}
Design principles
- Stable identifiers. Hex codes are pure math — the same coordinate always produces the same code, offline, with no lookups.
- Country profiles. The stack is forkable: the same platform serves another African country by swapping a country profile and an addressing provider.
- Built for fintech. Consent management, signed verification certificates, webhooks with retries, and per-tenant isolation are first-class.
Ready?
Head to the Quickstart to make your first request in under five minutes, or jump straight into the API Reference.