SCORM API Guide: Functions, Versions and Documentation

SCORM API: A Complete Guide to Functions, Versions and Documentation

If you build, buy, or manage eLearning courses, you’ve almost certainly run into the term “SCORM API.” It’s the piece of SCORM that quietly decides whether a course can report a learner’s score, bookmark their progress, or mark them complete. This guide covers what the SCORM API actually is, how its functions work, how SCORM 1.2 differs from SCORM 2004, where the SCORM Cloud API fits in, and how to debug it when something breaks.

What’s changed in this guide: we’ve updated the terminology to match current SCORM API documentation, added a dedicated section on the SCORM Cloud API and authentication (a query this page was being shown for but never answered), added a practical error-debugging section, and removed references to tooling that no longer reflects how most teams work with SCORM today.

What Is the SCORM API?

The SCORM API is a small, standardized set of JavaScript functions that let an eLearning course communicate with the Learning Management System (LMS) it’s running in. Without it, a course has no way to tell the LMS what score a learner got, where they left off, or whether they finished. The “API” in SCORM API doesn’t mean a REST API you call over the internet. It’s a JavaScript object, literally named API in SCORM 1.2, that the LMS makes available in a parent or opener window so the course content can read from it and write to it.

Every SCORM-compliant course looks for this object when it loads. If it finds it, the course and the LMS can exchange data throughout the session. If it doesn’t, you get the classic “course not tracking” problem that most LMS administrators have dealt with at least once.

What Are the 8 Core SCORM API Functions?

SCORM 1.2 defines exactly eight functions that every compliant LMS must support. They cover starting a session, reading and writing data, saving that data, and handling errors. The table below is the quickest reference for what each one does.

Function What it does
LMSInitialize() Opens communication between the course and the LMS at the start of a session
LMSFinish() Closes the session cleanly once the learner exits or completes the course
LMSGetValue() Reads a specific piece of data from the LMS, such as the learner’s name or last location
LMSSetValue() Writes a value back to the LMS, such as a score or completion status
LMSCommit() Forces the LMS to actually save whatever was set with LMSSetValue()
LMSGetLastError() Returns the error code from the most recent failed call
LMSGetErrorString() Turns an error code into a readable description
LMSGetDiagnostic() Gives implementation-specific detail beyond the standard error message

SCORM 2004 keeps the same eight functions but drops the “LMS” prefix, so LMSInitialize() becomes Initialize(), LMSGetValue() becomes GetValue(), and so on. The behavior is the same; only the naming convention changed.

SCORM API vs SCORM Cloud API: What’s the Difference?

The SCORM API (the eight functions above) is the specification every SCORM course uses to talk to whatever LMS is hosting it. The SCORM Cloud API is different: it’s a hosted service’s own web API that lets you upload, launch, and track SCORM courses programmatically without running your own LMS. If you’re searching for “scorm cloud api,” you’re usually trying to automate course hosting and reporting rather than looking at the client-side functions a course calls at runtime.

In practice, the two layers work together: a course still calls the standard SCORM API functions inside the player, while the hosting platform’s cloud API handles the surrounding tasks, such as:

  • Uploading and registering courses through an HTTP request instead of a manual LMS upload screen.
  • Generating dispatch links so a course can be launched from an external site while tracking still reports back correctly.
  • Pulling completion and score data for reporting dashboards that sit outside the LMS itself.

Authentication for these cloud-hosted APIs generally uses one of two approaches:

  • HTTP Basic Auth: credentials sent directly in the request header, simplest to set up but less flexible.
  • OAuth 2.0 access tokens: the more common approach for anything integrated into a larger system, since tokens can be scoped and revoked independently of a user’s main login.

What Services Does the SCORM API Ecosystem Cover?

Beyond the eight runtime functions, most SCORM-compliant platforms expose a handful of higher-level services for managing content and learners at scale. These aren’t part of the SCORM specification itself, but they’re what most “scorm api documentation” searches are actually trying to find.

Course Service

Handles importing a course package for hosting, updating course metadata or content as it changes, and removing courses that are no longer in use.

Registration Service

Manages the link between a learner and a course: creating a registration enrolls a learner, updating one changes access or status, and deleting one removes it when access is no longer needed. This is also where you’d typically pull progress reports, completion rates, and score summaries.

Dispatch Service

Lets you distribute a course to external systems or partner organizations without giving them direct access to your LMS. A dispatch package generates a unique link to the content while usage and tracking data still flow back to the source platform.

Application Management Service

Covers the administrative layer: creating, updating, and removing the applications or integrations that are allowed to call the API in the first place.

SCORM 1.2 vs SCORM 2004: Which API Should You Target?

If you’re building or buying a course today, SCORM 1.2 is still the safer default for broad LMS compatibility, while SCORM 2004 is the better choice when you need sequencing and navigation control. Both remain in active use across LMS platforms, so “which version” is really a question of what your LMS supports and what your course needs to do.

Version API naming Best for
SCORM 1.2 LMSInitialize(), LMSGetValue(), etc. Maximum LMS compatibility, simple linear courses
SCORM 2004 (2nd-4th Edition) Initialize(), GetValue(), etc. Branching content, sequencing rules, richer completion tracking

If you’re working with either version right now, the practical guides on fixing and compressing SCORM 1.2 packages and resolving common SCORM 2004 issues cover the file-level problems that usually show up alongside API errors, like oversized packages or broken manifest references.

What changed across the SCORM 2004 editions

The three SCORM 2004 editions still in circulation (2nd, 3rd, and 4th) share the same core API but differ in data model depth and error handling:

  • 2nd Edition added data model elements like cmi.interactions and cmi.objectives, plus more specific error codes for debugging.
  • 3rd Edition refined sequencing rules and introduced cmi.success_status and cmi.completion_status for more precise learner achievement tracking.
  • 4th Edition added cmi.progress_measure and tightened error diagnostics further, which is why it’s the edition most current LMS platforms default to when “SCORM 2004” is offered as an export option.

How Do You Implement the SCORM API in a Course?

Implementing the SCORM API comes down to locating the API object and calling its functions in the right order during the learner’s session. Here’s the sequence most authoring tools follow under the hood:

  1. Find the API object. The course searches the current window, then walks up through parent and opener windows until it finds an object named API (SCORM 1.2) or API_1484_11 (SCORM 2004).
  2. Call Initialize. LMSInitialize("") or Initialize("") opens the session before anything else can happen.
  3. Read what you need. Use GetValue() to pull the learner’s last location, suspend data, or prior score if you’re resuming a session.
  4. Write progress as it happens. Use SetValue() to record score, completion status, or bookmarking data as the learner moves through the course.
  5. Commit regularly. Calling Commit() after meaningful updates (not just at the end) protects against lost data if the browser closes unexpectedly.
  6. Finish cleanly. LMSFinish("") or Terminate("") closes the session so the LMS knows no further data is coming.

Authoring tools like Articulate Storyline and iSpring generate this logic automatically, so most instructional designers never touch the raw API calls. Where it matters is troubleshooting: when a course won’t track in a given LMS, this sequence is exactly what you check first. For a deeper look at tracking issues across both versions, see Doctor E-learning’s course editing and compression tools, which let you fix tracking and file-size problems in a published SCORM package without the original source files.

Common SCORM API Errors and How to Debug Them

Most SCORM API errors fall into three buckets: the API object can’t be found, a function is called out of order, or a data model element is written incorrectly. Knowing which bucket you’re in cuts debugging time dramatically.

  • “API not found” or error code 101: usually means the course is launched in a way that breaks the parent/opener window chain, such as opening it in a new tab directly instead of through the LMS launch page.
  • Error 301, “general initialization failure”: often happens when Initialize() is called a second time in the same session, or called before the API object is fully available.
  • Error 405, “incorrect data type”: typically a mismatch between what the course is writing and what the LMS’s data model expects, for example writing a string where a number is required.
  • Data not saving between sessions: almost always a missing or mistimed Commit() call rather than a problem with SetValue() itself.

If you’re regularly chasing down issues like these, it’s worth working through a dedicated testing process rather than debugging live in production. Doctor E-learning’s guide to SCORM testing and debugging walks through a repeatable way to isolate API errors before a course ever reaches real learners.

Is xAPI a Replacement for the SCORM API?

xAPI (sometimes still called Tin Can API) isn’t a direct replacement for the SCORM API, it’s a different model entirely. Instead of an LMS reading and writing a fixed set of data model elements through a JavaScript object, xAPI sends “statements” (actor, verb, object, like “John completed Module 3”) to a Learning Record Store over HTTP. That makes it better suited to tracking learning outside a traditional LMS, such as mobile apps, simulations, or offline activity.

For most teams, the practical answer is: keep using the SCORM API for standard LMS-hosted courses, and only look at xAPI when you specifically need to track experiences that happen outside the course player.

FAQ: SCORM API Questions Answered

What is the SCORM API?

The SCORM API is a set of JavaScript functions, such as LMSInitialize() and LMSSetValue(), that let a SCORM course communicate with an LMS. It handles starting and ending sessions, reading and writing learner data, and reporting errors, forming the backbone of how SCORM tracks progress.

What is the SCORM Cloud API?

The SCORM Cloud API is a hosted web API for uploading, launching, and tracking SCORM courses without running your own LMS. It’s separate from the standard SCORM API functions a course calls at runtime, and typically uses HTTP Basic Auth or OAuth 2.0 for authentication.

Where can I find SCORM API documentation?

The ADL (Advanced Distributed Learning) initiative publishes the official SCORM specification, which documents every data model element and function signature in detail. Most LMS vendors also publish their own implementation notes covering how their platform specifically handles the standard.

Is the SCORM 1.2 API still used today?

Yes. SCORM 1.2 remains the most widely supported version across LMS platforms because of its simplicity, and it’s still a common default export option in authoring tools. It’s the right choice unless your course specifically needs SCORM 2004’s sequencing and navigation features.

What’s different about the SCORM 2004 API?

SCORM 2004 uses the same eight core functions as SCORM 1.2 but drops the “LMS” prefix, so LMSInitialize() becomes Initialize(). It also adds sequencing and navigation rules and a richer data model, including elements like cmi.success_status.

Does every LMS implement the SCORM API the same way?

No. The specification defines what each function must do, but LMS vendors still vary in how strictly they enforce data types, how they handle edge cases like rapid repeated commits, and how descriptive their error messages are. This is why a course that tracks perfectly in one LMS can throw errors in another.

Conclusion

The SCORM API is a short, stable list of functions, but the surrounding ecosystem, SCORM Cloud APIs, version differences, dispatch and registration services, is where most real-world confusion comes from. Once you know which layer you’re actually troubleshooting (the runtime functions, the cloud hosting API, or the LMS’s own implementation quirks), most “course won’t track” problems become quick to diagnose rather than a mystery.

If your next step is fixing, compressing, or translating a course that’s already built, you don’t need the original source files to do it. Doctor E-learning works directly with published SCORM packages, which is often the faster path when the problem is file size or language rather than the API layer itself.