Code Execution APIs
Code execution APIs compile and run source code remotely so you don't have to host your own sandbox. Judge0 CE judges submissions across 60+ languages with resource limits and needs no key, and Compiler Explorer is free, returning assembly as well as run output across thousands of compiler versions. JDoodle covers 100+ languages with WebSocket streaming. Codeforces is different: read-only competitive programming data such as ratings and contests.
| API | Pricing | Auth | Format | Free tier | Status |
|---|---|---|---|---|---|
CodeforcesCompetitive programming data: user ratings, contest results, problems, and submissions. Developer Tools › Code Execution | None | JSON | — | Live | |
Compiler Explorer (godbolt.org)Compiles code in 80+ languages across thousands of compiler versions, returning assembly and run output. Developer Tools › Code Execution | Free | None | JSON | Unlimited | Live |
HackerEarth Code Evaluation APICompiles and runs submitted code in many languages asynchronously, with status/result lookup by submission id. Developer Tools › Code Execution | Freemium | API key | JSON | — | Untested |
JDoodle Compiler APIRuns programs in 100+ languages on remote sandboxes and returns output, with stdin and WebSocket streaming. Developer Tools › Code Execution | Freemium | API key | JSON | <100/day | Untested |
Judge0 CESandboxed code execution and judging across 60+ languages, with compile/runtime status and resource limits. Developer Tools › Code Execution | Freemium | None | JSON | — | Live |
CodeforcesLive
Competitive programming data: user ratings, contest results, problems, and submissions.
None · JSON
—
no machine-readable spec
Compiler Explorer (godbolt.org)FreeLive
Compiles code in 80+ languages across thousands of compiler versions, returning assembly and run output.
None · JSON
Unlimited
no machine-readable spec
HackerEarth Code Evaluation APIFreemiumUntested
Compiles and runs submitted code in many languages asynchronously, with status/result lookup by submission id.
API key · JSON
—
no machine-readable spec
JDoodle Compiler APIFreemiumUntested
Runs programs in 100+ languages on remote sandboxes and returns output, with stdin and WebSocket streaming.
API key · JSON
<100/day
no machine-readable spec
Judge0 CEFreemiumLive
Sandboxed code execution and judging across 60+ languages, with compile/runtime status and resource limits.
None · JSON
—
no machine-readable spec
Nothing matches that combination. Clear the filters and start from the category.
Choosing a Code Execution API
Is there a free Code Execution API?
Yes. Compiler Explorer (godbolt.org) is free to use, and Judge0 CE, JDoodle Compiler API and HackerEarth Code Evaluation API have a free tier alongside paid plans.
Which Code Execution APIs work without an API key?
Judge0 CE, Compiler Explorer (godbolt.org) and Codeforces need no key or sign-up, so you can try them with a plain request.
Can I call a Code Execution API from front-end JavaScript?
Judge0 CE, Compiler Explorer (godbolt.org) and Codeforces allow cross-origin requests and need no key, so they work straight from the browser. For the others, call them from your server so your key stays private.
Can I use Code Execution APIs in a commercial project?
Judge0 CE and JDoodle Compiler API permit commercial use.
More in Developer Tools: Mock & Test APIs · Monitoring APIs · Web Scraping APIs · Package Registries APIs · API Directories APIs · WHOIS & DNS APIs · SEO APIs · Search & SERP APIs · Hosting APIs