Skip to Content
AnySolver logo
AnySolver
Token

KeyCaptchaToken

Solve KeyCAPTCHA through your own proxy from the s_s_c page parameters and get the response token. Shows the request schema, an example and provider prices.

KeyCaptchaToken solves a KeyCAPTCHA puzzle through your proxy and returns the token the page expects. KeyCAPTCHA is a puzzle CAPTCHA that the page configures through a set of s_s_c_* JavaScript variables, and the task takes the page URL and four of those values.

Use KeyCaptchaTokenProxyLess when the site accepts a token solved from the provider network.

Use your proxy

task.proxy is required on this task type. The provider solves from that address, and the proxy must keep one IP for the whole solve: see Keep the same IP for the whole solve. Use the same proxy for the request that submits the token.

Find the parameters

Open the page source or the Console and search for s_s_c_. Copy these variables:

Task fieldPage variable
userIds_s_c_user_id
sessionIds_s_c_session_id
webServerSigns_s_c_web_server_sign
webServerSign2s_s_c_web_server_sign2

Send the URL of the page that shows the puzzle as websiteURL. Read all values from the same page load you solve for, right before you create the task.

Values change on every page load

s_s_c_session_id changes each time the page loads, and the signature values belong to that session. Read the values from the same page load you solve for, right before you create the task.

Use the token

Submit the solution token in the form field or request parameter that carries the KeyCAPTCHA response. To find it, submit the form once in a browser with the DevTools Network tab open and look for the parameter that holds the response.

If the site rejects the token, check that the proxy kept one IP for the whole solve, then that websiteURL and the four values come from the same page load.

Check Provider stats for live success rates and solve times before you pick a provider.

Supported Providers

ProviderPrice per 1,000Routing
2Captcha
$2.99

Request Schema

FieldTypeRequiredDescription
clientKey*
stringYes

Your API key. Create one in a workspace of the AnySolver dashboard.

Example: your-api-key-from-dashboard

task*
objectYes

The task body. Required fields depend on the task type. See Tasks for per-task schemas.

View task properties
settings
objectNo

Per-request settings for routing, Auto Retry, Auto Fallback, proxy reuse, response statistics and detailed analytics. Each field overrides the API key's value. See Routing modes.

View settings reference

Task Object Properties

The task field accepts an object with the following properties:

FieldTypeRequiredDescription
type*
Yes
websiteURL*
URLYes

Full URL of the page where the CAPTCHA is displayed.

Example: https://2captcha.com/demo/keycaptcha

userId*
stringYes

Value of the s_s_c_user_id parameter found on the page.

Example: 184015

sessionId*
stringYes

Value of the s_s_c_session_id parameter found on the page. It changes on every page load.

Example: 80f5f77b8b396b6cb6ea59cf22c38c55

webServerSign*
stringYes

Value of the s_s_c_web_server_sign parameter found on the page.

Example: 418910f3da05d4e3125030e4f9c95d42

webServerSign2*
stringYes

Value of the s_s_c_web_server_sign2 parameter found on the page.

Example: 118b538926cf9aafc48926bcaccf4c0e

proxy*
string | objectYes

Proxy the provider solves through, as a string or an object. See Proxy configuration.

View proxy configuration

Example: http://user:pass@1.2.3.4:8080

{
    "clientKey": "YOUR_API_KEY",
    "task": {
        "type": "KeyCaptchaToken",
        "websiteURL": "https://2captcha.com/demo/keycaptcha",
        "userId": "184015",
        "sessionId": "80f5f77b8b396b6cb6ea59cf22c38c55",
        "webServerSign": "418910f3da05d4e3125030e4f9c95d42",
        "webServerSign2": "118b538926cf9aafc48926bcaccf4c0e",
        "proxy": "http://user:pass@1.2.3.4:8080"
    }
}

Optional fields are not guaranteed across providers

Required fields are guaranteed across every provider that supports this task. Optional fields may be honored by some providers and silently ignored by others. AnySolver does not document per-provider parameter support, so before relying on an optional field, check that provider's own docs for the task you are using.

Response Schema

FieldTypeRequiredDescription
status*
Yes

Task status: "processing", "ready", or "failed".

Example: ready

errorId*
Yes

0 on success; 1 or 2 on an error. Branch on errorCode: Error IDs explains the two error groups.

Example: 0

taskId
stringNo

Unique identifier returned when the task was created.

Example: 01KFNDF328KAN2AJ3BNHCQYE88

errorCode
No

Machine-readable error code.

Example: CAPTCHA_UNSOLVABLE

errorDescription
stringNo

Human-readable error message with resolution hints.

Example: The captcha could not be solved.

cost
numberNo

Actual cost charged for this task in USD.

Example: 0.002

taskType
No

The type of CAPTCHA task to solve.

Example: ReCaptchaV2TokenProxyLess

provider
No

Provider that handled this task. While processing, the provider currently solving it.

Example: Multibot

solution
objectNo

Solution Object Properties

The solution field contains an object with the following properties:

FieldTypeRequiredDescription
token*
stringYes

The solved CAPTCHA token to submit with your form.

Example: 84f42ee334f6bd760b8be3b2b...492598266d7a2418511776505f79|1

raw*
Record<string, unknown>Yes

Raw provider response data for advanced use cases.