创建一个验证码识别任务,在参数里面指定识别哪一种验证码。
请求节点: 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
请求地址: Method address:: https://api.yescaptcha.com/createTask
请求格式:Request format:POST
application/json
请求参数Request parameters
参数Parameters | 类型Type | 必须Required | 说明Purpose | |
---|---|---|---|---|
clientKey | string | 是 | 帐户密钥,可以在个人中心找到Yes | Client API key. You can get it here. |
task | string | 是 | 验证码类型,可以在这里浏览 所有验证码类型 |
...
Yes | Task type. See list of available captcha categories here. |
Request example:
ImageToTextTask文字验证码(普通不定长英数验证码)
代码块 | ||
---|---|---|
| ||
{ "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 structure
参数Parameter | 类型Type | 说明Purpose |
---|---|---|
errorId | Integer | 错误提示: Error identificator: 0 - 没有错误,1 - 有错误No error, 1 - Error |
errorCode | string错误代码,点这里查看全部错误列表 | Error code.Check out errors list. |
errorDescription | string错误详细描述 | Error description |
taskId | string | 创建的任务ID,使用 getTaskResult 接口获取识别结果 |
...
Task ID for future use in getTaskResult method. |
Response example
代码块 | ||
---|---|---|
| ||
{ "errorId": 0, "errorCode": "", "errorDescription": "", "taskId": "2376919c-1863-11ec-a012-94e6f7355a0b" // 请记录此ID,供下一步使用Please record this ID for future use in the subsequent steps. } |