Interactive API Explorer

OpenGrid API

Try any endpoint live. Pick a facility type, filter by state or LGA, and see the real response — no setup needed.

https://opengrid.pages.dev/apiNo auth requiredJSONCORS enabled
GET/api/facilities?limit=10
Response

Set your filters and click Run Request to see a live response.

Endpoint Reference

All endpoints return JSON. No authentication required.

GET/api/facilitiesList facilities. Filter by type, state, LGA, or free-text search.
ParameterTypeDescription
typestringFacility type (e.g. school, market, health_facility)
statestringState slug (e.g. lagos, kano)
lgastringLGA slug (e.g. ikeja-ikeja)
qstringFree-text search across name, LGA, state
sourcestring"grid3" or "community"
limitnumberResults per page (1–100, default 20)
offsetnumberPagination offset (default 0)
orderstring"asc" or "desc" by name
GET/api/facilities/:slugGet a single facility by its slug.
GET/api/typesList all 15 facility types with record counts.
GET/api/statesList all 36 states and the FCT.
GET/api/states/:slugGet a single state with LGA count and facility count.
GET/api/lgasList all LGAs, optionally filtered by state.
ParameterTypeDescription
statestringState slug to filter by
GET/api/lgas/:slugGet a single LGA with facility count.
GET/api/coverageFull coverage summary: per-type counts and per-state facility counts.
POST/api/contributeSubmit a new facility. Opens a GitHub pull request automatically.
ParameterTypeDescription
facility_namestringRequired. Name of the facility
facility_typestringRequired. One of the 15 facility types
statestringRequired. State name or slug
lgastringRequired. LGA name or slug
latnumberRequired. Latitude (3–15)
lngnumberRequired. Longitude (1–16)
contributor_namestringOptional. Your name or GitHub username
descriptionstringOptional. Notes about the facility

Facility Types

Pass these exact values to the type= query parameter.

marketMarketTry →
health_facilityHealth FacilityTry →
schoolSchoolTry →
government_buildingGovernment BuildingTry →
police_stationPolice StationTry →
fire_stationFire StationTry →
post_officePost OfficeTry →
idp_siteIDP SiteTry →
churchChurchTry →
mosqueMosqueTry →
water_pointWater PointTry →
farmFarmTry →
factoryFactoryTry →
energy_substationEnergy SubstationTry →
filling_stationFilling StationTry →