freeapis

Hackerearth

用于编译和运行多种语言的代码

认证方式
API Key
HTTPS
Yes
CORS
Unknown
分类
编程
数据来源
public-apis + marcelscruz

简介

HackerEarth Code Check API 编译和运行代码——基于密钥(缺少 client_secret 返回 400,已实测)。

快速开始

提交(替换 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": {} }

认证方式

  • 在 hackerearth.com 注册 → client_secret。
  • 放在 JSON body 中(缺失 → 400,已实测)。

速率限制与注意事项

  • 免费层带限额(看文档);付费档可扩展。
  • 40+ 种语言。

常见问题

Hackerearth 免费吗? 免费层带限额;更多需要付费。

为什么 400? 缺少 client_secret 返回 400(已实测)。

认证风格是什么? client_secret 在 JSON body 中。

编程 分类更多

APIAuthHTTPSCORS
Codeforces

Get access to Codeforces data

API KeyYesUnknown↗
JMESPath

Run JMESPath queries on JSON data for filtering, transforming, and extracting results

No authYesUnknown↗
Judge0 CE

Online code execution system

API KeyYesUnknown↗
KONTESTS

For upcoming and ongoing competitive coding contests

No authYesUnknown↗
Mintlify

For programmatically generating documentation for code

API KeyYesYes↗