---
title: "School directory API | APIFor"
description: "Find a school by name, country, type, region or city. 1 credit per call, REST and MCP, one API key."
canonical: "https://apifor.dev/services/schools/"
---

1. [Services](https://apifor.dev/services/)
2. [Schools](https://apifor.dev/services/schools/)

# School directory API

Find a school by name, country, type, region or city. Every country shares one set of fields, and anything that exists in only one country sits under local.

GET /v1/schools 1 credit About $0.001

[Get a free API key](https://app.apifor.dev/register) [Endpoint reference](https://apifor.dev/docs/reference/schools/)

## Try it

GET /v1/schools

```bash
curl 'https://api.apifor.dev/v1/schools?country=FR&q=lebesgue' \
  -H 'x-api-key: YOUR_API_KEY'
```

Example response · 200

```json
{
  "success": true,
  "data": [
    {
      "id": "FR-0600479V",
      "country_code": "FR",
      "name": "Ecole maternelle Ph. Lebesgue",
      "type": "Ecole",
      "status": "open",
      "address": "1 rue Philéas Lebesgue",
      "city": "Compiègne",
      "region": "Hauts-de-France",
      "postal_code": "60200",
      "lat": 49.407621397289205,
      "lng": 2.8016199244621727,
      "phone": "0344230069",
      "website": null,
      "updated_at": "2026-11-30",
      "local": {
        "country": "FR",
        "uai": "0600479V",
        "sector": "Public",
        "nature": "ECOLE MATERNELLE",
        "department": "Oise",
        "academy": "Amiens",
        "commune_code": "60159",
        "tracks": [
          "ecole_maternelle"
        ],
        "priority_education": null,
        "siret": null,
        "opened": null
      }
    }
  ],
  "meta": {
    "total": 1,
    "page": 1,
    "limit": 50,
    "total_pages": 1,
    "coverage": [
      "ID",
      "CA"
    ],
    "attribution": {
      "source": "https://www.statcan.gc.ca/en/lode/databases/odef",
      "licence": "Open Government Licence - Canada",
      "license": "Open Government Licence - Canada",
      "license_url": "https://www.statcan.gc.ca/en/lode/databases/odef",
      "source_url": "https://www.statcan.gc.ca/en/lode/databases/odef",
      "attribution_page": "https://apifor.dev/sources",
      "notice": "Source: Statistics Canada ODEF v2.1."
    },
    "sources": [
      {
        "country": "FR",
        "name": "Statistics Canada ODEF v2.1",
        "url": "https://www.statcan.gc.ca/en/lode/databases/odef",
        "licence": "Open Government Licence - Canada"
      }
    ]
  }
}
```

A real response from our OpenAPI file, with long lists and strings shortened.

## Endpoints and price

| Endpoint | Credits | About |
| --- | --- | --- |
| GET `/v1/schools` | 1 credit | $0.001 |
| GET `/v1/schools/{id}` | 1 credit | $0.001 |
| GET `/v1/schools/coverage` (Free) | Free | $0 |

USD at Starter pack prices ($5 for 5,000 credits). Calls that fail before work starts are refunded.

## Coverage today

Canada, France, Indonesia and Singapore.

Leave `country` out to get every covered country, or pass one to narrow it.

Sources, row counts and country-only fields per country: [`GET /v1/schools/coverage`](https://apifor.dev/docs/reference/schools/#get-schools-coverage), free with your API key. [How coverage works](https://apifor.dev/docs/coverage/)

## Limits

- Name search needs 2 to 100 characters.
- type is written as the source writes it.
- Up to 200 rows per page, 10,000 rows deep.

## Sources and licences

- **[Kemendikdasmen Data Referensi (NPSN)](https://referensi.data.kemdikbud.go.id)**: Public domain (government)
- **[Statistics Canada ODEF v2.1](https://www.statcan.gc.ca/en/lode/databases/odef)**: Open Government Licence - Canada
- **[Annuaire de l'éducation (Ministère de l'Éducation nationale)](https://www.data.gouv.fr/datasets/annuaire-de-leducation)**: Licence Ouverte / Open Licence 2.0
- **[MOE General information of schools (data.gov.sg)](https://data.gov.sg/datasets/d_688b934f82c1059ed0a6993d2a829089/view)**: Singapore Open Data Licence

### Attribution

- Contains information licensed under the Open Government Licence - Canada.
- Source: Ministère de l'Éducation nationale.
- Contains information from General information of schools accessed from data.gov.sg, made available under the Singapore Open Data Licence version 1.0.

## Also on MCP

Connect `https://mcp.apifor.dev/mcp` and your agent gets a tool for this service, billed the same way.

[MCP setup](https://apifor.dev/docs/mcp/)

## Questions

**What happened to the schools dataset?**

It is now this service, at the same path and the same 1 credit per call. Existing rows keep their ids and fields.

**What does an id look like?**

A country prefix and the source's own code, for example FR-0600479V. Rows that were in the old dataset keep their old ids.

## Related services

[All services](https://apifor.dev/services/)

- [Administrative boundaries API](https://apifor.dev/services/boundaries/)
- [Places (POI) API](https://apifor.dev/services/places/)
- [Train station API](https://apifor.dev/services/train-stations/)
- [Bus terminal API](https://apifor.dev/services/bus-terminals/)
- [Toll road API](https://apifor.dev/services/toll-roads/)
- [Hospital directory API](https://apifor.dev/services/hospitals/)
- [Vehicle registrations API](https://apifor.dev/services/vehicle-registrations/)
