Moroccan Education API

A comprehensive public API providing access to educational resources for the entire Moroccan education system - from Primary to Baccalaureate

v1.0.0 API Online
school
12
Education Levels
menu_book
117
Subjects
description
2269
Educational Contents
language
2
Languages (FR/AR)
api Interactive Docs description API Reference

bolt Quick Endpoints

GET
/api/v1/levels

Get all education levels (Primary, Middle School, High School)

GET
/api/v1/subjects

Get all subjects with optional level filtering

GET
/api/v1/content

Get educational content (courses, exercises, exams)

GET
/api/v1/search?q={query}

Search across all educational resources

GET
/api/v1/stats

Get API statistics and metadata

GET
/health

API health check endpoint

code Quick Start

# 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"

JavaScript Example

// 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

Python Example