jobe.run API Documentation

Getting Started

Welcome to the jobe.run API documentation. This guide will help you get started with integrating code execution capabilities into your applications.

Authentication

All API requests require authentication using an API key. You can generate API keys from your dashboard.

curl -X POST https://api.jobe.run/execute \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "language": "python",
    "code": "print(\"Hello, World!\")",
    "timeout": 5
  }'

Quick Start

Here's a simple example of executing Python code using our API:

curl -X POST https://api.jobe.run/execute \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "language": "python",
    "code": "print(\"Hello, World!\")",
    "timeout": 5
  }'

API Reference

Execute Code
POST /execute

Request Parameters

ParameterTypeRequiredDescription
languagestringYesProgramming language to execute (e.g., "python", "javascript")
codestringYesSource code to execute
timeoutintegerNoMaximum execution time in seconds (default: 5)
stdinstringNoStandard input to provide to the program

Response

{
  "success": true,
  "output": "Hello, World!",
  "executionTime": 125,  // milliseconds
  "memoryUsage": 15,     // MB
  "language": "python"
}

Error Response

{
  "success": false,
  "error": "Execution timed out after 5 seconds",
  "executionTime": 5000,
  "memoryUsage": 25,
  "language": "python"
}

Supported Languages

Python

Version: 3.10

Includes popular libraries like NumPy, Pandas, Matplotlib, and more.

JavaScript

Version: Node.js 18

Includes common packages like Lodash, Axios, and more.

Java

Version: JDK 17

Includes common libraries like Apache Commons, Guava, and more.

C/C++

Version: GCC 11

Includes standard libraries and Boost.

PHP

Version: 8.1

Includes common extensions and Composer packages.

Ruby

Version: 3.1

Includes popular gems like Rails, Sinatra, and more.

Limits & Quotas

The following limits apply to code execution:

ResourceStarterProfessionalEnterprise
Executions per month10,00050,000Unlimited
Max execution time5 seconds15 seconds30 seconds
Max memory256 MB512 MB1 GB
Concurrent executions520100+