UnifyAPI
← Back to catalog

code.execute

mock data$0.005 / call

Execute 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)

Developer Toolsprovider: Code#code#developer

Input schema

stdin

Standard input to feed to the program

string
language_idrequired

Language 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

integer
source_coderequired

Source code to execute

string
memory_limit

Memory limit in KB (default 128000 = 128MB)

number
cpu_time_limit

CPU time limit in seconds (default 5, max 15)

number

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}'

Try it

Paste a UnifyAPI key (create one in the dashboard) and run a real call.