Home › Quizzes › Platforms & LMS › Moodle Quiz API vs Moodle XML Import

Turn your notes into Moodle quiz questions without API coding

Upload your course material, get multiple-choice, true/false or short answer questions with explanations, and export them as Moodle XML for your question bank.

Create quizzes nowFree · No credit card required

Free account · 3 sets a month · Creates quizzes in seconds

Creating Moodle quiz questions without writing API calls

Most people who type moodle quiz api want to push questions into Moodle from code, but DeckOwl does not provide a Moodle web services connection. What it does provide is a faster way to write the questions themselves.

  • Multiple choice, true/false and short answer questions
  • Explanations on every question
  • Moodle XML and QTI 2.1 export on Pro
  • Free plan: 3 generations per month, study in the browser
Example Moodle XML quiz question elements for import
Which element holds the prompt text of a question in Moodle XML?The questiontext element, with its text child, holds the prompt. Moodle reads the question wording from there when importing.
What fraction value marks the correct answer in a multichoice answer element?A fraction of 100 marks the correct answer and 0 marks wrong ones. Moodle uses the fraction as a percentage of the question grade.
Which Moodle web service function returns quiz instances for a list of courses?mod_quiz_get_quizzes_by_courses returns quiz settings for the courses you pass in. It is useful for finding quiz IDs before adding questions.
Which Moodle import option reads a question file in this structure?Choose Moodle XML format under Question bank, then Import. The file must follow this structure or Moodle will reject the questions.
Which parameter authenticates a call to Moodle's REST web services endpoint?The wstoken parameter, sent with wsfunction and moodlewsrestformat. Each REST call needs a valid token to run.
Generate the full set

Questions from your own material

Upload PDFs, DOCX, PPTX, plain-text notes or photos of pages and get questions based on what you actually teach.

Multiple choice, true/false and short answer

Each question comes with an explanation so students learn why an answer is right, not just which letter to pick.

Moodle XML export on Pro

The Pro plan exports Moodle XML and QTI 2.1 files so you can import questions into a Moodle question bank.

How it works

Upload your source

Add a PDF, slide deck, Word file or notes. Photos of pages are read with text recognition.

Pick question types

Choose multiple choice, true/false or short answer, then generate and check each question before using it.

Export and import

On Pro, export Moodle XML and import the file under Question bank, then Import in Moodle.

Upload a PDF, DOCX, PPTX, text file or photo of a page and DeckOwl generates multiple-choice, true/false or short answer questions with explanations. You check each question before it goes into a graded quiz, so a wrong answer does not reach your students by accident.

On the Pro plan you can export Moodle XML and import the file into your course question bank. Developers who want direct control can still use Moodle's own web services, but for most course quizzes the import route takes minutes instead of a full integration project.

Explore related topics

Frequently asked questions

Does Moodle have a quiz API I can use to create questions?

Moodle exposes web services for developers, and quiz data can be read through them, but many teachers find XML import simpler for adding a batch of questions at once.

What is the Moodle XML question format?

It is an XML file where each question has a type, a name, question text and answer options, with a fraction of 100 marking the correct answer. Moodle reads the file through its question bank import.

Is Moodle XML export free on DeckOwl?

No. Moodle XML export is part of the Pro plan at $14.99 per month, while the free plan includes three generations per month and study in the browser only.

Do I need a credit card to try it?

No. You can start on the free plan without a credit card and generate questions from your own material.

Generate free quizzes

Keep exploring the topic

Review the main ideas visually or practice recalling them.