← Back to catalog
code.execute
mock data$0.005 / callExecute Code in Sandbox
⚡ ACTION: Execute source code in a sandboxed environment — 71 programming languages supported (Python, JavaScript, Java, C++, Go, Rust, C#, Bash, Ruby, PHP, and 60+ more). Returns stdout, stderr, execution time, and memory usage. Safe sandboxed execution with CPU/memory limits. Use code.languages to get language IDs (Judge0 CE)
Input schema
stdin
stringStandard input to feed to the program
language_idrequired
integerLanguage ID from code.languages (e.g. 71=Python 3, 63=JavaScript, 62=Java, 54=C++, 60=Go, 73=Rust, 51=C#, 46=Bash). Call code.languages for full list
source_coderequired
stringSource code to execute
memory_limit
numberMemory limit in KB (default 128000 = 128MB)
cpu_time_limit
numberCPU time limit in seconds (default 5, max 15)
Call via REST
curl -X POST https://unifyapi.pro/api/call/code.execute \
-H "Authorization: Bearer uak_live_..." \
-H "Content-Type: application/json" \
-d '{"stdin":"<stdin>","language_id":0,"source_code":"<source_code>","memory_limit":0,"cpu_time_limit":0}'