France Lycée Social Index API

The social position index (IPS) of each French lycée for the 2022-2023 school year: general and technological, vocational and combined index, pupil numbers and spread, with the school, sector, commune, department and academy.

$0.50 per 1,000 records

You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.

Try it
Ready-made, maintained by usRecords, 16 fieldsv1.0

Data from data.education.gouv.fr/explore/dataset/fr-en-ips-lycees-ap2022/

Get this data

Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.

Try it

Academyoptional
Academy name in capitals, for example LYON.
Example: LYON
Departmentoptional
Department name in capitals, for example AIN.
Sectoroptional
Only public or private schools.

Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key

For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
Endpoint
POSThttps://pullrow.dev/v1/apis/france-lycee-social-index/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
curl -X POST "https://pullrow.dev/v1/apis/france-lycee-social-index/run" \
  -H "Authorization: Bearer $PULLROW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"academy":"LYON"},"max_items":50}'

Inputs

Send them as input in the request body. Leave one out to use its default.

academytext
Academy name in capitals, for example LYON.
example: LYON
departmenttext
Department name in capitals, for example AIN.
sectortext
Only public or private schools.
one of: public, privé sous contrat

What's in each record

16 fields: 14 here, 2 technical ones under Technical details.

Basics

  • Academy name

    Example LYON

  • Department name

    Example AIN

  • School name

    Example LYCEE PROFESSIONNEL ALEXANDRE BERARD LYCEE DES METIERS DE L ENERGIE ET DE L HABITAT

  • INSEE commune code

    Example 01004

  • Commune name

    Example AMBERIEU EN BUGEY

  • Sector

    public or private.

    Example public

  • School type

    Kind of lycée: general and technological, vocational or both.

    Example LP

  • Students

    Pupils in both tracks.

    Example 583

  • Social index

    Social position index, both tracks combined (higher means a more advantaged intake).

    Example 91.5

  • Social index general

    Index for the general and technological track.

    Example 99.2

  • Social index vocational

    Index for the vocational track.

    Example 91.5

  • Std dev general

    Spread of the index, general and technological track.

    Example 33.3

  • Std dev vocational

    Spread of the index, vocational track.

    Example 27.2

Dates

  • Year

    School year, such as 2022-2023.

    Example 2022-2023

Technical detailsField names and types for developers, and the 2 fields hidden above

Hidden by default

These 2 fields come with each record too. They are internal codes, notes about how the record was read or a copy of what was searched for, so the lists above leave them out.

  • ID idThe school's UAI code.
  • School ID school_idThe school's UAI code.

Field names and types

The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.

Field nameTypeShown on this page asFilled
idtextID (hidden)3 of 3
yeartextYear3 of 3
academytextAcademy name3 of 3
departmenttextDepartment name3 of 3
school_idtextSchool ID (hidden)3 of 3
nametextSchool name3 of 3
commune_codetextINSEE commune code3 of 3
communetextCommune name3 of 3
sectortextSector3 of 3
school_typetextSchool type3 of 3
studentsnumberStudents3 of 3
social_indexnumberSocial index3 of 3
social_index_generalnumberSocial index general2 of 3
social_index_vocationalnumberSocial index vocational2 of 3
std_dev_generalnumberStd dev general2 of 3
std_dev_vocationalnumberStd dev vocational2 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordSchool nameAcademy nameDepartment nameINSEE commune codeCommune nameSectorSchool typeStudentsSocial indexSocial index generalSocial index vocationalStd dev generalStd dev vocationalYear
1LYCEE PROFESSIONNEL ALEXANDRE BERARD LYCEE DES METIERS DE L ENERGIE ET DE L HABITATLYONAIN01004AMBERIEU EN BUGEYpublicLP58391.5—91.5—27.22022-2023
2LYCEE POLYVALENT SAINT EXUPERY LYCEE DES METIERS DE L HOTELLERIE ET DES SERVICES LYCEE DES METIERS DES ENERGIES DU BATIMENTLYONAIN01033VALSERHONEpublicLPO89093.699.284.233.324.82022-2023
3LYCEE GENERAL ET TECHNOLOGIQUE DU BUGEYLYONAIN01034BELLEYpublicLEGT652108.7108.7—33.5—2022-2023

Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.

Reliability

Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.

Incidents and repairs

How it is kept working What a repair can't do

A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.

  • You pay only for records returned. A run that returns none costs nothing.
Known limits
  • Data is the French Ministry of Education open data (Etalab open licence): credit "Ministère de l'Éducation nationale" when you republish it.
  • Covers one school year (2022-2023) and about 3,600 lycées; it changes only when the ministry publishes a new year.
  • Schools without a general-technological or vocational track have no index for that track (empty field).
  • Filter names must be written in capitals as the ministry does, for example LYON and AIN.

Version history

A run uses the live version unless the request names another one with version.