快速开始
三步接入 hitCaptcha:注册拿 Key → 带鉴权调 API → 按厂商传参。
下文用 {BASE} 表示 API 根地址,正式环境为 https://api.hitcaptcha.com。
1. 注册并拿到 site-key
- 打开 控制台注册
- 邮箱验证码注册;新用户赠送 1000 点 试用
- 登录后在 API Key 页复制默认
site-key(也可用Authorization/X-API-Key头携带)
2. 探活与厂商列表
bash
curl -s 'https://api.hitcaptcha.com/health'
curl -s 'https://api.hitcaptcha.com/v1/solvers' \
-H 'Authorization: Bearer <site-key>'或:
bash
curl -s 'https://api.hitcaptcha.com/v1/solvers' \
-H 'X-API-Key: <site-key>'3. 发起求解
type 写在路径里(akamai / kasada / datadome / reese84),body 只放公共字段和厂商参数。
bash
curl -s -X POST 'https://api.hitcaptcha.com/v1/solve/kasada' \
-H 'content-type: application/json' \
-H 'Authorization: Bearer <site-key>' \
-d '{"url":"https://www.wizzair.com/","timeout":90000}'成功大致长这样:
json
{
"ok": true,
"type": "kasada",
"data": {},
"cost_ms": 123,
"charged_points": 2,
"balance_points": 998
}失败时看 error.code,完整列表见 错误码。
Python 示例
python
import requests
BASE = "https://api.hitcaptcha.com"
KEY = "hc_xxx" # 控制台 site-key
r = requests.post(
f"{BASE}/v1/solve/kasada",
json={"url": "https://www.wizzair.com/", "timeout": 90000},
headers={"Authorization": f"Bearer {KEY}"},
timeout=120,
)
print(r.json())各厂商字段差异见侧栏 厂商 文档;充值与套餐见 支付充值。