Hackerearth
For compiling and running code in several languages
- Authentication
- API Key
- HTTPS
- Yes
- CORS
- Unknown
- Category
- Programming
- Documentation / URL
- https://www.hackerearth.com/docs/wiki/developers/v4/
Overview
HackerEarth Code Check API compiles and runs code — key-based (missing client_secret returns 400, verified).
Quick Start
Submit (replace YOUR_SECRET):
curl "https://api.hackerearth.com/v4/partner/code-evaluation/submissions/" \
-H "Content-Type: application/json" \
-d '{"client_secret": "YOUR_SECRET", "source": "print(42)", "lang": "PYTHON"}'
{ "message": "ArgumentMissingError: client_secret is needed!", "errors": {} }
Authentication
- Register at hackerearth.com → client_secret.
- Send it in the JSON body (missing → 400, verified).
Rate Limits & Notes
- Free tier with limits (check the docs); paid plans scale.
- 40+ languages.
FAQ
Is Hackerearth free? Free tier with limits; more is paid.
Why 400? Missing client_secret returns 400 (verified).
What’s the auth style?
client_secret in the JSON body.