AlibabaToken
API documentation for AlibabaToken task type
Supported Providers
| Provider | Price per 1,000 | Routing |
|---|---|---|
| $2.99 | ||
| $0.80 |
Request Schema
| Field | Type | Required | Description |
|---|---|---|---|
clientKey* | string | Yes | Your API key. Create one in the AnySolver dashboard. Example: |
task* | object | Yes | The task body. Required fields depend on the task type. See Tasks for per-task schemas. View task properties |
settings | object | No | Per-request settings for routing, auto retry, auto fallback, and proxy behavior. See Routing Strategies. |
provider | No | Specific provider to use. If omitted, automatic routing selects the best provider. Example: | |
selectionMode | No | Routing strategy for this request. Overrides the API key default. See Routing Strategies. Example: | |
keyPoolMode | No | Which provider key pool to use: Example: |
Task Object Properties
The task field accepts an object with the following properties:
| Field | Type | Required | Description |
|---|---|---|---|
type* | Yes | ||
websiteURL* | URL | Yes | Full URL of the page where the CAPTCHA is displayed. Example: |
sceneId* | string | Yes | Captcha scenario identifier, taken from the sceneId field of the requestInfo object on the page. Example: |
prefix* | string | Yes | Captcha initialization parameter: the subdomain of the URL used to load the task, for example dlw3kug. Example: |
proxy* | string | object | Yes | |
userId | string | No | Unique identifier of the user or session on the website side (userId field of requestInfo). Example: |
userUserId | string | No | Secondary user identifier (userUserId field of requestInfo). Example: |
verifyType | string | No | Version or type of the captcha verification mechanism (type field of requestInfo). Example: |
region | string | No | Region of the server or data center processing the captcha, for example sgp. Example: |
userCertifyId | string | No | Verification ID linked to the current captcha session (traceid field of requestInfo). Example: |
apiGetLib | URL | No | Link to the AliyunCaptcha.js library used by the site. It may be generated on every page render. Example: |
userAgent | string | No | Browser User-Agent string. Must match the browser used on the target page. Not all providers properly support this parameter. Verify the compatibility with the provider you are using. Example: |
Optional fields are not guaranteed across providers
Response Schema
| Field | Type | Required | Description |
|---|---|---|---|
status* | Yes | Task status: "processing", "ready", or "failed". Example: | |
errorId* | Yes | 0 = success, 1 = external error, 2 = internal error. Example: | |
taskId | string | No | Unique identifier returned when the task was created. Example: |
errorCode | No | Machine-readable error code. Example: | |
errorDescription | string | No | Human-readable error message with resolution hints. Example: |
cost | number | No | Actual cost charged for this task in USD. Example: |
taskType | No | The type of CAPTCHA task to solve. Example: | |
provider | No | Specific provider to use. If omitted, automatic routing selects the best provider. Example: | |
solution | object | No |
Solution Object Properties
The solution field contains an object with the following properties:
| Field | Type | Required | Description |
|---|---|---|---|
tokens* | string | Yes | JSON string returned by the provider containing sceneId, certifyId, deviceToken and data. Example: |
raw* | Record<string, unknown> | Yes | Raw provider response data for advanced use cases. |