Online code execution engine. Compile and run code in 70+ programming languages with sandboxed execution — submit code synchronously or async, get output, stderr, exit codes, and execution time.
View documentationUse Judge0 when your agent needs to execute code — running Python scripts, testing code snippets, validating solutions, or building interactive coding tools. Ideal for coding assistant agents, automated testing workflows, educational platforms, and any agent that needs to run arbitrary code safely in a sandbox.
Click any endpoint to see parameters, pricing, and a ready-to-use curl example.
Execute code synchronously — submit source code and get the output, stderr, and exit code immediately.
/services/judge0/judge0/execute-code| Name | Type | Required | Description |
|---|---|---|---|
| source_code | string | Yes | The source code to execute |
| language_id | number | Yes | Language ID (e.g. 71=Python 3, 63=JavaScript, 54=C++, 62=Java) |
| stdin | string | No | Standard input to provide to the program |
curl -X POST \
"https://api.indiegent.com/services/judge0/judge0/execute-code" \
-H "Authorization: Bearer <your-token>" \
-H "X-Agent-Wallet: my-agent" \
-H "Content-Type: application/json" \
-d '{
"source_code": "print('Hello, World!')",
"language_id": 71
}'api.indiegent.com/services/judge0USDC · Automatic
Payment protocols handled by IndieGent
Tempo