Cloud Compiler API is the only free API which compiles the source code provided by the user in the cloud and returns the output.
Advantages:
- supports 70+ programming languages
- no authorization key is required
This is the minified documentation to get familiar with the API. For full documentation, please visit the original one.
All API URLs listed in this documentation are relative to this. The Cloud Compiler API is a mostly RESTful API.
Known caveats:
- all API calls should be made with HTTP GET or POST
- you can consider any non-200 HTTP response code as an error
- when you use the submissions method and status is not equal to 0 then you should wait 3-5 seconds and call the method again
- error codes are not same as HTTP error codes
This endpoint retrieves all the programming languages that are supported by this API.
curl "http://cloudcompiler.esy.es/api/languages"
This endpoint retrieves the template for the specified language.
curl "http://cloudcompiler.esy.es/api/languages/template/13"
This endpoint retrieves the sample code for the specified language
curl "http://cloudcompiler.esy.es/api/languages/sample/13"
This endpoint submits the source code to the API.
curl -H "Content-Type: application/json" \
-d '{
"sourceCode": "# This is how submission looks like",
"langId": 63,
"stdin": "sample input",
"timeLimit": 1
}' \
-X POST \
'http://cloudcompiler.esy.es/api/submissions/'
This endpoint fetches the submission status.
curl "http://cloudcompiler.esy.es/api/submissions/FrnO2h"