AI Quiz Generator avatar

AI Quiz Generator

Pricing

from $3.00 / 1,000 results

Go to Apify Store
AI Quiz Generator

AI Quiz Generator

Create source-grounded AI quizzes, flashcards, scenario questions, Moodle XML, Anki CSV, answer keys, and assessment data for any topic or lesson.

Pricing

from $3.00 / 1,000 results

Rating

0.0

(0)

Developer

Inus Grobler

Inus Grobler

Maintained by Community

Actor stats

0

Bookmarked

6

Total users

2

Monthly active users

5 days ago

Last modified

Share

AI Quiz Generator - Source-Grounded Quiz Maker for LMS, Training, and Study Apps

AI Quiz Generator creates source-grounded quizzes, multiple-choice questions, flashcards, short-answer prompts, scenario questions, answer keys, and explanations for educators, course creators, LMS teams, training managers, and learning product builders.

Use it to turn a topic, lesson text, public article, policy document, training module, or study guide into structured assessment data that is easy to export from Apify as JSON, CSV, Excel, Moodle XML, Anki CSV, or through the API.

Main Use Cases

  • Create LMS quizzes and online course assessments.
  • Generate multiple-choice question banks from lesson notes or public source pages.
  • Build flashcards and Anki study decks from a topic or source text.
  • Draft corporate training, onboarding, policy, and compliance checks.
  • Create scenario-based assessment questions for practical learning.
  • Build trivia sets for apps, games, newsletters, and events.
  • Produce revision quizzes with learning objectives, subtopics, and explanations.

What Data You Get

Each dataset item is one quiz question.

FieldDescription
questionNumberThe question's position in the quiz.
type / questionTypeQuestion format: multiple_choice, short_answer, true_false, fill_in_blank, matching, flashcard, or scenario.
questionThe generated question text.
scenarioCase-study context for scenario questions.
optionsFour answer choices for multiple-choice and true/false questions.
correctAnswerCorrect option text for multiple-choice and true/false questions.
idealAnswerSuggested answer for short-answer, fill-in-blank, flashcard, matching, and scenario questions.
pairsPrompt and match pairs for matching questions.
explanationShort explanation that gives learners context.
subtopicSubtopic covered by the question.
learningObjectiveLearning objective connected to the question, when provided or inferred.
bloomLevelApproximate Bloom's taxonomy level.
qualityScoreOptional AI review score from 0 to 1.
qualityWarningsOptional quality review warnings.
teacherNotesOptional note for teachers, trainers, or reviewers.
audience, language, sourceModeRun settings used for the item.
metaTopic, metaQualityTier, metaDifficulty, metaModel, metaPreset, metaGeneratedAtGeneration metadata.

Input Configuration

Only topic is required. The other fields have defaults, so clients can start with a one-field input and add controls only when needed.

FieldDefaultWhat it means
topicBasic Python programming conceptsThe subject of the quiz. In source-grounded mode, this describes the source material.
total_questions10Number of questions to generate. Minimum 1, maximum 100.
quiz_presetstandard_quizPreset question mix: classroom quiz, corporate training, certification practice, trivia game, flashcards, exam revision, or standard quiz.
difficultymediumeasy, medium, or hard.
quality_tierstandardstandard for cost-effective generation, premium for specialist or higher-accuracy questions.
source_textemptyOptional lesson notes, policy text, article text, or training material to generate from.
source_urls[]Optional public URLs to use as source material. Best for readable HTML or text pages.
audienceemptyOptional learner group, such as Grade 9 learners, new employees, or cybersecurity beginners.
learning_objectives[]Optional objectives to cover and tag in the output.
languageEnglishLanguage for generated questions and answers.
output_formats["dataset"]Optional extra files: moodle_xml, anki_csv, and summary_json. Dataset output is always produced.

The Actor also accepts common camelCase aliases for API users, including totalQuestions, qualityTier, sourceText, sourceUrls, learningObjectives, and outputFormats.

Example Input

{
"topic": "Cybersecurity awareness training for new employees"
}

This one-field input creates a 10-question standard quiz with the default balanced settings.

Advanced Example

{
"topic": "Cybersecurity awareness training for new employees",
"total_questions": 12,
"quiz_preset": "corporate_training",
"difficulty": "medium",
"quality_tier": "standard",
"audience": "new office employees",
"learning_objectives": ["Recognize phishing warning signs", "Choose safe password practices"],
"output_formats": ["dataset", "moodle_xml", "anki_csv", "summary_json"]
}

Source-Grounded Example

{
"topic": "Company remote work policy",
"total_questions": 8,
"quiz_preset": "classroom_quiz",
"source_text": "Paste your policy, lesson notes, article, or training material here...",
"difficulty": "medium",
"quality_tier": "standard"
}

Example Output

{
"questionNumber": 1,
"type": "scenario",
"questionType": "scenario",
"scenario": "An employee receives an email asking them to reset a password through an unfamiliar link.",
"question": "What should the employee do before taking action?",
"options": null,
"correctAnswer": null,
"idealAnswer": "They should avoid clicking the link, verify the message through an approved channel, and report it according to the security process.",
"explanation": "Phishing messages often use urgent links to capture credentials. Verification and reporting reduce risk.",
"subtopic": "Phishing awareness",
"learningObjective": "Recognize phishing warning signs",
"bloomLevel": "apply",
"qualityScore": 0.93,
"qualityWarnings": [],
"teacherNotes": "Good practical scenario for discussion or LMS feedback.",
"audience": "new office employees",
"language": "English",
"sourceMode": "topic",
"metaTopic": "Cybersecurity awareness training for new employees",
"metaQualityTier": "standard",
"metaDifficulty": "medium",
"metaModel": "openai/gpt-4o-mini",
"metaPreset": "corporate_training",
"metaGeneratedAt": "2026-06-09T17:07:02.441041+00:00"
}

Export Files

The dataset is always available from the Dataset tab. When selected, extra export files are saved to the run's key-value store:

FormatBest for
moodle_xmlImporting questions into Moodle-style quiz workflows.
anki_csvCreating flashcard decks or study cards.
summary_jsonReviewing question type counts, subtopics, quality scores, and source URLs.

How To Run On Apify

Open the Actor on Apify, enter a topic or source material, choose a preset or question-type counts, select difficulty and quality settings, then start the run. Results are pushed to the dataset after each completed batch, so partial results can still be useful if a later batch fails.

For best results, use a specific topic such as Newton's laws of motion for Grade 9 physics instead of a broad topic such as science.

Export And Download Results

After the run finishes, open the Dataset tab to download JSON, CSV, Excel, XML, or HTML. For Moodle XML, Anki CSV, and summary JSON, open the run's key-value store or use the output links shown by Apify.

You can also connect the dataset or key-value store records to another workflow through the Apify API.

Python API Example

from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_API_TOKEN")
run_input = {
"topic": "Basic Python programming concepts",
}
run = client.actor("thescrapelab/Apify-Quiz-Generator").call(run_input=run_input)
dataset_id = run["defaultDatasetId"]
items = client.dataset(dataset_id).list_items().items
for item in items:
print(item["question"])
print("Type:", item["type"])
print("Answer:", item.get("correctAnswer") or item.get("idealAnswer"))
print("Explanation:", item["explanation"])

Difficulty And Quality Tips

SettingBest for
easyBeginners, introductory lessons, broad review.
mediumCourse checks, revision quizzes, general assessments.
hardAdvanced learners, specialist topics, expert trivia.
standardHigh-volume and cost-sensitive quiz generation.
premiumTechnical, academic, or specialist topics where accuracy matters more.
Source text or URLsBest for quizzes that must follow specific material.

Pricing

This Actor is designed for pay-per-event pricing. Each dataset item represents one generated quiz question. Premium mode can charge an additional premium-question event because it uses a higher-quality model and is intended for specialist content.

Recommended monetization:

  • Keep simple per-question pricing for generated dataset items.
  • Keep a premium-question surcharge for quality_tier: "premium".
  • Avoid a high Actor-start fee so small test runs stay easy to try.
  • Keep platform usage either included in the per-question price or transparently passed through; measured platform usage is low at the 256 MB memory setting.

Limits And Caveats

  • Maximum quiz size is 100 questions per run.
  • Source-grounded mode depends on readable source text or public source URLs.
  • Public pages that require login, heavy JavaScript, or anti-bot checks may not be readable as source URLs. Paste the relevant text instead.
  • AI-generated quiz content should be reviewed before use in high-stakes exams, legal, medical, compliance, or certification settings.
  • Very broad topics can produce generic questions. Specific topics, source text, learning objectives, and audiences produce better results.
  • Hard questions and premium mode can take longer because they may use extra model work.
  • The Actor does not guarantee that every generated fact is perfect.

Troubleshooting

ProblemWhat to try
The topic is rejectedUse at least 5 characters and describe the subject clearly.
Source material is not used wellProvide clearer source_text or use public source URLs that return readable text.
Results feel too genericAdd source text, learning objectives, audience, and a more specific topic.
Results feel too easyUse difficulty: "hard" and consider quality_tier: "premium".
Runtime is longer than expectedUse fewer questions, difficulty: "easy", or quality_tier: "standard".
A run fails after some progressCheck the dataset first; completed batches are saved during the run.
Output needs manual reviewExport the dataset to CSV or Excel for editorial review.
LMS import needs a fileSelect moodle_xml in output_formats.
Flashcard app import needs a fileSelect anki_csv in output_formats.

FAQ

Can this Actor generate multiple-choice questions?

Yes. Choose a preset such as standard quiz, classroom quiz, corporate training, or certification practice.

Can it generate flashcards?

Yes. Choose the flashcards preset.

Can it generate questions from my own text?

Yes. Provide source_text. The Actor automatically treats pasted source material as grounded context.

Can it generate questions from a web page?

Yes, for public readable pages. Add the page URL to source_urls. If the page requires login or renders most content with JavaScript, paste the source text instead.

Can it create Moodle XML?

Yes. Add "moodle_xml" to output_formats.

Can it create Anki flashcard CSV files?

Yes. Add "anki_csv" to output_formats.

What is the best setting for low-cost quiz generation?

Use quality_tier: "standard" with difficulty: "easy" or medium.

What is the best setting for expert or technical quizzes?

Use difficulty: "hard" and quality_tier: "premium".

Does the Actor save partial results?

Yes. Completed batches are pushed to the Apify dataset while the run is still progressing.

Can I use this for exams?

You can use it to draft exam questions, but review the output before using it in high-stakes assessments.

Keywords

AI quiz generator, source-grounded quiz generator, multiple choice question generator, flashcard generator, Anki CSV generator, Moodle XML quiz generator, short answer question generator, scenario question generator, true false quiz generator, fill in the blank question generator, matching question generator, assessment generator, LMS quiz generator, e-learning quiz creator, training quiz generator, education question bank generator, AI question generator.