Schools All docs

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/schools

List schools with filters and paging.

ParameterInTypeRules
pagequeryintegermin 1 · default 1
limitqueryinteger1 to 200 · default 50
countryquerystringISO 3166-1 alpha-2
qquerystring2 to 100 chars
province_idquerystringNone
regency_idquerystringNone
typequerystringNone
GET/v1/schools
curl 'https://api.apifor.dev/v1/schools' \
  -G -d country=ID -d limit=1 \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "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 parameters
  • 404Record not found
  • 500Dataset unavailable
GET/v1/schools/{id}

Find schools by identifier.

ParameterInTypeRules
id *pathstringNone
GET/v1/schools/{id}
curl 'https://api.apifor.dev/v1/schools/{id}' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "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 parameters
  • 404Record not found
  • 500Dataset unavailable

Error handling · Rate limits · Source licences