创建一个验证码识别任务,在参数里面指定识别哪一种验证码。
请求节点: Create a captcha recognition task, specifying in the parameters which type of captcha to recognize.
Request node:
状态 | ||||
---|---|---|---|---|
|
https://api.yescaptcha.com
状态 | ||||
---|---|---|---|---|
|
https://cn.yescaptcha.com
请求地址: Request address: https://api.yescaptcha.com/createTaskgetBalance
请求格式:Request format:POST
application/json
请求参数Request parameters
参数Parameters | 类型Type | 必须Required | 说明Description | |
---|---|---|---|---|
clientKey | string | 是 | 帐户密钥,可以在个人中心找到true | The clientkey, which can be found in the personal center |
task | string | 是 | 验证码类型,可以在这里浏览 所有验证码类型 |
请求示例:
...
true | You may peruse all captcha types at this location for the available captcha categories. |
Request example:
ImageToTextTask Text-based captcha (ordinary variable-length alphanumeric captcha).
代码块 | ||
---|---|---|
| ||
{ "clientKey":"cc9c18d3e263515c2c072b36a7125eecc078618f", "task": // 下面写你需要识别的类型 Please specify the type of captcha that you wish to recognize. { "type":"ImageToTextTask", "body":"图片的BASE64值The BASE64 value of the image." } } |
响应数据Response data
参数Parameters | 类型Type | 说明Description |
---|---|---|
errorId | Integer | 错误提示: Error message: 0 - 没有错误,1 - 有错误No error, 1 - Error exists |
errorCode | string错误代码,点这里查看全部错误列表 | Error code, click here to see the complete list of errors |
errorDescription | string错误详细描述 | Error detailed description |
taskId | string | 创建的任务ID,使用 getTaskResult 接口获取识别结果 |
...
The ID of the created task can be used to retrieve the recognition results using the getTaskResult interface |
Response example
代码块 | ||
---|---|---|
| ||
{ "errorId": 0, "errorCode": "", "errorDescription": "", "taskId": "2376919c-1863-11ec-a012-94e6f7355a0b" // 请记录此ID,供下一步使用 Please record this ID for future use in the subsequent steps. } |