Execute code in any supported language
Execute code in any supported language. 5s CPU timeout, 128MB RAM. Supports 40+ languages including Python, JavaScript, C, C++, Java, Go, Rust.
2000 (raw units)
price
1
calls / 30d
1
unique payers
2026-09-17
updated
Provider
execbox.xyz · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x21ba2c2f9cb292cf72360776389099dd0e9a3ae0",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "2000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"language_id": 71,
"source_code": "print(\"hello\")",
"stdin": ""
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"exit_code": 0,
"language": {
"id": 71,
"name": "Python (3.8.1)"
},
"memory": 3456,
"status": {
"description": "Accepted",
"id": 3
},
"stderr": "",
"stdout": "hello\n",
"time": "0.023"
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"command_line_arguments": {
"description": "Arguments passed to the compiled binary at runtime (e.g. \"--input file.txt\"). Leave empty or omit for most use cases. Do NOT put natural language here.",
"type": "string"
},
"compiler_options": {
"description": "Compiler flags passed to the compiler (e.g. \"-O2 -Wall\", \"-std=c17\"). Must start with \"-\". Leave empty or omit if unsure. Do NOT put natural language here.",
"type": "string"
},
"language_id": {
"description": "Judge0 language ID. GET /languages for valid IDs (e.g. 71=Python 3, 63=JavaScript, 50=C, 62=Java)",
"type": "number"
},
"source_code": {
"description": "Source code to execute (max 100,000 characters). Network access is disabled — code that opens sockets or makes HTTP requests will fail.",
"type": "string"
},
"stdin": {
"description": "Standard input passed to the program (optional)",
"type": "string"
}
},
"required": [
"language_id",
"source_code"
]
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"exit_code": {
"description": "Process exit code (null if killed)",
"type": "number"
},
"language": {
"properties": {
"id": {
"type": "number"
},
"name": {
"type": "string"
}
},
"type": "object"
},
"memory": {
"description": "Peak memory usage in kilobytes (KB). Tier limits in /pricing are expressed in MB — multiply by 1024 to compare.",
"type": "number"
},
"status": {
"properties": {
"description": {
"type": "string"
},
"id": {
"description": "3=Accepted, 4=Wrong Answer, 5=Time Limit Exceeded, 6=Compilation Error, 7=Runtime Error (SIGSEGV), 8=Runtime Error (SIGXFSZ), 9=Runtime Error (SIGFPE), 10=Runtime Error (SIGABRT), 11=Runtime Error (NZEC), 12=Runtime Error (Other). Codes 1-2 (queued/processing) never appear in responses; codes 13-14 (infra errors) return HTTP 502 instead.",
"type": "number"
}
},
"type": "object"
},
"stderr": {
"description": "Program standard error (null if none). Truncated at 4096 KB by the execution backend.",
"type": "string"
},
"stdout": {
"description": "Program standard output (null if none). Truncated at 4096 KB by the execution backend.",
"type": "string"
},
"time": {
"description": "Execution wall time in seconds, returned as a decimal string (e.g. \"0.023\")",
"type": "string"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://execbox.xyz/execute" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://execbox.xyz/execute");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://execbox.xyz/execute")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/5479.json, and this resource appears in /discovery/resources and /discovery/search.