{"uid":"cap_7PE4M7_WTsOSKO1IJp2xc","slug":"judge0-via-locus-x402-get-submission-result-cc8147b5","name":"Judge0 via Locus x402 — Get Submission Result","description":"Online code execution — run source code in 60+ programming languages with sandboxed isolation.","url":"https://judge0.x402.paywithlocus.com/judge0/get-submission","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"token":{"type":"string"}}},"responseSchema":{"type":"json","example":{"data":{},"payment":{"scheme":"exact","settledUsdc":"0.001000","authorizedMaxUsdc":"0.001000"},"request":{"id":"00000000-0000-4000-8000-000000000000","statusUrl":"/requests/00000000-0000-4000-8000-000000000000"},"success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_k13Zk8nauk0YND1CfsUxk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves the result of a previously submitted code execution job using its submission token.","exampleAgentPrompt":"I submitted my Python script a moment ago and got back token 'abc123-def456' — can you fetch the execution result so I can see the output and whether it compiled successfully?","exampleUseCases":[{"title":"CI pipeline output retrieval","prompt":"I just submitted my test suite to Judge0 and got a token back. Fetch the result for token 'f3a1b2c4-d5e6-7890-abcd-ef1234567890' so I can see whether the tests passed and what the stdout was."},{"title":"Interactive coding tutor result check","prompt":"My student submitted a C++ solution with token '1a2b3c4d-5e6f-7890-abcd-000011112222' — go retrieve the execution result so I can show them their output and any compiler errors."},{"title":"Automated code challenge grader","prompt":"The contestant's JavaScript submission was queued with token '99887766-aabb-ccdd-eeff-001122334455' — fetch the Judge0 result now so I can score their answer and see if it produced the right output."}],"resultDescription":"Returns a JSON object containing the execution result of the submitted code, including stdout, stderr, compile output, execution time, memory usage, and a status object indicating whether the run succeeded, failed to compile, timed out, or produced a runtime error. Also includes payment settlement metadata.","failureModes":["Invalid or expired token returns an error or empty data object","Submission still queued returns a processing status rather than final output","Network timeout if Judge0 backend is slow to respond","Payment failure if USDC balance is insufficient for the $0.005 fee","Malformed token string causes request rejection"],"whenToPreferThis":"Use this endpoint after calling the submit-code sibling endpoint and receiving a submission token. This is specifically for retrieving asynchronous Judge0 execution results via the Locus x402 payment gateway — prefer it when you need to poll or retrieve sandboxed code execution output for 60+ languages with per-call micropayment billing rather than a subscription model.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:35:36.631Z","isFirstParty":false}