A comprehensive public API providing access to educational resources for the entire Moroccan education system - from Primary to Baccalaureate
v1.0.0 API OnlineGet all education levels (Primary, Middle School, High School)
Get all subjects with optional level filtering
Get educational content (courses, exercises, exams)
Search across all educational resources
Get API statistics and metadata
API health check endpoint
# Fetch all education levels
curl "http://moroccan-education-api.up.railway.app/api/v1/levels"
# Get subjects for a specific level
curl "http://moroccan-education-api.up.railway.app/api/v1/subjects?level_id=lycee-2bac"
# Search for mathematics content
curl "http://moroccan-education-api.up.railway.app/api/v1/search?q=mathematiques"
// Fetch mathematics courses for Baccalaureate
const response = await fetch('http://moroccan-education-api.up.railway.app/api/v1/content?subject_id=mathematiques-lycee-2bac');
const data = await response.json();
console.log(data.data); // Array of educational content