LeminToken
Solve a Lemin Cropped CAPTCHA through your own proxy and get the answer and challenge id to submit. Shows the request schema, an example and provider prices.
LeminToken solves a Lemin Cropped CAPTCHA through your proxy and returns the answer and challengeId the site expects. It takes the same parameters as LeminTokenProxyLess: find them as described in Find the parameters, and submit the result as described in Use the answer and challenge id.
Use LeminTokenProxyLess when the site does not check the address that submits the values.
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 values.
Check Provider stats for live success rates and solve times before you pick a provider.
Supported Providers
| Provider | Price per 1,000 | Routing |
|---|---|---|
2Captcha | $1.45 | |
SolveCaptcha | $1.45 |
Request Schema
| Field | Type | Required | Description |
|---|---|---|---|
clientKey* | string | Yes | Your API key. Create one in a workspace of 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, 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:
| Field | Type | Required | Description |
|---|---|---|---|
type* | Yes | ||
websiteURL* | URL | Yes | Full URL of the page where the CAPTCHA is displayed. Example: |
captchaId* | string | Yes | The Lemin captchaId of the website, such as CROPPED_3dfdd5c_... It is unique per website. Example: |
divId* | string | Yes | The id of the div element that contains the Lemin captcha. Example: |
proxy* | string | object | Yes | Proxy the provider solves through, as a string or an object. See Proxy configuration. View proxy configurationExample: |
leminApiServerSubdomain | string | No | Host the page loads the Lemin scripts from, when it is not the default api.leminnow.com. Send the bare host; it is converted for providers that expect a full URL. 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: |
{
"clientKey": "YOUR_API_KEY",
"task": {
"type": "LeminToken",
"websiteURL": "https://2captcha.com/demo/lemin",
"captchaId": "CROPPED_3dfdd5c_d1872b526b794d83ba3b365eb15a200b",
"divId": "lemin-cropped-captcha",
"proxy": "http://user:pass@1.2.3.4:8080"
}
}Optional fields are not guaranteed across providers
Response Schema
| Field | Type | Required | Description |
|---|---|---|---|
status* | Yes | Task status: "processing", "ready", or "failed". Example: | |
errorId* | Yes |
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 | Provider that handled this task. While processing, the provider currently solving it. Example: | |
solution | object | No |
Solution Object Properties
The solution field contains an object with the following properties:
| Field | Type | Required | Description |
|---|---|---|---|
answer* | string | Yes | The Lemin answer value. Submit it with challengeId to the target site. Example: |
challengeId* | string | Yes | The Lemin challenge id the answer belongs to. Example: |
raw* | Record<string, unknown> | Yes | Raw provider response data for advanced use cases. |