Judge0 CE API

⭐ Beginner's Pick Programming / API Key Intermediate HTTPS
Varies by plan (check documentation)

Overview

Judge0 CE is an open-source online code execution API that compiles and runs code in over 60 programming languages. You submit source code along with optional input, and within seconds you get back the program output, execution time, and memory usage. It is a popular choice for building coding challenges, interview platforms, and automated grading systems.

💡

Beginner Tip

Use the /submissions endpoint with wait=true to get results in a single synchronous request instead of polling — much simpler when getting started.

Available Data

Use case: Integrate online code execution system data into web and mobile applications
Judge0 CE data via REST API
JSON-formatted response data
Requires API key authentication

Example Response

JSON Response
{
  "status": "success",
  "data": {
    "result": "Data from Judge0 CE",
    "description": "Online code execution system",
    "timestamp": "2025-01-15T10:00:00Z"
  }
}

Field Reference

status.id Numeric status code: 3 = Accepted, 4 = Wrong Answer, 5 = TLE, 6 = Compilation Error, 11 = Runtime Error.
status.description Human-readable status label such as Accepted or Compilation Error.
stdout Standard output produced by the program (base64-encoded if base64_encoded=true).
stderr Standard error output, useful for debugging runtime errors.
time Actual execution time of the program in seconds.
memory Memory used by the program in kilobytes.

Implementation Example

const url = "https://ce.judge0.com/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "X-API-Key": "YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

HTTP 401 Unauthorized from RapidAPI The X-RapidAPI-Key header is missing or the key is invalid.
Subscribe to Judge0 CE on RapidAPI Hub, copy your API key, and include it as the X-RapidAPI-Key header.
status.id: 6 (Compilation Error) The source code has syntax errors for the specified language.
Check the compile_output field in the response for error details and test your code locally before submitting.
status.id: 5 (Time Limit Exceeded) The program ran longer than the allowed execution time for the language.
Review your algorithm for infinite loops or inefficient logic; use the cpu_time_limit field to request a longer limit if needed.

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 5/20
🔒 Security 15/15
🛠 Developer XP 12/20
✓ Reliability 10/15

Partially tested on Apr 5, 2026

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS UNKNOWN
Category Programming
Difficulty Intermediate
Verified: 2026-04-04

Similar APIs

View All →