Skip to main content
GET
Get a script
Resolve a single script by id, slug, or shortId — all three work in the same path:

Path parameters

string
required
The script’s id, slug, or shortId.

Query parameters

Include up to 6 related scripts (same game first). Set 0 to skip.
string
Sparse fieldset for the script object.

Response

Script
The full Script object, including the long-form body.
Related scripts, unless related=0 or a fields set was requested.
Returns 404 not_found if the script doesn’t exist, isn’t live, or is hidden.

Raw source

Returns the script’s raw Lua source as text/plain. Only free, keyless scripts are servable — for everything else, prefer the loadstring URL.
A script object only includes a non-null rawUrl when its source is servable — check that first to avoid a 402/403. For execution, loadstring is almost always what you want.

Version history

Returns the changelog and metadata for each published version (newest first). Source is not included.