Development — entry 093 of 98
Wandbox
Wandbox is a free "social compilation service" built by melpon and kikairoya, offering 175 compiler configurations across 35 languages — from mainstream C++, Python, Rust, and Go to niche picks like Lazy K and Pony — including nightly HEAD builds of GCC and Clang. Its REST API needs no key: POST source code, a compiler ID, and options to /api/compile.json (or the /ndjson variant for streamed output) and get back compile/runtime output plus a permanent shareable permalink, while /api/list.json enumerates every compiler and its supported switches. The project was rewritten in 2024–2026 from a legacy Ruby backend to Rust (feline) and Remix (canine), which is why the old kennel2/API.rst docs path 404s — the live API endpoints themselves are unchanged.
Wandbox compiles and runs code online in 35 languages, from mainstream picks like C++, Python, and Go to nightly HEAD builds of GCC and Clang. Post your source and a compiler ID to /compile.json and get back the compiler output plus the program's own output. No key is needed.
GreatAPIs Score
Auth quickstart
- No API key required. Every request is public and keyless.
Your key is stored only in this browser (localStorage) and sent directly to the API — never to greatapis.
Compile and run a C++ snippet
POSThttps://wandbox.org/api/compile.json
Content-Type: application/json
{
"compiler": "gcc-head",
"code": "#include <cstdio>\nint main(){printf(\"hello\");}"
}{
"status": "0",
"signal": "",
"compiler_output": "",
"compiler_error": "",
"compiler_message": "",
"program_output": "hello",
"program_error": "",
"program_message": "hello",
"permlink": "",
"url": ""
}Try it
Developer reference
https://wandbox.org/api- GET/list.json
- POST/compile.json
Gotchas & limits
- Get a valid
compilerID fromGET /list.jsonfirst — it lists all 176 compiler configurations live, and an unrecognized ID returns a plain-textError: Unknown compiler, not a JSON error object - A compile error still returns HTTP 200 — check the
statusfield (a non-zero string) andcompiler_errorin the body, not the HTTP status code permlinkandurlstay empty strings unless you add"save": trueto the request body, which stores the run and returns a shareable link