Data Collection in H5P with xAPI
H5P allows learning platforms to collect information about how learners interact with interactive content. This is typically done through xAPI (Experience API) statements. These statements describe what a learner did in an activity, such as answering a question or completing a task. However, an important limitation is often overlooked: not every H5P content type sends xAPI statements. Because of this, data collection is only possible for content types that actually implement xAPI tracking.
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 you open a report and no answers are shown, the most common reason is that the H5P content type used in that activity does not support xAPI statements. Without xAPI statements, the platform receives no information about learner interactions. As a result, answers cannot be recorded, scores cannot be calculated, and no learner data appears in reports. The activity itself still works normally for learners—it simply does not produce trackable data.
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.
Summary
H5P uses xAPI statements to record learner interactions, but only content types that implement xAPI coverage can generate trackable data. If answers or results are missing in reports, it is most likely because the selected H5P content type does not send xAPI statements, and therefore no interaction data can be collected.