PMAP Developer API
Programmatic access to Africa's most comprehensive mapping platform — geocoding, routing, places, markets, payments, ride-hailing and hotels. All in one unified API.
Quickstart
3 stepsCreate your account
Sign up at pechmap.com and navigate to the Developer Dashboard to create your first project.
https://pechmap.com/developers/dashboardMake your first call
Copy your API key and run this geocoding request to verify everything works.
curl -G https://pechmap.com/api/v1/geocode \
-H "Authorization: Bearer pm_live_YOUR_KEY" \
--data-urlencode "q=Accra Central"Read the response
Parse the JSON results array. Each result includes id, name, lat, lng, and address.
{ "results": [{ "id": "pmap:gh01", "name": "Accra Central",
"lat": 5.5502, "lng": -0.2174, "country_code": "GH" }] }Authentication
Pass your API key in every request: Authorization: Bearer pm_live_YOUR_KEY. Get your key from the developer dashboard. Use pm_test_ keys for sandbox testing without affecting real data.
Rate Limits
Free
1 000 req/month
Developer
50 000 req/month
Enterprise
Unlimited + SLA
Geocoding
2 endpointsConvert a text query into geographic coordinates. Searches PMAP's community database first, then supplements with OpenStreetMap data.
Parameters
| Name | Description |
|---|---|
| q | Search text, e.g. "Lagos Island" or "Shoprite Ikeja" |
| limit | Maximum results to return (1-20, default 5) |
| country | ISO 3166-1 alpha-2 country code filter, e.g. "NG" |
cURL
curl -G https://pechmap.com/api/v1/geocode \
-H "Authorization: Bearer pm_live_YOUR_API_KEY" \
--data-urlencode "q=Lagos Island" \
-d "limit=5" \
-d "country=NG"Routing
1 endpointFleet & Mobility
3 endpointsPlaces
2 endpointsBusinesses
1 endpointMarkets
2 endpointsPMAP Pay
1 endpointRide
1 endpointHotels
1 endpointAddresses
3 endpointsError Codes
| Code | Meaning |
|---|---|
| 200 | Request succeeded. Response body contains the requested data. |
| 400 | Missing or invalid parameter. Check the error.message field for details. |
| 401 | API key missing, malformed or revoked. Re-check the Authorization header. |
| 403 | API key valid but lacks permission for this endpoint (e.g. pay endpoints require Pay access). |
| 404 | Resource ID does not exist (e.g. unknown market ID). |
| 429 | Rate limit exceeded. Check the Retry-After header and upgrade your plan if needed. |
| 500 | Unexpected internal error. Retry with exponential back-off or contact support. |
Ready to build on Africa's map?
Create your developer account, get a free API key, and make your first call in under 60 seconds.