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.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Sirius Docs","colors":{"primary":"#0088FF","light":"#3399FF","dark":"#0070D6"},"logo":{"light":"https://mintcdn.com/sirius-b451bfde/i5Ltpj53aNl_8MQt/logo/light.svg?fit=max\u0026auto=format\u0026n=i5Ltpj53aNl_8MQt\u0026q=85\u0026s=54c5dbeffb5f92b996b229f0af6d91e6","dark":"https://mintcdn.com/sirius-b451bfde/i5Ltpj53aNl_8MQt/logo/dark.svg?fit=max\u0026auto=format\u0026n=i5Ltpj53aNl_8MQt\u0026q=85\u0026s=c2b0c69bc3745e87216955024b58daff"},"favicon":"https://mintcdn.com/sirius-b451bfde/t1ypL1f4YGzGeawd/favicon.svg?fit=max\u0026auto=format\u0026n=t1ypL1f4YGzGeawd\u0026q=85\u0026s=6936b3b142405ae09e1f5c214ae0bb32","appearance":{"default":"dark","strict":true},"background":{"color":{"dark":"#0A0A0B"}},"navbar":{"primary":{"type":"button","label":"Discord","href":"https://discord.sirius.menu"}},"footer":{"socials":{"github":"https://github.com/SiriusSoftwareLtd"}},"fonts":{"family":"Unica77LL","weight":400,"source":"fonts/Unica77LL-Regular.woff2","format":"woff2"},"icons":{"library":"lucide"},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Discord","icon":"discord","href":"https://discord.sirius.menu"},{"anchor":"GitHub","icon":"github","href":"https://github.com/SiriusSoftwareLtd"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"sirius-b451bfde","hasAudioNarration":false,"actualSubdomain":"sirius-b451bfde","customDomains":["docs.sirius.menu"],"gitSource":{"type":"github","owner":"siriussoftwareltd","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"edits":true,"issues":true,"thumbs":false},"entitlements":{},"buildId":"6ae9f94d05f836676fdeb52c","clientVersion":"0.0.4088","searchFilterCounts":[{"language":"default","tag":"Rayfield Gen2","count":27},{"language":"default","tag":"RoScripts","count":17},{"language":"default","tag":"Elements","count":16},{"language":"default","tag":"Rayfield (2022)","count":12},{"language":"default","tag":"Endpoints","count":8},{"language":"default","tag":"Guides","count":7},{"language":"default","tag":"Get started","count":6},{"language":"default","tag":"Configuration","count":5},{"language":"default","tag":"Getting started","count":5},{"language":"default","tag":"Feedback","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":true,"enableContextualStarterQuestions":true,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"[email protected]","showHelpButton":true}},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":"@font-face{font-family:'Unica77';src:url('/fonts/Unica77LL-Medium.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:'Unica77';src:url('/fonts/Unica77LL-Light.woff2') format('woff2');font-weight:300;font-style:normal;font-display:swap}aside p,aside button>p,aside nav>div>p,aside nav div>p{font-size:0.7rem!important;font-weight:600!important;letter-spacing:0.07em!important;text-transform:uppercase!important;opacity:0.45!important}aside a{font-size:0.875rem!important;padding-left:0.5rem!important}h1,.prose h1{font-weight:500!important;letter-spacing:-0.005em!important}h2,h3,h4,.prose h2,.prose h3,.prose h4{font-weight:500!important;letter-spacing:0!important}header a[href=\"https://discord.sirius.menu\"]{background-color:#1c1c1f!important;border:1px solid #2a2a2e!important;border-radius:0.6rem!important;color:#ededed!important}header a[href=\"https://discord.sirius.menu\"] *{background-color:transparent!important;box-shadow:none!important}header a[href=\"https://discord.sirius.menu\"]:hover{background-color:#26262a!important;border-color:#34343a!important}a.sv-banner{position:relative;display:flex;align-items:center;flex-wrap:wrap;gap:0.55rem 1rem;margin:0 0 1.75rem;padding:0.8rem 0.85rem 0.8rem 1.15rem;overflow:hidden;background:linear-gradient(100deg, #17171a 0%, #121214 45%, #0f0f11 100%);border:1px solid transparent;border-radius:0.85rem;text-decoration:none!important}a.sv-banner::before{content:\"\";position:absolute;top:50%;left:0;width:15rem;height:15rem;transform:translate(-40%, -50%);background:radial-gradient(\n circle,\n rgba(255, 255, 255, 0.16) 0%,\n rgba(255, 255, 255, 0.06) 34%,\n rgba(255, 255, 255, 0) 66%\n );pointer-events:none;animation:sv-banner-bloom 7s ease-in-out infinite}.sv-banner-mark,.sv-banner-copy,.sv-banner-cta{position:relative}.sv-banner-mark{flex:none;display:grid;place-items:center;color:#ffffff}.sv-banner-mark svg{display:block;width:auto;height:1.5rem;filter:drop-shadow(0 0 12px rgba(255, 255, 255, 0.45))}.sv-banner-copy{flex:1 1 16rem;display:flex;flex-direction:column;gap:0.15rem;min-width:0}.sv-banner-title,.sv-banner-title>span:not(.sv-banner-badge){display:inline-flex;align-items:center;flex-wrap:wrap;gap:0.85rem}.sv-banner-title{color:#f4f4f5;font-size:0.85rem;font-weight:500;letter-spacing:-0.005em}.sv-banner-badge{color:#a9a9b2;font-size:0.68rem;font-weight:400;letter-spacing:0.01em;padding:0.1rem 0.42rem;background:rgba(255, 255, 255, 0.07);border-radius:0.35rem}.sv-banner-sub{color:#90909a;font-size:0.79rem;line-height:1.4}.sv-banner-cta,.sv-banner-cta>span:not(.sv-banner-arrow){display:inline-flex;align-items:center;gap:0.35rem}.sv-banner-cta{flex:none;padding:0.42rem 0.8rem;color:#0a0a0a!important;font-size:0.79rem;font-weight:500;white-space:nowrap;background:#ffffff;border-radius:0.55rem}@keyframes sv-banner-bloom{0%,100%{opacity:0.75;transform:translate(-40%, -50%) scale(1)}50%{opacity:1;transform:translate(-40%, -50%) scale(1.08)}}@media (prefers-reduced-motion: reduce){a.sv-banner::before{animation:none}}a.rg2-banner{position:relative;display:flex;align-items:center;flex-wrap:wrap;gap:0.55rem 1rem;margin:0 0 0.6rem;padding:0.8rem 0.85rem 0.8rem 1.15rem;overflow:hidden;background:linear-gradient(100deg, #0e1a26 0%, #0c141d 45%, #0b0f14 100%);border:1px solid rgba(0, 136, 255, 0.22);border-radius:0.85rem;text-decoration:none!important}a.rg2-banner::before{content:\"\";position:absolute;top:50%;left:0;width:15rem;height:15rem;transform:translate(-40%, -50%);background:radial-gradient(\n circle,\n rgba(0, 136, 255, 0.28) 0%,\n rgba(0, 136, 255, 0.1) 34%,\n rgba(0, 136, 255, 0) 66%\n );pointer-events:none}.rg2-banner-mark,.rg2-banner-copy,.rg2-banner-cta{position:relative}.rg2-banner-mark{flex:none;display:grid;place-items:center;color:#3399ff}.rg2-banner-mark svg{display:block;width:auto;height:1.4rem;filter:drop-shadow(0 0 12px rgba(0, 136, 255, 0.55))}.rg2-banner-copy{flex:1 1 16rem;display:flex;flex-direction:column;gap:0.15rem;min-width:0}.rg2-banner-title,.rg2-banner-title>span:not(.rg2-banner-badge){display:inline-flex;align-items:center;flex-wrap:wrap;gap:0.85rem}.rg2-banner-title{color:#f4f4f5;font-size:0.85rem;font-weight:500;letter-spacing:-0.005em}.rg2-banner-badge{color:#7cc0ff;font-size:0.68rem;font-weight:400;letter-spacing:0.01em;padding:0.1rem 0.42rem;background:rgba(0, 136, 255, 0.14);border-radius:0.35rem}.rg2-banner-sub{color:#8d95a0;font-size:0.79rem;line-height:1.4}.rg2-banner-cta,.rg2-banner-cta>span:not(.rg2-banner-arrow){display:inline-flex;align-items:center;gap:0.35rem}.rg2-banner-cta{flex:none;padding:0.42rem 0.8rem;color:#9ecdff!important;font-size:0.79rem;font-weight:500;white-space:nowrap;background:rgba(0, 136, 255, 0.1);border:1px solid rgba(0, 136, 255, 0.35);border-radius:0.55rem}"}],"page":{"pagePath":"scripts-api/endpoints/get","slug":"/scripts-api/endpoints/get","pageMetadata":{"title":"Get a script","description":"Fetch one script's full detail, its raw source, or its version history.","api":"GET https://api.roscripts.io/v1/scripts/{ref}","href":"/scripts-api/endpoints/get"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Fetch one script’s full detail, its raw source, or its version history.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,hr:`hr`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,ParamField,ResponseField,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Resolve a single script by `,_jsx(_components.strong,{children:`id, slug, or shortId`}),` — all three work in the same path:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.roscripts.io/v1/scripts/blox-fruits-hub\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.roscripts.io/v1/scripts/lst_9f2c4a1b7d6e5f0a1234abcd\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.roscripts.io/v1/scripts/Ab3xK9q\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path parameters`}),`\n`,_jsxs(ParamField,{path:`ref`,type:`string`,required:true,id:`param-ref`,children:[`The script’s `,_jsx(_components.code,{children:`id`}),`, `,_jsx(_components.code,{children:`slug`}),`, or `,_jsx(_components.code,{children:`shortId`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`query-parameters`,children:`Query parameters`}),`\n`,_jsxs(ParamField,{query:`related`,type:`0 | 1`,default:`1`,id:`param-related`,children:[`Include up to 6 related scripts (same game first). Set `,_jsx(_components.code,{children:`0`}),` to skip.`]}),`\n`,_jsx(ParamField,{query:`fields`,type:`string`,id:`param-fields`,children:`Sparse fieldset for the script object.`}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(ResponseField,{name:`result.script`,type:`Script`,id:`param-result-script`,children:[`The full `,_jsx(_components.a,{href:`/scripts-api/schema`,children:`Script object`}),`, including the long-form `,_jsx(_components.code,{children:`body`}),`.`]}),`\n`,_jsxs(ResponseField,{name:`result.related`,type:`Script[]`,id:`param-result-related`,children:[`Related scripts, unless `,_jsx(_components.code,{children:`related=0`}),` or a `,_jsx(_components.code,{children:`fields`}),` set was requested.`]}),`\n`,_jsxs(_components.p,{children:[`Returns `,_jsx(_components.code,{children:`404 not_found`}),` if the script doesn’t exist, isn’t live, or is hidden.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`raw-source`,children:`Raw source`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`GET https://api.roscripts.io/v1/scripts/{ref}/raw`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Returns the script’s raw Lua source as `,_jsx(_components.code,{children:`text/plain`}),`. `,_jsx(_components.strong,{children:`Only free, keyless scripts are servable`}),` — for everything else, prefer the `,_jsx(_components.a,{href:`/scripts-api/schema`,children:_jsx(_components.code,{children:`loadstring`})}),` URL.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.roscripts.io/v1/scripts/blox-fruits-hub/raw\"`})]}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Situation`}),_jsx(_components.th,{children:`Response`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Free, keyless`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`200`}),` with the Lua source`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Paid script`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`402 payment_required`}),` + `,_jsx(_components.code,{children:`details.marketplaceUrl`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Key-system script`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`403 forbidden`}),` + `,_jsx(_components.code,{children:`details.keyLink`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Not found / not live`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`404 not_found`})})]})]})]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`A script object only includes a non-null `,_jsx(_components.code,{children:`rawUrl`}),` when its source is servable — check that first to avoid a `,_jsx(_components.code,{children:`402`}),`/`,_jsx(_components.code,{children:`403`}),`. For execution, `,_jsx(_components.code,{children:`loadstring`}),` is almost always what you want.`]})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`version-history`,children:`Version history`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`GET https://api.roscripts.io/v1/scripts/{ref}/versions`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Returns the changelog and metadata for each published version (newest first). Source is not included.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"result\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"listingId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"lst_…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"versions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ver_…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"label\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"v3\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"changelog\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Fixed auto-farm after the May update\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"sizeBytes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`18422`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"uploadedAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-05-28T11:04:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Get a script","description":"Fetch one script's full detail, its raw source, or its version history.","api":"GET https://api.roscripts.io/v1/scripts/{ref}","href":"/scripts-api/endpoints/get"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Path parameters","slug":"path-parameters","depth":2,"children":[]},{"title":"Query parameters","slug":"query-parameters","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Raw source","slug":"raw-source","depth":2,"children":[]},{"title":"Version history","slug":"version-history","depth":2,"children":[]}],"codeExamples":{},"endpoint":{"title":"Get a script","path":"/v1/scripts/{ref}","servers":[{"url":"https://api.roscripts.io"}],"method":"get","request":{"security":[],"parameters":{"query":{"related":{"schema":[{"type":"object","properties":{},"description":"Include up to 6 related scripts (same game first). Set `0` to skip."}]},"fields":{"schema":[{"type":"string","description":"Sparse fieldset for the script object."}]}},"header":{},"cookie":{},"path":{"ref":{"schema":[{"type":"string","description":"The script’s `id` , `slug` , or `shortId` .","required":true}]}}},"body":{}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"result.script":[{"type":"object","properties":{},"description":"The full Script object , including the long-form `body` ."}],"result.related":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Related scripts, unless `related=0` or a `fields` set was requested."}]}}],"examples":{"example":{"value":{"result.script":{},"result.related":[{}]}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"sirius-b451bfde","siteName":"Sirius Docs","title":"Get a script - Sirius Docs","contextualStarterQuestions":[{"_id":"6a1cbb351495342bf0b20f88","deploymentId":"69c7f56d81ddc7e90708f060","questionText":"What's the raw source endpoint?","status":"active","generatedBy":"contextual","path":"scripts-api/endpoints/get","createdAt":"2026-05-31T22:50:29.726Z","updatedAt":"2026-05-31T22:50:29.726Z","__v":0},{"_id":"6a1cbb351495342bf0b20f87","deploymentId":"69c7f56d81ddc7e90708f060","questionText":"How do I fetch a script by ID?","status":"active","generatedBy":"contextual","path":"scripts-api/endpoints/get","createdAt":"2026-05-31T22:50:29.726Z","updatedAt":"2026-05-31T22:50:29.726Z","__v":0},{"_id":"6a1cbb351495342bf0b20f89","deploymentId":"69c7f56d81ddc7e90708f060","questionText":"When does raw source fail?","status":"active","generatedBy":"contextual","path":"scripts-api/endpoints/get","createdAt":"2026-05-31T22:50:29.726Z","updatedAt":"2026-05-31T22:50:29.726Z","__v":0}],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-31T22:50:15.371Z","originalFileLocation":"scripts-api/endpoints/get.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Fetch one script\u0026#x27;s full detail, its raw source, or its version history.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Sirius Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/sirius-b451bfde/IiUAYARnFSADDerJ/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/sirius-b451bfde/IiUAYARnFSADDerJ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/sirius-b451bfde/IiUAYARnFSADDerJ/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/sirius-b451bfde/IiUAYARnFSADDerJ/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/sirius-b451bfde/IiUAYARnFSADDerJ/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/sirius-b451bfde/IiUAYARnFSADDerJ/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/sirius-b451bfde/IiUAYARnFSADDerJ/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/sirius-b451bfde/IiUAYARnFSADDerJ/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/sirius-b451bfde/IiUAYARnFSADDerJ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get a script - Sirius Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Fetch one script\u0026#x27;s full detail, its raw source, or its version history.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Sirius Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.sirius.menu/scripts-api/endpoints/get\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://sirius-b451bfde.mintlify.site/_mintlify/api/og/v2?division=Endpoints\u0026amp;title=Get+a+script\u0026amp;description=Fetch+one+script%27s+full+detail%2C+its+raw+source%2C+or+its+version+history.\u0026amp;theme=8375d23abfddd8400902ed85\u0026amp;signature=42280733fcd3ee8165bdc2dbcac784a47d21fff3790c016ace6a4aabe1172c17\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Get a script - Sirius Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Fetch one script\u0026#x27;s full detail, its raw source, or its version history.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://sirius-b451bfde.mintlify.site/_mintlify/api/og/v2?division=Endpoints\u0026amp;title=Get+a+script\u0026amp;description=Fetch+one+script%27s+full+detail%2C+its+raw+source%2C+or+its+version+history.\u0026amp;theme=8375d23abfddd8400902ed85\u0026amp;signature=42280733fcd3ee8165bdc2dbcac784a47d21fff3790c016ace6a4aabe1172c17\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/sirius-b451bfde/IiUAYARnFSADDerJ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Sirius Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0088FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.sirius.menu/scripts-api/endpoints/get\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/scripts-api/endpoints/get.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.sirius.menu/#organization\",\"name\":\"Sirius Docs\",\"url\":\"https://docs.sirius.menu\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/sirius-b451bfde/i5Ltpj53aNl_8MQt/logo/light.svg?fit=max\u0026auto=format\u0026n=i5Ltpj53aNl_8MQt\u0026q=85\u0026s=54c5dbeffb5f92b996b229f0af6d91e6\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.sirius.menu#website\",\"name\":\"Sirius Docs\",\"url\":\"https://docs.sirius.menu\",\"publisher\":{\"@id\":\"https://docs.sirius.menu/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.sirius.menu/scripts-api/endpoints/get#webpage\",\"url\":\"https://docs.sirius.menu/scripts-api/endpoints/get\",\"name\":\"Get a script\",\"description\":\"Fetch one script's full detail, its raw source, or its version history.\",\"dateModified\":\"2026-05-31T22:50:15.371Z\",\"isPartOf\":{\"@id\":\"https://docs.sirius.menu#website\"},\"breadcrumb\":{\"@id\":\"https://docs.sirius.menu/scripts-api/endpoints/get#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.sirius.menu/scripts-api/endpoints/get#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.sirius.menu/scripts-api/endpoints/list\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get a script\",\"item\":\"https://docs.sirius.menu/scripts-api/endpoints/get\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.sirius.menu/scripts-api/endpoints/get#apireference\",\"headline\":\"Get a script\",\"name\":\"Get a script\",\"description\":\"Fetch one script's full detail, its raw source, or its version history.\",\"url\":\"https://docs.sirius.menu/scripts-api/endpoints/get\",\"mainEntityOfPage\":{\"@id\":\"https://docs.sirius.menu/scripts-api/endpoints/get#webpage\"},\"dateModified\":\"2026-05-31T22:50:15.371Z\",\"publisher\":{\"@id\":\"https://docs.sirius.menu/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.sirius.menu#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Sirius Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Sirius Docs","nav":{"global":{"anchors":[{"anchor":"Discord","icon":"discord","href":"https://discord.sirius.menu"},{"anchor":"GitHub","icon":"github","href":"https://github.com/SiriusSoftwareLtd"}]},"tabs":[{"tab":"Home","pages":[{"title":"Home","href":""}]},{"tab":"Rayfield (2022)","pages":[{"title":"Rayfield (2022)","href":"/rayfield"}]},{"tab":"Rayfield Gen2","pages":[{"title":"Rayfield Gen2","href":"/rayfield-gen2"}]},{"tab":"RoScripts","groups":[{"group":"Publish","pages":[{"title":"Publish on RoScripts","icon":"upload","href":"/roscripts/publish"}]},{"group":"API overview","pages":[{"title":"RoScripts API","href":"/scripts-api/index"}]},{"group":"Guides","pages":[{"title":"Authentication","href":"/scripts-api/authentication"},{"title":"Rate limits","href":"/scripts-api/rate-limits"},{"title":"Pagination \u0026 caching","href":"/scripts-api/pagination"},{"title":"Errors","href":"/scripts-api/errors"},{"title":"Best practices","href":"/scripts-api/best-practices"},{"title":"Examples","href":"/scripts-api/examples"},{"title":"The Script object","href":"/scripts-api/schema"}]},{"group":"Endpoints","pages":[{"title":"Fetch scripts","api":"GET https://api.roscripts.io/v1/scripts","href":"/scripts-api/endpoints/list"},{"title":"Search","api":"GET https://api.roscripts.io/v1/scripts/search","href":"/scripts-api/endpoints/search"},{"title":"Trending","description":"The hottest scripts right now, by ranking score.","api":"GET https://api.roscripts.io/v1/scripts/trending","href":"/scripts-api/endpoints/trending"},{"title":"Get a script","api":"GET https://api.roscripts.io/v1/scripts/{ref}","href":"/scripts-api/endpoints/get"},{"title":"Batch resolve","description":"Resolve many scripts in a single request.","api":"POST https://api.roscripts.io/v1/scripts/batch","href":"/scripts-api/endpoints/batch"},{"title":"Games","href":"/scripts-api/endpoints/games"},{"title":"Creators","href":"/scripts-api/endpoints/owners"},{"title":"Suggest, stats \u0026 health","href":"/scripts-api/endpoints/misc"}]}]}]},"basePath":"","title":"Get a script - Sirius Docs","buildId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","deploymentId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-5FCzAcfS.js","utils-SLtAG4EZ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-2DZi8ZMu.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D7J3nkzE.js","snippetPresets-D0Alv0AH.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BI4qNJ2c.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BD3uyr8j.js","shallow-D8iEBr5z.js","getApiPlaygroundDisplay-CgNP4lzR.js","CodeSnippet-CX-QHuMs.js","CodeSnippets-VlXE-ZUf.js","Page-D9ithiIZ.js","getPastedJson-DYNQkZ1M.js","icon-CzacdwOi.js","MethodPill-2JVqoYKi.js","DuplicateIcon-_xVXs-U8.js","createIcon-BRHrweLo.js","DynamicMarkdown-mQG_iQiE.js","SectionHeading-DMpJzv8f.js","axios-vUo_bRtp.js"]}