Important Note: The Piston API is rate limited to 5 requests per second. If you have a need for more requests than that and it's for a good cause, ple

engineer-man / piston

submited by
Style Pass
2021-05-26 03:30:10

Important Note: The Piston API is rate limited to 5 requests per second. If you have a need for more requests than that and it's for a good cause, please reach out to me (EngineerMan#0001) on Discord so we can discuss potentially getting you an unlimited key.

The container exposes an API on port 2000 by default. This is used by the CLI to carry out running jobs and package management.

GET /api/v2/runtimes This endpoint will return the supported languages along with the current version and aliases. To execute code for a particular language using the /api/v2/execute endpoint, either the name or one of the aliases must be provided, along with the version. Multiple versions of the same language may be present at the same time, and may be selected when running a job.

A typical response upon successful execution will contain 1 or 2 keys run and compile. compile will only be present if the language requested requires a compile stage.

Leave a Comment
Related Posts