cpge_exercises

List Cpge Exercises

Retrieve CPGE exercises from public_exercises (library='cpge').

Preserves the legacy API shape: the storage is unified since migration 013, but the router still returns CPGEExerciseOut and accepts the old filiere/banque/type_exercice triplet.

  • filiere: Optional filiere to filter by (e.g. MP, PSI, PC)
  • banque: Optional banque to filter by (e.g. X, ENS, Centrale, Mines Pont, CCINP)
  • type_exercice: Optional chapter slug to filter by
  • random_selection: If True, returns a single random exercise from the filtered results
get/cpge-exercises

Query parameters

filierestring nullable

Filter by filiere (e.g. MP)

Filter by filiere (e.g. MP)

banquestring nullable

Filter by banque (e.g. X)

Filter by banque (e.g. X)

type_exercicestring nullable

Filter by type (e.g. Algèbre)

Filter by type (e.g. Algèbre)

random_selectionboolean

Select one random exercise from matches

Select one random exercise from matches

Response

Successful Response

idstring required
filierestring required
banquestring required
type_exercicestring required
contentstring required
solutionstring required
figure_contentstring nullable
figure_solutionstring nullable
hints1string nullable
hints2string nullable
hints3string nullable
created_atstring date-time required
updated_atstring date-time required

Changes

No recorded changes to this endpoint across all 2 revisions of this API.