Cutcaptcha
Cutcaptcha: parameters, request, response and the 2Captcha method of CutCaptchaTaskProxyless and CutCaptchaTask.
On this page
Cutcaptcha: the widget identified by its misery key and API key. The answer is the token the page sends with the form.
| Status | coming soon |
| Type codes | CutCaptchaTaskProxyless — without a proxy; CutCaptchaTask — with your proxy |
| Proxy | optional: the second code takes your proxy |
| Also accepted as | CutCaptchaTaskProxyLess |
| 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:
CutCaptchaTaskProxyless,CutCaptchaTask. websiteURLstringrequired- Full address of the page with the captcha: http(s), up to 2048 characters, a public site.
miseryKeystringrequired- Value of
CUTCAPTCHA_MISERY_KEYon the page. Letters, digits and_ - . :, up to 256 characters. apiKeystringrequireddata-apikeyof the captcha frame. Letters, digits and_ - . :, up to 256 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 CutCaptchaTaskProxyless task:
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "CutCaptchaTaskProxyless",
"websiteURL": "https://example.com/login",
"miseryKey": "a1b2c3d4e5f6a7b8c9d0",
"apiKey": "SAs61IAI"
}
}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=cutcaptcha, parameters → task fields:
| in.php | task |
|---|---|
misery_key | miseryKey |
api_key | apiKey |
pageurl | websiteURL |
res.php returns token of the solution as text (OK|…), or in request with json=1.