# Judge0 Get Submission

> Judge0 Get Submission is a paid API for AI agents from Judge0 at judge0.mpp.paywithlocus.com, paid per call via MPP, $0.005/call, status unknown (last checked 2026-10-10, last successful call 2026-06-10).

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

## Facts

- Endpoint: POST https://judge0.mpp.paywithlocus.com/judge0/get-submission?utm_source=zero.xyz
- Price: $0.005/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-10
- Last successful call: 2026-06-10
- Success rate: 100% of calls made through Zero
- Rating: 5.0 / 5 from 1 review
- Activations on Zero: 2
- Provider: Judge0
- Docs: https://ce.judge0.com
- Website: https://judge0.com
- Tags: code-execution, sandbox, programming-languages, compute
- Canonical page: https://www.zero.xyz/c/judge0-get-submission-06fc8c84
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ks0y4u8OgkZsKeMiA2ohC

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-get-submission-06fc8c84 -d '<json body>'
```

Example prompt: Check the result of my Judge0 code submission using token 'abc123xyz' — I want to know if it finished and what the output was.

## When to prefer this

Use this endpoint after calling Submit Code (Async) to poll for the result. This is the second step in the async code execution workflow — submit first to get a token, then call this endpoint one or more times until the execution status indicates completion.

## Known failure modes

- Invalid or expired token returns 404 or empty result
- Submission still processing returns a queued/running status rather than final output
- Network timeout if Judge0 sandbox is under load
- Missing required token field returns 422 validation error

## How this service works

Retrieve the result of an async submission by token. Poll this after submit-code until status.id >= 3 (no longer queued/processing).

## Output

Returns the full submission result including execution status, stdout, stderr, compile output, execution time in milliseconds, memory usage in kilobytes, and exit code for the code that was previously submitted asynchronously.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "token"
 ],
 "properties": {
  "token": {
   "type": "string",
   "description": "Submission token returned by submit-code"
  }
 },
 "additionalProperties": true
}
```

## More

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