Developer API
Polling Unit API
Build INEC's register of 176,846 polling units in 8,809 wards into your app, chatbot or newsroom tools.
Getting started
Every request needs an API key. Request one below; we review each request by hand.
curl https://www.nigeriaopendata.com/api/v1/polling-units/04/05/09/005 \ -H "X-API-Key: nod_your_key_here"
- Send the key in the
X-API-Keyheader (orAuthorization: Bearer …). Keep it on your server, not in browser code. - Default limits: 1,000 requests a day and 60 a minute per key. Need more? Tell us when you request a key.
- Responses are JSON. Each one carries
X-RateLimit-Remaining; errors look like{"error": {"code": "…", "message": "…"}}.
Endpoints
Base URL https://www.nigeriaopendata.com/api/v1
GET/states
The 36 states and FCT, with their codes (e.g.
LA, FC).GET/states/{code}/lgas
Local government areas in a state, with their ids.
GET/lgas/{id}/wards
Registration areas (wards) in an LGA, with their polling-unit counts.
GET/wards/{id}/polling-units
Every polling unit in a ward, in INEC's order: code, number, name, and registered voters and coordinates where known.
GET/polling-units/{inec_code}
One polling unit by its INEC code, e.g.
/polling-units/04/05/09/005, with its ward, LGA and state.GET/polling-units/search?q=
Search by name (at least 3 characters) or by the start of an INEC code. Up to 20 results.
Example response
{
"data": {
"id": 13642,
"code": "04/05/09/005",
"number": "005",
"name": "UMU-UFALI HALL II",
"registered_voters": null,
"latitude": null,
"longitude": null,
"ward": {"id": 825, "name": "AGULU III"},
"lga": {"id": 73, "name": "Anaocha"},
"state": {"code": "AN", "name": "Anambra", "geo_zone": "South East"}
}
}
Source: INEC's polling-unit register as published on IReV. Registered voters and coordinates are filled in as INEC publishes them.
Request an API key
Tell us who you are and what you're building. Approved keys are sent by email.