Skip to main content
v2026.11,986 entries · CC-BY 4.0

xAPI (Experience API): Statements, LRS and Reporting

What an xAPI statement contains, how to read a scaled score, and how to report xAPI data in research, based on ADL’s specification and IEEE 9274.1.1-2023.

Written and maintained by CASRAI Editorial Board

Published

On this page

xAPI, the Experience API (formerly Tin Can API), is a specification for recording learning experiences as machine-readable statements and sending them to a learning record store. This guide is for education researchers and learning-technology teams who need to understand what an xAPI statement contains, build one, read its score fields correctly and describe it in a methods section.

What is xAPI (the Experience API)?

xAPI is a specification from the Advanced Distributed Learning (ADL) Initiative for documenting and communicating learning experiences. It uses a REST-style web service and JSON serialization. Each experience is recorded as a statement that says, in effect, “I did this”: an actor, a verb and an object. Statements are received, stored and served by a learning record store (LRS). The specification has gone through versions 0.9 (2012-03-31), 0.95 (2012-08-31), 1.0.0 (2013-04-26), 1.0.1 (2013-10-01), 1.0.2 (2014-10-01) and 1.0.3 (2016-09-21).

The standardised form is IEEE 9274.1.1-2023, “IEEE Standard for Learning Technology: JavaScript Object Notation (JSON) Data Model Format and Representational State Transfer (RESTful) Web Service for Learner Experience Data Tracking and Access”. IEEE lists it as active, published 2023-10-06, and describes it as standardizing and improving xAPI 1.0.3 as a JSON data model and RESTful web service between learning activities and an LRS.

xAPI statement structure: the properties and what each means

The data specification states that a statement MUST use actor, verb and object. Everything else is optional or set by the LRS.

Property Role Requirement per the ADL data specification
actor Who did it (“I”) Required
verb What was done (“did”); identified by an IRI Required; the verb id MUST be an IRI
object What it was done to (“this”) Required
id Unique statement identifier Recommended; the LRS generates one if omitted
result Outcome, including score Optional
context Surrounding circumstances Optional
timestamp When the experience happened Optional
stored When the LRS recorded it Set by the LRS
authority Who vouches for the statement Optional
attachments Supporting files Optional

A verb has an IRI (for example http://adlnet.gov/expapi/verbs/completed) and a human-readable display text. The specification requires systems to use the IRI, not the display text, to determine meaning.

Worked example: building a statement and reading a scaled score

Suppose a learner answers a 40-point quiz and earns 36 points. xAPI stores the score in result.score. The scaled value is a decimal from -1 to 1 inclusive. With a minimum of 0, a maximum of 40 and a raw score of 36, the arithmetic is: scaled = 36 / 40 = 0.9. The statement below records that.

{  "actor": {"objectType": "Agent", "name": "Learner 0417", "account": {"homePage": "https://example.org", "name": "u0417"}},  "verb": {"id": "http://adlnet.gov/expapi/verbs/completed", "display": {"en-US": "completed"}},  "object": {"objectType": "Activity", "id": "https://example.org/activities/quiz-3"},  "result": {"score": {"scaled": 0.9, "raw": 36, "min": 0, "max": 40}}}

The names, domain and activity address are placeholders for illustration; they do not refer to a real course or learner.

Interpretation: how to read an xAPI result

Value What it means
scaled = 0.9 On the -1 to 1 range, the learner is at 0.9; with min 0 and max 40 it equals raw 36 divided by max 40
scaled outside -1 to 1 Not valid: the specification limits scaled to -1 to 1 inclusive
Two statements, same actor, verb and object Two separate recorded experiences, not a duplicate to be merged by default
Verb display text differs, IRI identical The same verb: meaning comes from the IRI

A scaled score is a normalised number, not a judgement. Whether 0.9 counts as mastery is decided by the course or study design, not by xAPI.

Assumptions and common mistakes

  • Treating display text as identity. Two vendors may display the same verb differently; compare the verb IRI.
  • Editing a stored statement. With some exceptions, statements are immutable. To retract one, send a new statement using the voiding verb http://adlnet.gov/expapi/verbs/voided that refers to it.
  • Assuming result is always present. It is optional, so analyses should handle statements with no score.
  • Confusing timestamp with stored. One is when the experience happened, the other when the LRS recorded it.
  • Identifying learners carelessly. If actor fields carry names or email-based identifiers, they are personal data. Plan for this in your consent and data management documents; see informed consent, pseudonymisation, digitally anonymised data and the data management plan. (This point is editorial guidance, not part of the xAPI specification.)

The learning record store (LRS)

The LRS is responsible for receiving, storing and providing access to learning records. The specification names two roles: a Learning Record Provider, which sends statements, and a Learning Record Consumer, which retrieves them. For research, the LRS is the system of record you export from, so note which LRS and which version of the specification it implements.

How to report xAPI data in a methods section

State the specification, the LRS, the statement properties you analysed and how you handled identifiers. An illustrative wording:

Learner interactions were recorded as xAPI statements (IEEE 9274.1.1-2023; xAPI 1.0.3) in a learning record store. Analyses used the actor, verb (by IRI), object, timestamp and result.score.scaled properties. Actor identifiers were replaced with study codes before export.

Reference entry: IEEE. (2023). IEEE standard for learning technology: JavaScript Object Notation (JSON) data model format and representational state transfer (RESTful) web service for learner experience data tracking and access (IEEE Std 9274.1.1-2023). https://standards.ieee.org/ieee/9274.1.1/7321/

How to send an xAPI statement in Python or R

Statements are sent with an HTTP POST to the LRS statements resource, with an X-Experience-API-Version header. The endpoint and credentials come from your LRS.

# Pythonimport requestsstatement = {  "actor": {"account": {"homePage": "https://example.org", "name": "u0417"}},  "verb": {"id": "http://adlnet.gov/expapi/verbs/completed", "display": {"en-US": "completed"}},  "object": {"id": "https://example.org/activities/quiz-3"},  "result": {"score": {"scaled": 36/40, "raw": 36, "min": 0, "max": 40}}}r = requests.post("https://YOUR-LRS/xapi/statements", json=statement,                  headers={"X-Experience-API-Version": "1.0.3"},                  auth=("KEY", "SECRET"))print(r.status_code, r.text)
# Rlibrary(httr)stmt <- list(  actor = list(account = list(homePage = "https://example.org", name = "u0417")),  verb = list(id = "http://adlnet.gov/expapi/verbs/completed"),  object = list(id = "https://example.org/activities/quiz-3"),  result = list(score = list(scaled = 36/40, raw = 36, min = 0, max = 40)))r <- POST("https://YOUR-LRS/xapi/statements", body = stmt, encode = "json",          add_headers("X-Experience-API-Version" = "1.0.3"),          authenticate("KEY", "SECRET"))status_code(r)

FAQ

What does xAPI stand for?

xAPI is the short name for the Experience API, previously called Tin Can API. It is an ADL Initiative specification, now also standardised as IEEE 9274.1.1-2023.

What is a learning record store?

An LRS is the system that receives, stores and provides access to xAPI learning records.

Can an xAPI statement be changed after it is stored?

With some exceptions, no. Statements are immutable; a statement is retracted by voiding it with a new statement.

Which part of a statement is mandatory?

Actor, verb and object.

Sources

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · full access

Ask about xAPI (Experience API): Statements, LRS and Reporting

Full access: large monthly usage, up to 10 source passages behind each answer, and MCP and API access for Claude Code, Codex and other CLIs. Cancel any time.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →