| Run Code | API | Code Wall | Misc | Feedback | Login | Theme | Privacy | Patreon |
apiRestful API is supported athttps://rextester.com/api/v1
HTTP POST body example:
{
"LanguageChoice": 24,
"Program": "print (\"Hi\")",
"Input": "",
"CompilerArgs": "",
"ApiKey": "your_key"
}
Returned is:
{
"Result": "Hi\n",
"Warnings": null,
"Errors": null,
"Stats": "Absolute running time: 0.15 sec, cpu time: 0.02 sec, memory peak: 8 Mb, absolute service time: 0.28 sec",
"Files": null
}
You can get an API key by choosing one of these plans: Rextester Pro User1k API requests / day + Pro features
€8 / month
API Basic5k API requests / day + Pro features
€15 / month
API Standard15k API requests / day + Pro features
€30 / month
API Large50k API requests / day + Pro features
€60 / month
API Mega150k API requests / day + Pro features
€120 / month
All plans include a 7-day free trial. Manage or cancel anytime in the Billing Portal. The values supplied match exactly what is supplied in the editor:
"LanguageChoice": language number (list of supported languages is below),
"Program": Code to run,
"Input": input supplied to the stdin of the process,
"CompilerArgs": compiler args if applicable (check if editor has them)
Compilers versions also match those indicated in the editor. Returned is JSON with:
"Result": Output
"Warnings": Warnings, if any
"Errors": Errors, if any
"Stats": Execution stats
"Files": For Octave - list of PNGs (base64)
Language numbers:
C# = 1
F# = 3
Java = 4
Python = 5
C (gcc) = 6
C++ (gcc) = 7
Php = 8
Pascal = 9
Objective-C = 10
Haskell = 11
Ruby = 12
Perl = 13
Lua = 14
Nasm = 15
Javascript = 17
Lisp = 18
Prolog = 19
Go = 20
Scala = 21
Scheme = 22
Node.js = 23
Python 3 = 24
Octave = 25
C (clang) = 26
C++ (clang) = 27
D = 30
Tcl = 32
Bash = 38
Ada = 39
Erlang = 40
Elixir = 41
Ocaml = 42
Kotlin = 43
Brainf*** = 44
Fortran = 45
Rust = 46
Clojure = 47
Questions? You can get support at patreon.
|