版本比较

密钥

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。

...

Request node:

状态
colourGreen
titleINTERNATIONAL NODE
https://api.yescaptcha.com
状态
colourGreen
titleDOMESTIC CHINA NODE
https://cn.yescaptcha.com

Request address: Method address:: https://api.yescaptcha.com/getBalancecreateTask

Request format:POST application/json

...

Request parameters

Parameters

Type

Required

DescriptionPurpose

clientKey

string

true

The clientkey, which can be found in the personal centerYes

Client API key. You can get it here.

task

string

true

You may peruse all captcha types at this location for the Yes

Task type. See list of available captcha categories here.

Request example

ImageToTextTaskText-based captcha (ordinary variable-length alphanumeric captcha).

代码块
languagejson
{
    "clientKey":"cc9c18d3e263515c2c072b36a7125eecc078618f",
    "task": // Please specify the type of captcha that you wish to recognize.
        {
            "type":"ImageToTextTask", 
            "body":"The BASE64 value of the image."
        }
}

Response datastructure

ParametersParameter

Type

DescriptionPurpose

errorId

Integer

Error messageidentificator: 0 - No error, 1 - Error exists

errorCode

string

Error code, click here to see the complete list of errors.Check out errors list.

errorDescription

string

Error detailed description

taskId

stringThe

ID of the created task can be used to retrieve the recognition results using the getTaskResult interfaceTask ID for future use in getTaskResult method.

Response example

代码块
languagejson
{
    "errorId": 0,
    "errorCode": "",
    "errorDescription": "",
    "taskId": "2376919c-1863-11ec-a012-94e6f7355a0b" // Please record this ID for future use in the subsequent steps.
}