Schools API Reference
2 routes under /v1/schools. Base URL https://api.apifor.dev, authenticated with x-api-key, one credit per request. Coverage and licence are on the Schools page.
GET
/v1/schoolsList schools with filters and paging.
| Parameter | In | Type | Rules |
|---|---|---|---|
| page | query | integer | min 1 · default 1 |
| limit | query | integer | 1 to 200 · default 50 |
| country | query | string | ISO 3166-1 alpha-2 |
| q | query | string | 2 to 100 chars |
| province_id | query | string | None |
| regency_id | query | string | None |
| type | query | string | None |
curl 'https://api.apifor.dev/v1/schools' \
-G -d country=ID -d limit=1 \
-H 'x-api-key: YOUR_API_KEY'{
"success": true,
"data": [
{
"country_code": "ID",
"npsn": "10001804",
"name": "SDN LUENG SA",
"type": "SD",
"status": "Negeri",
"province_id": "11",
"regency_id": "1103",
"district_id": null,
"village_id": null,
"address": "Jln Tanjung Minjei/Meunasah Asan",
"postal_code": null,
"lat": 5.12976,
"lng": 97.539694,
"website": null,
"accreditation": null,
"is_active": 1,
"created_at": "2026-07-02 08:09:09",
"updated_at": "2026-07-02 08:09:09",
"source_name": null,
"source_url": null,
"source_synced_at": null,
"source_record_hash": null
}
]
}200Successful response. Pagination is explicit; no silent truncation.400Invalid query parameters404Record not found500Dataset unavailable
GET
/v1/schools/{id}Find schools by identifier.
| Parameter | In | Type | Rules |
|---|---|---|---|
| id * | path | string | None |
curl 'https://api.apifor.dev/v1/schools/{id}' \
-H 'x-api-key: YOUR_API_KEY'{
"success": true,
"data": {
"country_code": "ID",
"npsn": "10001804",
"name": "SDN LUENG SA",
"type": "SD",
"status": "Negeri",
"province_id": "11",
"regency_id": "1103",
"district_id": null,
"village_id": null,
"address": "Jln Tanjung Minjei/Meunasah Asan",
"postal_code": null,
"lat": 5.12976,
"lng": 97.539694,
"website": null,
"accreditation": null,
"is_active": 1,
"created_at": "2026-07-02 08:09:09",
"updated_at": "2026-07-02 08:09:09",
"source_name": null,
"source_url": null,
"source_synced_at": null,
"source_record_hash": null
}
}200Successful response. Pagination is explicit; no silent truncation.400Invalid query parameters404Record not found500Dataset unavailable