KeyCAPTCHA
KeyCAPTCHA: parameters, request, response and the 2Captcha method of KeyCaptchaTaskProxyless and KeyCaptchaTask.
On this page
KeyCAPTCHA: the puzzle widget configured with the s_s_c_* values of the page. The answer is the token the page expects.
| Status | coming soon |
| Type codes | KeyCaptchaTaskProxyless — without a proxy; KeyCaptchaTask — with your proxy |
| Proxy | optional: the second code takes your proxy |
| Also accepted as | KeyCaptchaTaskProxyLess |
| Price | set 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:
ParameterDescription
typestringrequired- Task type:
KeyCaptchaTaskProxyless,KeyCaptchaTask. websiteURLstringrequired- Full address of the page with the captcha: http(s), up to 2048 characters, a public site.
s_s_c_user_idstringrequireds_s_c_user_idfrom the page. Letters, digits and_ - . :, up to 64 characters.s_s_c_session_idstringrequireds_s_c_session_idfrom the page. Letters, digits and_ - . :, up to 256 characters.s_s_c_web_server_signstringrequireds_s_c_web_server_signfrom the page. Letters, digits and_ - . :, up to 512 characters.s_s_c_web_server_sign2stringrequireds_s_c_web_server_sign2from the page. Letters, digits and_ - . :, up to 512 characters.userAgentstring- User-Agent of the browser that will use the answer, up to 512 characters.
proxyTypestringhttp(default),https,socks4orsocks5.proxyAddressstringfor proxy types- IP address or host name of the proxy. Private and local addresses are rejected.
proxyPortintegerfor proxy types- Proxy port, 1–65535.
proxyLoginstring- Proxy login, up to 256 characters. Stored encrypted.
proxyPasswordstring- Proxy password, up to 256 characters. Stored encrypted.
Request#
A KeyCaptchaTaskProxyless task:
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "KeyCaptchaTaskProxyless",
"websiteURL": "https://example.com/login",
"s_s_c_user_id": "184015",
"s_s_c_session_id": "9ff29e0176e78eb7ba59314f92dbac1b",
"s_s_c_web_server_sign": "964635241a3e5e76980f2572e5f63452",
"s_s_c_web_server_sign2": "3ca802a38ffc5831fa293ac2819b1204"
}
}Response#
getTaskResult once the task is solved:
{
"errorId": 0,
"status": "ready",
"solution": {
"token": "TOKEN_eyJhbGciOiJIUzI1NiJ9…",
"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=keycaptcha, parameters → task fields:
| in.php | task |
|---|---|
s_s_c_user_id | s_s_c_user_id |
s_s_c_session_id | s_s_c_session_id |
s_s_c_web_server_sign | s_s_c_web_server_sign |
s_s_c_web_server_sign2 | s_s_c_web_server_sign2 |
pageurl | websiteURL |
res.php returns token of the solution as text (OK|…), or in request with json=1.