{"info":{"_postman_id":"71d8a48b-cbff-41c7-990d-d20f04feb5e2","name":"Code Runner","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<p>The API runs C++/Java/Python both synchronously and asynchronously in a completely sanboxed environment and returns the results of execution.</p>\n<h1 id=\"overview\">Overview</h1>\n<p>Things that the developers should know about</p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>As of now there is no authentication.</p>\n<h1 id=\"error-codes\">Error Codes</h1>\n<blockquote>\n<ul>\n<li>200 for success</li>\n<li>429 for rate limit.</li>\n<li>500 in case of error.</li>\n</ul>\n</blockquote>\n<h1 id=\"rate-limit\">Rate limit</h1>\n<p>5 requests/minute</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Introduction","slug":"introduction"},{"content":"Overview","slug":"overview"},{"content":"Authentication","slug":"authentication"},{"content":"Error Codes","slug":"error-codes"},{"content":"Rate limit","slug":"rate-limit"}],"owner":"4843397","collectionId":"71d8a48b-cbff-41c7-990d-d20f04feb5e2","publishedId":"TW76E5ZA","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-02-09T17:24:47.000Z"},"item":[{"name":"Run Python Code","id":"465ddba6-7f14-4f45-9063-25257bd287ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"data\": {\n        \"code\": \"n = int(input())\\nwhile n > 0:\\n    a, b = [int(i) for i in input().split()]\\n    print(a * b)\\n    n -= 1\",\n        \"language\": \"py\",\n        \"code_input\": \"4\\n1 1\\n2 2\\n3 3\\n4 4\",\n        \"time_limit\": 1\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://code-runner.tk/run","urlObject":{"protocol":"https","path":["run"],"host":["code-runner","tk"],"query":[],"variable":[]}},"response":[],"_postman_id":"465ddba6-7f14-4f45-9063-25257bd287ac"},{"name":"Run C++ Code","id":"4a7b6c26-5672-4df5-9ffb-a1ef253160ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"data\": {\n        \"code\": \"#include<iostream>\\nusing namespace std;\\n\\nint main() {\\n    int n;\\n    cin>>n;\\n    while(n) {\\n        int a, b;\\n        cin>>a>>b;\\n\\n        cout<<a-b<<\\\"\\\\n\\\";\\n        n--;\\n    }\\n    return 0;\\n}\",\n        \"language\": \"cpp\",\n        \"code_input\": \"4\\n1 1\\n2 2\\n3 3\\n4 4\",\n        \"time_limit\": 1\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://code-runner.tk/run","urlObject":{"protocol":"https","path":["run"],"host":["code-runner","tk"],"query":[],"variable":[]}},"response":[],"_postman_id":"4a7b6c26-5672-4df5-9ffb-a1ef253160ec"},{"name":"Run Java Code","id":"d9c45adf-65af-47d7-ae51-a972ae3fedfa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"data\": {\n        \"code\": \"import java.util.Scanner;\\n\\nclass Solution {\\n    public static void main(String[] args) {\\n        Scanner s = new Scanner(System.in);\\n        int n = s.nextInt();\\n\\n        while(true) {\\n            continue;\\n        }\\n    }\\n}\",\n        \"language\": \"java\",\n        \"code_input\": \"4\\n1 1\\n2 2\\n3 3\\n4 4\",\n        \"time_limit\": 1\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://code-runner.tk/run","urlObject":{"protocol":"https","path":["run"],"host":["code-runner","tk"],"query":[],"variable":[]}},"response":[],"_postman_id":"d9c45adf-65af-47d7-ae51-a972ae3fedfa"},{"name":"Run Python Code Async","event":[{"listen":"test","script":{"id":"76cfa7b2-6227-42a6-8eda-a4a389f569b1","exec":["pm.test(\"Your test name\", function () {\r","    let response_body = pm.response.json();\r","    let task_id = response_body.data.data.task_id\r","    pm.collectionVariables.clear();\r","    pm.collectionVariables.set(\"task_id\", task_id);\r","});"],"type":"text/javascript"}}],"id":"d53ca23b-f94f-479b-bbcd-1568e7dfd9aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"data\": {\n        \"code\": \"n = int(input())\\nwhile n > 0:\\n    a, b = [int(i) for i in input().split()]\\n    print(a * b)\\n    n -= 1\",\n        \"language\": \"py\",\n        \"code_input\": \"4\\n1 1\\n2 2\\n3 3\\n4 4\",\n        \"time_limit\": 1\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://code-runner.tk/run-async","urlObject":{"protocol":"https","path":["run-async"],"host":["code-runner","tk"],"query":[],"variable":[]}},"response":[],"_postman_id":"d53ca23b-f94f-479b-bbcd-1568e7dfd9aa"},{"name":"Run C++ Code Async","event":[{"listen":"test","script":{"id":"869925b1-0d06-44e8-b900-7a5806a04dfe","exec":["pm.test(\"Your test name\", function () {\r","    let response_body = pm.response.json();\r","    let task_id = response_body.data.data.task_id\r","    pm.collectionVariables.clear();\r","    pm.collectionVariables.set(\"task_id\", task_id);\r","});"],"type":"text/javascript"}}],"id":"1731af01-2b26-49fc-8009-813b8a68afcb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"data\": {\n        \"code\": \"#include<iostream>\\nusing namespace std;\\n\\nint main() {\\n    int n;\\n    cin>>n;\\n    while(n) {\\n        int a, b;\\n        cin>>a>>b;\\n\\n        cout<<a-b<<\\\"\\\\n\\\";\\n        n--;\\n    }\\n    return 0;\\n}\",\n        \"language\": \"cpp\",\n        \"code_input\": \"4\\n1 1\\n2 2\\n3 3\\n4 4\",\n        \"time_limit\": 1\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://code-runner.tk/run-async","urlObject":{"protocol":"https","path":["run-async"],"host":["code-runner","tk"],"query":[],"variable":[]}},"response":[],"_postman_id":"1731af01-2b26-49fc-8009-813b8a68afcb"},{"name":"Run Java Code Async","event":[{"listen":"test","script":{"id":"ebe59a1c-2c7f-4ddc-bbf0-7b404dad81f3","exec":["pm.test(\"Your test name\", function () {\r","    let response_body = pm.response.json();\r","    let task_id = response_body.data.data.task_id\r","    pm.collectionVariables.clear();\r","    pm.collectionVariables.set(\"task_id\", task_id);\r","});"],"type":"text/javascript"}}],"id":"d81ae498-4f07-477c-a56f-22829ef04c4c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"data\": {\n        \"code\": \"import java.util.Scanner;\\n\\nclass Solution {\\n    public static void main(String[] args) {\\n        Scanner s = new Scanner(System.in);\\n        int n = s.nextInt();\\n\\n        while(true) {\\n            continue;\\n        }\\n    }\\n}\",\n        \"language\": \"java\",\n        \"code_input\": \"4\\n1 1\\n2 2\\n3 3\\n4 4\",\n        \"time_limit\": 1\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://code-runner.tk/run-async","urlObject":{"protocol":"https","path":["run-async"],"host":["code-runner","tk"],"query":[],"variable":[]}},"response":[],"_postman_id":"d81ae498-4f07-477c-a56f-22829ef04c4c"},{"name":"Get Result","id":"0f666e98-c574-4296-999f-c05a0919619f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://code-runner.tk/get-result/:task_id","urlObject":{"protocol":"https","path":["get-result",":task_id"],"host":["code-runner","tk"],"query":[],"variable":[{"type":"any","value":"","key":"task_id"}]}},"response":[],"_postman_id":"0f666e98-c574-4296-999f-c05a0919619f"}],"event":[{"listen":"prerequest","script":{"id":"b961cbb7-512b-40c5-94ac-55b674a36e9a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"09551ab9-668a-45bf-8f9c-df0691011754","type":"text/javascript","exec":[""]}}],"variable":[{"key":"task_id","value":""}]}