Like the REST Countries API — all read operations are public. Use filtering, pagination, and geolocation to power maps, directories, and education apps.
No authentication
All GET endpoints are open — no API key or signup required.
Geolocation search
Find nearby schools and hospitals using latitude and longitude.
Rich filtering
Filter by type, district, city, emergency services, and text search.
Pagination
Paginated list endpoints with page, limit, and navigation metadata.
1,000requests per 15 minutes per IP · MIT License
Quick Start
Copy any command below and run it in your terminal — no configuration required.
Combined endpoint for Primary, Secondary, University, and Vocational schools. Use the typed endpoints below when you only need one school category. Admin write operations require X-Admin-Key.
Available on paginated list endpoints (/api/v1/schools, /api/v1/primary-schools, /api/v1/secondary-schools, /api/v1/universities, and /api/v1/hospitals) and nearby search routes.
Pagination
Parameter
Description
page
Page number (default: 1)
limit
Items per page (default: 10, max: 100)
Filtering
Parameter
Description
type
Filter by type (e.g. Secondary, Government)
district
Filter by district
city
Filter by city
search
Text search across names and locations
emergencyAvailable
Hospitals only — true for emergency services
Nearby search
Parameter
Description
latitude
Required — e.g. 6.9271
longitude
Required — e.g. 79.8612
radius
Optional radius in meters (default: 5000)
Response format
All successful responses include success, count, and data. Paginated lists add a pagination object. Typed school endpoints also include a schoolType field.