NeuroCaptcha

Alibaba captcha

Alibaba captcha: parameters, request, response and the 2Captcha method of AlibabaTaskProxyless and AlibabaTask.

On this page

Alibaba Cloud captcha (Aliyun): the widget with a scene id and a prefix. The answer is the tokens string the page sends to its server.

Statuscoming soon
Type codesAlibabaTaskProxyless — without a proxy; AlibabaTask — with your proxy
Proxyoptional: the second code takes your proxy
Also accepted asAlibabaTaskProxyLess
Priceset when the type is switched on — see pricing

Rules#

  • The proxy code solves through your proxy, so the answer is issued for your IP address. See Proxies.

Parameters#

Fields of the task object in createTask:

type
stringrequired
Task type: AlibabaTaskProxyless, AlibabaTask.
websiteURL
stringrequired
Full address of the page with the captcha: http(s), up to 2048 characters, a public site.
sceneId
stringrequired
Scene id of the captcha. Letters, digits and _ - . :, up to 128 characters.
prefix
stringrequired
Prefix of the captcha host. Letters, digits and _ - . :, up to 64 characters.
userId
string
User id of the site session. One line of text, up to 256 characters.
userUserId
string
Secondary user id. One line of text, up to 256 characters.
verifyType
string
Verification type, for example 1.0. Letters, digits and _ - . :, up to 32 characters.
region
string
Region, for example sgp. Letters, digits and _ - . :, up to 32 characters.
userCertifyId
string
Certify id of the session. Letters, digits and _ - . :, up to 256 characters. Also accepted as UserCertifyId.
apiGetLib
string
URL of the captcha script of the site. Absolute http(s) URL of a public site, up to 2048 characters.
userAgent
string
User-Agent of the browser that will use the answer, up to 512 characters.
proxyType
string
http (default), https, socks4 or socks5.
proxyAddress
stringfor proxy types
IP address or host name of the proxy. Private and local addresses are rejected.
proxyPort
integerfor proxy types
Proxy port, 1–65535.
proxyLogin
string
Proxy login, up to 256 characters. Stored encrypted.
proxyPassword
string
Proxy password, up to 256 characters. Stored encrypted.

Request#

A AlibabaTaskProxyless task:

POST /createTask
{
  "clientKey": "YOUR_API_KEY",
  "task": {
    "type": "AlibabaTaskProxyless",
    "websiteURL": "https://example.com/login",
    "sceneId": "a1b2c3",
    "prefix": "dlw3kug"
  }
}

Response#

getTaskResult once the task is solved:

getTaskResult
{
  "errorId": 0,
  "status": "ready",
  "solution": {
    "data": {
      "tokens": "{\"sceneId\":\"a1b2c3\",\"certifyId\":\"cId1\",\"deviceToken\":\"WEB#x1\",\"data\":\"d1\"}"
    },
    "userAgent": ""
  },
  "cost": "0.001500",
  "ip": "198.51.100.7",
  "createTime": 1793370000,
  "endTime": 1793370012,
  "solveCount": 1
}

2Captcha in.php#

The same task through the 2Captcha API: method=alibaba, parameters → task fields:

in.phptask
pageurlwebsiteURL
scene_idsceneId
prefixprefix
user_iduserId
user_user_iduserUserId
verify_typeverifyType
regionregion
user_certify_iduserCertifyId
api_get_libapiGetLib
useragentuserAgent

res.php returns data.tokens of the solution as text (OK|…), or in request with json=1.