# French Schools Scraper - Contacts, Location & IPS Index (`pshivam/french-schools-scraper`) Actor

List French schools, colleges and lycees from the official directory: UAI, address, phone, email, website, public or private, location, canteen and boarding, tracks, plus the social index (IPS) and pupils. Filter by department, city, type. Export to Excel, CSV or API.

- **URL**: https://apify.com/pshivam/french-schools-scraper.md
- **Developed by:** [Shivam Prajapati](https://apify.com/pshivam) (community)
- **Categories:** Education, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.40 / 1,000 schools

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## French Schools Scraper - Contacts, Location & IPS Index

**List the schools of France from the official directory of the Ministry of Education: name, UAI code, type, public or private, address, phone, email, website, location on the map, canteen and boarding, tracks of lycées, and the social index (IPS) with the number of pupils.** Pick departments, cities, postal codes or a type, and get one clean row per school. Export to Excel, CSV, JSON or the API. No login, no API key.

**Actively maintained.** Last update: 2026-11-20. Every release passes 80+ automated tests on real answers of the Ministry's open data.

### What can you use it for?

- **Sell to schools.** Contact lists of écoles, collèges and lycées by department or city: phone, institutional email, website and address. Edtech, school supplies, catering, transport and training firms.
- **Compare schools.** The social index (`ips`) shows how advantaged the pupils' families are: a school with a high index has pupils from more advantaged families. Put it next to the type, sector and place.
- **Map schools.** Latitude and longitude for every school, for maps, catchment analysis and real estate studies.
- **Research education.** Public against private, priority education (REP, REP+), tracks of lycées, canteens and boarding, by department or academy.
- **Keep a database current.** Schedule the Actor with `onlyNew` to pay only for schools you do not have yet.

### What data can you get?

Choose where and what. Every row is one school.

| You give | You get |
|---|---|
| `departments` | Every school of those departments |
| `communes`, `postalCodes` | Schools in those cities or postal codes |
| `types` | Only écoles, collèges, lycées ... |
| `sector`, `search` | Public or private only, and schools whose name contains a word |
| `includeIps` | The social index and pupils on top |

#### Fields

A field that does not apply to a school, such as the tracks of an école or the IPS of an administrative office, is `null`.

##### The school

| Field | What it is |
|---|---|
| `uai` | The UAI number: the school's unique code (7 digits and a letter). The same code identifies the school in every French education file. |
| `name` | The school's name. |
| `type` | The type: Ecole, Collège, Lycée, EREA, Médico-social, Information et orientation, Service Administratif or Autre. |
| `sector` | Public or Privé. Empty for some administrative offices. |
| `nature` | The detailed nature, for example ECOLE MATERNELLE, COLLEGE, LYCEE PROFESSIONNEL, LYCEE POLYVALENT. |
| `privateContract` | For a private school, its contract with the State, for example SOUS CONTRAT. Empty for public schools. |
| `status` | OUVERT for a school that is open. |
| `openedAt` | The opening date (YYYY-MM-DD). |
| `updatedAt` | The date the Ministry last updated the school's line (YYYY-MM-DD). |
| `siret` | The SIRET number of the school. |
| `prioritySupport` | The priority education network the school belongs to (REP, REP+), when it does. |

##### Place

| Field | What it is |
|---|---|
| `address` | The street address. |
| `addressLine2` | The second address line (box, building). Often empty. |
| `postalCode` | The postal code. |
| `city` | The city (commune). |
| `cityCode` | The INSEE code of the city. |
| `departmentCode` | The department code in three characters: 075, 021, 02A, 974. |
| `department` | The department's name. |
| `academy` | The education academy (Paris, Lyon, Dijon ...). |
| `region` | The region. |
| `latitude` | The latitude of the school. |
| `longitude` | The longitude of the school. |

##### Contact

| Field | What it is |
|---|---|
| `phone` | The phone number as the directory writes it. |
| `email` | The school's official email address, in lower case. Most are institutional addresses of the academy. |
| `website` | The school's website, when the directory has one. |
| `onisepUrl` | The school's page on ONISEP, the national information service on studies and careers. |

##### Facilities and tracks

| Field | What it is |
|---|---|
| `hasCanteen` | True when the school has a canteen. |
| `hasBoarding` | True when the school has boarding. |
| `nurseryClasses` | True when the school has nursery classes (école maternelle). |
| `primaryClasses` | True when the school has primary classes (école élémentaire). |
| `generalTrack` | True when a lycée offers the general track (voie générale). |
| `technologicalTrack` | True when a lycée offers the technological track. |
| `vocationalTrack` | True when a lycée offers the vocational track (voie professionnelle). |
| `apprenticeship` | True when the school offers apprenticeship training. |

##### Social index (IPS)

| Field | What it is |
|---|---|
| `ips` | The social index (IPS, Indice de Position Sociale) of the school: higher means pupils from more advantaged families. Empty when the school has none. For a lycée it is the index of all its tracks. |
| `ipsYear` | The school year of the social index, for example 2024-2025. |
| `ipsNational` | The national average IPS for the same kind of schools, given for primary schools. |
| `ipsGeneralTechnological` | The IPS of the general and technological tracks of a lycée. |
| `ipsVocational` | The IPS of the vocational track of a lycée. |
| `pupils` | The number of pupils the social index is based on (collèges and lycées). |

##### Where it came from

| Field | What it is |
|---|---|
| `sourceUrl` | The address of the school's line in the Ministry's open data. |
| `scrapedAt` | When the record was collected (UTC). |

#### Example results

```json
{"uai": "0210003P", "name": "Lycée polyvalent Prieur de la Côte-d'Or", "type": "Lycée", "sector": "Public", "nature": "LYCEE POLYVALENT", "address": "6 rue Vauban", "postalCode": "21130", "city": "Auxonne", "cityCode": "21038", "departmentCode": "021", "department": "Côte-d'Or", "academy": "Dijon", "region": "Bourgogne-Franche-Comté", "latitude": 47.19513685953593, "longitude": 5.387180592809431, "phone": "03 80 27 00 00", "email": "0210003p@ac-dijon.fr", "website": "http://www.lycee-prieur.fr", "siret": "19210003000019", "status": "OUVERT", "openedAt": "1965-05-01", "updatedAt": "2026-11-20", "hasCanteen": true, "hasBoarding": true, "generalTrack": true, "technologicalTrack": true, "vocationalTrack": true, "apprenticeship": true, "onisepUrl": "https://www.onisep.fr/http/redirection/etablissement/slug/ENS.6891", "ips": 102.8, "ipsYear": "2022-2023", "ipsGeneralTechnological": 106.4, "ipsVocational": 79.7, "pupils": 676, "sourceUrl": "https://data.education.gouv.fr/explore/dataset/fr-en-annuaire-education/table/?q=0210003P", "scrapedAt": "2026-11-20T10:00:06Z"}
```

```json
{"uai": "0210001M", "name": "Collège Claude Guyot", "type": "Collège", "sector": "Public", "nature": "COLLEGE", "address": "6 rue de la Première Armée Française", "postalCode": "21230", "city": "Arnay-le-Duc", "cityCode": "21023", "departmentCode": "021", "department": "Côte-d'Or", "academy": "Dijon", "region": "Bourgogne-Franche-Comté", "latitude": 47.1297944631154, "longitude": 4.488699825549153, "phone": "03 80 90 11 71", "email": "0210001m@ac-dijon.fr", "website": "http://clg-cguyot-arnay-le-duc.eclat-bfc.fr", "siret": "19210001400013", "status": "OUVERT", "openedAt": "1965-05-01", "updatedAt": "2026-11-20", "hasCanteen": true, "hasBoarding": false, "generalTrack": false, "technologicalTrack": false, "vocationalTrack": false, "apprenticeship": false, "onisepUrl": "https://www.onisep.fr/http/redirection/etablissement/slug/ENS.9055", "ips": 99.9, "ipsYear": "2022-2023", "pupils": 159, "sourceUrl": "https://data.education.gouv.fr/explore/dataset/fr-en-annuaire-education/table/?q=0210001M", "scrapedAt": "2026-11-20T10:00:06Z"}
```

### Input

| Input | What it does |
|---|---|
| `departments` | Departments by number (75, 2A, 974) |
| `communes`, `postalCodes` | Cities and postal codes |
| `types` | École, Collège, Lycée, EREA ... |
| `sector` | Public or Privé |
| `search` | A word in the school's name |
| `includeIps` | Add the social index and the pupils |
| `onlyNew` | Skip schools that earlier runs of the same input returned |
| `maxItems` | Stop after this many schools |
| `maxConcurrency` | How many departments are read at the same time |

### How much does it cost?

You pay per school returned. There is no start fee.

| Plan | Price per 1,000 schools |
|---|---|
| Free | $2.00 |
| Bronze | $1.80 |
| Silver | $1.60 |
| Gold | $1.40 |

- All the schools of one department (about 600 to 2,400) cost $1 to $5 on the Free plan. The whole directory of about 68,000 establishments costs about $140.
- Use `maxItems` to cap the cost of a run, and `onlyNew` to pay only for new schools on scheduled runs.

### Use it via API, on a schedule, or with your tools

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("pshivam/french-schools-scraper").call(run_input={
    "departments": ["69"],
    "types": ["Lycée"],
    "sector": "Privé",
    "includeIps": True,
})
for school in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(school["name"], school["city"], school["phone"], school["ips"])
```

#### Use it in Clay, n8n, Make or Zapier

Use the Actor ID `pshivam/french-schools-scraper` and an input like this:

```json
{"communes": ["Lyon"], "types": ["Collège"], "onlyNew": true, "maxItems": 500}
```

### Good to know

- **Official open data.** The directory and the social index are published by the French Ministry of Education on data.education.gouv.fr under the Licence Ouverte. A school's line is as current as the Ministry's file: `updatedAt` gives the date of the line.
- **Social index years.** The index comes from the newest school year of each file: `ipsYear`. Écoles have 2024-2025, collèges and lycées 2022-2023. A school that is new, closed or too small has no index.
- **Contacts are institutional.** The emails are the schools' official addresses (most at the academy's domain). The directory lists no names of people.
- **Departments.** Use the number: 75 or 075 for Paris, 2A and 2B for Corse, 971 to 976 for the overseas departments. With a city or a type and no department the Actor reads every department.
- **Large departments.** The open data returns at most 10,000 schools per query. No department has that many: the Actor reads each department in pages of 100.
- **Speed.** A department with 660 schools takes about 7 seconds, with the social index. A search over all of France by city or type takes about 10 to 15 seconds.
- **Independent tool.** Not affiliated with the Ministry of Education. Check an important fact on the official site.

### FAQ

#### How do I get all the schools of a city or department?

Put the department number in `departments` (and the city in `communes` if you want only one city) and run. Each row is one school.

#### What is the IPS?

The Indice de Position Sociale is a measure by the Ministry of the social and educational background of a school's pupils. About 100 is the national average: a higher value means pupils from more advantaged families.

#### Can I get only lycées, or only private schools?

Yes. Use `types` for the kind of school and `sector` for public or private.

#### Does it include the head teacher or staff names?

No. The directory lists schools, not people. The email is the school's institutional address.

#### Can I get every school in France?

Yes. Leave the department empty, choose a filter such as all types, or list all departments, and raise `maxItems` to 70,000. You pay per school returned.

#### Is the data public?

Yes. The Ministry publishes it as open data under the Licence Ouverte.

# Actor input Schema

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

The departments to read, by number, one per line: 75 for Paris, 13 for Bouches-du-Rhône, 2A for Corse-du-Sud, 974 for La Réunion. With other filters and no department the Actor reads all 107. With nothing at all it reads Paris.

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

Return only schools in these cities (communes), spelled as in the directory: Lyon, Dijon, L'Isle-d'Abeau. Leave empty for all.

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

Return only schools with these postal codes (5 digits), for example 75011.

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

Return only these types of schools. Leave empty for all types.

## `sector` (type: `string`):

Return only public or only private schools. Leave empty for both.

## `search` (type: `string`):

A word in the school's name, for example Saint, Jean Moulin or Pasteur.

## `includeIps` (type: `boolean`):

Add the social index and the number of pupils to ecoles, colleges and lycees that have one. It costs no extra: the fields are in the same record.

## `onlyNew` (type: `boolean`):

Skip schools that earlier runs of this same input already returned, so you get and pay for new ones only. The first run works as usual and remembers what it returned, in your key-value store 'french-schools-scraper-only-new'.

## `maxItems` (type: `integer`):

Stop after this many schools. You are charged per school returned.

## `maxConcurrency` (type: `integer`):

How many departments are read at the same time.

## Actor input object example

```json
{
  "departments": [
    "21"
  ],
  "types": [
    "Collège"
  ],
  "includeIps": true,
  "onlyNew": false,
  "maxItems": 50,
  "maxConcurrency": 3
}
```

# Actor output Schema

## `schools` (type: `string`):

Schools as a table.

## `contacts` (type: `string`):

Contacts as a table.

## `runStats` (type: `string`):

Requests made, time spent and number of records for this run (RUN_STATS record).

# 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 = {
    "departments": [
        "21"
    ],
    "types": [
        "Collège"
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("pshivam/french-schools-scraper").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 = {
    "departments": ["21"],
    "types": ["Collège"],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("pshivam/french-schools-scraper").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 '{
  "departments": [
    "21"
  ],
  "types": [
    "Collège"
  ],
  "maxItems": 50
}' |
apify call pshivam/french-schools-scraper --silent --output-dataset

```

## MCP server setup

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

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/MDdod8ifUaAs1rngZ/builds/ARl7FvY5OpKGQ711s/openapi.json
