Judge0 CE

Judge0 CE

Programming

Online code execution system

Visit API

πŸ“š Documentation & Examples

Everything you need to integrate with Judge0 CE

πŸš€ Quick Start Examples

Judge0 CE Javascript Examplejavascript
// Judge0 CE API Example
const response = await fetch('https://ce.judge0.com/', {
    method: 'GET',
    headers: {
        'Content-Type': 'application/json'
    }
});

const data = await response.json();
console.log(data);

The Online Code Execution System API is designed to provide seamless and efficient code execution capabilities. This powerful API allows developers to run code snippets in various programming languages in real-time, making it an invaluable tool for educational platforms, coding competitions, and online IDEs. With its easy-to-use interface, users can send code for execution, receive immediate feedback, and handle outputs effortlessly. The documentation can be found at https://ce.judge0.com/, where developers can explore detailed guides on utilizing the API to its full potential, including language support, execution parameters, and more.

Using the Online Code Execution System API comes with numerous advantages. Here are five benefits of integrating this API into your applications:

  • Supports multiple programming languages for versatile code execution.
  • Provides real-time feedback and output to enhance user experience.
  • Easy integration with existing platforms for quick deployment.
  • Scalable infrastructure that can handle high volumes of requests.
  • Cost-effective solution compared to building a custom code execution environment.

Here’s a simple JavaScript code example for calling the API:

const axios = require('axios');

const runCode = async () => {
    const url = 'https://api.judge0.com/submissions';
    const code = `
    #include <stdio.h>
    int main() {
        printf("Hello, World!\\n");
        return 0;
    }`;
    const payload = {
        source_code: Buffer.from(code).toString('base64'),
        language_id: 4, // C Language
        stdin: ""
    };

    try {
        const response = await axios.post(url, payload);
        const submissionId = response.data.token;

        // Check the status of the submission
        const resultResponse = await axios.get(`${url}/${submissionId}`);
        console.log(resultResponse.data);
    } catch (error) {
        console.error('Error executing code:', error);
    }
};

runCode();
πŸ”’

Security Assessment

F
πŸ”’HTTPS
Enabled
SSL Grade: T
πŸ›‘οΈHeaders
0/100
πŸ•’Last Assessed
3 weeks ago
ℹ️Click for detailed analysis

πŸ“Š 30-Day Uptime History

Daily uptime tracking showing online vs offline minutes

Jun 21Jun 23Jun 25Jun 27Jun 29Jul 1Jul 3Jul 5Jul 7Jul 9Jul 11Jul 13Jul 15Jul 17Jul 2004008001440Minutes
Online
Offline

Related APIs in Programming