Beta Token hCaptcha API
POSThttps://api.yxai-tech.top/captcha/token/hcaptcha

hCaptcha 自动验证 API,提交 Website Key 即可自动完成验证。

请求头

acceptstring
指定服务器返回的响应格式。
请选择
authorizationstring
Bearer token

请求体

website_keystring必填参数
目标网站的 hCaptcha sitekey(站点密钥),用于标识待识别的验证码实例。
website_urlstring必填参数
部署了 hCaptcha 验证码的目标网站 URL。
asyncboolean
When true, the server creates a managed asynchronous task and returns HTTP 201 with task_id and trace_id. The server continues processing even if the client disconnects or never polls. POST /captcha/tasks is an optional status query that does not drive task processing; the first ready-result read keeps the existing one-time settlement behavior. A successful task is charged once when the client first retrieves the ready result, matching the existing behavior; a task that is not ready by the 120-second deadline ends as HTTP 504 timeout and is not charged.
proxystring
可选,自带代理(Bring Your Own Proxy)。设置后将通过你提供的代理 IP 解验证码,用于控制出口 IP 质量(例如避免因公共代理 IP 被目标站点拦截而返回 410 Gone)。格式为 scheme://[user:pass@]host:port,scheme 支持 http/https/socks4/socks5,例如 http://user:pass@1.2.3.4:8080。不填则使用平台默认代理。
rqdatastring
可选,hCaptcha Enterprise 挑战的 rqdata 值。仅当目标页面提供 data-rqdata 时填写,并保持原值不变。

响应

集成指南

Shell

Python

JavaScript

Java

Go

PHP

温馨提示:对于流式请求,上面的代码可能不完全适用。请参阅对接文档以进行更改。

hCaptcha 验证码识别服务
允许用通用余额

启用「允许通用余额」后,专属余额不足将自动使用通用余额。