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
Request Parameters
Parameter | Type | Required | Description |
---|---|---|---|
language | string | Yes | Programming language to execute (e.g., "python", "javascript") |
code | string | Yes | Source code to execute |
timeout | integer | No | Maximum execution time in seconds (default: 5) |
stdin | string | No | Standard 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:
Resource | Starter | Professional | Enterprise |
---|---|---|---|
Executions per month | 10,000 | 50,000 | Unlimited |
Max execution time | 5 seconds | 15 seconds | 30 seconds |
Max memory | 256 MB | 512 MB | 1 GB |
Concurrent executions | 5 | 20 | 100+ |