# France Schools Directory: Schools, Colleges, Lycees (Open Data) (`shadow-tools/france-schools-directory`) Actor

Directory of French schools, collèges, lycées and other education institutions: search by area, type, public/private or name, lookup by UAI, nearby GPS search and counts per department or academy. Official open data, unofficial tool, institution-level data only.

- **URL**: https://apify.com/shadow-tools/france-schools-directory.md
- **Developed by:** [Shadow Tools](https://apify.com/shadow-tools) (community)
- **Categories:** Other, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 92.9% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 school records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## France Schools Directory (Open Data)

Call this Actor to **find and describe French education institutions**: écoles (nursery and primary), collèges, lycées, EREA, médico-social establishments and information/orientation centres, from the official "Annuaire de l'éducation" open data of the Ministry of National Education (about 68,500 institutions). Use `search` for an area, type, public/private status or name, `lookup` when you already have UAI identifiers, `nearby` when you have GPS coordinates, and `stats` to count institutions per type, department, academy or region. **Institution-level data only**: no names of directors or staff, no phone numbers, no personal e-mail addresses (see *Privacy / GDPR by design*).

#### Minimal input per mode

| Mode | Minimal input | What comes back |
|---|---|---|
| `search` | `{"type": ["Lycée"], "department": ["75"], "maxResults": 5}` | 5 lycées of Paris, alphabetical |
| `lookup` | `{"mode": "lookup", "uai": ["0750811Z", "0690023A"]}` | the records of these two UAI (unknown ones are listed in the run SUMMARY note) |
| `nearby` | `{"mode": "nearby", "latitude": 45.764, "longitude": 4.835, "radiusKm": 2, "type": ["Collège"]}` | collèges within 2 km, closest first, with `distanceKm` |
| `stats` | `{"mode": "stats", "type": ["Lycée"], "groupBy": "academy", "maxResults": 100}` | one count record per academy |

An **empty input** `{}` works too: it returns 20 institutions of France (alphabetical). The console form is pre-filled with `type: ["Lycée"]` and `department: ["75"]`.

Short real output (search, 8 Nov 2026, shortened; the full record also has `levels`, `offers`, `attribution`):
`{"type": "school", "uai": "0752608C", "name": "Campus de la gastronomie durable Belliard - CFA académique de Paris", "schoolType": "Lycée", "nature": "LYCEE PROFESSIONNEL", "status": "public", "address": "135 rue Belliard", "postcode": "75018", "commune": "Paris", "departmentCode": "075", "department": "Paris", "academy": "Paris", "region": "Ile-de-France", "latitude": 48.89621, "longitude": 2.33449, "openingDate": "1978-09-01"}`

#### For AI agents (MCP)

- **One call = one answer.** Default `maxResults` is 20 (max 10,000 per run, a limit of the source API: to list more, split by `department` or `academy`). Typical run: 1-5 s; 3,000 records take about 12 s.
- **Pick the mode by what you have**: an area name or code -> `search`; UAI identifiers -> `lookup`; coordinates -> `nearby` (geocode a place name first, the Actor does not geocode); "how many ..." -> `stats`.
- **Errors fail fast** as `Field X invalid: expected Y, got Z, example W` (for example `Field type invalid: expected a list of values among: Ecole | Collège | Lycée | ..., got "university", example ["Lycée", "Collège"].`). Fix that field and call again; nothing is charged.
- **0 results is not an error.** The run succeeds with an empty dataset and the key-value record `SUMMARY` has a `note` saying why and how to widen. The same `note` explains capped and partial results.
- Department codes: `"75"`, `"2A"`, `"974"` (the source uses three characters, `075`; the Actor converts). Names (department, academy, region) must be exact with accents as in the source (`"Rhône"`, `"Orléans-Tours"`, `"Ile-de-France"`).
- **A UAI is not always a unique key**: 163 rows of the directory (antennas, annexes) share a UAI with another site, and are flagged `sharedUai: true`; they differ by address.

> **Unofficial tool. Not affiliated with, endorsed by or sponsored by the French Ministry of National Education.** It reads the official open data and reformats it. Data may be incomplete or out of date: check with the institution or the Ministry before relying on it.

### Who uses it

- **Education publishers, edtech and school-service companies**: a clean JSON/CSV list of institutions by type, department or academy.
- **Researchers, journalists and local authorities**: counts of institutions per territory, public/private split, priority-education (REP/REP+) and option coverage (boarding, canteen, sports sections...).
- **Apps and dashboards**: school finder around a point (`nearby`) with coordinates and type.
- **AI assistants**: answer "which lycées in the Nord have boarding?" or "details of UAI 0750811Z" with a dated, cited source.

### Modes

- **search**: institutions matching your filters (all optional, combined with AND; several values inside one filter are OR, except `features` which are all required): `type`, `status` (public / private), `department`, `academy`, `region`, `postcode`, `commune` (words, accents and case ignored), `name` (words in the institution name), `features`. Sorted by name (`sortBy: "uai"` for identifier order).
- **lookup**: up to 500 UAI identifiers, results in the order requested; unknown identifiers are listed in `SUMMARY.note`.
- **nearby**: same filters inside `radiusKm` (0.1-100) around `latitude` / `longitude`, closest first, `distanceKm` per record.
- **stats**: number of institutions for the same filters, in total or `groupBy` type, status, department, academy, region or nature. Computed on the live data by the open data API.

`features` values (all required when several): `generalTrack`, `technologicalTrack`, `professionalTrack`, `canteen`, `boarding`, `apprenticeship`, `postBac`, `ulis`, `segpa`, `sectionSport`, `sectionArts`, `sectionInternational`, `sectionEuropean`, `lyceeDesMetiers`, `agriculturalLycee`.

### What you get

**Institution record** (`type: "school"`): `uai`, `name`, `schoolType` (Ecole / Collège / Lycée / EREA / Médico-social / Service Administratif / Information et orientation / Autre), `nature`, `status` (public / private), `privateContract` (private only), `address`, `postcode`, `commune`, `communeCode`, `departmentCode`, `department`, `academyCode`, `academy`, `regionCode`, `region`, `latitude`, `longitude`, `locationPrecision`, `openingDate`, `sourceUpdatedAt`, `sharedUai`, `supervisingMinistry`, `levels` (nurserySchool, elementarySchool, generalTrack, technologicalTrack, professionalTrack), `offers` (canteen, boarding, ulis, segpa, apprenticeship, postBac, greta, sections, lyceeDesMetiers, agriculturalLycee, militaryLycee), `priorityEducation` (REP / REP+), `trainingBasin`, `genericEmail` (institutional mailbox, see privacy; null when it does not match), and in nearby mode `distanceKm`; always `attribution`, `extractedAt`. Flags are `true` / `false` / `null` (null = not applicable or not reported).
**Count record** (`type: "stats"`): `groupBy`, `key`, `label`, `schoolCount`, plus `attribution`, `extractedAt`.

The dataset has **no pupil numbers and no institution website**: they are not in the source (and web addresses are deliberately not requested).

Example (stats, real, 8 Nov 2026):

```json
{"type": "stats", "groupBy": "type", "key": "Collège", "label": "Collège", "schoolCount": 9181}
```

### Quick start

Public lycées with boarding and a vocational track in the Nord:

```json
{ "type": ["Lycée"], "status": "public", "department": ["59"], "features": ["boarding", "professionalTrack"], "maxResults": 50 }
```

Schools around a point (a rounded point or a town centre is enough):

```json
{ "mode": "nearby", "latitude": 48.8566, "longitude": 2.3522, "radiusKm": 1.5, "maxResults": 30 }
```

Number of institutions per department:

```json
{ "mode": "stats", "groupBy": "department", "maxResults": 120 }
```

Call it from the API: `POST https://api.apify.com/v2/acts/<ACTOR>/run-sync-get-dataset-items?token=<TOKEN>` with the JSON input as body.

### Pricing

Pay per event, no subscription:

| Event | Price | Per 1,000 |
|---|---|---|
| `school-record`: one record delivered (an institution, or one count record) | **0.002 USD** | **2 USD per 1,000 records** |
| Actor start (once per run) | 0.00005 USD | n/a |

A run returning nothing costs only the start event. Example: 20 lycées of a department cost 0.04 USD; all 5,650 lycées of France about 11.3 USD. Use the platform's **Maximum cost per run** to cap spending: the Actor reads it, stops cleanly at the cap and returns what it already delivered (the cap must allow at least one record).

### Privacy / GDPR by design

This Actor returns **institution-level data only**, and the filtering below is applied **on purpose to respect the GDPR**. Everything stated here is what the code does (unit-tested, and measured on a real sample):

- **Allow-list, fail-closed.** The Actor asks the open data API for a fixed list of 49 columns and builds each record from named fields only (the source row is never copied as a whole). Any other field the source may add (director or staff names, personal e-mail addresses, mobile numbers...) is neither requested nor passed through. A unit test feeds rows with person-name fields and a personal e-mail and checks they never come out; a sabotage script breaks the filter on purpose and the tests must fail.
- **Never requested, never returned**: telephone, fax, web address, SIREN/SIRET, the link to the ONISEP sheet and the free-text inspection district. The directory has no director name field.
- **E-mail**: the only contact datum kept is `genericEmail`, and only when it has the exact shape `<letters>.<the record's own UAI>@ac-<academy>.fr` (for example `ce.0750811Z@ac-paris.fr`, the institution's functional mailbox). Any other address (named mailbox, other domain, another school's UAI) is dropped. On a real sample of 7,100 records, 90.2 % of the addresses matched and were kept, 9.2 % were dropped (for example named mailboxes of information centres), the rest had no address.
- **Free text is scrubbed**: institution name, address and commune go through a filter that removes HTML, e-mail addresses and phone numbers, and address lines that look like a person ("chez ...", "c/o ...", "Mme ...", "M. ...") are dropped (4 such lines in the 7,100-record sample).
- **Measured**: on 7,100 real records (71 random pages of 100 rows, spread over the departments), the output had 0 e-mail addresses (outside `genericEmail`), 0 phone numbers and 0 "chez/c/o" addresses (`node scripts/rgpd-measure.js`).
- **Your location stays in memory.** In `nearby` mode the coordinates you give are used only to build the query. They are not written to the dataset, the `SUMMARY` record or the run log. The Apify platform itself stores the run input (as for any Actor): use a rounded point or a town centre if that matters.
- **No tracking, no state**: the Actor keeps nothing between runs and stores nothing about the people who call it.

Residual risk, stated honestly: institution names are published as is. Some private institutions carry a person's name or a family name (for example a small independent school), and a very small private institution could operate from a private address. We return only what the Ministry already publishes openly about the institution, and no individual.

### Licence and attribution

Data: "Annuaire de l'éducation", DNE - Ministère de l'Education Nationale, dataset `fr-en-annuaire-education` on data.education.gouv.fr (sources: ONISEP and RAMSESE), published under the **Licence Ouverte v2.0 (Etalab)** as stated in the dataset metadata ("Licence Ouverte v2.0 (Etalab)", licence link `http://www.etalab.gouv.fr/wp-content/uploads/2017/04/ETALAB-Licence-Ouverte-v2.0.pdf`; the same dataset is declared `lov2` on data.gouv.fr). The licence grants the right to reuse the information "for commercial or non-commercial purposes, worldwide and for an unlimited period", provided the source and the date of the last update are credited: the Actor adds both to every record's `attribution` (and the licence to the run SUMMARY). The reuse is unofficial and implies no endorsement by the Ministry. Licence text: https://github.com/etalab/licence-ouverte/blob/master/open-licence.md

### Limits and good to know

- **Not covered**: higher education (universities, grandes écoles), which is not part of this dataset; no pupil numbers; no staff data.
- Maximum 10,000 records per run and per query (limit of the source API): split large extractions by department or academy.
- The source is refreshed daily by the Ministry (the dataset timestamp is in `SUMMARY.datasetUpdatedAt` and each `attribution`). Flags can be `null` when a field does not apply to the institution type (for example `generalTrack` for a primary school).
- `commune` matches by words: "Paris" also matches "Paris 11e Arrondissement" and "Le Touquet-Paris-Plage": combine with `postcode` or `department`.
- `nearby` takes coordinates, it does not geocode place names. The position precision is in `locationPrecision`.

### En français (court)

Outil **non officiel** qui reprend l'Annuaire de l'éducation du Ministère de l'Éducation nationale (Licence Ouverte v2.0) : recherche d'écoles, collèges et lycées par territoire, type, public/privé ou nom, consultation par UAI, recherche autour d'un point GPS et comptages par département ou académie. Uniquement des données d'établissement : aucun nom de directeur ou de personnel, aucun numéro de téléphone, aucune adresse e-mail personnelle.

# Actor input Schema

## `mode` (type: `string`):

Pick one. "search" = use to list institutions matching filters (department, academy, region, postcode, commune, type, status, name words, features) or the whole of France. "lookup" = use when you already know UAI identifiers (7 digits + 1 letter, e.g. "0750811Z") and want their records. "nearby" = use when you have GPS coordinates (latitude and longitude in decimal degrees) and want institutions within radiusKm, closest first. "stats" = use to count institutions (per type, status, department, academy, region or nature with groupBy) for the same filters, without institution details. Allowed values: search, lookup, nearby, stats. Default: search.

## `type` (type: `array`):

Types to keep, as a list, e.g. \["Lycée", "Collège"]. Any of them matches (OR). Exact values: Ecole, Collège, Lycée, EREA, Médico-social, Service Administratif, Information et orientation, Autre. Accents optional ("college" works). Empty = all types (about 68,500 institutions in France: 48,000 écoles, 9,200 collèges, 5,600 lycées).

## `status` (type: `string`):

Keep only public or only private institutions, e.g. "public". Allowed values: any (default, no filter), public, private. Institutions with no status in the source are only returned with any.

## `department` (type: `array`):

French department codes or names as a list, e.g. \["75", "2A"] or \["Rhône"]. Codes: two digits ("69"), "2A"/"2B" for Corsica, three digits overseas ("974"). Any of them matches (OR). Names must be exact, with accents as in the source ("Rhône", "Côte-d'Or"). Empty = all of France.

## `academy` (type: `array`):

School academies (education districts) as a list of names or 2-digit codes, e.g. \["Lyon"] or \["10"]. Names must be exact ("Lyon", "Aix-Marseille", "Orléans-Tours"). Any of them matches (OR). Empty = all academies.

## `region` (type: `array`):

Regions as a list of names or 2-digit codes, e.g. \["Bretagne"] or \["53"]. Names must be exact, as in the source ("Ile-de-France", "Auvergne-Rhône-Alpes"). Any of them matches (OR). Empty = all regions.

## `postcode` (type: `array`):

5-digit postal codes as a list, e.g. \["69003", "75011"]. Any of them matches (OR). Empty = no postcode filter.

## `commune` (type: `array`):

Commune name words as a list, e.g. \["Lyon", "Saint-Étienne"]. Matches by words, accents and case ignored ("Paris" also matches "Paris 11e Arrondissement" and "Le Touquet-Paris-Plage": add a postcode or department to be precise). Empty = no commune filter.

## `name` (type: `string`):

Words that must appear in the institution name, e.g. "victor hugo" or "jean moulin" (accents and case ignored, all words must match). Names of institutions only. Empty = no name filter.

## `uai` (type: `array`):

Institution identifiers (UAI, 7 digits + 1 capital letter) as a list, e.g. \["0750811Z", "0690023A"]. Required in lookup mode (up to 500), ignored otherwise. Unknown identifiers are listed in the run SUMMARY note.

## `features` (type: `array`):

Characteristics the institution must have, as a list, e.g. \["canteen", "boarding"]. ALL listed features are required (AND). Allowed values: generalTrack, technologicalTrack, professionalTrack, canteen, boarding, apprenticeship, postBac, ulis, segpa, sectionSport, sectionArts, sectionInternational, sectionEuropean, lyceeDesMetiers, agriculturalLycee. Empty = no feature filter.

## `latitude` (type: `number`):

Latitude of the search centre in decimal degrees, e.g. 45.764 for Lyon. Required in nearby mode, ignored otherwise. Used in memory only: it is not written to the dataset or the run SUMMARY.

## `longitude` (type: `number`):

Longitude of the search centre in decimal degrees, e.g. 4.835 for Lyon. Required in nearby mode, ignored otherwise. Used in memory only: it is not written to the dataset or the run SUMMARY.

## `radiusKm` (type: `number`):

Search radius around the point in kilometres, between 0.1 and 100, e.g. 5. Used only in nearby mode. Default: 5.

## `sortBy` (type: `string`):

Order of the institutions, e.g. "name". Allowed values: name (alphabetical; default for search), uai (by identifier; default for lookup), distance (closest first, nearby mode only; default there). Ignored in stats mode.

## `groupBy` (type: `string`):

Only for stats mode: one count record per group, e.g. "department" to compare the 100+ departments. Allowed values: none (default, one record with the total), type, status, department, academy, region, nature (detailed category such as COLLEGE or LYCEE PROFESSIONNEL).

## `maxResults` (type: `integer`):

Maximum number of records returned (institutions, or count records), an integer between 1 and 10000, e.g. 20. Default: 20.

## Actor input object example

```json
{
  "mode": "search",
  "type": [
    "Lycée",
    "Collège"
  ],
  "status": "any",
  "department": [
    "69"
  ],
  "academy": [
    "Lyon"
  ],
  "region": [
    "Bretagne"
  ],
  "postcode": [
    "69003"
  ],
  "commune": [
    "Lyon"
  ],
  "name": "victor hugo",
  "uai": [
    "0750811Z",
    "0690023A"
  ],
  "features": [
    "canteen",
    "boarding"
  ],
  "latitude": 45.764,
  "longitude": 4.835,
  "radiusKm": 5,
  "groupBy": "none",
  "maxResults": 20
}
```

# Actor output Schema

## `institutions` (type: `string`):

Matching institutions with identifier, type, address, coordinates, levels and options offered.

## `stats` (type: `string`):

Number of institutions per group (type, status, department, academy, region or nature).

## `dataset` (type: `string`):

Every field of every record, downloadable as JSON, CSV or Excel.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "type": [
        "Lycée"
    ],
    "department": [
        "75"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("shadow-tools/france-schools-directory").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "type": ["Lycée"],
    "department": ["75"],
}

# Run the Actor and wait for it to finish
run = client.actor("shadow-tools/france-schools-directory").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "type": [
    "Lycée"
  ],
  "department": [
    "75"
  ]
}' |
apify call shadow-tools/france-schools-directory --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,shadow-tools/france-schools-directory"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/5BwQOcRuJx4ku7VIk/builds/FbjXpZGUbNPV404cm/openapi.json
