From EduTechWiki - Reading time: 4 min
According to ADL (retrieved June 2016) “The Experience API (xAPI) is an open source specification that allows you to track any experience (i.e., formal, informal, or operational). xAPI can track reading an article or interacting with an eBook, watching a training video, chatting with a mentor, physiological measures such as heart-rate data, quiz scores, and answer history by question.”. According to a more recent definition (retrieved April 2019), the “Experience API (xAPI) is a technical specification that aims to facilitate the documentation and communication of learning experiences. It specifies a structure to describe learning experiences and defines how these descriptions can be exchanged electronically.”. In more simple terms, the XAPI allows tracking of online student activities in various environments . It stores the data in a special purpose database - a socalled Learning Record Store - from which it then can be retrieved for various purposes, e.g. student monitoring or institutional learning analytics.
See also:
According the official developer home page on Github (retrieved April 2019), the goals of the xAPI are:
The API includes three major components:
The following figure defines how learner experience is tracked

A learner has a learning experience. This experience could take place in an online course, it could be on the job or it could be part of recreation. It really could be anything. This experience is tracked, on the learner’s behalf, by a trusted Learning Record Provider (LRP). The Learning Record Provider can also be responsible for the trusted relationship between the experience and the learner. This might even include launching content for the learner and managing digital rights associated with the content.
The Learning Record Provider creates Learning Records and sends them to one or more Learning Record Stores (LRSs). The LRS stores the Learning Records and makes them available to any authorized Client. A Learning Record Consumer (LRC) is a type of Client that accesses Learning Records and makes use of them.
An XAPI statement is “a data structure showing evidence for any sort of experience or event which is to be tracked in xAPI as a Learning Record. A set of several Statements, each representing an event in time, might be used to track complete details about a learning experience.” (xAPI About)
The statement includes: Actor Verb Activity Additional Properties
Let us consider the statements "I did this" and "User X uploaded a file called King.pdf"
At the heart of the xAPI statements are Activities. Activities are defined with metadata, either by including or by reference.

Formally speaking, Part two: experience API Data (retrieved April 2019), defines the following requirement for experience Data:
Below is a simple example statement in JSON format:
{
"id":"fd41c918-b88b-4b20-a0a5-a4c32391aaa0",
"timestamp": "2015-11-18T12:17:00+00:00",
"actor":{
"objectType": "Agent",
"name":"Project Tin Can API",
"mbox":"mailto:user@example.com"
},
"verb":{
"id":"http://example.com/xapi/verbs#sent-a-statement",
"display":{
"en-US":"sent"
}
},
"object":{
"id":"http://example.com/xapi/activity/simplestatement",
"definition":{
"name":{
"en-US":"simple statement"
},
"description":{
"en-US":"A simple Experience API statement. Note that the LRS
does not need to have any prior information about the Actor (learner), the
verb, or the Activity/object."
}
}
}
}

Each experience data that is stored through an XPI statement corresponds to a persona.
In the figure above, a learner accesses multiple services. “Some of these services are used at work, others at home. Some are used for social purposes and others are used for educational or professional puproses. Thus, there are multiple personas functioning collectively within these services. Each of these services send data to the LRS. Afterwards, there are Statements from three different personas of the same learner” (xAPI-About (retrieved April 2019).
A learner sending Learning Records to an LRS could have multiple personas (Agents) associated with him or her and the LRS can then in principle aggregate all of the information of each of the personas into a single "Person" Object. How this can be done and controlled is not part of the specification.
A large part of contents from the Experience API specification, "Copyright 2013 Advanced Distributed Learning (ADL) Initiative, U.S. Department of Defense". These contents are licensed under the Apache License, Version 2.0. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. In short, you can reuse the reused material in any way if you cite the original Experience API source.