Hacker Earth

FREE
By ideas2it
Updated 10 months ago
Education
0.3/10
Popularity
184ms
Latency
-
Success Rate

Hacker Earth API Documentation

This API allows us to compile and run the source code programs. This API supports multiple programming languages. Possible values of lang argument are C, CPP, CPP11, CLOJURE, CSHARP, JAVA, JAVASCRIPT, HASKELL, PERL, PHP, PYTHON, RUBY. The correspondi

View API Details
POSTAPI to Compile Source Code
POSTAPI to Run Program Code
POSTAPI to Compile Source Code
Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
client_secretSTRING
REQUIREDclient_secret is a 40 character random key that serves as an identification for a particular client
sourceSTRING
REQUIREDThe source code that need to be compiled
langSTRING
REQUIREDProgramming languages in which the source is written
Optional Parameters
asyncNUMBER
OPTIONALMode to reduce memory overhead and timeout
inputSTRING
OPTIONALThe input to be fed to the program
time_limitNUMBER
OPTIONALMaximum time(in seconds) for which program is allowed to run
memory_limitNUMBER
OPTIONALMaximum memory allowed to be used by the program
Code Snippet
Install SDK
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication