Lemin CAPTCHA
Token-based method to bypass Lemin Puzzle CAPTCHA.
Task types
- LeminTaskProxyless - we use our own pool of proxies
- LeminTask - we use your proxies
LeminTaskProxyless task type specification
Property | Type | Required | Description |
---|---|---|---|
type | String | Yes | Task type: LeminTaskProxyless LeminTask |
websiteURL | String | Yes | The full URL of target web page where the captcha is loaded. We do not open the page, not a problem if it is available only for authenticated users |
captchaId | String | Yes | Lemin captchaId value. Unique for a website. |
divId | String | Yes | The id of captcha parent div element |
leminApiServerSubdomain | String | No | API domain used to load the captcha scripts. Default: https://api.leminnow.com/ |
userAgent | String | No | User-Agent of your browser will be used to load the captcha. Use only modern browser's User-Agents |
LeminTask task type specification
LeminTask
extends LeminTaskProxyless
adding a set of proxy-related parameters listed below
Property | Type | Required | Description |
---|---|---|---|
proxyType | String | Yes | Proxy type: http socks4 socks5 |
proxyAddress | String | Yes | Proxy IP address or hostname |
proxyPort | Integer | Yes | Proxy port |
proxyLogin | String | No | Login for basic authentication on the proxy |
proxyPassword | String | No | Password for basic authentication on the proxy |
Request examples
Method: createTask
API endpoint: https://api.2captcha.com/createTask
LeminTaskProxyless
{
"clientKey": "YOUR_API_KEY",
"task": {
"type":"LeminTaskProxyless",
"captchaId":"CROPPED_3dfdd5c_d1872b526b794d83ba3b365eb15a200b",
"divId":"lemin-cropped-captcha",
"leminApiServerSubdomain":"api.leminnow.com",
"websiteURL":"https://2captcha.com/demo/lemin",
}
}
LeminTask
{
"clientKey": "YOUR_API_KEY",
"task": {
"type":"LeminTask",
"captchaId":"CROPPED_3dfdd5c_d1872b526b794d83ba3b365eb15a200b",
"divId":"lemin-cropped-captcha",
"leminApiServerSubdomain":"api.leminnow.com",
"websiteURL":"https://2captcha.com/demo/lemin",
"proxyType": "http",
"proxyAddress": "1.2.3.4",
"proxyPort": "8080",
"proxyLogin": "user23",
"proxyPassword": "p4$w0rd"
}
}
Response example
Method: getTaskResult
API endpoint: https://api.2captcha.com/getTaskResult
{
"errorId": 0,
"status": "ready",
"solution": {
"answer": "0xaxakx0xaxaax0xkxx3ox0x3ox3ox...gAAAAABk8bgzEFOg9i3Jm",
"challenge_id": "e0348984-92ec-23af-1488-446e3a58946c"
},
"cost": "0.00299",
"ip": "1.2.3.4",
"createTime": 1692863536,
"endTime": 1692863556,
"solveCount": 1
}
Code examples
// https://github.com/2captcha/2captcha-php
$result = $solver->lemin([
'captchaId' => 'CROPPED_d3d4d56_73ca4008925b4f83a8bed59c2dd0df6d',
'apiServer' => 'api.leminnow.com',
'url' => 'http://sat2.aksigorta.com.tr',
]);
# https://github.com/2captcha/2captcha-python
result = solver.lemin(captcha_id='CROPPED_1abcd2f_a1234b567c890d12ef3a456bc78d901d',
div_id='lemin-cropped-captcha',
url='https://www.site.com/page/',
param1=..., ...)
// https://github.com/2captcha/2captcha-csharp
Lemin captcha = new Lemin();
captcha.SetCaptchaId("CROPPED_d3d4d56_73ca4008925b4f83a8bed59c2dd0df6d");
captcha.SetApiServer("api.leminnow.com");
captcha.SetUrl("http://sat2.aksigorta.com.tr");
// https://github.com/2captcha/2captcha-java
Lemin captcha = new Lemin();
captcha.setСaptchaId("CROPPED_d3d4d56_73ca4008925b4f83a8bed59c2dd0df6d");
captcha.setUrl("http://sat2.aksigorta.com.tr");
captcha.setApiServer("api.leminnow.com");
// https://github.com/2captcha/2captcha-go
captcha := Lemin {
CaptchaId: "CROPPED_3dfdd5c_d1872b526b794d83ba3b365eb15a200b",
Url: "https://www.site.com/page/",
DivId: "lemin-cropped-captcha",
ApiServer: "api.leminnow.com",
}
req := captcha.ToRequest()
req.SetProxy("HTTPS", "login:password@IP_address:PORT")
code, err := client.Solve(req)
# https://github.com/2captcha/2captcha-ruby
result = client.lemin({
captcha_id: 'CROPPED_1abcd2f_a1234b567c890d12ef3a456bc78d901d',
div_id: 'lemin-cropped-captcha',
pageurl: 'https://www.site.com/page/',
api_server: "https://api.leminnow.com/"
})