/education namespace · APlicious

Quiz generator API — structured quiz questions with answers and explanations

POST /education/quiz-generator with a subject, topic, and count to get structured multiple-choice questions — each with four options, the correct answer, difficulty tag, and a plain-language explanation.

11education endpoints
Get free API key View docs
POST /api/v1/education/quiz-generator
const res = await fetch('https://aplicious.com/api/v1/education/quiz-generator', {
  method: 'POST',
  headers: { 'X-API-Key': 'lapi_live_••••', 'Content-Type': 'application/json' },
  body: JSON.stringify({ subject: 'python', topic: 'loops', count: 5 }),
});
const { data } = await res.json();
// { questions: [{ question: "What does a 'for' loop iterate over in Python?",
//   options: ["A list","A file","A number","A string"], correct_answer: 0,
//   explanation: "Python 'for' loops iterate over any iterable..." }] }

No credit card · Free to start · X-API-Key header auth

What's included in /education

Multiple-choice with explanations

Every question includes four options, a correct_answer field, and an explanation — not just a grade.

Subject and topic parameters

Pass subject='python' and topic='loops' for targeted quizzes — broad topics like 'basics' return fewer results; specific topics like 'loops' or 'functions' work best.

Count control

Request 1–20 questions per call — mix subjects across calls to build a full test bank.

Pairs with /education/flashcard-set

Use quiz questions for active recall testing and flashcard sets for spaced repetition — both from the /education namespace.

Pairs with /education/study-plan

Generate a study plan then auto-produce quizzes for each week's topic — two POST calls, one learning pipeline.

Start using the quiz API today

Free tier — 250 calls/month, no credit card. Upgrade when you need more.

Get free API keyExplore /education docs

Frequently asked questions

What topics work best?

Specific topics (loops, variables, functions, sorting) return good results. Broad topics (basics, introduction) may return 0 — be specific.

Are explanations always included?

Yes — every question in the response includes the correct answer index and a plain-language explanation.

Can I generate quizzes for non-programming subjects?

Yes — subject can be 'mathematics', 'biology', 'history', etc. The model generates questions for any topic with sufficient training coverage.

Related API guides

University Search API — 10,000+ Institutions Worldwide

Search universities by name and country from an MIT-licensed dataset of 10,000+

Read guide

Flashcard API — Curated Decks for Python, SQL, Economics

GET curated flashcard decks for Python, JavaScript, SQL, React, Economics, Biolo

Read guide

Remote Jobs API — Search, Filter, Categories — Free

Free REST API for remote job listings. Search by keyword, category, or company.

Read guide

One key unlocks all 10 namespaces — finance, legal, property, jobs, wellness, and more.

View all plans and pricing →