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

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

Request
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.

Metadata Score Breakdown

Estimated from metadata — endpoint not independently tested

This score is estimated from observable metadata — HTTPS support, authentication model, declared CORS, and documentation reachability — because the API requires authentication or exposes no publicly testable endpoint. The five-signal breakdown is only shown for live-tested APIs.

Metadata estimate · endpoint not independently tested

Technical Specifications

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

Related Tags

Similar APIs

View All →