Documentation
A free REST API for Nigerian address data. No signup or API key required. Every response is plain JSON.
https://ng-address-api.vercel.appNone required20 requests / 60sResponse format
Every endpoint uses the same response envelope. Successful requests return a data field, with count included for list responses.
{
"success": true,
"count": 3,
"data": [ ... ]
}{
"success": false,
"error": "State with code 'XX' not found"
}Data model
Location data follows a simple four-level hierarchy.
Postal codes live on Ward records. A single code may therefore match multiple wards.
Endpoints
Complete API reference for states, LGAs, wards, towns, and search.
States
| Method | Endpoint | Description | Parameters |
|---|---|---|---|
| GET | /api/states | Returns all Nigerian states. Supports filtering by geopolitical region. |
|
| GET | /api/states/:code | Returns a single state by its two-letter code. |
|
| GET | /api/states/:code/lgas | Returns all LGAs belonging to a given state. |
|
LGAs
| Method | Endpoint | Description | Parameters |
|---|---|---|---|
| GET | /api/lgas | Returns all LGAs in the country. | — |
| GET | /api/lgas/:alias | Returns a single LGA by its alias. |
|
| GET | /api/lgas/:alias/wards | Returns all wards belonging to a given LGA. |
|
Wards
| Method | Endpoint | Description | Parameters |
|---|---|---|---|
| GET | /api/wards | Returns all wards. Supports reverse lookup by postal code. |
|
| GET | /api/wards/:alias | Returns a single ward by its alias. |
|
| GET | /api/wards/:alias/towns | Returns all towns belonging to a given ward. |
|
Search
| Method | Endpoint | Description | Parameters |
|---|---|---|---|
| GET | /api/search | Case-insensitive substring search by name across states, LGAs, wards, or towns. |
|