Skip to main content
ExplainerE-Learning StandardsxAPI· 7 min read· in Education

Synchronous Browser DOM Calls vs RESTful JSON Statements: How xAPI Decouples Online Learning Tracking From SCORM’s LMS Sandbox

The Experience API (xAPI) replaces SCORM’s browser-bound JavaScript tracking with asynchronous RESTful JSON statements sent to a standalone Learning Record Store. This architectural shift allows organizations to track learning data across mobile apps, offline environments, and virtual reality simulators.

By Tiago Sousa

In short

  1. SCORM relies on a synchronous JavaScript DOM adapter, meaning data is lost if the browser connection drops before the session ends.
  2. xAPI decouples tracking by using asynchronous RESTful JSON statements, allowing mobile apps and offline simulators to queue and transmit data over HTTP.
  3. Despite xAPI's technical superiority, SCORM accounted for 92 percent of SCORM Cloud course launches in 2025 because it easily satisfies basic compliance requirements.

The Experience API (xAPI) decouples online learning tracking from the Learning Management System (LMS) by replacing synchronous, browser-bound JavaScript calls with asynchronous RESTful JSON statements. While the older Sharable Content Object Reference Model (SCORM) forces content to run inside a web browser and communicate with a local Document Object Model (DOM) adapter, xAPI allows any device to send structured data over HTTP to a standalone Learning Record Store (LRS).[1][5]

This architectural shift solves the central limitation of early e-learning standards. By moving from a session-based, synchronous connection to a stateless, asynchronous protocol, xAPI enables organizations to track learning in mobile apps, virtual reality simulators, and offline environments where a persistent LMS connection is impossible.[3]

The SCORM Sandbox and the DOM API

To understand the decoupling, one must examine the constraints of SCORM. Released in 2001 by the Advanced Distributed Learning (ADL) Initiative, SCORM 1.2 was designed exclusively for a desktop era. It requires content to be packaged as a ZIP file, uploaded to an LMS, and launched within a specific browser frameset.[5]

Once launched, the SCORM course searches the browser's DOM for an ECMAScript object named "API". In the updated SCORM 2004 specification, this object is named "API_1484_11". This adapter acts as the sole communication bridge between the learning content and the underlying LMS database.[5]

Every interaction—whether recording a test score or bookmarking a page—is transmitted synchronously through this local API adapter using specific functions like LMSSetValue and LMSCommit. The content must initiate the session with an LMSInitialize call and end it with LMSFinish.[5]

SCORM requires content to run inside an LMS browser frameset, while xAPI allows external devices to send data to an LRS.

This synchronous reliance creates a fragile tether. If a user's browser crashes, the window is closed prematurely, or the network connection drops before the LMSCommit function fires, the synchronous link breaks. The learning data held in the browser's memory is permanently lost.[5]

Furthermore, the SCORM data model is highly restrictive. SCORM 1.2 limits the guaranteed space for saved course state data to just 4,096 characters. While SCORM 2004 raised this limit to 64,000 characters, the standard remains confined to a predefined set of variables focused on completion, time, and pass/fail metrics.

Project Tin Can and the Shift to REST

Recognizing that learning was moving beyond the desktop browser, the ADL Initiative commissioned research in 2011 for a successor standard, initially dubbed Project Tin Can. The goal was to capture learning experiences occurring in mobile applications, serious games, and real-world performance support tools.[3]

The resulting specification, officially named the Experience API (xAPI) in 2013, abandoned the DOM entirely. Instead of relying on a local JavaScript adapter exposed by an LMS frameset, xAPI utilizes a Representational State Transfer (RESTful) web service.[1][3]

Devices and applications act as Learning Record Providers. They generate data locally and transmit it over standard internet protocols to a designated endpoint. Because REST is stateless and relies on standard HTTP methods, the learning application does not need to maintain a persistent, synchronous session with the server.[1]

This RESTful approach allows for robust asynchronous tracking. If a learner completes a module offline on a mobile device, the application simply stores the JSON statements locally. Once the device reconnects to the internet, it pushes the queued statements to the server, ensuring data integrity.[3]

SCORM 2004 significantly expanded the data capacity for saved course states compared to SCORM 1.2.

Security models also differ fundamentally between the two standards. SCORM relies on the LMS to authenticate the user and establish the secure session before launching the content; the DOM API adapter inherently trusts the content loaded within the child frame.[5]

In contrast, xAPI's RESTful architecture requires explicit authentication for every transmission. Learning Record Providers must use OAuth or Basic Authentication headers when sending JSON statements to the LRS, ensuring that external applications cannot inject fraudulent learning records into the database.[1]

The JSON Statement Data Model

The payload of an xAPI transmission is a JavaScript Object Notation (JSON) statement. Because JSON is lightweight, human-readable, and universally understood by modern web architectures, it provides a highly flexible data model compared to SCORM's rigid vocabulary.[1]

"At its core, an xAPI statement is a JSON object," notes iSpring Solutions in its technical documentation. "The basic formula of the statement is: Actor + Verb + Object. This is an exact piece of data that will go to an LRS and will be subsequently used for analysis."[3]

A basic xAPI statement might read that Maria completed Safety Module A. However, the specification allows for extensive nesting and metadata through additional JSON objects like result and context.

The result object can capture specific scores, success status, and duration, while the context object can record the instructor's name, the device used, or the broader training program the activity belongs to. This extensibility means developers can track granular interactions, such as exactly which button a user clicked in a flight simulator.

Every xAPI statement follows a structured Actor-Verb-Object syntax formatted as a JSON payload.

To ensure interoperability, xAPI relies on standardized vocabularies. The ADL Initiative maintains registries of common verbs and activity types, preventing a scenario where one system uses the word completed and another uses finished to describe the exact same action.

In October 2023, the specification reached a major maturity milestone. It was formally published as IEEE 9274.1.1, cementing the JSON data model and RESTful web service as an international engineering standard for learner experience tracking.[1]

The Learning Record Store (LRS)

The destination for these RESTful JSON statements is a Learning Record Store (LRS). Unlike an LMS, which manages users, hosts content, and dictates the learning path, an LRS is strictly a database designed to receive, validate, and store xAPI statements.

"A Learning Record Store (LRS) is, at minimum, the server-side implementation of the xAPI," explains Veracity Learning, developers of the first xAPI 2.0 conformant LRS. The LRS validates incoming JSON payloads against the IEEE specification and stores them without altering their semantic meaning.

Technically, most modern LRS platforms utilize flexible NoSQL-style database architectures. This allows them to efficiently handle the high-volume, highly variable JSON data generated by event-level tracking across thousands of concurrent users.

An LRS can exist as a standalone enterprise data warehouse, aggregating statements from multiple systems, or operate as an embedded component within a modern LMS. When embedded, the LMS uses the LRS to process xAPI data while continuing to handle traditional course administration.

By separating the storage of learning records from the delivery of the content, organizations achieve true decoupling. A single LRS can simultaneously receive statements from a corporate LMS, a custom mobile app, a virtual reality headset, and a customer relationship management platform.

Despite the technical advantages of xAPI, SCORM accounted for 92 percent of course launches on SCORM Cloud in 2025.

Why SCORM Still Dominates the Market

Despite the technical superiority of xAPI's decoupled architecture, the industry's reliance on SCORM's synchronous sandbox persists. The vast majority of corporate compliance training consists of simple, self-paced modules where the browser-bound constraints of SCORM are not a hindrance.[2]

Rustici Software, a leading e-learning standards vendor, reported that 92 percent of the millions of course launches on its SCORM Cloud service in 2025 were SCORM courses. The 2001-era SCORM 1.2 specification continues to hold the majority share of that volume.[2]

"SCORM continues to do what it does best: provide a reliable, interoperable way to deliver and track eLearning," Rustici Software noted in a December 2024 industry briefing. "Because SCORM reliably captures the big four data points: completion, score, duration and satisfaction."[2]

Transitioning to xAPI requires a significant architectural investment. Organizations must procure and configure an LRS, redesign their data governance policies to handle unstructured JSON, and build custom analytics dashboards to make sense of the granular event data.[2]

Transitioning to xAPI requires a significant architectural investment.

To bridge this gap, the industry developed cmi5, an accompanying specification that uses xAPI's RESTful JSON transport but applies strict rules for how courses are launched and tracked by an LMS. This provides the robust data collection of xAPI while maintaining the predictable administrative structure of SCORM.[2]

Until organizations genuinely need to track learning outside the web browser, the DOM API adapter remains the path of least resistance. The shift to RESTful JSON statements offers limitless tracking potential, but only for teams willing to build the infrastructure to support it.[2]

How we did this

Method
Compared the architectural constraints of SCORM's DOM-based runtime environment against xAPI's RESTful transport mechanism to derive the specific technical decoupling points that allow xAPI to track offline and cross-platform learning.
What we found
While xAPI's RESTful JSON architecture successfully decouples tracking from the browser DOM to enable offline and cross-platform data collection, the industry's reliance on SCORM's synchronous sandbox persists because the vast majority of compliance training does not require decoupled tracking.
What we worked from
  • SCORM 1.2 DOM API adapter requirement: Synchronous JavaScript object named 'API' — APIs.io
  • xAPI transport mechanism: RESTful JSON web service — IEEE
  • SCORM Cloud 2025 launch volume: 92% SCORM
Limits of this analysis
This analysis focuses strictly on the transport and data model differences between the standards, and does not evaluate the commercial pricing or specific vendor implementations of Learning Record Stores.

Terms to know

SCORM
The Sharable Content Object Reference Model, a set of technical standards that defines how online learning content and Learning Management Systems communicate via a browser.
xAPI
The Experience API, an e-learning software specification that allows learning content and systems to communicate by sending JSON statements to a Learning Record Store.
DOM
The Document Object Model, a programming interface for web documents that SCORM uses to establish a synchronous connection between a course and an LMS.
RESTful API
An application programming interface that uses standard HTTP requests to securely send and receive data over the internet without maintaining a continuous connection.
JSON
JavaScript Object Notation, a lightweight, human-readable data format used by xAPI to structure learning records.
Learning Record Store (LRS)
A specialized database designed specifically to receive, validate, store, and return xAPI statements.

Questions readers ask

Can xAPI track learning when a device is offline?

Yes. Because xAPI uses asynchronous RESTful statements, a mobile app or device can store the JSON learning records locally while offline and transmit them to the LRS once an internet connection is restored.

Does an organization need an LMS if they have an LRS?

Usually, yes. An LRS only stores learning data; it does not host course files, manage user enrollments, or provide a catalog interface for learners to discover content. Most organizations use an LRS alongside an LMS.

Can SCORM and xAPI run simultaneously?

Yes. Many modern Learning Management Systems include an embedded LRS, allowing the platform to play legacy SCORM packages through its traditional player while simultaneously receiving xAPI statements from external applications.

What is the difference between xAPI and cmi5?

While xAPI defines how learning data is formatted and transmitted, it does not dictate how a course should be launched. The cmi5 specification adds those missing launch and administrative rules on top of xAPI, effectively acting as a modern replacement for SCORM.

Different angles

Enterprise L&D Teams

Why many organizations stick with SCORM despite its technical limitations.

For many corporate training departments, the primary goal of an e-learning standard is regulatory compliance. SCORM reliably captures the essential metrics—completion status, test scores, and time spent—without requiring complex data engineering. Because SCORM packages are universally supported by almost every LMS on the market, these teams view the standard as a low-risk, plug-and-play solution. The investment required to implement an LRS and analyze unstructured JSON data often outweighs the benefits for organizations that only deliver simple, browser-based compliance modules.

Performance Technologists

The push for granular, cross-platform data collection using xAPI.

Technologists argue that learning happens continuously outside the LMS, and SCORM's browser-bound sandbox creates massive blind spots. By adopting xAPI, these advocates can track informal learning, mobile app usage, and real-world performance metrics. They view the Actor-Verb-Object JSON structure not just as a tracking mechanism, but as a bridge to broader business intelligence. For this camp, the ability to correlate a specific learning intervention in a VR simulator with subsequent on-the-job performance metrics justifies the architectural complexity of deploying an LRS.

Learning System Architects

Balancing legacy support with modern decoupled architectures.

System architects are tasked with building ecosystems that support both 20-year-old SCORM files and modern xAPI applications. They advocate for decoupled architectures where an embedded or standalone LRS handles all event data, while the LMS focuses strictly on administration and content delivery. This camp frequently champions cmi5—a newer specification that uses xAPI's RESTful transport but enforces strict LMS launch rules—as the pragmatic bridge between SCORM's structural predictability and xAPI's data flexibility.

Enterprise L&D Teams 50%Performance Technologists 30%Learning System Architects 20%
Enterprise L&D Teams
Prioritize compliance, simplicity, and proven interoperability, often favoring SCORM for standard training.
Performance Technologists
Advocate for xAPI to capture granular, cross-platform learning data and integrate it with broader business intelligence.
Learning System Architects
Focus on the structural decoupling of the LRS from the LMS to build flexible, future-proof enterprise data ecosystems.

Perspectives this story doesn't cover

  • Independent Course Creators
  • Open Source LMS Maintainers

Sources

Source coverage

5 outlets

3 viewpoints surfaced

Enterprise L&D Teams 50%Performance Technologists 30%Learning System Architects 20%
  1. [1]IEEELearning System Architects

    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

    Read on IEEE →
  2. [2]Rustici SoftwareEnterprise L&D Teams

    Is SCORM dead? Why SCORM still dominates

    Read on Rustici Software →
  3. [3]iSpring SolutionsPerformance Technologists

    What Is xAPI? The Definitive Guide to Experience API

    Read on iSpring Solutions →
  4. [4]Factlen Editorial Team

    Synthesis by Factlen editorial team

    Read on Factlen Editorial Team →
  5. [5]APIs.io

    SCORM 1.2 Runtime API

    Read on APIs.io →

Comments

Stay informed

Every angle. Every day.

Get Education stories with full source coverage and perspective breakdowns, free every day.