Beta Recognition hCaptcha API
POSThttps://api.yxai-tech.top/captcha/recognition/hcaptcha

hCaptcha 图像识别 API,输入图片返回需要点选的坐标。

请求头

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

请求体

queriesarray
Base64 编码的验证码图片列表,将 hCaptcha 中的九张小图分别编码后以数组形式传入。
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.
questionstring
验证码挑战的问题标识符,请参照对应表格填写,支持中文和英文,其他语言请先转换。

响应

集成指南

Shell

Python

JavaScript

Java

Go

PHP

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

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

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