API Documentation
Base URL: https://www.unified.nestict.com/api/v1
Authenticate with header X-Api-Key: your_key or query ?api_key=your_key.
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /schools | Search schools (q, region/county, ownership, category, page, per_page) |
| GET | /schools/{code} | Get school by code |
| GET | /regions | List regions |
| GET | /counties | List counties (?region_id=) |
| GET | /sub-counties | List sub-counties (?county_id=) |
| GET | /stats | Dataset statistics |
| GET | /postal | Postal codes / offices |
| GET | /banks | Banks |
| GET | /bank-branches | Bank branches |
| GET | /files | File catalogue metadata |
| GET | /me | Key + usage info |
Example (cURL)
curl -s -H "X-Api-Key: ksd_xxxxx" \ "https://www.unified.nestict.com/api/v1/schools?q=nairobi&per_page=10"
Example (JavaScript)
const res = await fetch('https://www.unified.nestict.com/api/v1/schools?q=nairobi&per_page=10', {
headers: { 'X-Api-Key': 'ksd_xxxxx', 'Accept': 'application/json' },
});
const data = await res.json();
Code examples (PHP, Python, Node…) Full reference Get API access