# Judge0 via Locus x402 — Get Submission Result

> Judge0 via Locus x402 — Get Submission Result is a paid API for AI agents from judge0.x402.paywithlocus.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Retrieves the result of a previously submitted code execution job using its submission token.

## Facts

- Endpoint: POST https://judge0.x402.paywithlocus.com/judge0/get-submission
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/judge0-via-locus-x402-get-submission-result-cc8147b5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7PE4M7_WTsOSKO1IJp2xc

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability judge0-via-locus-x402-get-submission-result-cc8147b5 -d '<json body>'
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Online code execution — run source code in 60+ programming languages with sandboxed isolation.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "token": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/judge0-via-locus-x402-get-submission-result-cc8147b5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from judge0.x402.paywithlocus.com](https://www.zero.xyz/host/judge0.x402.paywithlocus.com/llms.txt)
