API Explorer
Live API · api.mapafrique.app

Verified location data for Liberia — available via REST API

Try it live
Request
Response
Endpoints reference
Method Endpoint Description Auth
GET /v1/ping Health check No key
GET /v1/locations List verified locations. Filter by category, city, limit Key required
GET /v1/locations/:id Single location by UUID Key required
GET /v1/categories Category list with location counts Key required
GET /v1/stats Platform statistics Key required
Code examples
curl "https://api.mapafrique.app/v1/locations?category=pharmacy_clinic&limit=5" \ -H "X-MapAfrique-Key: YOUR_KEY"
import requests headers = {"X-MapAfrique-Key": "YOUR_KEY"} response = requests.get( "https://api.mapafrique.app/v1/locations", params={"category": "pharmacy_clinic", "limit": 5}, headers=headers ) data = response.json() print(f"Found {data['count']} locations") for loc in data["locations"]: print(f" {loc['name']} — {loc['city']}")
const response = await fetch( "https://api.mapafrique.app/v1/locations?category=pharmacy_clinic&limit=5", { headers: { "X-MapAfrique-Key": "YOUR_KEY" } } ); const data = await response.json(); console.log(`Found ${data.count} locations`); data.locations.forEach(loc => { console.log(` ${loc.name} — ${loc.city}`); });
Get access

Ready to integrate MapAfrique data?

Build maps, dashboards, and directory apps with verified location data from across Liberia.

Request API Access