1.7.0
OAS 3.1.0

Whipcode

This reference documents all request parameters and responses.

Not compatible with the repository version as RapidAPI affects some of the responses.

API Key (X-RapidAPI-Key)
Client Libraries

Run

Executes the provided code snippet.

Body
application/json

Request body

code
string
required

The source code, base64 encoded

ExampleENCODED_CODE
language_id
integer
min: 
1
max: 
28
required

Language ID of the submitted code

Example1
args
string

Compiler arguments separated by spaces

timeout
integer
min: 
0
max: 
20

Execution timeout in seconds

stdin
string

Standard input passed to the execution

env
object

Key-value pairs to add to the environment

Example{ "VAR": "VALUE" }
Responses
POST/run
curl --request POST \
  --url https://whipcode.p.rapidapi.com/run \
  --header 'Content-Type: application/json' \
  --data '{
  "code": "ENCODED_CODE",
  "language_id": 1,
  "env": {
    "VAR": "VALUE"
  }
}'
{
  "stdout": "…",
  "stderr": "…",
  "container_age": 0.4347,
  "timeout": false
}