Data Collection in H5P with xAPI
Check which H5P events a deployment collects, connect an external xAPI 1.0.3 Learning Record Store, and verify or retry an assignment delivery.
What is xAPI?
xAPI (Experience API) is a standard used in e-learning to record learning activities. Learning actions are stored as structured statements that typically follow the pattern Actor – Verb – Object. For example: Learner answered a Multiple Choice question, Learner completed a Question Set, or Learner interacted with an Interactive Video. These statements can then be stored in a Learning Record Store (LRS) or processed by the learning platform to display reports and learner analytics. In H5P, content types generate these statements when users interact with them.
How H5P Generates xAPI Data
Many H5P content types generate xAPI statements when learners perform specific actions. For example, when a learner selects an answer in a Multiple Choice question, an interaction statement may be sent. When the learner submits an answer, an answered statement can be generated containing the learner’s answer and the correct answer. Other question-based content types send similar statements. Fill in the Blanks sends statements when the learner enters an answer or checks the result. Drag and Drop can send statements when items are placed or when the learner checks their answer. Interactive Video can send statements when embedded questions are answered. These statements allow platforms to display learner answers, scores, and completion information.
Checking xAPI Support for a Content Type
You can check whether a specific H5P content type sends xAPI statements on the H5P website: https://h5p.org/content-types-and-applications. When you open a content type example, you will find a tab called “xAPI Coverage.” This section explains which xAPI statements the content type sends, when those statements are triggered, and what kind of data is included in the statements. This is the most reliable way to verify whether a content type supports tracking.
Why Some Activities Show No Answers
If a Lumi report is empty, first check that the deployment has data collection enabled. Open it as a learner and submit a response. When the activity is launched through an LMS, instructor previews and anonymous practice are untracked. If other events appear but answers are missing, check whether the H5P content type emits an answer when the learner submits. For an external LRS, also check whether the workspace allows individual learner responses to be sent.
Best Practice
If collecting learner responses or analytics is important, use question-based H5P content types that support xAPI statements. Before creating an activity, check the xAPI Coverage tab on the H5P content type page to confirm that the content type provides the data you want to collect.
Send statements to your institution’s LRS
To forward records from an LMS assignment, set up the destination for the workspace, then enable it for that assignment. The Moodle gradebook and the LRS receive different information. A teacher can use either destination or both. See Connect Moodle and assign Lumi activities with LTI 1.3 for the course setup.
As a workspace Owner or Admin, open Workspace settings → Learning integrations → LRS. If the LRS tab is unavailable, first save the LMS registration for this shared workspace.
Enter the LRS base URL under xAPI 1.0.3 endpoint, for example
https://lrs.example.edu/xapi. Use the base endpoint provided by the LRS administrator. Enter the Authorization header they supply, including theBasicorBearerprefix. Lumi keeps the saved credential when you leave the field blank for the same endpoint. Changing the endpoint requires a credential for the new destination.Select Allow delivery from opted-in assignments. Enable Include individual learner responses only if your institution wants raw answer text sent to the LRS. Select Save LRS settings and then Test saved endpoint. The test checks the LRS’s advertised support for xAPI 1.0.3.
When adding an activity from the LMS picker, the teacher selects both Collect learner activity in Lumi and enable save and resume and Send collected activity to this workspace’s external LRS. For an existing tracked assignment, an Owner or Admin can open Learning integrations → Assignments, check the course and resource, then select Approve delivery to this LRS or Disable delivery.
To verify write access, launch the assignment as a learner and submit an answer to a question that emits an xAPI statement. Check for the new statement in the LRS. It includes a workspace-scoped pseudonymous learner account, activity and assignment identifiers, an attempt identifier, the verb and available results.
Check or retry a delivery
The connection test passes, but the LRS has no statement. Confirm that the assignment has opted in, collection is enabled and your pilot was a learner launch. Check that the LRS credential permits statement writes. Open Learning integrations → Deliveries, clear Failed deliveries only to see other statuses, and select Refresh. The list shows up to 50 recent deliveries matching the filter.
A delivery failed. Inspect the error on the xAPI entry, correct the endpoint or credential issue and select Retry. Lumi reuses the original statement ID. Grade return and xAPI have separate delivery entries, so check the one for the destination you are troubleshooting.
The institution changed its LRS. Save and test the new endpoint and credential, approve the new destination for each existing tracked assignment in Assignments, and relaunch the activity. New activity can then go to the new destination. Previously queued statements remain bound to the destination they were originally intended for.
Summary
For local reports, use a deployment with collection enabled and an H5P activity that emits the events you need. For an external LRS, enable the destination for the workspace and the assignment, then verify one real learner submission in the LRS.
Was this helpful?
More in Technical
H5P LibrariesBehavioural Settings in H5PStill need help? Ask the team