xAPI for course designers: what gets recorded, and when you need an LRS
A designer's guide to xAPI: what a statement looks like, what a course typically records, how it differs from SCORM, and when you actually need a Learning Record Store.
If you design courses, you’ll hear “we should use xAPI” long before anyone explains what it changes for you. This post skips the specification and answers three practical questions: what gets recorded, where it goes, and whether you need anything new.
For the wider comparison with SCORM and cmi5, see SCORM, xAPI and cmi5, explained.
A statement is a sentence
xAPI records activity as statements. Each one has three main parts:
- an actor: who did it (the learner),
- a verb: what they did (completed, passed, answered, experienced),
- an object: what they did it to (a course, a slide, a question).
Many statements also carry a result, such as a score, a success flag or a duration. A statement for a quiz could read, in plain words: “Sam passed Safety quiz with a score of 85%.”
That sentence shape is the point. SCORM gives a course a fixed set of fields to report. xAPI lets a course report any sentence it can describe.
What a course typically records
What gets sent depends on the tool that built the course and how you set it up. In SCORMCraft’s xAPI export, the course records:
- each slide the learner reaches,
- completion,
- pass or fail, with the score.
That’s a modest list, and it’s a useful one: it tells you how far people got and how they did, and slide-level records show the path a learner took.
Check what your own tool records before you promise anyone a particular report. If a stakeholder wants to know which answer people choose most often, confirm that the course sends answer-level statements. Don’t assume it does.
Where statements go
Statements are sent to a Learning Record Store (LRS). An LRS is a database that receives, stores and returns statements. Some LMSs include one. Others need a separate LRS, either hosted for you or run by your team.
You need to know this before you publish, because it decides where your data lives and who can see it.
When you need an LRS, and when you don’t
You probably don’t need an LRS if:
- your LMS handles your course with SCORM and its completion and score reports are enough,
- nobody has asked a question the LMS can’t answer.
You probably do need one (or an LMS that has one built in) if:
- you want to analyse the path through a course, not only the outcome,
- you want to collect learning from several sources, such as courses, simulations and on-the-job tools, in one place,
- your LMS only accepts xAPI for a given kind of content,
- a data or analytics team wants to query learner activity directly.
If you aren’t sure, ask your LMS admin one question: “Does our LMS accept xAPI content, and does it have an LRS?” The answer is usually quick.
What xAPI does not do for you
Two things trip people up.
xAPI doesn’t define launch or completion rules on its own. It describes what to record. It doesn’t say how an LMS should open a course or when a course counts as finished. Two tools can both say they “support xAPI” and still behave differently in your LMS, which is why testing matters.
More statements means more to analyse. A course that records every click produces a lot of data and not necessarily any insight. Decide what question you want answered, then check the course can record the data to answer it.
A designer’s checklist before you pick xAPI
- What decisions will this data inform? Write down one or two.
- Does the LMS or LRS accept the package you plan to publish?
- Who owns the data, and who can see it?
- What does the course record: slides, completion, score, answers?
- Have you tested a full run, including quitting and coming back?
The last point is covered in test a SCORM package before it reaches your LMS, and most of that checklist applies to xAPI too.
xAPI in SCORMCraft
SCORMCraft is free and open source, and exports xAPI (Tin Can) alongside SCORM 1.2, SCORM 2004 and a plain website. Choose it under File → Export when your LMS or LRS uses xAPI; the Export help page has the steps. cmi5 isn’t available yet, and it is listed as coming on the comparison page.
If you’re unsure which format to pick, SCORM 1.2 is the safe default. Choose xAPI when you’ve confirmed the destination can receive it. Download SCORMCraft and export the same course in two formats to compare what each one sends.