API Documentation

Reference for available endpoints, request formats, parameters, and example responses for integrating the API into your applications.

This documentation is intended for developers who want to integrate CapSkip directly into their own scripts, applications, or automation systems. Users of third party software should follow the Tutorials section for setup instructions.

CapSkip emulates the APIs of widely used CAPTCHA solving services, allowing it to connect to compatible third party software without requiring any modifications. Integration typically only requires running CapSkip.

The documentation explains how to submit requests and retrieve results. CapSkip supports multiple API families, including the 2Captcha style API (in.php / res.php), the JSON createTask / getTaskResult API used by AntiCaptcha, CapMonster, CapSolver, NextCaptcha and EzCaptcha, and the DeathByCaptcha REST API. Services within the same family share the same endpoints. The base URL (host and port) differs for each service, and NextCaptcha and EzCaptcha keep their own response and error formats. A CAPTCHA type is only offered on the services that support it; the method sections name the exceptions.

API familyServices
2captcha-style2captcha.com, rucaptcha.com, solvecaptcha.com, captchas.io
JSON (createTask / getTaskResult)anti-captcha.com, capmonster.cloud, capsolver.com, nextcaptcha.com, ez-captcha.com
DeathByCaptchadeathbycaptcha.com

CapSkip answers on the port shown under Port in its Settings. Choosing a service under Service Emulator sets that service’s default port:

ServiceDefault port
2captcha.com8080
rucaptcha.com8081
anti-captcha.com8082
capmonster.cloud8083
capsolver.com8084
deathbycaptcha.com8085
solvecaptcha.com8086
captchas.io8087
nextcaptcha.com8088
ez-captcha.com8089

The examples on this page use port 8080. Replace it with the port CapSkip shows.

JSON API Basics

The JSON API takes a POST with a JSON body. /createTask submits a task and returns its taskId, /getTaskResult returns the state of a task, and /getBalance returns the balance. Every request carries your API key as clientKey (apiKey is accepted too). Each method section lists its own task types and fields.

curl -X POST http://127.0.0.1:8080/createTask \
-H "Content-Type: application/json" \
-d '{
    "clientKey": "YOUR_API_KEY",
    "task": {
        "type": "RecaptchaV2TaskProxyless",
        "websiteURL": "https://www.example.com/",
        "websiteKey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-"
    }
}'

An accepted task returns its ID. A refused request has a non-zero errorId, and the code from the Error Codes table in errorCode.

{
    "errorId": 0,
    "errorCode": "",
    "errorDescription": "",
    "taskId": "12345"
}

Poll /getTaskResult with the same clientKey and the taskId every few seconds. While the task runs, status is processing. It then becomes ready, with the answer in solution, or failed, with the code in errorCode and the reason in errorDescription. A ready result can be read again until the task expires, 30 minutes after it was submitted.

curl -X POST http://127.0.0.1:8080/getTaskResult \
-H "Content-Type: application/json" \
-d '{"clientKey": "YOUR_API_KEY", "taskId": "12345"}'
{
    "errorId": 0,
    "taskId": "12345",
    "status": "processing"
}

/getBalance takes {"clientKey": "YOUR_API_KEY"} and returns {"errorId": 0, "errorCode": "", "errorDescription": "", "balance": 999999.99, "packages": []}. The balance is the key’s remaining credits, or 999999.99 when the key has no credit limit. With NextCaptcha or EzCaptcha selected, these replies follow that service’s own format.

Image CAPTCHA

A normal CAPTCHA is an image containing distorted but human-readable text. To solve it, the user must type the text shown in the image.

To solve a normal CAPTCHA, submit the image via an HTTP POST request to the API endpoint. Send the request directly to your CapSkip instance using the configured local address and port, for example: http://127.0.0.1:8080/in.php. The port depends on the service selected in CapSkip (see the port table at the top of this page).

CapSkip accepts images in multipart/form-data or Base64-encoded format. A Base64 image may start with a data URL prefix such as data:image/png;base64,, and the Base64 form can also be posted as a JSON body with the same field names.

Multipart sample form

<form method="post" action="http://127.0.0.1:8080/in.php" enctype="multipart/form-data">
<input type="hidden" name="method" value="post">
Your key:
<input type="text" name="key" value="YOUR_APIKEY">
The CAPTCHA file:
<input type="file" name="file">
<input type="submit" value="Upload and get the ID">
</form>

YOUR_APIKEY represents your API key if API key validation is enabled in CapSkip. If API key validation is disabled, any string value will be accepted.

Base64 sample form

<form method="post" action="http://127.0.0.1:8080/in.php">
<input type="hidden" name="method" value="base64">
Your key:
<input type="text" name="key" value="YOUR_APIKEY">
The CAPTCHA file body in base64 format:
<textarea name="body">BASE64_FILE</textarea>
<input type="submit" value="Upload and get the ID">
</form>

YOUR_APIKEY represents your API key if API key validation is enabled in CapSkip. If API key validation is disabled, any string value will be accepted.

BASE64_FILE is the Base64-encoded image data.

List of POST Request Parameters
POST parameter Type Required Description
key String Yes* Your CapSkip API key. Required only when API Key Validation is enabled.
method String Yes post: submit the image using multipart/form-data
base64: submit the image as a Base64-encoded string
file File Yes* CAPTCHA image file.
* Required when method=post.
body String Yes* Base64-encoded CAPTCHA image data.
* Required when method=base64.
json Integer
Default: 0
No 0: response is returned as plain text
1: response is returned in JSON format

Other image parameters of the legacy in.php API, such as phrase, regsense, numeric, min_len, max_len, language and textinstructions, are accepted and ignored.

Submit CAPTCHA (multipart file upload):

curl -X POST -F "key=YOUR_API_KEY" -F "method=post" -F "[email protected]" http://127.0.0.1:8080/in.php

Submit CAPTCHA (base64 encoded):

curl -X POST -d "key=YOUR_API_KEY&method=base64&body=BASE64_IMAGE_DATA" http://127.0.0.1:8080/in.php

After submitting the request, if everything is correct, CapSkip will return the CAPTCHA ID as plain text: OK|12345

If the json=1 parameter is used, the response will be returned in JSON format:

{
    "status":1,
    "request":"12345"
}

Wait 1 second, then send an HTTP GET request to the result endpoint (/res.php) with the returned CAPTCHA ID.

If the CAPTCHA has been solved, CapSkip will return the result as plain text: OK|TEXT

If json=1 was specified, the response will be:

{
    "status":1,
    "request":"TEXT"
}

If the CAPTCHA is not yet solved, CapSkip will return: CAPCHA_NOT_READY, or {"status":0,"request":"CAPCHA_NOT_READY"} with json=1. Errors come back the same way: the code as plain text, or in request with status 0.

In this case, wait 1 second and repeat the request until a final result is received. If CapSkip returns an empty response body, the result has already been retrieved or the ID does not exist. Each result can be read only once.

List of GET request parameters
GET parameter Type Required Description
key String Yes* Your CapSkip API key. Required only when API Key Validation is enabled.
action String Yes get: retrieve the answer for the submitted CAPTCHA.
getbalance: return the balance of the key.
id Integer Yes The CAPTCHA ID returned by in.php.
json Integer
Default: 0
No 0: response is returned as plain text
1: response is returned in JSON format
curl "http://127.0.0.1:8080/res.php?key=YOUR_API_KEY&action=get&id=CAPTCHA_ID"

With action=getbalance, res.php returns the balance of the key as a bare number, for example 999999.99, or {"status":1,"request":"999999.99"} with json=1. The balance is the key’s remaining credits, or 999999.99 when the key has no credit limit. res.php also accepts POST with the same fields, as form fields or a JSON body.

curl "http://127.0.0.1:8080/res.php?key=YOUR_API_KEY&action=getbalance"
JSON API (createTask)

Image CAPTCHAs are also accepted on /createTask as ImageToTextTask. The answer comes back in the reply to /createTask itself, and can be read again from /getTaskResult with the taskId. The size limits are the same as on in.php. Not available while EzCaptcha is the selected service in CapSkip.

ParameterTypeRequiredDescription
typeStringYesMust be ImageToTextTask.
bodyStringYes*The Base64-encoded image. A data URL prefix is accepted. * Send the image in body or in image.
imageStringYes*The same as body, read when body is absent.
curl -X POST http://127.0.0.1:8080/createTask \
-H "Content-Type: application/json" \
-d '{
    "clientKey": "YOUR_API_KEY",
    "task": {
        "type": "ImageToTextTask",
        "body": "BASE64_IMAGE_DATA"
    }
}'

The reply carries the text and the confidence of the answer, in percent:

{
    "errorId": 0,
    "errorCode": "",
    "errorDescription": "",
    "status": "ready",
    "solution": {
        "text": "W68HP",
        "confidence": 97.5
    },
    "taskId": "12345"
}

A missing or unreadable image returns ERROR_BAD_PARAMETERS (errorId 1), an image over 600 kB or wider or taller than 1000 px returns ERROR_TOO_BIG_CAPTCHA_FILESIZE (errorId 4), and an image that could not be solved returns ERROR_CAPTCHA_UNSOLVABLE (errorId 12) with the reason in errorDescription. With NextCaptcha selected, the reply and the errors follow NextCaptcha’s own format.

recaptcha v2 solver  reCAPTCHA V2

reCAPTCHA v2, also known as the “I’m not a robot” reCAPTCHA, is a widely used CAPTCHA type. The visitor ticks a checkbox, and Google either lets them through at once or asks them to pick matching images before the form can be submitted.

To solve reCAPTCHA v2, send the googlekey and pageurl parameters along with method=userrecaptcha and your CapSkip API key.

You can obtain the googlekey using one of the following methods:

Right-click on the reCAPTCHA widget and select Inspect. Locate a URL that begins with:

www.google.com/recaptcha/api2/anchor

Copy the value of the k parameter from that URL. Alternatively, find the data-sitekey attribute in the page source and copy its value.

CapSkip sitekey

Once you have the site key, submit an HTTP GET or POST request to http://127.0.0.1:8080/in.php

List of POST Request Parameters
Parameter Type Required Description
key String Yes* Your CapSkip API key. Required only when API Key Validation is enabled.
method String Yes userrecaptcha: specifies a reCAPTCHA v2 request.
googlekey String Yes The value of the k or data-sitekey parameter found on the target page.
pageurl String Yes The full URL of the page where the reCAPTCHA is located.
enterprise Integer
Default: 0
No 1: indicates reCAPTCHA Enterprise v2.
0: standard reCAPTCHA v2.
invisible Integer
Default: 0
No 1: indicates Invisible reCAPTCHA.
0: standard checkbox reCAPTCHA.
data-s String No Value of the data-s parameter found on the page. Applicable to Google Search and certain Google services. data_s is accepted as the same parameter.
cookies String No Google cookies to use for this task, as name=value; name2=value2. They are set for .google.com. A JSON array of cookie objects with name, value and optionally domain and path is accepted too.
json Integer
Default: 0
No 0: response is returned as plain text.
1: response is returned in JSON format.
proxy String No Proxy address: IP:PORT, login:password@IP:PORT or IP:PORT:login:password; a host name works in place of the IP. One address is fine for testing and occasional solves. At volume, configure a proxy pool under Settings, Captcha types, reCAPTCHA, Configure Proxies, or send a proxy with each task. A proxy sent with a task takes priority over the pool.
proxytype String
Default: HTTP
No HTTP, HTTPS, SOCKS5 or SOCKS5H. SOCKS4 is not accepted.

Submit reCAPTCHA v2 (Standard):

curl -X POST -d "key=YOUR_API_KEY&method=userrecaptcha&googlekey=6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-&pageurl=https://example.com" http://127.0.0.1:8080/in.php

Submit reCAPTCHA v2 (Invisible):

curl -X POST -d "key=YOUR_API_KEY&method=userrecaptcha&googlekey=6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-&pageurl=https://example.com&invisible=1" http://127.0.0.1:8080/in.php

Submit Enterprise reCAPTCHA v2:

curl -X POST -d "key=YOUR_API_KEY&method=userrecaptcha&googlekey=6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-&pageurl=https://example.com&enterprise=1" http://127.0.0.1:8080/in.php

Submit Enterprise reCAPTCHA v2 (Invisible):

curl -X POST -d "key=YOUR_API_KEY&method=userrecaptcha&googlekey=6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-&pageurl=https://example.com&enterprise=1&invisible=1" http://127.0.0.1:8080/in.php

If the request is successful, CapSkip will return the CAPTCHA ID as plain text: OK|12345

If the json=1 parameter was used, the response will be returned in JSON format:

{
    "status":1,
    "request":"12345"
}

If the request fails, CapSkip will return an error code.

The reCAPTCHA refusals are ERROR_BAD_PARAMETERS when googlekey or pageurl is missing or a proxy is sent with an unsupported proxytype, ERROR_PAGEURL when pageurl is not a full http or https URL, ERROR_GOOGLEKEY when googlekey is not a reCAPTCHA site key, and ERROR_PROXY_FORMAT when the proxy cannot be read. With Show tasks with invalid data turned on under Settings, Captcha types, reCAPTCHA, CapSkip accepts a task with an invalid pageurl or googlekey instead and lists it in the task list.

Wait 15 to 20 seconds, then send an HTTP GET request to the result endpoint to retrieve the solution: http://127.0.0.1:8080/res.php

List of GET request parameters
GET parameter Type Required Description
key String Yes* Your CapSkip API key. Required only when API Key Validation is enabled.
action String Yes get: retrieve the answer for the submitted CAPTCHA.
id Integer Yes The CAPTCHA ID returned by in.php.
json Integer
Default: 0
No 0 returns the response as plain text. 1 returns the response as JSON, including the userAgent value when one is available.
curl "http://127.0.0.1:8080/res.php?key=YOUR_API_KEY&action=get&id=CAPTCHA_ID"

If the CAPTCHA has been solved, CapSkip will respond in plain text or JSON and return the answer token. The token will look similar to the following:

03AHJ_Vuve5Asa4koK3KSMyUkCq0vUFCR5Im4CwB7PzO3dCxIo11i53epEraq-uBO5mVm2XRikL8iKOWr0aG50sCuej9bXx5qcviUGSm4iK4NC_Q88flavWhaTXSh0VxoihBwBjXxwXuJZ-WGN5Sy4dtUl2wbpMqAj8Zwup1vyCaQJWFvRjYGWJ_TQBKTXNB5CCOgncqLetmJ6B6Cos7qoQyaB8ZzBOTGf5KSP6e-K9niYs772f53Oof6aJeSUDNjiKG9gN3FTrdwKwdnAwEYX-F37sI_vLB1Zs8NQo0PObHYy0b0sf7WSLkzzcIgW9GR0FwcCCm1P8lB-50GQHPEBJUHNnhJyDzwRoRAkVzrf7UkV8wKCdTwrrWqiYDgbrzURfHc2ESsp020MicJTasSiXmNRgryt-gf50q5BMkiRH7osm4DoUgsjc_XyQiEmQmxl5sqZP7aKsaE-EM00x59XsPzD3m3YI6SRCFRUevSyumBd7KmXE8VuzIO9lgnnbka4-eZynZa6vbB9cO3QjLH0xSG3-egcplD1uLGh79wC34RF49Ui3eHwua4S9XHpH6YBe7gXzz6_mv-o-fxrOuphwfrtwvvi2FGfpTexWvxhqWICMFTTjFBCEGEgj7_IFWEKirXW2RTZCVF0Gid7EtIsoEeZkPbrcUISGmgtiJkJ_KojuKwImF0G0CsTlxYTOU2sPsd5o1JDt65wGniQR2IZufnPbbK76Yh_KI2DY4cUxMfcb2fAXcFMc9dcpHg6f9wBXhUtFYTu6pi5LhhGuhpkiGcv6vWYNxMrpWJW_pV7q8mPilwkAP-zw5MJxkgijl2wDMpM-UUQ_k37FVtf-ndbQAIPG7S469doZMmb5IZYgvcB4ojqCW3Vz6Q

Each token comes with the User-Agent it is bound to. With json=1 the response includes a userAgent field next to request. In plain text mode, read the same value from the X-Recaptcha-User-Agent response header. If you use the JSON API, getTaskResult returns it as solution.userAgent. Send this User-Agent when you submit the token, because some sites check that the two match. The field and the header are left out when no User-Agent is available.

{
    "status": 1,
    "request": "03AHJ_Vuve5Asa4koK3KSMyUkCq0vUFCR5Im4CwB7PzO3dCxIo11i53epEraq...",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/156.0.0.0 Safari/537.36"
}

If the CAPTCHA is not yet solved, CapSkip will return CAPCHA_NOT_READY. In this case, wait 5 seconds and repeat the request. If CapSkip returns an empty response body, the result has already been retrieved or the ID does not exist. Each result can be read only once.

A task that could not be solved returns ERROR_CAPTCHA_UNSOLVABLE, or the replacement text set in Settings. On res.php this includes a site key or page domain that Google refused; getTaskResult names those cases ERROR_RECAPTCHA_INVALID_SITEKEY and ERROR_RECAPTCHA_INVALID_DOMAIN.

Locate the element with the ID g-recaptcha-response and make it visible by removing the display: none style.

g recaptcha response CapSkip

Please note: In some cases, the page content is generated dynamically, and the g-recaptcha-response element may not appear in the static HTML source. In such situations, inspect the page structure using your browser’s developer tools to locate the dynamically generated element.


As an alternative, you can use JavaScript to set the value of the g-recaptcha-response field directly:

document.getElementById("g-recaptcha-response").value = "TOKEN";

An input field will appear on the page. Paste the answer token into that field and submit the form.

JSON API (createTask)

reCAPTCHA v2, v3 and Enterprise are also accepted on /createTask, with the result read from /getTaskResult. Task type names are matched without regard to case. The *Task types solve through the proxy sent with the task; the *Proxyless types ignore any proxy and use the proxy settings in CapSkip. Enterprise is decided by the task type name. With NextCaptcha or EzCaptcha selected in CapSkip, the task types and answers follow that service’s own API.

Task typeVersionProxyDescription
RecaptchaV2TaskProxylessv2NoCheckbox or invisible reCAPTCHA v2.
RecaptchaV2Taskv2YesThe same, through your proxy.
NoCaptchaTaskProxylessv2NoAnti-Captcha name for RecaptchaV2TaskProxyless.
NoCaptchaTaskv2YesAnti-Captcha name for RecaptchaV2Task.
RecaptchaV2EnterpriseTaskProxylessv2 EnterpriseNoreCAPTCHA v2 Enterprise.
RecaptchaV2EnterpriseTaskv2 EnterpriseYesThe same, through your proxy.
RecaptchaV2HSEnterpriseTaskProxylessv2 EnterpriseNoNextCaptcha name, handled as RecaptchaV2EnterpriseTaskProxyless.
RecaptchaV3TaskProxylessv3NoreCAPTCHA v3.
RecaptchaV3Taskv3YesThe same, through your proxy.
RecaptchaV3HSTaskProxylessv3NoNextCaptcha name, handled as RecaptchaV3TaskProxyless.
RecaptchaV3EnterpriseTaskProxylessv3 EnterpriseNoreCAPTCHA v3 Enterprise.
RecaptchaV3EnterpriseTaskv3 EnterpriseYesThe same, through your proxy.
ParameterTypeRequiredDescription
typeStringYesOne of the task types above.
websiteURLStringYesThe full URL of the page where the reCAPTCHA is located.
websiteKeyStringYesThe reCAPTCHA site key.
isInvisibleBooleanNov2: true for Invisible reCAPTCHA.
recaptchaDataSValueStringNoThe data-s value. recaptchaDataS and CapSolver’s enterprisePayload.s are read too.
cookiesStringNov2: Google cookies, as for in.php.
pageActionString
Default: verify
Nov3: the action, with the same character rule as action on in.php.
minScoreFloatNov3: a number or a numeric string. Accepted for compatibility and clamped to the range 0.1 to 0.9. It does not change how the token is obtained.
proxyStringNo*Task types only. One string in any of the in.php formats, or the separate proxyType (HTTP, HTTPS, SOCKS5 or SOCKS5H; default HTTP), proxyAddress, proxyPort, proxyLogin and proxyPassword fields. A proxy that cannot be read is ignored, and the task uses the proxy settings in CapSkip.

Submit reCAPTCHA v2 on the JSON API:

curl -X POST http://127.0.0.1:8080/createTask \
-H "Content-Type: application/json" \
-d '{
    "clientKey": "YOUR_API_KEY",
    "task": {
        "type": "RecaptchaV2TaskProxyless",
        "websiteURL": "https://example.com",
        "websiteKey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-"
    }
}'

Poll /getTaskResult with the taskId from the reply. While the task runs, status is processing. The ready answer carries the token in solution.gRecaptchaResponse, the time it was issued in solution.createTime (Unix time in milliseconds), and the User-Agent the token is bound to in solution.userAgent when one is available:

{
    "errorId": 0,
    "errorCode": "",
    "errorDescription": "",
    "taskId": "12345",
    "solution": {
        "createTime": 1763100000000,
        "gRecaptchaResponse": "03AHJ_Vuve5Asa4koK3KSMyUkCq0vUFCR5Im4CwB7PzO3dCxIo11i53epEraq...",
        "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/156.0.0.0 Safari/537.36"
    },
    "status": "ready"
}

Refusals arrive on createTask: ERROR_BAD_PARAMETERS when websiteURL or websiteKey is missing or pageAction breaks the character rule, ERROR_PAGEURL when websiteURL is not a full http or https URL, and ERROR_RECAPTCHA_INVALID_SITEKEY when websiteKey is not a reCAPTCHA site key. A task that failed has status set to failed and ERROR_CAPTCHA_UNSOLVABLE (errorId 12) in errorCode, with two exceptions that resubmitting would not fix: ERROR_RECAPTCHA_INVALID_SITEKEY (errorId 31) when Google refused the site key, and ERROR_RECAPTCHA_INVALID_DOMAIN (errorId 32) when Google refused the site key on the domain of websiteURL.

recaptcha v2 solver  reCAPTCHA V2 Callback

In some cases, there is no submit button and a callback function is used instead. The callback function is executed automatically when reCAPTCHA is solved.

The list of POST and GET request parameters is available here: reCAPTCHA V2 POST and GET request parameters

The callback function is typically defined in the data-callback attribute of the reCAPTCHA widget, for example:

data-callback="myCallbackFunction"

In other cases, the callback function is defined as the callback parameter of the grecaptcha.render() function, for example:

grecaptcha.render('example', {
'sitekey' : 'someSitekey',
'callback' : myCallbackFunction,
'theme' : 'dark'
});

Another way to locate the callback function is to open the browser’s JavaScript console and inspect the reCAPTCHA configuration object:

___grecaptcha_cfg.clients[0].aa.l.callback

Note that the aa.l property may vary, and there may be multiple reCAPTCHA clients on the page. In such cases, you should also inspect clients[1], clients[2], and other entries to locate the correct configuration object.

Alternatively, you can use the following script to automatically extract reCAPTCHA parameters:

function findRecaptchaClients() {
  if (typeof (___grecaptcha_cfg) !== 'undefined') {
    return Object.entries(___grecaptcha_cfg.clients).map(([cid, client]) => {
      const data = { id: cid, version: cid >= 10000 ? 'V3' : 'V2' };
      const objects = Object.entries(client).filter(([_, value]) => value && typeof value === 'object');

      objects.forEach(([toplevelKey, toplevel]) => {
        const found = Object.entries(toplevel).find(([_, value]) => (
          value && typeof value === 'object' && 'sitekey' in value && 'size' in value
        ));
     
        if (typeof toplevel === 'object' && toplevel instanceof HTMLElement && toplevel['tagName'] === 'DIV'){
            data.pageurl = toplevel.baseURI;
        }
        
        if (found) {
          const [sublevelKey, sublevel] = found;

          data.sitekey = sublevel.sitekey;
          const callbackKey = data.version === 'V2' ? 'callback' : 'promise-callback';
          const callback = sublevel[callbackKey];
          if (!callback) {
            data.callback = null;
            data.function = null;
          } else {
            data.function = callback;
            const keys = [cid, toplevelKey, sublevelKey, callbackKey].map((key) => `['${key}']`).join('');
            data.callback = `___grecaptcha_cfg.clients${keys}`;
          }
        }
      });
      return data;
    });
  }
  return [];
}

Finally, call the callback function and pass it the token, as reCAPTCHA does when the widget is passed:

myCallbackFunction('TOKEN');

Or alternatively:

___grecaptcha_cfg.clients[0].aa.l.callback('TOKEN');

recaptcha v2 solver  reCAPTCHA V2 Invisible

reCAPTCHA v2 also has an Invisible mode. You can see an example here:

https://www.google.com/recaptcha/api2/demo?invisible=true

Invisible reCAPTCHA does not display the “I’m not a robot” checkbox. Instead, it is typically attached to a button or triggered automatically on page load or user interaction, such as clicking a button or submitting a form.

Internally, the Invisible reCAPTCHA widget is rendered inside a hidden <div> element positioned outside the visible viewport, making it invisible to the user.

Depending on the user’s cookies and risk score, reCAPTCHA may pass automatically without displaying a challenge. Otherwise, a standard image challenge will appear.

In most cases, once the challenge is completed, a callback function is executed. Refer to the callback section above for more details.

The list of POST and GET request parameters is available here: reCAPTCHA V2 POST and GET request parameters

How to Determine if reCAPTCHA is Invisible?

You can identify Invisible reCAPTCHA using one of the following indicators:

  • The “I’m not a robot” checkbox is not visible, but a challenge appears after user interaction.

  • The reCAPTCHA iframe URL contains the parameter size=invisible.

  • The reCAPTCHA configuration object includes a size property set to invisible, for example:
    ___grecaptcha_cfg.clients[0].aa.l.size === "invisible"

When solving Invisible reCAPTCHA via API, include the parameter: invisible=1 (on the JSON API: "isInvisible": true)

How to Handle Invisible reCAPTCHA in the Browser?
Method 1: Using JavaScript

Set the value of the g-recaptcha-response field to the token returned by CapSkip:

document.getElementById("g-recaptcha-response").value = "TOKEN";

After setting the token, execute the action that normally occurs after successful verification.

In most cases, this means submitting a form. You need to identify the correct form by its id, name, or another attribute, and then trigger the submission. Here are a few examples:

document.getElementById("recaptcha-demo-form").submit(); //by id "recaptcha-demo-form"
document.getElementsByName("myFormName")[0].submit(); //by element name "myFormName"
document.getElementsByClassName("example")[0].submit(); //by class name "example"

In some cases, a callback function is executed automatically when reCAPTCHA is solved.

The callback function is typically defined in the data-callback attribute of the reCAPTCHA widget, for example:

data-callback="myCallbackFunction"

In other cases, the callback function is defined as the callback parameter of the grecaptcha.render() function, for example:

grecaptcha.render('example', {
'sitekey' : 'someSitekey',
'callback' : myCallbackFunction,
'theme' : 'dark'
});

All you need to do is call that function with the token:

myCallbackFunction('TOKEN');
Method 2: Modifying the HTML

Remove the <div> element that contains the reCAPTCHA widget from the page body.

<div style="visibility: hidden; position: absolute; width:100%; top: -10000px; left: 0px; right: 0px; transition: visibility 0s linear 0.3s, opacity 0.3s linear; opacity: 0;">
  <div style="width: 100%; height: 100%; position: fixed; top: 0px; left: 0px; z-index: 2000000000; background-color: #fff; opacity: 0.5;  filter: alpha(opacity=50)"></div>
  <div style="margin: 0 auto; top: 0px; left: 0px; right: 0px; position: absolute; border: 1px solid #ccc; z-index: 2000000000; background-color: #fff; overflow: hidden;">
 <iframe src="https://www.google.com/recaptcha/api2/bframe?hl=en&v=r20170213115309&k=6LfP0CITAAAAAHq9FOgCo7v_fb0-pmmH9VW3ziFs#zglq3yifgkmj"
      title="recaptcha challenge"
      style="width: 100%; height: 100%;"
      scrolling="no"
      name="zglq3yifgkmj"
      frameborder="0"></iframe>
  </div>
</div>

Remove the entire reCAPTCHA block from the page.

<div class="">
  <!-- BEGIN: ReCAPTCHA implementation example. -->
  <div
    id="recaptcha-demo"
    class="g-recaptcha"
    data-sitekey="6LfP0CITAAAAAHq9FOgCo7v_fb0-pmmH9VW3ziFs"
    data-callback="onSuccess"
    data-bind="recaptcha-demo-submit"
  >
    <div
      class="grecaptcha-badge"
      style="width: 256px; height: 60px; transition: right 0.3s ease 0s; position: fixed; bottom: 14px; right: -186px; box-shadow: 0px 0px 5px gray;"
    >
      <div class="grecaptcha-logo">
        <iframe
          src="https://www.google.com/recaptcha/api2/anchor?k=6LfP0CITAAAAAHq9FOgCo7v_fb0-pmmH9VW3ziFs&co=aHR0cHM6Ly93d3cuZ29vZ2xlLmNvbTo0NDM.&hl=en&v=r20170213115309&size=invisible&cb=uror1hlow5a"
          title="recaptcha widget"
          scrolling="no"
          name="undefined"
          width="256"
          height="60"
          frameborder="0"
        ></iframe>
      </div>
      <div class="grecaptcha-error"></div>
      <textarea
        id="g-recaptcha-response"
        name="g-recaptcha-response"
        class="g-recaptcha-response"
        style="width: 250px; height: 40px; border: 1px solid #c1c1c1; margin: 10px 25px; padding: 0px; resize: none;  display: none; "
      ></textarea>
    </div>
  </div>
  <script>
    var onSuccess = function (response) {
      var errorDivs = document.getElementsByClassName('recaptcha-error');
      if (errorDivs.length) {
        errorDivs[0].className = '';
      }
      var errorMsgs = document.getElementsByClassName('recaptcha-error-message');
      if (errorMsgs.length) {
        errorMsgs[0].parentNode.removeChild(errorMsgs[0]);
      }
      document.getElementById('recaptcha-demo-form').submit();
    };
  </script>
  <!-- Optional noscript fallback. --><!-- END: ReCAPTCHA implementation example. -->
</div>

Insert the following code in place of the removed block:

<input type="submit" /> <textarea name="g-recaptcha-response">%g-recaptcha-response%</textarea>

%g-recaptcha-response% represents the answer token received from CapSkip.

After replacing the block, a “Submit query” button will appear. Click the button to submit the form along with the g-recaptcha-response value and all other required form data to the website.

recaptcha v2 solver  reCAPTCHA V3

reCAPTCHA v3 is a modern CAPTCHA mechanism developed by Google. It does not present a visible challenge and requires no user interaction. Instead, it assigns a score based on the likelihood that the interaction is human.

Technically, reCAPTCHA v3 is similar to reCAPTCHA v2. The website receives a token from the reCAPTCHA API, which is then sent in a POST request to the target server and verified through the reCAPTCHA API.

The key difference is that reCAPTCHA v3 does not display a visible challenge. Instead, it returns a rating that estimates whether the user is human or a bot. This rating is called a score and ranges from 0.0 to 1.0. The score is sent to the website, which then decides how to handle the request based on that value.

There is also an additional parameter called action, which allows the website to distinguish between different user interactions. After verifying the token, the reCAPTCHA API returns the action name associated with the request.

How to Solve reCAPTCHA v3 Using CapSkip?

First, confirm that the target website is using reCAPTCHA v3.

Indicators of reCAPTCHA v3 include:

  • No visible CAPTCHA or image challenges

  • The api.js script is loaded with a render=SITEKEY parameter, for example:
    https://www.google.com/recaptcha/api.js?render=SITEKEY

  • The ___grecaptcha_cfg.clients array contains an entry with a high numeric index, such as clients[100000]

To solve reCAPTCHA v3, identify the following parameters:

  1. sitekey
    This can be found in the render parameter of the api.js script URL. It may also appear in an iframe URL, within JavaScript code that calls grecaptcha.execute(), or inside the ___grecaptcha_cfg configuration object.
  2. action
    Locate this by inspecting JavaScript code for calls to grecaptcha.execute(), for example:
    grecaptcha.execute('SITEKEY', {action: 'do_something'})
    In some cases, finding the action requires reviewing multiple JavaScript files loaded by the page. If you cannot determine the action value, you may use the default value "verify".
  3. pageurl
    The full URL of the page where reCAPTCHA v3 is implemented.
Understanding the Score

The acceptable score threshold varies by website and can only be determined through testing. Scores range from:

  • 0.0 → likely bot

  • 1.0 → likely human

Most websites use thresholds between 0.3 and 0.7, since even legitimate users may receive lower scores.

CapSkip accepts the min_score parameter for compatibility, but it does not change how the token is obtained: the final score is always decided by Google at verification time and cannot be guaranteed by the solver.

List of POST Request Parameters
Parameter Type Required Description
key String Yes* Your CapSkip API key. Required only when API Key Validation is enabled.
method String Yes userrecaptcha: specifies a reCAPTCHA request.
version String Yes v3: indicates that the request is for reCAPTCHA v3. Write it in lowercase: any other value is treated as a reCAPTCHA v2 request.
googlekey String Yes The value of the data-sitekey parameter found on the target page.
pageurl String Yes The full URL of the page where the reCAPTCHA is located.
enterprise Integer
Default: 0
No 1: indicates reCAPTCHA Enterprise v3.
0: standard reCAPTCHA v3.
action String
Default: verify
No The value of the action parameter defined on the page. Google accepts only letters, digits, / and _ in an action name, so any other character, such as a hyphen, returns ERROR_BAD_PARAMETERS.
min_score Float No Accepted for compatibility and clamped to the range 0.1 to 0.9. It does not change how the token is obtained. Google assigns the final score when your server verifies the token. CapSkip returns the token it obtains regardless of the score Google later assigns.
json Integer
Default: 0
No 0: response is returned as plain text.
1: response is returned in JSON format.
proxy String No Proxy address: IP:PORT, login:password@IP:PORT or IP:PORT:login:password; a host name works in place of the IP. One address is fine for testing and occasional solves. At volume, configure a proxy pool under Settings, Captcha types, reCAPTCHA, Configure Proxies, or send a proxy with each task. A proxy sent with a task takes priority over the pool.
proxytype String
Default: HTTP
No HTTP, HTTPS, SOCKS5 or SOCKS5H. SOCKS4 is not accepted.

Submit reCAPTCHA v3:

curl -X POST -d "key=YOUR_API_KEY&method=userrecaptcha&version=v3&action=submit&min_score=0.7&googlekey=6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-&pageurl=https://example.com" http://127.0.0.1:8080/in.php

Submit Enterprise reCAPTCHA v3:

curl -X POST -d "key=YOUR_API_KEY&method=userrecaptcha&version=v3&action=submit&min_score=0.7&googlekey=6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-&pageurl=https://example.com&enterprise=1" http://127.0.0.1:8080/in.php

If the request is successful, CapSkip will return the CAPTCHA ID as plain text: OK|12345

If the json=1 parameter is specified, the response will be returned in JSON format:

{
    "status":1,
    "request":"12345"
}

If an error occurs, CapSkip will return an error code.

The reCAPTCHA refusals are ERROR_BAD_PARAMETERS when googlekey or pageurl is missing, action holds a character other than letters, digits, / and _, or a proxy is sent with an unsupported proxytype, ERROR_PAGEURL when pageurl is not a full http or https URL, ERROR_GOOGLEKEY when googlekey is not a reCAPTCHA site key, and ERROR_PROXY_FORMAT when the proxy cannot be read. With Show tasks with invalid data turned on under Settings, Captcha types, reCAPTCHA, CapSkip accepts a task with an invalid pageurl, googlekey or action instead and lists it in the task list.

Wait 10 to 15 seconds, then send an HTTP GET request to the result endpoint: http://127.0.0.1:8080/res.php

Provide the returned CAPTCHA ID in your request. The full list of available parameters is shown in the table below.

If the CAPTCHA has been solved successfully, CapSkip will return the result in plain text or JSON format. The returned value is a verification token similar to the following:

03AHJ_Vuve5Asa4koK3KSMyUkCq0vUFCR5Im4CwB7PzO3dCxIo11i53epEraq-uBO5mVm2XRikL8iKOWr0aG50sCuej9bXx5qcviUGSm4iK4NC_Q88flavWhaTXSh0VxoihBwBjXxwXuJZ-WGN5Sy4dtUl2wbpMqAj8Zwup1vyCaQJWFvRjYGWJ_TQBKTXNB5CCOgncqLetmJ6B6Cos7qoQyaB8ZzBOTGf5KSP6e-K9niYs772f53Oof6aJeSUDNjiKG9gN3FTrdwKwdnAwEYX-F37sI_vLB1Zs8NQo0PObHYy0b0sf7WSLkzzcIgW9GR0FwcCCm1P8lB--gf50q5BMkiRH7osm4DoUgsjc_XyQiEmQmxl5sqZP7aKsaE-EM00x59XsPzD3m3YI6SRCFRUevSyumBd7KmXE8VuzIO9lgnnbka4-eZynZa6vbB9cO3QjLH0xSG3--o-fxrOuphwfrtwvvi2FGfpTexWvxhqWICMFTTjFBCEGEgj7_IFWEKirXW2RTZCVF0Gid7EtIsoEeZkPbrcUISGmgtiJkJ_KojuKwImF0G0CsTlxYTOU2sPsd5o1JDt65wGniQR2IZufnPbbK76Yh_KI2DY4cUxMfcb2fAXcFMc9dcpHg6f9wBXhUtFYTu6pi5LhhGuhpkiGcv6vWYNxMrpWJW_pV7q8mPilwkAP-zw5MJxkgijl2wDMpM-UUQ_k37FVtf-ndbQAIPG7S469doZMmb5IZYgvcB4ojqCW3Vz6Q

Each token comes with the User-Agent it is bound to. With json=1 the response includes a userAgent field next to request. In plain text mode, read the same value from the X-Recaptcha-User-Agent response header. If you use the JSON API, getTaskResult returns it as solution.userAgent. Send this User-Agent when you submit the token, because some sites check that the two match. The field and the header are left out when no User-Agent is available.

{
    "status": 1,
    "request": "03AHJ_Vuve5Asa4koK3KSMyUkCq0vUFCR5Im4CwB7PzO3dCxIo11i53epEraq...",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/156.0.0.0 Safari/537.36"
}

If the CAPTCHA is not yet solved, CapSkip will return CAPCHA_NOT_READY. Wait 5 seconds and repeat the request. If CapSkip returns an empty response body, the result has already been retrieved or the ID does not exist. Each result can be read only once.

A task that could not be solved returns ERROR_CAPTCHA_UNSOLVABLE, or the replacement text set in Settings. On res.php this includes a site key or page domain that Google refused; getTaskResult names those cases ERROR_RECAPTCHA_INVALID_SITEKEY and ERROR_RECAPTCHA_INVALID_DOMAIN.

List of GET request parameters
GET parameter Type Required Description
key String Yes* Your CapSkip API key. Required only when API Key Validation is enabled.
action String Yes get: retrieve the answer for the submitted CAPTCHA.
id Integer Yes The CAPTCHA ID returned by in.php.
json Integer
Default: 0
No 0 returns the response as plain text. 1 returns the response as JSON, including the userAgent value when one is available.
curl "http://127.0.0.1:8080/res.php?key=YOUR_API_KEY&action=get&id=CAPTCHA_ID"

After receiving the token from CapSkip, you must submit it correctly to the target website. The best way to understand how this works is to observe the requests sent when completing the verification as a normal user. Most browsers provide developer tools with a Network tab that allows you to inspect outgoing requests.

In most cases, the token is sent via a POST request. The parameter name may be g-recaptcha-response, similar to reCAPTCHA v2, or something like g-recaptcha-response-100000. In some implementations, a different parameter name may be used.

You should inspect the network requests to determine how the token is transmitted and then structure your request accordingly.

JSON API (createTask)

On /createTask, reCAPTCHA v3 uses the RecaptchaV3 task types and the fields listed under reCAPTCHA V2, JSON API (createTask). pageAction carries the action and minScore the threshold, with the same rules as on in.php. The answer has the same shape as for v2.

curl -X POST http://127.0.0.1:8080/createTask \
-H "Content-Type: application/json" \
-d '{
    "clientKey": "YOUR_API_KEY",
    "task": {
        "type": "RecaptchaV3TaskProxyless",
        "websiteURL": "https://example.com",
        "websiteKey": "6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-",
        "pageAction": "submit",
        "minScore": 0.7
    }
}'

recaptcha v2 solver  reCAPTCHA Enterprise

reCAPTCHA Enterprise is the advanced version of Google’s reCAPTCHA system. It can operate in both v2 and v3 modes and provides website administrators with additional control, including the ability to assess and report whether an interaction was human or automated.

How to Solve reCAPTCHA Enterprise?

The first step is to determine whether the website is using the Enterprise version of reCAPTCHA.

Key indicators of reCAPTCHA Enterprise include:

  • The page loads enterprise.js instead of api.js, for example:

    <script src="https://recaptcha.net/recaptcha/enterprise.js" async defer></script>

  • The website’s JavaScript code calls grecaptcha.enterprise.METHOD instead of grecaptcha.METHOD

Next, determine which implementation is being used: v2, Invisible v2, or v3. This can usually be identified by analyzing how the widget is rendered and how it behaves on the page.

Follow the flowchart below to determine the correct implementation. It applies in the vast majority of cases.

recaptcha enterprise

Identify the CAPTCHA parameters in the same way as described for reCAPTCHA v2 or v3.

For v2 Enterprise implementations, there may be additional optional data. In most cases, this is a custom string defined in the s or data-s parameter. If present, include this value in your request using the data-s parameter.

The list of POST and GET request parameters is available here: reCAPTCHA V2 POST and GET request parameters

For v3 Enterprise implementations, you may also need the action value. To find it, inspect the website’s JavaScript code and locate the grecaptcha.enterprise.execute() call. The action parameter is typically passed within this function. Keep in mind that action is optional and may be undefined in some cases.

The list of POST and GET request parameters is available here: reCAPTCHA V3 POST and GET request parameters

When submitting your request to the /in.php endpoint, include the additional parameter: enterprise=1

On the JSON API (/createTask), use an Enterprise task type instead, such as RecaptchaV2EnterpriseTaskProxyless or RecaptchaV3EnterpriseTaskProxyless. Enterprise is decided by the task type name; an isEnterprise field is not read.

After that, interact with CapSkip API in the same way as when solving reCAPTCHA v2 or v3. Once the token is returned, submit it to the target website according to its implementation.

Cloudflare turnstile solving Cloudflare Turnstile

Cloudflare Turnstile is a modern CAPTCHA alternative developed by Cloudflare. It verifies whether a visitor is human without relying on traditional visual challenges. Turnstile can appear as a standalone widget or as part of a challenge page, and it operates with minimal or no user interaction.

There are two common Turnstile implementations:

1. Standalone Turnstile Widget

A standalone Turnstile widget is embedded directly on a website page, typically protecting a form from automated submissions. In this case:

  • Extract the sitekey from the page.

  • Send it to the CapSkip API along with the full pageurl.

  • After receiving the token, insert it into the cf-turnstile-response field.

  • In some implementations, the token may also need to be placed in the g-recaptcha-response field.

  • If a callback is defined in the turnstile.render() configuration, execute it with the returned token.

Then submit the form as usual.

2. Turnstile on a Cloudflare Challenge Page

This occurs when the website is proxied through Cloudflare and presents a Turnstile challenge page before granting access. In this case, you must extract the following parameters:

  • cData

  • chlPageData

  • action

These values must be included in your API request. Additionally, you must use the User-Agent value returned by the CapSkip API when submitting the token.

How to Extract the Required Parameters?

To extract the required parameters, you can override the turnstile.render method and intercept the arguments passed when it is called. For example, inject the following JavaScript code into the page. The script must be executed before the Turnstile widget is loaded in order to capture the parameters successfully.

const i = setInterval(()=>{
if (window.turnstile) {
clearInterval(i)
window.turnstile.render = (a,b) => {
let p = {
method: "turnstile",
key: "YOUR_API_KEY",
sitekey: b.sitekey,
pageurl: window.location.href,
data: b.cData,
pagedata: b.chlPageData,
action: b.action,
json: 1
}
console.log(JSON.stringify(p))
window.tsCallback = b.callback
return 'foo'
}
}
},50)
List of POST Request Parameters
Parameter Type Required Description
key String Yes Your CapSkip API key.
method String Yes turnstile: specifies a Cloudflare Turnstile request.
sitekey String Yes The value of the data-sitekey parameter found on the target page.
pageurl String Yes The full URL of the page where the Turnstile challenge is located.
action String No Optional action value defined in the data-action attribute or passed to turnstile.render().
data String No The value of cData passed to turnstile.render() or defined in the data-cdata attribute.
pagedata String No The value of chlPageData passed to turnstile.render().
json Integer
Default: 0
No 0: response is returned as plain text.
1: response is returned in JSON format.
proxy String No Proxy address: IP:PORT, login:password@IP:PORT or IP:PORT:login:password; a host name works in place of the IP. Without it, the proxy settings in CapSkip apply. One address is fine for testing; at volume, configure a proxy pool in CapSkip or send a proxy with each request.
proxytype String
Default: HTTP
No Type of proxy. Supported values: HTTP, HTTPS, SOCKS5, SOCKS5H. Default: HTTP when proxy is provided but proxytype is omitted. SOCKS4 is not accepted.

The same parameters can also be sent with GET, in the query string.

Submit Turnstile (standalone):

curl -X POST -d "key=YOUR_API_KEY&method=turnstile&sitekey=0x4AAAAAAABUYP0XeMJF0xoy&pageurl=https://example.com" http://127.0.0.1:8080/in.php

Submit Turnstile (challenge page, with optional action, data, pagedata):

curl -X POST -d "key=YOUR_API_KEY&method=turnstile&sitekey=0x4AAAAAAABUYP0XeMJF0xoy&pageurl=https://example.com&action=managed&data=...&pagedata=..." http://127.0.0.1:8080/in.php

If the request is successful, CapSkip will return the CAPTCHA ID as plain text: OK|12345

If the json=1 parameter is specified, the response will be returned in JSON format:

{
    "status":1,
    "request":"12345"
}

If an error occurs, CapSkip will return an error code.

CodeMeaning
ERROR_BAD_PARAMETERSsitekey or pageurl is missing, or proxytype is not one of the accepted types.
ERROR_PAGEURLpageurl is not a full URL.
ERROR_PROXY_FORMATproxy is not in one of the accepted formats.

Use the returned ID to retrieve the result from the /res.php endpoint of the API.

List of GET request parameters
GET parameter Type Required Description
key String Yes Your CapSkip API key.
action String Yes get: retrieve the answer for the submitted CAPTCHA.
id Integer Yes The CAPTCHA ID returned by in.php.
json Integer
Default: 0
No 0 - response is returned as plain text.
1 - response is returned in JSON format, including the userAgent value.

For Cloudflare Turnstile, CapSkip returns a User-Agent with the token, and you must send that same User-Agent when submitting the token. With json=1 the response includes a userAgent field. In plain text mode, read the same value from the X-Turnstile-User-Agent response header.

curl "http://127.0.0.1:8080/res.php?key=YOUR_API_KEY&action=get&id=CAPTCHA_ID"
JSON API (createTask)

Turnstile is also accepted on /createTask, with the result read from /getTaskResult. Three task types are recognised: TurnstileTaskProxyless and AntiTurnstileTaskProxyLess solve without a proxy of yours, TurnstileTask solves through the proxy in the task. With NextCaptcha selected, only TurnstileTaskProxyless and TurnstileTask are accepted, and TurnstileTask requires proxyType, proxyAddress and proxyPort. With EzCaptcha selected, use EzCaptcha’s CloudFlareTurnstileTask with websiteURL, websiteKey, an optional proxy string, and the action and cData in rqData.metadataAction and rqData.metadataCdata.

ParameterTypeRequiredDescription
typeStringYesOne of the three task types above.
websiteURLStringYesThe full URL of the page the widget is on.
websiteKeyStringYesThe sitekey of the Turnstile widget.
actionStringNoThe widget’s action. pageAction is accepted too.
dataStringNoThe cData value. cData is accepted too.
pagedataStringNoThe chlPageData value. chlPageData and pageData are accepted too.
metadataObjectNoAn object carrying action and cdata, in place of the two fields above.
proxyStringNoTurnstileTask only. The proxy to solve through, as one string (IP:PORT, login:password@IP:PORT or IP:PORT:login:password; a host name works in place of the IP), or as the proxyType, proxyAddress, proxyPort, proxyLogin and proxyPassword fields. proxyType is http (the default), https, socks5 or socks5h. A proxy that cannot be read is ignored, and the proxy settings in CapSkip apply.
userAgentStringNoAccepted for compatibility. Submit the token with the userAgent returned in the solution.
curl -X POST http://127.0.0.1:8080/createTask \
-H "Content-Type: application/json" \
-d '{
    "clientKey": "YOUR_API_KEY",
    "task": {
        "type": "TurnstileTask",
        "websiteURL": "https://example.com",
        "websiteKey": "0x4AAAAAAABUYP0XeMJF0xoy",
        "proxy": "203.0.113.10:8080:login:password"
    }
}'

The solution carries the token and the User-Agent to submit it with:

{
    "errorId": 0,
    "errorCode": "",
    "errorDescription": "",
    "taskId": "2122988149",
    "solution": {
        "token": "0.Hd8XkT2EXAMPLEq9vRk7pT0c1aZuWx4yNq8mLs.Qx7aEXAMPLEpZ0kR3vT9wYb2",
        "type": "turnstile",
        "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/156.0.0.0 Safari/537.36"
    },
    "status": "ready"
}

With NextCaptcha selected, the solution holds token and userAgent; with EzCaptcha selected, token and a header object carrying user-agent. A missing websiteURL or websiteKey returns ERROR_BAD_PARAMETERS, and a websiteURL that is not a full URL returns ERROR_PAGEURL. A failed task carries ERROR_CAPTCHA_UNSOLVABLE in errorCode; with NextCaptcha or EzCaptcha selected, their own error codes apply.

cloudflare challenge solver Cloudflare Challenge (cf_clearance)

Some sites behind Cloudflare stop every visitor at a full page that reads “Just a moment...” before showing any content. Passing that page sets a cf_clearance cookie, and every later request that carries the cookie is let straight through. CapSkip passes the page for the URL you send and returns the cookie, so a script or tool that has no browser of its own can fetch the site with ordinary HTTP requests.

How It Works

This method is for the full page challenge. If the site shows a Turnstile widget inside a form instead, you want a token, not a cookie: see the Cloudflare Turnstile section above.

Cloudflare binds a cf_clearance cookie to the IP address and the User-Agent that earned it. A cookie replayed from a different address, or with a different User-Agent, is refused and the challenge page comes back. That is why every request for this method carries your proxy, and why the answer tells you which User-Agent to send.

The full cycle is four steps:

  1. Turn on Return cf_clearance cookies in CapSkip (see below).
  2. Submit the page URL and your proxy to /createTask.
  3. Poll /getTaskResult until the cookie is ready.
  4. Send your own requests through the same proxy, with the same User-Agent and the cookie.

This method is available on the JSON createTask / getTaskResult API only. The legacy in.php / res.php surface has no cookie mode.

Before You Start

The method is off by default. Open CapSkip, go to Settings, Captcha types, Cloudflare, and turn on Return cf_clearance cookies. While it is off, every request for this method is refused with ERROR_TASK_NOT_SUPPORTED. The switch takes effect on the next request; there is nothing to restart.

Two things are required on every request:

  • A proxy. The cookie is only valid from the address that earned it, so the request has to name the proxy you will use afterwards. A request without one is refused before any work is done. HTTP, HTTPS, SOCKS5 and SOCKS5H proxies are accepted; SOCKS4 is not.
  • A matching User-Agent, if you send one. The simplest choice is to send no User-Agent at all and use the one returned with the cookie. If your client must send its own, it has to be the User-Agent of Chrome for Windows, no more than 2 major versions older or newer than the Chrome version CapSkip reports. Any other User-Agent would produce a cookie the site rejects, so it is refused up front with an error instead.
Task Types

Four spellings of the same request are accepted, one for each client family that has a cookie mode. They all solve the same way; only the field names and the shape of the answer differ.

Task typeStyleSupportedDescription
AntiCloudflareTaskCapSolverYesProxy as a single proxy string or as separate fields. The answer carries the cookie, a token holding the same value, and the User-Agent. Not available while NextCaptcha or EzCaptcha is the selected service in CapSkip.
TurnstileTask with cloudflareTaskType set to cf_clearanceCapMonsterYesProxy as separate fields or a single proxy string. TurnstileTaskProxyless with the same cloudflareTaskType is accepted too. The answer carries the cookie, plus the User-Agent when the request did not send one. Not available while EzCaptcha is the selected service in CapSkip.
TurnstileTask without websiteKeyNextCaptchaYesProxy as separate fields, with proxyType required. Recognised only while NextCaptcha is the selected service. The answer carries the cookie and the User-Agent.
CloudFlare5STaskEzCaptchaYesProxy as a single proxy string. Recognised only while EzCaptcha is the selected service. The answer carries the cookie and the User-Agent in EzCaptcha’s format.
AntiCloudflareTask Parameters
ParameterTypeRequiredDescription
clientKeyStringYes*Your CapSkip API key. Required only when API Key Validation is enabled.
typeStringYesMust be AntiCloudflareTask.
websiteURLStringYesThe full http or https URL of the page that shows the challenge.
proxyStringYesThe proxy to solve through. Accepts IP:PORT:LOGIN:PASSWORD, LOGIN:PASSWORD@IP:PORT, http://LOGIN:PASSWORD@IP:PORT (also https://, socks5://, socks5h://) and socks5:IP:PORT:LOGIN:PASSWORD. Login and password are optional. The separate proxyType, proxyAddress, proxyPort, proxyLogin and proxyPassword fields of the TurnstileTask spelling are accepted instead.
userAgentStringNoThe User-Agent you will send with the cookie. See Before You Start for what is accepted.
htmlStringNoAccepted for compatibility and ignored.
TurnstileTask (cf_clearance) Parameters
ParameterTypeRequiredDescription
clientKeyStringYes*Your CapSkip API key. Required only when API Key Validation is enabled.
typeStringYesMust be TurnstileTask. TurnstileTaskProxyless is accepted too.
cloudflareTaskTypeStringYesMust be cf_clearance. Without it, the task is a Turnstile token request.
websiteURLStringYesThe full http or https URL of the page that shows the challenge.
websiteKeyStringNoAccepted for compatibility. The page has no sitekey to give, so any value will do.
proxyStringNoThe proxy as one string instead of the fields below, in any form AntiCloudflareTask accepts.
proxyTypeString
Default: http
Nohttp, https, socks5 or socks5h. Also applies to a proxy string that has no scheme.
proxyAddressStringYes*The proxy IP address or host name. Required unless proxy is sent.
proxyPortIntegerYes*The proxy port. Required unless proxy is sent.
proxyLoginStringNoThe proxy login.
proxyPasswordStringNoThe proxy password. Taken as sent, so characters such as @ and : are fine.
userAgentStringNoThe User-Agent you will send with the cookie. See Before You Start for what is accepted.
htmlPageBase64StringNoAccepted for compatibility and ignored.

The NextCaptcha spelling takes the same proxyType, proxyAddress, proxyPort, proxyLogin and proxyPassword fields, with type set to TurnstileTask and no websiteKey. There the proxy must be sent as these separate fields, and proxyType is required: http, https or socks5.

CloudFlare5STask (EzCaptcha) Parameters
ParameterTypeRequiredDescription
clientKeyStringYes*Your CapSkip API key. Required only when API Key Validation is enabled.
typeStringYesMust be CloudFlare5STask.
websiteURLStringYesThe full http or https URL of the page that shows the challenge.
proxyStringYesThe proxy to solve through, in any form AntiCloudflareTask accepts, for example http://LOGIN:PASSWORD@IP:PORT.

Recognised only while EzCaptcha is the selected service. A userAgent field is not read: use the User-Agent returned with the cookie.

Submitting a Task

Submit an HTTP POST request with a JSON body to your CapSkip API endpoint (/createTask).

Submit AntiCloudflareTask:

curl -X POST \
-H "Content-Type: application/json" \
-d '{
    "clientKey": "YOUR_API_KEY",
    "task": {
        "type": "AntiCloudflareTask",
        "websiteURL": "https://www.example.com/",
        "proxy": "203.0.113.10:8080:login:password"
    }
}' \
http://127.0.0.1:8080/createTask

Submit TurnstileTask with cloudflareTaskType:

curl -X POST \
-H "Content-Type: application/json" \
-d '{
    "clientKey": "YOUR_API_KEY",
    "task": {
        "type": "TurnstileTask",
        "cloudflareTaskType": "cf_clearance",
        "websiteURL": "https://www.example.com/",
        "websiteKey": "xxxxxx",
        "proxyType": "http",
        "proxyAddress": "203.0.113.10",
        "proxyPort": 8080,
        "proxyLogin": "login",
        "proxyPassword": "password"
    }
}' \
http://127.0.0.1:8080/createTask

If the request is accepted, CapSkip returns the task ID. A request made while the setting is off, without a proxy, or with a User-Agent that cannot be used is refused here, on the submit request itself, before any work is done.

{
    "errorId": 0,
    "errorCode": "",
    "errorDescription": "",
    "taskId": "2122988149"
}
Getting the Result

Wait about 5 seconds, then submit an HTTP POST request to /getTaskResult with the task ID. Repeat every few seconds while the status is processing. Most pages are passed within 5 to 20 seconds; a slow proxy adds to that.

curl -X POST \
-H "Content-Type: application/json" \
-d '{"clientKey": "YOUR_API_KEY", "taskId": "2122988149"}' \
http://127.0.0.1:8080/getTaskResult
{
    "errorId": 0,
    "taskId": "2122988149",
    "status": "processing"
}

Ready answer for AntiCloudflareTask. token holds the same value as the cookie:

{
    "errorId": 0,
    "errorCode": "",
    "errorDescription": "",
    "taskId": "2122988149",
    "solution": {
        "cookies": {
            "cf_clearance": "3gBq2EXAMPLE9vRk7pT0c1aZ.uWx4yNq8mLs-1792066388-1.2.1.1-Qx7aEXAMPLEpZ0kR3vT9wYb2"
        },
        "token": "3gBq2EXAMPLE9vRk7pT0c1aZ.uWx4yNq8mLs-1792066388-1.2.1.1-Qx7aEXAMPLEpZ0kR3vT9wYb2",
        "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36"
    },
    "status": "ready"
}

Ready answer for TurnstileTask with cloudflareTaskType. When the request sent its own userAgent, the solution is the cookie alone, because the cookie is bound to the User-Agent you sent. When it did not, userAgent is added so you know which one to use:

{
    "errorId": 0,
    "errorCode": "",
    "errorDescription": "",
    "taskId": "2122988149",
    "solution": {
        "cf_clearance": "3gBq2EXAMPLE9vRk7pT0c1aZ.uWx4yNq8mLs-1792066388-1.2.1.1-Qx7aEXAMPLEpZ0kR3vT9wYb2",
        "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36"
    },
    "status": "ready"
}

The NextCaptcha spelling answers with cf_clearance and userAgent side by side in solution.

Ready answer for CloudFlare5STask, in EzCaptcha’s format. tlsVersion names the Chrome major version of the User-Agent:

{
    "errorId": 0,
    "errorCode": null,
    "errorDescription": null,
    "solution": {
        "header": {
            "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36"
        },
        "cookies": {
            "cf_clearance": "3gBq2EXAMPLE9vRk7pT0c1aZ.uWx4yNq8mLs-1792066388-1.2.1.1-Qx7aEXAMPLEpZ0kR3vT9wYb2"
        },
        "body": "",
        "tlsVersion": "chrome155"
    },
    "status": "ready"
}
Using the Cookie

Send the cookie with every request to the site, through the same proxy and with the same User-Agent. Change either one and Cloudflare shows the challenge page again.

curl -x "http://login:[email protected]:8080" \
-A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36" \
-b "cf_clearance=3gBq2EXAMPLE9vRk7pT0c1aZ.uWx4yNq8mLs-1792066388-1.2.1.1-Qx7aEXAMPLEpZ0kR3vT9wYb2" \
https://www.example.com/

The cookie lasts as long as the site’s own Cloudflare settings allow, often 30 minutes and sometimes much longer. When the challenge page comes back, submit a new task. If you rotate proxies, solve once per proxy: a cookie earned on one address does not carry over to another.

Errors

Refusals arrive on the createTask request. Solve failures arrive on getTaskResult with status set to failed. With NextCaptcha selected, the codes and HTTP statuses follow NextCaptcha’s own error table instead.

CodeMeaning
ERROR_TASK_NOT_SUPPORTEDReturn cf_clearance cookies is off in CapSkip.
ERROR_PROXY_MISSINGTurnstileTask spelling: no usable proxy in the request.
ERROR_WRONG_USERAGENTTurnstileTask spelling: the User-Agent is not Chrome for Windows within 2 major versions of the Chrome version CapSkip reports.
ERROR_BAD_PARAMETERSAntiCloudflareTask spelling: no usable proxy or an unusable User-Agent. Either spelling: websiteURL is missing.
ERROR_PAGEURLwebsiteURL is not a full http or https URL.
ERROR_PROXY_BANNEDCloudflare blocked the proxy address outright. Use a different proxy.
ERROR_PROXY_CONNECT_REFUSEDThe page could not be reached through the proxy. Check that the proxy is up and the login is right.
ERROR_CAPTCHA_UNSOLVABLENo cookie was obtained in time, the solve could not complete, or the page showed no Cloudflare challenge at all (errorDescription then reads “No Cloudflare challenge on this page”). Otherwise errorDescription says why, for example Row timeout, Wait timeout or Could not start the solve. Submit a new task to retry.

With EzCaptcha selected, the codes are EzCaptcha’s own, and a failed task has status set to error:

CodeMeaning
ERROR_TASK_TYPE_NOT_AVAILABLEReturn cf_clearance cookies is off in CapSkip.
ERROR_REQUEST_PARAMETERSwebsiteURL or proxy is missing or unusable. The errors field names which.
Cloudflare_WEBSITE_403_STATUSCloudflare blocked the proxy address outright. Use a different proxy.
Cloudflare_PROXY_ACCESS_ERRORThe page could not be reached through the proxy. Check that the proxy is up and the login is right.
Cloudflare_CHALLENGE_FAILEDAny other failure. errorDescription says why. Submit a new task to retry.

hcaptcha solver hCaptcha

hCaptcha is a CAPTCHA widget used by many sign-up, login and checkout forms. The visitor ticks a checkbox, sometimes answers a picture challenge, and the widget then puts a token in the form. The site checks that token with hCaptcha before it accepts the form. CapSkip passes the widget for the sitekey and page you send and returns the token, ready to submit with the form. hCaptcha Enterprise and invisible widgets use the same method.

How It Works
  1. Find the sitekey of the hCaptcha widget on the target page (see below).
  2. Submit the sitekey and the page URL to /in.php with method=hcaptcha.
  3. Poll /res.php until the token is ready.
  4. Put the token in the form, or pass it to the page’s callback, and submit the form.

A solve usually takes between 10 and 30 seconds. Poll every 5 seconds.

Finding the Sitekey

The sitekey is a public identifier, the same for every visitor of the page. Most pages carry it on the widget container as data-sitekey:

<div class="h-captcha" data-sitekey="a5f74b19-9e45-40e0-b45d-47ff91b7a6c2"></div>

When a page builds the widget with a script, look for the sitekey option of hcaptcha.render(), or for the sitekey= parameter in the address of the hCaptcha iframe. A widget with data-size="invisible" is invisible: send invisible=1 for it.

Some hCaptcha Enterprise sites also pass an rqdata value to the widget, through hcaptcha.setData(), before it runs. If the page does this, send that value as data. It is issued by the site for one challenge and expires quickly, so fetch a fresh one for every task.

List of POST Request Parameters
ParameterTypeRequiredDescription
keyStringYes*Your CapSkip API key. Required only when API Key Validation is enabled.
methodStringYesMust be hcaptcha. Specifies that you are submitting an hCaptcha.
sitekeyStringYesThe sitekey of the hCaptcha widget.
pageurlStringYesThe full URL of the page the widget is on.
invisibleInteger
Default: 0
No1 for an invisible widget.
dataStringNoThe rqdata value of an hCaptcha Enterprise widget, when the site sets one.
userAgentStringNoThe User-Agent you will submit the form with. The token is earned under it when it is Chrome for Windows and either the task carries data or it is no more than 2 major versions older or newer than the Chrome version CapSkip reports. Otherwise, and whenever High score mode for hCaptcha is off, CapSkip uses its own User-Agent. The reply names the User-Agent the token was earned with, when known.
proxyStringNoProxy address: IP:PORT, login:password@IP:PORT or IP:PORT:login:password; a host name works in place of the IP.
proxytypeString
Default: HTTP
NoProxy type: HTTP, HTTPS, SOCKS5 or SOCKS5H. SOCKS4 is not accepted.
jsonInteger
Default: 0
No0 returns the response as plain text. 1 returns the response as JSON.

CapSkip does not force a proxy for this method. One address is fine for testing and for occasional solves. Past that, hCaptcha scores the network a token comes from as well as the browser, and a steady stream of solves from one IP is what its rate limits and reputation checks are built to catch. At volume, configure a proxy pool under Settings, Captcha types, hCaptcha, Configure Proxies, or send a proxy with each task when the solve has to come from a particular network. A proxy sent with a task always takes priority over the list.

Submit an HTTP GET or POST request to your CapSkip API endpoint (/in.php) with method=hcaptcha. Form fields, a query string and a JSON body are all accepted under identical field names.

Submit hCaptcha:

curl -X POST \
-d "key=YOUR_API_KEY" \
-d "method=hcaptcha" \
-d "sitekey=a5f74b19-9e45-40e0-b45d-47ff91b7a6c2" \
--data-urlencode "pageurl=https://accounts.hcaptcha.com/demo" \
-d "json=1" \
http://127.0.0.1:8080/in.php

If everything is correct, CapSkip returns the CAPTCHA ID as plain text: OK|2122988149. If the json=1 parameter was sent, the response is a JSON envelope instead. Either way, the returned value is the CAPTCHA ID you poll for the result.

{
    "status": 1,
    "request": "2122988149"
}

Otherwise CapSkip returns an error code on the submit request itself, before any work is done:

ErrorCause
ERROR_RECAPTCHA_INVALID_SITEKEYsitekey is missing or empty.
ERROR_PAGEURLpageurl is missing or is not an http or https address.
ERROR_PROXY_FORMATThe proxy value could not be read.
ERROR_BAD_PARAMETERSproxytype is not HTTP, HTTPS, SOCKS5 or SOCKS5H, for example SOCKS4.

Wait approximately 10 seconds, then submit an HTTP GET request to the result endpoint (/res.php) with the CAPTCHA ID you received.

List of GET request parameters
ParameterTypeRequiredDescription
keyStringYes*Your CapSkip API key. Required only when API Key Validation is enabled.
actionStringYesSpecify get to retrieve the CAPTCHA solution.
idIntegerYesThe CAPTCHA ID returned by the in.php request.
jsonInteger
Default: 0
No0 returns the response as plain text. 1 returns the response as JSON.
curl "http://127.0.0.1:8080/res.php?key=YOUR_API_KEY&action=get&id=2122988149&json=1"

If the widget has been passed, CapSkip returns the token:

{
    "status": 1,
    "request": "P1_eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.hadwYXNza2V5xQZ2...f3Kq8nV2",
    "respKey": "E0_eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6IjA0...9wB1",
    "useragent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/156.0.0.0 Safari/537.36"
}

request is the token. respKey is the second value hCaptcha hands the widget along with the token; most sites never read it, and it can be empty. useragent is the User-Agent the token was earned with.

Without json=1, the token follows the OK| prefix as plain text, and the User-Agent arrives in the X-HCaptcha-User-Agent response header:

OK|P1_eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.hadwYXNza2V5xQZ2...f3Kq8nV2

If the widget has not yet been passed, CapSkip returns CAPCHA_NOT_READY, spelled exactly that way as on every other method. Wait 5 seconds and repeat the request.

Each result is delivered once. The first successful poll returns the token and discards it, so keep it from the reply that carried it.

A task that could not be solved returns ERROR_CAPTCHA_UNSOLVABLE. Two failures name their cause instead, because resubmitting the same task would fail again: ERROR_RECAPTCHA_INVALID_SITEKEY when hCaptcha refused the sitekey for that page, so check the sitekey and the pageurl, and ERROR_PROXY_CONNECT_REFUSED when the proxy could not be reached.

JSON API (createTask)

hCaptcha is also accepted on /createTask, with the result read from /getTaskResult. Four task types are recognised: HCaptchaTaskProxyless and HCaptchaEnterpriseTaskProxyless solve without a proxy of yours, HCaptchaTask and HCaptchaEnterpriseTask take one. All four are solved the same way. They are not available while NextCaptcha or EzCaptcha is the selected service in CapSkip.

ParameterTypeRequiredDescription
typeStringYesOne of the four task types above.
websiteURLStringYesThe full URL of the page the widget is on.
websiteKeyStringYesThe sitekey of the hCaptcha widget.
isInvisibleBooleanNotrue for an invisible widget.
enterprisePayloadObjectNoAn object carrying rqdata, for hCaptcha Enterprise. A flat rqdata or data field is accepted too.
userAgentStringNoAs for in.php above.
proxyStringNoProxy as a single string, or the proxyType, proxyAddress, proxyPort, proxyLogin and proxyPassword fields.
curl -X POST http://127.0.0.1:8080/createTask \
-H "Content-Type: application/json" \
-d '{
    "clientKey": "YOUR_API_KEY",
    "task": {
        "type": "HCaptchaTaskProxyless",
        "websiteURL": "https://accounts.hcaptcha.com/demo",
        "websiteKey": "a5f74b19-9e45-40e0-b45d-47ff91b7a6c2"
    }
}'

The solution carries the token twice, under gRecaptchaResponse and token, so clients written for either name read it unchanged:

{
    "errorId": 0,
    "status": "ready",
    "solution": {
        "gRecaptchaResponse": "P1_eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.hadwYXNza2V5xQZ2...f3Kq8nV2",
        "token": "P1_eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.hadwYXNza2V5xQZ2...f3Kq8nV2",
        "respKey": "E0_eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6IjA0...9wB1",
        "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/156.0.0.0 Safari/537.36"
    }
}

A failed task carries the same error codes as on res.php, in errorCode.

Submitting the Token

On the page, the widget writes its token into a hidden textarea named h-captcha-response (and a copy named g-recaptcha-response) inside the form. Put the token you received in both fields and submit the form. If the widget was rendered with a data-callback, call that function with the token instead, as the widget would have:

document.querySelector('[name="h-captcha-response"]').value = token;
const g = document.querySelector('[name="g-recaptcha-response"]');
if (g) g.value = token;
// or, when the widget has a data-callback:
window[callbackName](token);

When you post the form without a browser, send the token as the h-captcha-response field (and g-recaptcha-response, if the form has one), with the User-Agent from the reply.

hCaptcha tokens are single use and expire about two minutes after they are issued. Submit each token soon after you receive it, and request a new one for every form submission.

Strict Sitekeys

Some sites, hCaptcha Enterprise ones in particular, refuse tokens that hCaptcha scored as risky, even though the widget was passed. If a site rejects tokens CapSkip returned, check that High score mode for hCaptcha is on under Settings, Captcha types, hCaptcha. It is on by default and needs no other software installed. Use a good proxy as well, and submit the form from the same address and with the User-Agent the reply names.

aws waf captcha solver AWS WAF CAPTCHA

AWS WAF CAPTCHA is the puzzle Amazon Web Services shows when a site’s firewall wants proof that a visitor is human: usually a grid of nine pictures with an instruction such as “Choose all the curtains”, sometimes a small toy car to steer to the end of a path. Passing it earns an aws-waf-token cookie. Send CapSkip the values from the protected page and it returns the result that turns into that cookie.

How It Works

Sites meet AWS WAF CAPTCHA in one of two shapes, and both are handled by this method:

  • The challenge page. The firewall answers the request with HTTP status 405 and a small page instead of the content. That page carries a window.gokuProps object and loads challenge.js and captcha.js from an awswaf.com host.
  • The JS-API widget. An ordinary page, for example a contact or download form, loads jsapi.js and draws the puzzle itself with AwsWafCaptcha.renderCaptcha.

The full cycle is four steps:

  1. Read the values listed below from the protected page.
  2. Submit them to /in.php with method=amazon_waf.
  3. Poll /res.php until the answer is ready.
  4. Exchange the answer for the aws-waf-token and send it with your requests to the site.
Where to Find the Values on a Challenge Page

Request the protected URL and keep the body of the 405 response, or open it in a browser and use View Page Source. Everything you need is in the HTML:

<script>
  window.gokuProps = {
    "key": "AQIDAHjcYuEXAMPLEghicBgQ/7bFaQZ+m5FKCMDnO+vTbNg96AHDh0IR5vgzHNceHYqZR+GOAAAAfjB8BgkqhkiG9w0BBwagbzBtAgEAMGgGCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQM...",
    "iv": "CgAFRDIjfgAAA5yY",
    "context": "Rbp3r8fvbuhmrCqpUe8Mh1TLvs8OSKJZiSs2vCF4dt9rxVZI7xYJa2n5k/9r+XaXe7KUIu2I8nXTDHHkDvIOTDc2..."
  };
</script>
<script src="https://3f2a9c7d41b0.edge.sdk.awswaf.com/3f2a9c7d41b0/8e51d0c7a2f4/challenge.js"></script>
<script src="https://3f2a9c7d41b0.edge.sdk.awswaf.com/3f2a9c7d41b0/8e51d0c7a2f4/captcha.js"></script>
Value on the pageSend it as
gokuProps.keysitekey. The long key that usually starts with AQIDAH. It identifies the site’s firewall configuration.
gokuProps.iviv. Changes with every challenge page.
gokuProps.contextcontext. Changes with every challenge page, together with iv.
challenge.js URLchallenge_script. The full address of the script, as it appears in the src attribute.
captcha.js URLcaptcha_script. The full address of the script, as it appears in the src attribute.

Only sitekey and pageurl are required. iv and context belong together: send both or neither. Any of these values you leave out is read from pageurl at solve time, which is the safer choice when your copy of the page is more than a few minutes old. If pageurl then shows no AWS WAF challenge, the task fails with ERROR_CAPTCHA_UNSOLVABLE.

Where to Find the Values on a Widget Page

Open the page that shows the puzzle and look in its source, or in the Network tab of the browser developer tools, for the jsapi.js script and the renderCaptcha call:

<script src="https://5b7e0a19c3d8.us-east-1.captcha-sdk.awswaf.com/5b7e0a19c3d8/jsapi.js"></script>
<script>
  AwsWafCaptcha.renderCaptcha(document.getElementById("captcha"), {
    apiKey: "Xr9kEXAMPLE2bWQx1vTq8LmZ0aYc4dHs7nFp3gJt6uKw5eRi...9AbCdEfGh=_0_1",
    onSuccess: function (wafToken) { /* ... */ }
  });
</script>
Value on the pageSend it as
apiKeysitekey. A long key that ends in a short suffix such as _0_1. Some sites keep it in a separate JavaScript bundle rather than in the HTML, so search the loaded scripts for apiKey if it is not in the page.
jsapi.js URLjsapiScript. The full address of the script, as it appears in the src attribute.

A widget page has no gokuProps, so send no iv or context. Sending jsapiScript without them is what marks the request as a widget solve.

Challenge Types

AWS WAF decides which puzzle to show. You do not need to tell CapSkip which one to expect.

ChallengeLooks likeSupportedDescription
Image grid3 x 3 tilesYesNine pictures and an instruction such as “Choose all the beds”, finished with a Confirm button. The usual puzzle.
Toy carOne pictureYesA toy car on a small road map, to be moved to the end of its path.

Now and then a puzzle cannot be answered and the result is ERROR_CAPTCHA_UNSOLVABLE. Submit a new task: every attempt draws a fresh puzzle.

List of POST Request Parameters
ParameterTypeRequiredDescription
keyStringYes*Your CapSkip API key. Required only when API Key Validation is enabled.
methodStringYesMust be amazon_waf. Specifies that you are submitting an AWS WAF CAPTCHA.
sitekeyStringYesThe gokuProps.key of a challenge page, or the widget’s apiKey.
pageurlStringYesThe full http or https URL of the page protected by AWS WAF.
ivStringNoThe gokuProps.iv of a challenge page. Send it together with context, or leave both out.
contextStringNoThe gokuProps.context of a challenge page. Send it together with iv, or leave both out.
challenge_scriptStringNoThe full URL of the page’s challenge.js.
captcha_scriptStringNoThe full URL of the page’s captcha.js.
jsapiScriptStringNoWidget pages only: the full URL of jsapi.js.
proxyStringNoProxy address: IP:PORT, login:password@IP:PORT or IP:PORT:login:password; a host name works in place of the IP. A scheme prefix such as socks5:// is accepted too, and sets the type when proxytype is not sent.
proxytypeString
Default: HTTP
NoProxy type: HTTP, HTTPS, SOCKS5 or SOCKS5H. SOCKS4 is not accepted.
jsonInteger
Default: 0
No0 returns the response as plain text. 1 returns the response as JSON.

Every script URL you send must point to an awswaf.com host. A task with a script from anywhere else is accepted, then fails with ERROR_CAPTCHA_UNSOLVABLE, because it is not an AWS WAF integration.

Proxies

CapSkip does not force a proxy for this method, and one address is fine for testing and for occasional solves. Past that you need proxies. Sites protected by AWS WAF usually pair the CAPTCHA with rate limits and IP reputation rules, so a steady stream of solves from one address soon draws harder treatment and then outright blocks. Configure a proxy list for AWS WAF in CapSkip’s Settings and let it spread the load, or send a per-request proxy when the token has to come from a particular network.

Submitting a Task

Submit an HTTP POST request to your CapSkip API endpoint (/in.php) with method=amazon_waf. Form fields, a JSON body and a GET query string are all accepted under the same field names. The keys contain +, / and =, so URL-encode them when you send form fields.

Submit a challenge page:

curl -X POST \
--data-urlencode "key=YOUR_API_KEY" \
--data-urlencode "method=amazon_waf" \
--data-urlencode "sitekey=AQIDAHjcYuEXAMPLEghicBgQ/7bFaQZ+m5FKCMDnO+vTbNg96AHDh0IR5vgzHNceHYqZR+GOAAAAfjB8BgkqhkiG9w0BBwagbzBtAgEAMGgGCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQM..." \
--data-urlencode "iv=CgAFRDIjfgAAA5yY" \
--data-urlencode "context=Rbp3r8fvbuhmrCqpUe8Mh1TLvs8OSKJZiSs2vCF4dt9rxVZI7xYJa2n5k/9r+XaXe7KUIu2I8nXTDHHkDvIOTDc2..." \
--data-urlencode "challenge_script=https://3f2a9c7d41b0.edge.sdk.awswaf.com/3f2a9c7d41b0/8e51d0c7a2f4/challenge.js" \
--data-urlencode "pageurl=https://www.example.com/" \
--data-urlencode "json=1" \
http://127.0.0.1:8080/in.php

Submit a widget page (JSON body):

curl -X POST \
-H "Content-Type: application/json" \
-d '{
    "key": "YOUR_API_KEY",
    "method": "amazon_waf",
    "sitekey": "Xr9kEXAMPLE2bWQx1vTq8LmZ0aYc4dHs7nFp3gJt6uKw5eRi...9AbCdEfGh=_0_1",
    "jsapiScript": "https://5b7e0a19c3d8.us-east-1.captcha-sdk.awswaf.com/5b7e0a19c3d8/jsapi.js",
    "pageurl": "https://www.example.com/contact",
    "json": 1
}' \
http://127.0.0.1:8080/in.php

If everything is correct, CapSkip returns the CAPTCHA ID as plain text: OK|2122988149. With json=1, the response is a JSON envelope instead:

{
    "status": 1,
    "request": "2122988149"
}

A missing sitekey, an unusable pageurl, an iv without context (or the other way round) and a malformed proxy are refused on this request, before any work is done.

ErrorCause
ERROR_PAGEURLpageurl is missing or empty.
ERROR_BAD_PARAMETERSpageurl is not an http or https address.
ERROR_BAD_PARAMETERSsitekey is missing or empty.
ERROR_BAD_PARAMETERSiv was sent without context, or context without iv.
ERROR_BAD_PARAMETERSproxytype is not HTTP, HTTPS, SOCKS5 or SOCKS5H, for example SOCKS4.
ERROR_PROXY_FORMATThe proxy value could not be read.
Getting the Result

Wait about 5 seconds, then submit an HTTP GET request to /res.php with the CAPTCHA ID. Repeat every 5 seconds while the answer is CAPCHA_NOT_READY. Most tasks are ready within 15 seconds; a slow proxy adds to that.

ParameterTypeRequiredDescription
keyStringYes*Your CapSkip API key. Required only when API Key Validation is enabled.
actionStringYesSpecify get to retrieve the CAPTCHA solution.
idIntegerYesThe CAPTCHA ID returned by the in.php request.
jsonInteger
Default: 0
No0 returns the response as plain text. 1 returns the response as JSON.
curl "http://127.0.0.1:8080/res.php?key=YOUR_API_KEY&action=get&id=2122988149&json=1"

The answer is two values, so request is an object rather than a string:

{
    "status": 1,
    "request": {
        "captcha_voucher": "eyJ2b3VjaGVyIjoiRVhBTVBMRSJ9.9QwZcEXAMPLEvoucherJk4LmN0pQ",
        "existing_token": "7d4c2a91-EXAMPLE-4f0b-9e6d-3a1b5c8e2f70:EQoAeXAMPLEtokenAAAA:Wm9wc2E="
    }
}

Without json=1, the same object follows OK| on one line:

OK|{"captcha_voucher":"eyJ2b3VjaGVyIjoiRVhBTVBMRSJ9.9QwZcEXAMPLEvoucherJk4LmN0pQ","existing_token":"7d4c2a91-EXAMPLE-4f0b-9e6d-3a1b5c8e2f70:EQoAeXAMPLEtokenAAAA:Wm9wc2E="}
FieldMeaning
captcha_voucherProof from AWS WAF that the puzzle was answered.
existing_tokenThe token the voucher was issued for. The two only work as a pair.

If the task failed, /res.php returns ERROR_CAPTCHA_UNSOLVABLE, or the replacement error text configured in CapSkip. Submit a new task to retry.

Turning the Voucher into the Cookie

AWS WAF trades the pair for the finished aws-waf-token on its own token host: the host and folder challenge.js is loaded from. On a widget page, find that challenge.js request in the Network tab; jsapi.js loads it for you. Replace challenge.js with voucher and POST the pair as JSON:

curl -X POST \
-H "Content-Type: text/plain;charset=UTF-8" \
-H "Origin: https://www.example.com" \
-d '{"captcha_voucher":"eyJ2b3VjaGVyIjoiRVhBTVBMRSJ9.9QwZcEXAMPLEvoucherJk4LmN0pQ","existing_token":"7d4c2a91-EXAMPLE-4f0b-9e6d-3a1b5c8e2f70:EQoAeXAMPLEtokenAAAA:Wm9wc2E="}' \
https://3f2a9c7d41b0.edge.sdk.awswaf.com/3f2a9c7d41b0/8e51d0c7a2f4/voucher

The response is a JSON object whose token field holds the aws-waf-token. Exchange the voucher as soon as it arrives rather than storing it for later.

Using the Token

Send the token as the aws-waf-token cookie on the protected domain and repeat the request that was challenged. The site now answers with its real content instead of the 405 page:

curl -b "aws-waf-token=7d4c2a91-EXAMPLE-4f0b-9e6d-3a1b5c8e2f70:HgoAxEXAMPLEcookieBBBB:Q2FwU2tpcA==" \
https://www.example.com/

On a widget page, this is the same token the page’s onSuccess callback receives. Many such pages pass it on as the aws-waf-token cookie, others in an x-aws-waf-token request header, so check what the page’s own request sends and mirror it.

The token stays valid for the site’s immunity time, which AWS WAF sets to 5 minutes by default and site owners can lengthen. When the challenge comes back, submit a new task.

JSON API (createTask)

The JSON createTask / getTaskResult API accepts AWS WAF too, as AmazonTask / AmazonTaskProxyless and AntiAwsWafTask / AntiAwsWafTaskProxyLess, with the field names and the result format of the service CapSkip is emulating. The AntiAwsWafTask types always use CapSolver’s. Several of those formats return the finished aws-waf-token directly, so there is no voucher to exchange. They are not available while NextCaptcha or EzCaptcha is the selected service.

A failed task returns ERROR_CAPTCHA_UNSOLVABLE in errorCode, or ERROR_PROXY_CONNECT_REFUSED when the proxy could not be reached. /res.php does not name the proxy failure.

AwsWafClassification, CapSolver’s image-only task, is answered in the /createTask response itself, with status set to ready, so there is nothing to poll. Send question as aws:grid:<target> with the nine grid tiles in images, or as aws:toycarcity:carcity with the one toy car picture. Images are base64, with or without a data: URL prefix.

curl -X POST http://127.0.0.1:8080/createTask \
-H "Content-Type: application/json" \
-d '{
    "clientKey": "YOUR_API_KEY",
    "task": {
        "type": "AwsWafClassification",
        "question": "aws:grid:bed",
        "images": ["TILE_1_BASE64", "TILE_2_BASE64", "TILE_3_BASE64",
                   "TILE_4_BASE64", "TILE_5_BASE64", "TILE_6_BASE64",
                   "TILE_7_BASE64", "TILE_8_BASE64", "TILE_9_BASE64"]
    }
}'
{
    "errorId": 0,
    "errorCode": "",
    "errorDescription": "",
    "status": "ready",
    "solution": {
        "objects": [1, 3, 4, 6, 8]
    },
    "taskId": "5f0c2a7e-9b41-4d3a-8e2f-1c6b7d9a0e35"
}

objects lists the tiles to select, numbered 0 to 8 row by row from the top left. A toy car answer is solution.box instead: the [x, y] point, in image pixels, at the end of the path. A grid target CapSkip does not answer returns ERROR_CAPTCHA_UNSOLVABLE; a wrong number of images or one that does not decode returns ERROR_BAD_PARAMETERS; ERROR_NO_SLOT_AVAILABLE means CapSkip is busy, so retry.

geetest v3 GeeTest v3

GeeTest v3 is an interactive CAPTCHA developed by GeeTest. It verifies users through a slider puzzle or a click challenge to distinguish humans from bots while providing a fast and seamless verification experience.

To solve a GeeTest v3 CAPTCHA with CapSkip, you must first obtain the required CAPTCHA parameters from the target website. The required parameters are:

  • gt: Public website key (static)
  • challenge: Dynamic challenge value
  • api_server: GeeTest API server domain (optional)

These values are typically available when the website initializes GeeTest.

Important: A new challenge value must be obtained for every solve request. Once the CAPTCHA has been loaded on the page, the previous challenge becomes invalid. You should inspect the website’s network requests to identify the request that generates a new challenge value and perform that request before submitting each solve request to CapSkip.

Challenge Types

GeeTest decides which challenge each visitor sees. method=geetest covers all of them with the same parameters: you do not choose the challenge type and send nothing extra for it.

ChallengeKindSupportedDescription
SlideSliderYesDrag a puzzle piece into the gap in the picture.
WordClickYesClick the Chinese characters shown in the hint, in the order shown.
IconClickYesClick the icons shown in the hint, in the order shown. This includes the variant whose hint is a row of arrows giving the direction each object faces.
SpaceClickYesClick the object that an instruction describes in a scene of 3D shapes.
PhraseClickYesClick the characters that form a Chinese word, in reading order. There is no hint.
NineClickNoA grid of nine pictures. A fresh challenge is requested in its place, and GeeTest usually serves another type.
List of POST Request Parameters
Parameter Type Required Description
key String Yes* Your CapSkip API key. Required only when API Key Validation is enabled.
method String Yes Must be geetest. Specifies that you are submitting a GeeTest v3 CAPTCHA.
gt String Yes The gt value obtained from the target website.
challenge String Yes The challenge value obtained from the target website. A new value must be obtained for every solve request.
pageurl String Yes Full URL of the page containing the GeeTest CAPTCHA.
api_server String No The GeeTest API server domain used by the target website (for example api.geetest.com or api-na.geetest.com).
json Integer
Default: 0
No 0 returns the response as plain text. 1 returns the response as JSON.
proxy String No Proxy address. Accepts IP:PORT, login:password@IP:PORT or IP:PORT:login:password; a host name works in place of the IP. A value CapSkip cannot parse returns ERROR_PROXY_FORMAT.
proxytype String
Default: HTTP
No Proxy type: HTTP, HTTPS, SOCKS5 or SOCKS5H. SOCKS4 is not accepted. An unsupported type returns ERROR_BAD_PARAMETERS.

CapSkip does not force a proxy for this method. One address is fine for testing and for occasional solves. Past that, configure a proxy pool: GeeTest scores the network every check comes from, and a steady stream of solves from one address is what its rate limiting is built to catch. Add the pool under Settings, Captcha types, GeeTest, Configure Proxies (one pool serves v3 and v4), and tasks sent without a proxy are spread across it. Send proxy with a task when the solve has to come from a particular network. A proxy sent with a task always takes priority over the pool.

Submit an HTTP GET or POST request to your CapSkip API endpoint (/in.php) with method=geetest. Include the required GeeTest parameters obtained in the previous step along with the full URL of the page containing the CAPTCHA.

curl -X POST \
-d "key=YOUR_API_KEY" \
-d "method=geetest" \
-d "gt=f1ab2cdefa3456789012345b6c78d90e" \
-d "challenge=12345678abc90123d45678ef90123a456b" \
-d "pageurl=https://www.example.com/" \
-d "api_server=api-na.geetest.com" \
http://127.0.0.1:8080/in.php

If everything is successful, CapSkip will return the CAPTCHA ID as plain text: OK|212

If the json=1 parameter is specified, the response will be returned in JSON format:

{
    "status": 1,
    "request": "212"
}

Otherwise, CapSkip will return an appropriate error code: ERROR_PAGEURL for a missing or malformed pageurl, and ERROR_BAD_PARAMETERS when gt or challenge is missing.

Wait approximately 5 seconds, then submit an HTTP GET request to the res.php endpoint to retrieve the result.

List of GET request parameters
Parameter Type Required Description
key String Yes* Your CapSkip API key. Required only when API Key Validation is enabled.
action String Yes Specify get to retrieve the CAPTCHA solution.
id Integer Yes The CAPTCHA ID returned by the in.php request.
json Integer
Default: 0
No 0 returns the response as plain text. 1 returns the response as JSON.
curl "http://127.0.0.1:8080/res.php?key=YOUR_API_KEY&action=get&id=212&json=1"

If the CAPTCHA has been solved, request holds the three values as a JSON string. Parse it a second time to read them:

{
    "status": 1,
    "request": "{\"geetest_challenge\":\"1a2b3456cd67890e12345fab678901c2de\",\"geetest_validate\":\"09fe8d7c6ba54f32e1dcb0a9fedc8765\",\"geetest_seccode\":\"12fe3d4c56789ba01f2e345d6789c012|jordan\"}"
}

Without json=1, the answer is OK| followed by the same JSON string. If the CAPTCHA has not yet been solved, CapSkip returns CAPCHA_NOT_READY. Wait 5 seconds and repeat the request. Each result can be read only once: a later poll for the same ID returns an empty body. A task that cannot be solved returns ERROR_CAPTCHA_UNSOLVABLE, or the replacement text set in Settings.

Use the values returned by CapSkip when submitting your request to the target website using the following fields:

  • geetest_challenge
  • geetest_validate
  • geetest_seccode
JSON API (createTask)

GeeTest is also accepted on /createTask, with the result read from /getTaskResult. Two task types are recognised, GeeTestTask and GeeTestTaskProxyless, and both are handled the same way: a proxy sent with either is used. A task carrying version 4 or a captcha ID is GeeTest v4, described in the next section. Not available while NextCaptcha or EzCaptcha is the selected service in CapSkip.

ParameterTypeRequiredDescription
typeStringYesOne of the two task types above.
websiteURLStringYesFull URL of the page containing the GeeTest CAPTCHA.
gtStringYesThe gt value obtained from the target website.
challengeStringYesThe challenge value. A new value must be obtained for every task.
geetestApiServerSubdomainStringNoAs api_server above.
proxyStringNoA proxy as a single string in any format in.php accepts, or the proxyType, proxyAddress, proxyPort, proxyLogin and proxyPassword fields. A proxy that cannot be parsed is ignored rather than refused.
curl -X POST http://127.0.0.1:8080/createTask \
-H "Content-Type: application/json" \
-d '{
    "clientKey": "YOUR_API_KEY",
    "task": {
        "type": "GeeTestTaskProxyless",
        "websiteURL": "https://www.example.com/",
        "gt": "f1ab2cdefa3456789012345b6c78d90e",
        "challenge": "12345678abc90123d45678ef90123a456b",
        "geetestApiServerSubdomain": "api-na.geetest.com"
    }
}'

The solution carries the same three values without the geetest_ prefix. Submit them to the target website as geetest_challenge, geetest_validate and geetest_seccode:

{
    "errorId": 0,
    "status": "ready",
    "solution": {
        "challenge": "1a2b3456cd67890e12345fab678901c2de",
        "validate": "09fe8d7c6ba54f32e1dcb0a9fedc8765",
        "seccode": "12fe3d4c56789ba01f2e345d6789c012|jordan"
    }
}

With CapSolver selected, the solution also carries userAgent. A task without websiteURL, gt or challenge is refused with ERROR_BAD_PARAMETERS, and a websiteURL that is not a full URL with ERROR_PAGEURL. A failed task returns ERROR_CAPTCHA_UNSOLVABLE in errorCode.

geetest v4 solver GeeTest v4

GeeTest v4 is the current generation of the GeeTest CAPTCHA. A site identifies its widget with a single public captcha_id, and a passed check produces five values that the site verifies with GeeTest on its server. CapSkip returns those five values.

What You Need Before Solving

Only the captcha_id and the full URL of the page. Unlike v3 there is no per-request challenge to fetch first: the captcha_id is the same for every visitor, so you can read it once and reuse it. GeeTest decides which challenge each visitor sees. You send the same parameters whatever it is, and the result is the same five values.

Every GeeTest v4 challenge type is supported: slide puzzle, icon selection, nine grid image selection, word selection, phrase order, match three (IconCrush), five in a row (Gobang), SVG icon selection and one click (NoCAPTCHA). A site picks which of them its captcha_id serves; CapSkip answers whichever one appears.

Where to Find the captcha_id

The page loads https://static.geetest.com/v4/gt4.js and passes the ID to initGeetest4 as captchaId:

<script src="https://static.geetest.com/v4/gt4.js"></script>
<script>
  initGeetest4({ captchaId: "e392e1d7fd421dc63325744d5a2b9c73", product: "bind" }, function (captcha) { /* ... */ });
</script>

If the call is built at runtime, open the Network tab and find the request to gcaptcha4.geetest.com/load. The ID is its captcha_id query parameter.

List of POST Request Parameters
ParameterTypeRequiredDescription
keyStringYes*Your CapSkip API key. Required only when API Key Validation is enabled.
methodStringYesMust be geetest_v4. Specifies that you are submitting a GeeTest v4 CAPTCHA.
captcha_idStringYesThe captcha_id read from the target page. Also accepted as captchaId.
pageurlStringYesFull URL of the page containing the GeeTest CAPTCHA.
riskTypeStringNoChallenge type to ask GeeTest for: slide, icon, nine, word, phrase, match, winlinze, svg_seed, svg_icon or ai. Also accepted as risk_type. GeeTest applies it only where the site allows it; usually the site’s own choice wins.
proxyStringNoProxy address. Accepts IP:PORT, login:password@IP:PORT or IP:PORT:login:password; a host name works in place of the IP. A value CapSkip cannot parse returns ERROR_PROXY_FORMAT.
proxytypeString
Default: HTTP
NoProxy type: HTTP, HTTPS, SOCKS5 or SOCKS5H. SOCKS4 is not accepted. An unsupported type returns ERROR_BAD_PARAMETERS.
jsonInteger
Default: 0
No0 returns the response as plain text. 1 returns the response as JSON.

CapSkip does not force a proxy for this method. One address is fine for testing and for occasional solves. Past that, configure a proxy pool: GeeTest scores the network every check comes from, and a steady stream of solves from one address is what its rate limiting is built to catch. Add the pool under Settings, Captcha types, GeeTest, Configure Proxies (one pool serves v3 and v4), and tasks sent without a proxy are spread across it. Send proxy with a task when the solve has to come from a particular network. A proxy sent with a task always takes priority over the pool.

Submit an HTTP GET or POST request to your CapSkip API endpoint (/in.php) with method=geetest_v4. Form fields and a JSON body are both accepted under identical field names.

curl -X POST \
-d "key=YOUR_API_KEY" \
-d "method=geetest_v4" \
-d "captcha_id=e392e1d7fd421dc63325744d5a2b9c73" \
-d "pageurl=https://www.example.com/login" \
-d "json=1" \
http://127.0.0.1:8080/in.php

If everything is correct, CapSkip returns the CAPTCHA ID as plain text: OK|2122988149. If the json=1 parameter was sent, the response is a JSON envelope instead:

{
    "status": 1,
    "request": "2122988149"
}

Otherwise CapSkip returns an error code: ERROR_PAGEURL for a missing or malformed pageurl, and ERROR_BAD_PARAMETERS when captcha_id is missing.

Wait approximately 5 seconds, then submit an HTTP GET request to the result endpoint (/res.php) with the CAPTCHA ID you received.

List of GET request parameters
ParameterTypeRequiredDescription
keyStringYes*Your CapSkip API key. Required only when API Key Validation is enabled.
actionStringYesSpecify get to retrieve the CAPTCHA solution.
idIntegerYesThe CAPTCHA ID returned by the in.php request.
jsonInteger
Default: 0
No0 returns the response as plain text. 1 returns the response as JSON.
curl "http://127.0.0.1:8080/res.php?key=YOUR_API_KEY&action=get&id=2122988149&json=1"

If the CAPTCHA has been solved, request holds the five values as a JSON string. Parse it a second time to read them:

{
    "status": 1,
    "request": "{\"captcha_id\":\"e392e1d7fd421dc63325744d5a2b9c73\",\"lot_number\":\"7c1a4f0e9b2d48a6b3e5f7d9c1a3b5e7\",\"pass_token\":\"2f6c0e4a8b1d5f9e3c7a0b4d8e2f6a1c5b9d3e7f0a4c8b2e6d1f5a9c3e7b0d4f8\",\"gen_time\":\"1793001600\",\"captcha_output\":\"V2xH3kQp...Rz9a\"}"
}

Without json=1, the answer is OK| followed by the same JSON string. If the CAPTCHA has not yet been solved, CapSkip returns CAPCHA_NOT_READY. Wait 5 seconds and repeat the request. Each result can be read only once: a later poll for the same ID returns an empty body. A task that cannot be solved returns ERROR_CAPTCHA_UNSOLVABLE, or the replacement text set in Settings.

Submitting the Result

The site verifies five fields: captcha_id, lot_number, pass_token, gen_time and captcha_output. Send them under those names in the request the page’s own submit makes, so check what it sends and mirror it. Pass every value through unchanged, submit promptly, and solve again for every form submission.

If GeeTest itself cannot be reached, its widget falls back to offline mode and passes without a challenge. The result then also carries isOffline set to true, whichever API you used, and the site decides on its server whether to accept an offline pass.

JSON API (createTask)

GeeTest v4 uses the same task types as v3, GeeTestTask and GeeTestTaskProxyless, with the result read from /getTaskResult. A task is GeeTest v4 when it carries version 4 or a captcha ID. Not available while NextCaptcha or EzCaptcha is the selected service in CapSkip.

ParameterTypeRequiredDescription
typeStringYesGeeTestTask or GeeTestTaskProxyless. Both are handled the same way: a proxy sent with either is used.
websiteURLStringYesFull URL of the page containing the GeeTest CAPTCHA.
versionIntegerNo4. Optional when a captcha ID is sent.
captchaIdStringYesThe captcha_id. Also read as captcha_id, as initParameters.captcha_id, or, when version is 4, as gt, which is where Anti-Captcha and CapMonster clients put it.
riskTypeStringNoThe same values as riskType above, with the same effect. Read at the top level or as initParameters.riskType; only in.php reads the risk_type spelling.
proxyStringNoA proxy as a single string in any format in.php accepts, or the proxyType, proxyAddress, proxyPort, proxyLogin and proxyPassword fields. A proxy that cannot be parsed is ignored rather than refused.
curl -X POST http://127.0.0.1:8080/createTask \
-H "Content-Type: application/json" \
-d '{
    "clientKey": "YOUR_API_KEY",
    "task": {
        "type": "GeeTestTaskProxyless",
        "websiteURL": "https://www.example.com/login",
        "version": 4,
        "initParameters": { "captcha_id": "e392e1d7fd421dc63325744d5a2b9c73" }
    }
}'

The solution carries the five values under the same names:

{
    "errorId": 0,
    "status": "ready",
    "solution": {
        "captcha_id": "e392e1d7fd421dc63325744d5a2b9c73",
        "lot_number": "7c1a4f0e9b2d48a6b3e5f7d9c1a3b5e7",
        "pass_token": "2f6c0e4a8b1d5f9e3c7a0b4d8e2f6a1c5b9d3e7f0a4c8b2e6d1f5a9c3e7b0d4f8",
        "gen_time": "1793001600",
        "captcha_output": "V2xH3kQp...Rz9a"
    }
}

With CapSolver selected, the solution also carries risk_type, the challenge type GeeTest served. With Anti-Captcha selected, it also carries userAgent, the user agent the five values were obtained with. A task carrying version 4 without a captcha ID, or without websiteURL, is refused with ERROR_BAD_PARAMETERS, and a websiteURL that is not a full URL with ERROR_PAGEURL. A failed task returns ERROR_CAPTCHA_UNSOLVABLE in errorCode.

altcha solver ALTCHA

ALTCHA is a proof of work CAPTCHA. There is no image to read and no audio to play. The target site issues a challenge, and the client must brute force the number that satisfies it. CapSkip returns the payload the widget would have produced.

How It Works

The defence is CPU cost, not recognition. The server states a target and a search range (maxnumber), and the client hashes candidates until one of them matches. Two things follow from that which are unusual for a CAPTCHA type.

First, a solve is deterministic: either the answer exists inside the stated range or the challenge was malformed. Nothing is ever read wrong.

Second, solve time is set by the target site rather than by CapSkip. The reference widget defaults to a range of 1,000,000, which is a few milliseconds of work. Sites are free to raise it, and some ship 999,999,999, which is roughly 500 million hashes for an average challenge. If a site is slow to solve, read its maxnumber value first.

The full cycle is four steps:

  1. Take the challenge from the endpoint the widget reads it from.
  2. Submit it to /in.php with method=altcha.
  3. Poll /res.php until the token is ready.
  4. Send the token back in the target form’s altcha field.
What You Need Before Solving

The challenge, in one of two forms. Both are accepted, so send whichever your scraper already has.

Parameter Use it when
challenge_json You already hold the challenge document. CapSkip makes no network request at all, which is the fastest path.
challenge_url You only hold the endpoint that serves the challenge. CapSkip fetches it, through your proxy if you sent one, and then solves it.
Where to Find the Challenge

Open the browser developer tools, switch to the Network tab on the target page, and look for the request that the <altcha-widget> element makes for its challenge. It is often a path such as /altcha/challenge. That request URL is your challenge_url, and the JSON it responds with is your challenge_json.

The widget attribute that names this endpoint changed between versions, so read the page source rather than assuming. Widget v1 and v2 use challengeurl="...", while v3 and later use challenge="..." for both a URL and inline data. Some deployments generate the challenge in the page itself and fetch nothing at all.

A challenge document looks like this:

{
    "algorithm": "SHA-256",
    "challenge": "3dd28253be6cc0c54d95f7f98c517e68a1b2c3d4e5f60718293a4b5c6d7e8f90",
    "salt": "46d5b1c8871e5152d902ee3f?expires=1893456000",
    "signature": "4b1cf0e0be0f4e5247e50b0f9a4498301234567890abcdef1234567890abcdef",
    "maxnumber": 1000000
}
Challenges Expire, and the Window Is Short

Every challenge carries its own expiry, either inside the salt query string or as parameters.expiresAt. Once it passes, the target site rejects the solution with a bare verification failure that looks exactly like a wrong answer. Windows as tight as two minutes are common.

Fetch the challenge immediately before creating the task, and submit the token promptly. Do not collect challenges in advance, and do not hold a token while a user fills in a form. If you send challenge_url rather than challenge_json, CapSkip re-fetches automatically when a challenge expires while it is still queued. A challenge sent only as challenge_json cannot be replaced: if it has expired, the task fails with ERROR_CAPTCHA_UNSOLVABLE and is not retried.

List of POST Request Parameters
Parameter Type Required Description
key String Yes* Your CapSkip API key. Required only when API Key Validation is enabled.
method String Yes Must be altcha. Specifies that you are submitting an ALTCHA challenge.
pageurl String Yes The full URL of the page the challenge came from.
challenge_url String Yes* The endpoint CapSkip should fetch the challenge from. Required unless challenge_json is sent.
challenge_json String Yes* The challenge document itself, as a JSON string. Required unless challenge_url is sent.
proxy String No Proxy address. Accepts IP:PORT, LOGIN:PASSWORD@IP:PORT or IP:PORT:LOGIN:PASSWORD. Used only for the challenge_url fetch.
proxytype String
Default: HTTP
No Proxy type: HTTP, HTTPS, SOCKS5 or SOCKS5H. SOCKS4 is not accepted.
json Integer
Default: 0
No 0 returns the response as plain text. 1 returns the response as JSON.

Send either challenge_url or challenge_json. Sending both is allowed, and the inline document wins, because fetching would only re-obtain what you already have. The exception is an inline document that has already expired: CapSkip then fetches a fresh one from challenge_url.

Submit an HTTP GET or POST request to your CapSkip API endpoint (/in.php) with method=altcha. Form fields and a JSON body are both accepted under identical field names, and GET works too, because ALTCHA carries no image to upload.

Submit ALTCHA (form fields):

curl -X POST \
-d "key=YOUR_API_KEY" \
-d "method=altcha" \
-d "pageurl=https://www.example.com/signup" \
--data-urlencode "challenge_url=https://www.example.com/captcha/api/altcha/challenge" \
-d "json=1" \
http://127.0.0.1:8080/in.php

Submit ALTCHA (JSON body):

curl -X POST \
-H "Content-Type: application/json" \
-d '{
    "key": "YOUR_API_KEY",
    "method": "altcha",
    "pageurl": "https://www.example.com/signup",
    "challenge_url": "https://www.example.com/captcha/api/altcha/challenge",
    "json": 1
}' \
http://127.0.0.1:8080/in.php

A JSON body allows three things that form encoding cannot. Flags may be real booleans ("json": true), challenge_json may be the nested document rather than an escaped string, and a field set to null counts as not sent.

If everything is correct, CapSkip returns the CAPTCHA ID as plain text: OK|2122988149. If the json=1 parameter was sent, the response is a JSON envelope instead. Either way, the returned value is the CAPTCHA ID you poll for the result.

{
    "status": 1,
    "request": "2122988149"
}

Otherwise CapSkip returns an appropriate error code: ERROR_PAGEURL for a missing or malformed pageurl, and ERROR_BAD_PARAMETERS when neither challenge field is sent or challenge_url is not a full URL. A malformed inline challenge is rejected with ERROR_BAD_PARAMETERS on the submit request itself rather than after polling, so you find out on the request that was wrong.

Wait approximately 5 seconds, then submit an HTTP GET request to the result endpoint (/res.php) with the CAPTCHA ID you received.

List of GET request parameters
Parameter Type Required Description
key String Yes* Your CapSkip API key. Required only when API Key Validation is enabled.
action String Yes Specify get to retrieve the CAPTCHA solution.
id Integer Yes The CAPTCHA ID returned by the in.php request.
json Integer
Default: 0
No 0 returns the response as plain text. 1 returns the response as JSON.
curl "http://127.0.0.1:8080/res.php?key=YOUR_API_KEY&action=get&id=2122988149&json=1"

If the CAPTCHA has been solved, CapSkip returns the solution in JSON format:

{
    "status": 1,
    "request": "eyJhbGdvcml0aG0iOiJTSEEtMjU2IiwiY2hhbGxlbmdlIjoiM2RkMi...",
    "solution": {
        "token": "eyJhbGdvcml0aG0iOiJTSEEtMjU2IiwiY2hhbGxlbmdlIjoiM2RkMi...",
        "number": 9661
    },
    "cost": "0.00299",
    "createTime": 1788863246,
    "endTime": 1788863246,
    "errorId": 0,
    "solveCount": 1
}

request and solution.token are always the same string, so read whichever one your client expects. number is the counter that solved the challenge, returned for completeness. Without json=1, the answer is simply OK|<token>.

If the CAPTCHA has not yet been solved, CapSkip returns CAPCHA_NOT_READY, spelled exactly that way as on every other method. Wait 5 seconds and repeat the request.

Gate your polling loop on errorId, not on status. status is the integer 1 that the res.php contract has always returned, which is what every compatible SDK reads. If you wrote your client against a documentation page showing "status": "ready", check errorId === 0 or the presence of solution.token instead.

Submitting the Token

The ALTCHA widget puts its payload in a form field named altcha. Submit the token verbatim in that field, exactly as the widget would have:

POST https://www.example.com/signup
Content-Type: application/x-www-form-urlencoded

email=someone%40example.com&altcha=eyJhbGdvcml0aG0iOiJTSEEtMjU2Iiwi...

The payload’s internal shape follows the challenge that generated it. A legacy challenge produces a flat document carrying number, while a PoW v2 challenge produces one that nests the original challenge under challenge and the answer under solution. Treat the token as opaque and pass it through unchanged, because the target site already knows which shape to expect.

Some integrations read the payload from a JSON body field instead, so check what the page’s own submit sends and mirror it. Do not re-encode, trim or re-order the token. It is base64 of a JSON document whose fields are covered by the server’s HMAC signature, so any modification invalidates it.

Supported Algorithms

You do not have to work out which scheme a site uses. CapSkip reads the challenge and picks the algorithm itself.

Scheme Generation Supported Description
Legacy PoW v1 Yes Find n where SHA(salt + n) equals the challenge. SHA-1, SHA-256, SHA-384 and SHA-512 are all supported. This is the shape most deployments still run.
PBKDF2 PoW v2 Yes Find a counter whose derived key starts with the target prefix. SHA-256, SHA-384 and SHA-512 are supported. This is the default that ALTCHA itself recommends.
SHA PoW v2 Yes The iterative hash variant of the same scheme.
Argon2id PoW v2 No Memory hard key derivation function. Refused rather than attempted.
scrypt PoW v2 No Memory hard key derivation function. Refused rather than attempted.

Both effort modes work and need nothing from you. In deterministic mode the server precomputes the target so that solve time is predictable, and in probabilistic mode solve time varies from one challenge to the next. All three widget types (native, checkbox and switch) are supported, because the type is only the visual style of the control and never reaches the API.

Argon2id and scrypt are refused rather than attempted. A task using either is accepted, then fails with ERROR_CAPTCHA_UNSOLVABLE without being retried, so it is never silently mis-solved. Since ALTCHA recommends PBKDF2 as its default, this affects a small minority of sites.

JSON API (createTask)

ALTCHA is also accepted on /createTask, with the result read from /getTaskResult. The task types are AltchaTask and AltchaTaskProxyless, handled the same way, and CapMonster’s CustomTask with "class": "altcha". Not available while NextCaptcha or EzCaptcha is the selected service in CapSkip.

ParameterTypeRequiredDescription
typeStringYesOne of the task types above.
websiteURLStringYesThe full URL of the page the challenge came from.
challengeURLStringYes*As challenge_url above. Required unless the challenge is sent inline.
challengeJSONStringYes*As challenge_json above, as a JSON string or as the nested document. Required unless challengeURL or metadata is sent.
metadataObjectYes*The CapMonster form of an inline challenge: challenge, salt, signature and iterations as separate fields, with an optional algorithm (default SHA-256).
userAgentStringNoSent as the User-Agent of the challengeURL fetch.
proxyStringNoUsed only for the challengeURL fetch. A proxy as a single string in any format in.php accepts, or the proxyType, proxyAddress, proxyPort, proxyLogin and proxyPassword fields. A proxy that cannot be parsed is ignored rather than refused.
curl -X POST http://127.0.0.1:8080/createTask \
-H "Content-Type: application/json" \
-d '{
    "clientKey": "YOUR_API_KEY",
    "task": {
        "type": "AltchaTaskProxyless",
        "websiteURL": "https://www.example.com/signup",
        "challengeURL": "https://www.example.com/captcha/api/altcha/challenge"
    }
}'

The solution carries the token and the counter that solved the challenge:

{
    "errorId": 0,
    "status": "ready",
    "solution": {
        "token": "eyJhbGdvcml0aG0iOiJTSEEtMjU2IiwiY2hhbGxlbmdlIjoiM2RkMi...",
        "number": 9661
    }
}

A task without websiteURL or without any challenge, or with a malformed inline challenge, is refused with ERROR_BAD_PARAMETERS, and a websiteURL that is not a full URL with ERROR_PAGEURL. A failed task returns ERROR_CAPTCHA_UNSOLVABLE in errorCode.

captchafox solver CaptchaFox

CaptchaFox is a privacy focused CAPTCHA that scores the browser itself rather than asking the visitor to read anything. Most visitors never see a puzzle at all. CapSkip returns the verification token the widget would have produced.

How It Works

CaptchaFox decides in three layers, and only the last one is visible. The widget runs a short proof of work, collects a large set of browser signals, and sends both to its own API. If that evidence satisfies the service, a token is issued immediately and no puzzle is ever drawn. An interactive challenge appears only when the evidence does not clear.

You give CapSkip the site key and the page, and CapSkip returns the token.

The full cycle is four steps:

  1. Read the site key from the target page.
  2. Submit it to /in.php with method=captchafox.
  3. Poll /res.php until the token is ready.
  4. Send the token back in the target form’s cf-captcha-response field.
What You Need Before Solving

Two values, and both are read straight off the target page. There is no challenge document to capture and nothing that expires while you queue the task.

ParameterWhere it comes from
sitekeyThe public key the widget is rendered with. It is not secret, it is the same for every visitor, and it conventionally starts with sk_.
pageurlThe full URL of the page the widget appears on. CaptchaFox checks this against the domains the key is registered for, so it has to be the real page.
Where to Find the Site Key

Open the browser developer tools on the target page and look for the CaptchaFox container. Sites render the widget in one of two ways, and the key is visible in both.

<!-- Automatic rendering: the key is an attribute -->
<div class="captchafox" data-sitekey="sk_xtNxpk6fCdFbxh1_xJeGflSdCE9tn99G"></div>

<!-- Explicit rendering: the key is in the render call -->
<script>
  captchafox.render("#container", {
    sitekey: "sk_xtNxpk6fCdFbxh1_xJeGflSdCE9tn99G",
    onVerify: function (token) { /* ... */ }
  });
</script>

If neither is in the served HTML because the page builds the widget at runtime, open the Network tab and find the request to api.captchafox.com. The key is the path segment after /captcha/.

The Page URL Has to Match the Key

CaptchaFox keys are registered against a list of allowed domains, and the service checks the host before it will issue anything. A key that is correct but used on a page outside that list is refused permanently, not intermittently.

CapSkip reports that case rather than retrying it, because retrying cannot help. The task fails with ERROR_RECAPTCHA_INVALID_DOMAIN, or with ERROR_RECAPTCHA_INVALID_SITEKEY when CaptchaFox does not know the key at all, on res.php and getTaskResult alike. If a site key fails immediately and consistently, check that pageurl is the page the widget actually runs on, and not a search page, a redirect or a shortened link that resolves elsewhere.

Challenge Types

You do not choose which challenge appears. CaptchaFox decides, and CapSkip handles what it is given.

ChallengeAppears whenSupportedDescription
InvisibleUsuallyYesThe browser evidence satisfies the service and a token is issued with nothing drawn on screen. This is the common path and the fastest one.
SlideSometimesYesA slider puzzle where a piece has to be dragged into a gap.
Image selectRarelyNoA grid of images to pick from. Reported as unsolvable after CapSkip’s own retries, so your client can retry into a fresh challenge rather than wait out the timeout.
AudioRarelyNoThe accessibility fallback. Reported as unsolvable for the same reason.

The two unsupported challenges are uncommon, and a retry usually draws a different one. Treat an unsolvable result as a signal to resubmit, not as a permanent failure of the key.

List of POST Request Parameters
ParameterTypeRequiredDescription
keyStringYes*Your CapSkip API key. Required only when API Key Validation is enabled.
methodStringYesMust be captchafox. Specifies that you are submitting a CaptchaFox CAPTCHA.
sitekeyStringYesThe site key read from the target page, conventionally prefixed sk_.
pageurlStringYesThe full URL of the page the widget appears on.
api_serverStringNoThe widget entry point to load. Defaults to https://cdn.captchafox.com/. See Choosing the Widget Source below.
useragentStringNoAccepted for compatibility with other services and not applied. Use the userAgent returned with the result instead.
proxyStringNoProxy address. Accepts IP:PORT, LOGIN:PASSWORD@IP:PORT or IP:PORT:LOGIN:PASSWORD.
proxytypeString
Default: HTTP
NoProxy type: HTTP, HTTPS, SOCKS5 or SOCKS5H. SOCKS4 is not accepted.
jsonInteger
Default: 0
No0 returns the response as plain text. 1 returns the response as JSON.

Unlike most services, CapSkip does not force a proxy for this method. It will still want proxies as soon as you solve at any volume: CaptchaFox scores the network a widget runs on as well as the browser, so repeated solves from one address push that address toward the interactive challenges and, past that, toward refusals. One address is fine for testing and for occasional solves. Beyond that, configure a proxy pool in CapSkip and let it spread the load, or send a per-request proxy when the token has to come from a particular network.

Submit an HTTP GET or POST request to your CapSkip API endpoint (/in.php) with method=captchafox. Form fields and a JSON body are both accepted under identical field names, and GET works too, because CaptchaFox carries no image to upload.

Submit CaptchaFox (form fields):

curl -X POST \
-d "key=YOUR_API_KEY" \
-d "method=captchafox" \
-d "sitekey=sk_xtNxpk6fCdFbxh1_xJeGflSdCE9tn99G" \
-d "pageurl=https://www.example.com/signup" \
-d "json=1" \
http://127.0.0.1:8080/in.php

Submit CaptchaFox (JSON body):

curl -X POST \
-H "Content-Type: application/json" \
-d '{
    "key": "YOUR_API_KEY",
    "method": "captchafox",
    "sitekey": "sk_xtNxpk6fCdFbxh1_xJeGflSdCE9tn99G",
    "pageurl": "https://www.example.com/signup",
    "json": 1
}' \
http://127.0.0.1:8080/in.php

If everything is correct, CapSkip returns the CAPTCHA ID as plain text: OK|2122988149. If the json=1 parameter was sent, the response is a JSON envelope instead. Either way, the returned value is the CAPTCHA ID you poll for the result.

{
    "status": 1,
    "request": "2122988149"
}

Otherwise CapSkip returns an appropriate error code. A missing site key or an unusable page URL is rejected on the submit request itself rather than after polling, so you find out on the request that was wrong. A missing site key returns ERROR_BAD_PARAMETERS, and a pageurl that is not a full http or https URL returns ERROR_PAGEURL.

Wait approximately 5 seconds, then submit an HTTP GET request to the result endpoint (/res.php) with the CAPTCHA ID you received. Expect a CaptchaFox solve to take longer than an ALTCHA one, and longer again when an interactive challenge is drawn.

List of GET request parameters
ParameterTypeRequiredDescription
keyStringYes*Your CapSkip API key. Required only when API Key Validation is enabled.
actionStringYesSpecify get to retrieve the CAPTCHA solution.
idIntegerYesThe CAPTCHA ID returned by the in.php request.
jsonInteger
Default: 0
No0 returns the response as plain text. 1 returns the response as JSON.
curl "http://127.0.0.1:8080/res.php?key=YOUR_API_KEY&action=get&id=2122988149&json=1"

If the CAPTCHA has been solved, CapSkip returns the solution in JSON format:

{
    "status": 1,
    "request": "177f50c25b845601e5c779cdb51b040d523e8ab69efb4d5b343e28df07d05076",
    "solution": {
        "token": "177f50c25b845601e5c779cdb51b040d523e8ab69efb4d5b343e28df07d05076",
        "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36"
    },
    "cost": "0.00145",
    "createTime": 1788863246,
    "endTime": 1788863262,
    "errorId": 0,
    "solveCount": 1,
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36"
}

request and solution.token are always the same string, so read whichever one your client expects. Without json=1, the answer is simply OK|<token>.

When the solve reports one, the User-Agent the token belongs to comes back as userAgent, both at the top level and inside solution. In plain text mode, read it from the X-CaptchaFox-User-Agent response header. Send that User-Agent when you submit the token.

If the CAPTCHA has not yet been solved, CapSkip returns CAPCHA_NOT_READY, spelled exactly that way as on every other method. Wait 5 seconds and repeat the request.

Gate your polling loop on errorId, not on status. status is the integer 1 that the res.php contract has always returned, which is what every compatible SDK reads. If you wrote your client against a documentation page showing "status": "ready", check errorId === 0 or the presence of solution.token instead.

Submitting the Token

The CaptchaFox widget puts its token in a form field named cf-captcha-response. Submit the token verbatim in that field, exactly as the widget would have:

POST https://www.example.com/signup
Content-Type: application/x-www-form-urlencoded

email=someone%40example.com&cf-captcha-response=177f50c25b845601e5c779cdb51b040d...

Some integrations read the token from a JSON body field instead, so check what the page’s own submit sends and mirror it. Treat the token as opaque and pass it through unchanged. It is verified server side against the session that produced it, so any edit invalidates it.

Tokens are short lived. Submit promptly rather than holding one while a user fills in a form, and solve again if the form is abandoned and resumed.

Choosing the Widget Source

CaptchaFox publishes its widget from two places, and which one a site loads decides the shape of the token it expects back. Send api_server only when the target page does not use the default.

api_serverTokenDefaultDescription
https://cdn.captchafox.com/PlainYesThe standard widget, used by the large majority of sites. This is what CapSkip loads when you send nothing.
https://s.uicdn.com/mampkg/MAM_ prefixedNoThe packaged build some platforms embed. It returns a token prefixed MAM_. Pass the full package path exactly as it appears in the page’s script tag.

Read the value from the <script> tag that loads the widget on the target page. If you send the wrong one the solve still succeeds, but the token comes back in a format the target site will not accept, which looks like a silent verification failure rather than an error.

JSON API (createTask)

CaptchaFox is also accepted on /createTask, with the result read from /getTaskResult. The task types are CaptchaFoxTask and CaptchaFoxTaskProxyless, and both are handled the same way: a proxy sent with either is used. Not available while NextCaptcha or EzCaptcha is the selected service in CapSkip.

ParameterTypeRequiredDescription
typeStringYesOne of the two task types above.
websiteURLStringYesThe full URL of the page the widget appears on.
websiteKeyStringYesThe site key, as sitekey above.
apiServerStringNoAs api_server above.
userAgentStringNoAccepted for compatibility and not applied, as useragent above.
proxyStringNoA proxy as a single string in any format in.php accepts, or the proxyType, proxyAddress, proxyPort, proxyLogin and proxyPassword fields. A proxy that cannot be parsed is ignored rather than refused.
curl -X POST http://127.0.0.1:8080/createTask \
-H "Content-Type: application/json" \
-d '{
    "clientKey": "YOUR_API_KEY",
    "task": {
        "type": "CaptchaFoxTaskProxyless",
        "websiteURL": "https://www.example.com/signup",
        "websiteKey": "sk_xtNxpk6fCdFbxh1_xJeGflSdCE9tn99G"
    }
}'

The solution carries the token, and the User-Agent it belongs to when the solve reports one:

{
    "errorId": 0,
    "status": "ready",
    "solution": {
        "token": "177f50c25b845601e5c779cdb51b040d523e8ab69efb4d5b343e28df07d05076",
        "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36"
    }
}

A task without websiteKey or with an apiServer that is not a full URL is refused with ERROR_BAD_PARAMETERS, and a missing or malformed websiteURL with ERROR_PAGEURL. A refused key fails the task with errorId 32 ERROR_RECAPTCHA_INVALID_DOMAIN or 31 ERROR_RECAPTCHA_INVALID_SITEKEY, and any other failure with 12 ERROR_CAPTCHA_UNSOLVABLE.

capy puzzle solver Capy Puzzle

Capy Puzzle is a drag and drop CAPTCHA: a piece is cut out of a photograph and the visitor slides it back into the hole it came from. CapSkip returns the three values the widget would have written into the page, ready to submit with your form.

How It Works

Capy is unusual among the CAPTCHAs on this page in that nothing about a challenge is issued by a server. The widget generates its own challenge key, asks the Capy API for the puzzle that belongs to that key, and the visitor drags the piece into place. There is no token to fetch beforehand and no handshake to replay.

The answer is not a coordinate. The widget records the path the piece was dragged along and encodes it as a string, so what you submit back to the target site is a plausible drag, not a destination. CapSkip builds that path for you.

The full cycle is four steps:

  1. Read the CAPTCHA key from the target page.
  2. Submit it to /in.php with method=capy.
  3. Poll /res.php until the solution is ready.
  4. Send the three returned values back in the target form.
What You Need Before Solving

Two values, and both are read straight off the target page.

ParameterWhere it comes from
captchakeyThe site’s public Capy key, conventionally prefixed PUZZLE_. It appears in the page source as capy_captchakey, and in the widget script URL as the k query parameter.
pageurlThe full URL of the page the widget appears on. Capy never sees this value, but keys are registered against sites, so send the real page.

There is a third value worth checking, api_server, which is the root of the Capy API the key lives behind. Read it from the same script tag. CapSkip defaults to https://jp.api.capy.me, which is where the live service is, and only needs telling otherwise if the target page points somewhere else.

Several solving services still document api.capy.me without the regional prefix. That host no longer resolves. If you copied it from elsewhere, drop it and let CapSkip use its default.

Where to Find the CAPTCHA Key

Open the browser developer tools on the target page and look for the Capy widget. The key is visible in both of the ways sites load it.

<!-- In the page source, as the widget configuration -->
<div id="capy"></div>
<script>
  window.capyOptions = {
    captchakey: "PUZZLE_Abc1dEFghIJKLM2no34P56q7rStu8v",
    puzzle_div: "capy"
  };
</script>

<!-- Or in the script URL itself, as the k parameter -->
<script src="https://jp.api.capy.me/puzzle/get_js/?k=PUZZLE_Abc1dEFghIJKLM2no34P56q7rStu8v"></script>

The root of that script URL, https://jp.api.capy.me/ in the example above, is the api_server value if you need to send one.

The Answer Is Three Values, Not a Token

This is the one structural difference from every other method on this page, and it is worth reading before you write the client. reCAPTCHA, Turnstile and CaptchaFox all come back as a single opaque string. A Capy solution is three separate values that only work together.

Returned valueGoes into the target form field
captchakeycapy_captchakey
challengekeycapy_challengekey
answercapy_answer

Because a bare OK|<token> has room for one value and not three, /res.php returns the whole solution object for this method. The plain text reply carries it, and so does the request field of a JSON reply. A fourth field, respKey, comes back as an empty string for compatibility with clients written against other services. It carries nothing for a puzzle solve and can be ignored.

List of POST Request Parameters
ParameterTypeRequiredDescription
keyStringYes*Your CapSkip API key. Required only when API Key Validation is enabled.
methodStringYesMust be capy. Specifies that you are submitting a Capy Puzzle CAPTCHA.
captchakeyStringYesThe CAPTCHA key read from the target page, conventionally prefixed PUZZLE_. sitekey and websiteKey are accepted as aliases.
pageurlStringYesThe full URL of the page the widget appears on.
api_serverStringNoThe root of the Capy API the key lives behind. Defaults to https://jp.api.capy.me.
versionString
Default: puzzle
NoThe challenge family. Only puzzle is solved, in any letter case. Any other value returns ERROR_BAD_PARAMETERS. See Puzzle and Avatar below.
userAgentStringNoThe User-Agent to send with the puzzle request. Optional, and rarely needed.
proxyStringNoProxy address: IP:PORT, login:password@IP:PORT or IP:PORT:login:password; a host name works in place of the IP. A value that cannot be read returns ERROR_PROXY_FORMAT.
proxytypeString
Default: HTTP
NoProxy type: HTTP, HTTPS, SOCKS5 or SOCKS5H. SOCKS4 is not accepted: it, and any other type, returns ERROR_BAD_PARAMETERS.
jsonInteger
Default: 0
No0 returns the response as plain text. 1 returns the response as JSON.

CapSkip does not force a proxy for this method, but you will want proxies as soon as you solve at any volume. Every solve draws a fresh puzzle from the Capy API over a live request, and a steady stream of those from one address is the pattern rate limiting exists to catch. One address is fine for testing and for occasional solves. Past that, configure a proxy pool in CapSkip and let it spread the load, or send a per-request proxy when a solve has to come from a particular network.

Submit an HTTP GET or POST request to your CapSkip API endpoint (/in.php) with method=capy. Form fields, a query string and a JSON body are all accepted under identical field names, because Capy carries no image to upload.

Submit Capy Puzzle (form fields):

curl -X POST \
-d "key=YOUR_API_KEY" \
-d "method=capy" \
-d "captchakey=PUZZLE_Abc1dEFghIJKLM2no34P56q7rStu8v" \
-d "pageurl=https://www.example.com/login" \
-d "json=1" \
http://127.0.0.1:8080/in.php

Submit Capy Puzzle (JSON body):

curl -X POST \
-H "Content-Type: application/json" \
-d '{
    "key": "YOUR_API_KEY",
    "method": "capy",
    "captchakey": "PUZZLE_Abc1dEFghIJKLM2no34P56q7rStu8v",
    "api_server": "https://jp.api.capy.me/",
    "pageurl": "https://www.example.com/login",
    "json": 1
}' \
http://127.0.0.1:8080/in.php

If everything is correct, CapSkip returns the CAPTCHA ID as plain text: OK|2122988149. If the json=1 parameter was sent, the response is a JSON envelope instead. Either way, the returned value is the CAPTCHA ID you poll for the result.

{
    "status": 1,
    "request": "2122988149"
}

Otherwise CapSkip returns an appropriate error code. A missing CAPTCHA key, an unusable page URL or an api_server that is not a URL is rejected on the submit request itself rather than after polling, so you find out on the request that was wrong.

Wait approximately 3 seconds, then submit an HTTP GET request to the result endpoint (/res.php) with the CAPTCHA ID you received. A solve is deliberately held back to a human plausible duration before it is returned, for the reason described under Timing below.

List of GET request parameters
ParameterTypeRequiredDescription
keyStringYes*Your CapSkip API key. Required only when API Key Validation is enabled.
actionStringYesSpecify get to retrieve the CAPTCHA solution.
idIntegerYesThe CAPTCHA ID returned by the in.php request.
jsonInteger
Default: 0
No0 returns the response as plain text. 1 returns the response as JSON.
curl "http://127.0.0.1:8080/res.php?key=YOUR_API_KEY&action=get&id=2122988149&json=1"

If the CAPTCHA has been solved, CapSkip returns the solution in JSON format:

{
    "status": 1,
    "request": {
        "captchakey": "PUZZLE_Abc1dEFghIJKLM2no34P56q7rStu8v",
        "challengekey": "BalY2gJaI8uA2SGVOZhqBQ3V0CYSNNGP",
        "answer": "0xax8ex0xax84x0xkx7qx0x18x76x0x1ix6sx0x26x68x0x2gx5kx0x34x50x",
        "respKey": ""
    },
    "solution": {
        "captchakey": "PUZZLE_Abc1dEFghIJKLM2no34P56q7rStu8v",
        "challengekey": "BalY2gJaI8uA2SGVOZhqBQ3V0CYSNNGP",
        "answer": "0xax8ex0xax84x0xkx7qx0x18x76x0x1ix6sx0x26x68x0x2gx5kx0x34x50x",
        "respKey": ""
    },
    "cost": "0.00299",
    "createTime": 1788863246,
    "endTime": 1788863250,
    "errorId": 0,
    "solveCount": 1
}

request and solution carry the same object, so read whichever one your client expects. Without json=1, the same object follows the OK| prefix as a single line of JSON, which is what a client reading res.php as plain text will hand back:

OK|{"captchakey":"PUZZLE_Abc1dEFghIJKLM2no34P56q7rStu8v","challengekey":"BalY2gJaI8uA2SGVOZhqBQ3V0CYSNNGP","answer":"0xax8ex0xax84x0xkx7qx","respKey":""}

If the CAPTCHA has not yet been solved, CapSkip returns CAPCHA_NOT_READY, spelled exactly that way as on every other method. Wait 3 seconds and repeat the request.

Each result is delivered once. The first successful poll returns the solution and discards it, and every later poll for the same ID returns an empty body, so keep the values from the reply that carried them.

A CAPTCHA key the Capy API refuses returns ERROR_RECAPTCHA_INVALID_SITEKEY, and resubmitting it fails again. Any other failure returns ERROR_CAPTCHA_UNSOLVABLE, or the replacement text set in Settings.

JSON API (createTask)

Capy Puzzle is also accepted on /createTask, with the result read from /getTaskResult. Two task types are recognised, CapyTaskProxyless and CapyTask. Both read the same fields, and a proxy in the task is used whichever of the two you send. Not available while NextCaptcha or EzCaptcha is the selected service in CapSkip.

ParameterTypeRequiredDescription
typeStringYesOne of the two task types above.
websiteURLStringYesThe full URL of the page the widget appears on, as pageurl above.
websiteKeyStringYesThe CAPTCHA key, as captchakey above. captchakey is accepted as an alias.
apiServerStringNoAs api_server above, which is accepted as an alias.
versionString
Default: puzzle
NoAs version above: only puzzle is accepted.
userAgentStringNoAs for in.php above.
proxyStringNoProxy as a single string, or the proxyType, proxyAddress, proxyPort, proxyLogin and proxyPassword fields. A proxy that cannot be read is ignored.
curl -X POST http://127.0.0.1:8080/createTask \
-H "Content-Type: application/json" \
-d '{
    "clientKey": "YOUR_API_KEY",
    "task": {
        "type": "CapyTaskProxyless",
        "websiteURL": "https://www.example.com/login",
        "websiteKey": "PUZZLE_Abc1dEFghIJKLM2no34P56q7rStu8v"
    }
}'

The solution carries the same four fields as res.php:

{
    "errorId": 0,
    "status": "ready",
    "solution": {
        "captchakey": "PUZZLE_Abc1dEFghIJKLM2no34P56q7rStu8v",
        "challengekey": "BalY2gJaI8uA2SGVOZhqBQ3V0CYSNNGP",
        "answer": "0xax8ex0xax84x0xkx7qx0x18x76x0x1ix6sx0x26x68x0x2gx5kx0x34x50x",
        "respKey": ""
    }
}

A request refused at submit returns errorId 1 with the same error code as on in.php. A CAPTCHA key the Capy API refuses returns errorId 31, ERROR_RECAPTCHA_INVALID_SITEKEY. Any other failure returns errorId 12, ERROR_CAPTCHA_UNSOLVABLE.

Submitting the Solution

The three values go into the form fields the Capy widget would have filled in itself. Submit them verbatim:

<input type="hidden" name="capy_captchakey"   value="PUZZLE_Abc1dEFghIJKLM2no34P56q7rStu8v">
<input type="hidden" name="capy_challengekey" value="BalY2gJaI8uA2SGVOZhqBQ3V0CYSNNGP">
<input type="hidden" name="capy_answer"       value="0xax8ex0xax84x0xkx7qx0x18x76x0x1ix6sx">

Do not trim, re-encode or otherwise clean the answer string. It is the drag path the widget would have recorded, and the target site’s backend verifies it against the challenge it issued, so any edit invalidates it.

The challenge key is single use and short lived. CapSkip generates a fresh one for every solve and the puzzle is bound to it, so submit the three values promptly rather than caching them, and never reuse a challengekey for a second submission.

Timing: Capy Refuses Answers That Arrive Too Fast

This is the part of Capy that will cost you a day if you build against it yourself. Capy measures the wall clock gap between issuing the puzzle and receiving the answer, and refuses anything that looks superhuman. It refuses it with the same message a wrong answer gets, so a perfectly correct solve returned in 200 milliseconds is indistinguishable from a broken solver.

Measured against Capy’s own sign in page, holding a correct answer constant:

Time from puzzle to verificationResult
0.48 secondsRefused
1.03 seconds and above, tested to 4 secondsAccepted

CapSkip therefore holds every result back until enough time has passed since the puzzle was drawn, at roughly double the observed floor, because the floor belongs to Capy and can move. The hold is applied automatically to every solve and there is nothing to configure. If you poll for the result it is invisible, because the task simply takes around two seconds. Each solve holds a Capy thread for that time, so for more solves per second raise Max. Threads under Settings, Captcha types, Capy.

Puzzle and Avatar

Capy publishes two challenge families. They are different challenges behind different endpoints, and CapSkip solves one of them.

versionChallengeSupportedDescription
puzzleAssemble a puzzleYesThe default, and what almost every deployment uses. A piece is dragged back into the hole it was cut from.
avatarDrag an objectNoA separate challenge type. Refused at submit time with ERROR_BAD_PARAMETERS rather than answered.

Sending no version means puzzle, so most integrations never set it. Any value other than puzzle is refused the same way as avatar. An avatar request is rejected rather than attempted on purpose: answering it as a puzzle would return a solution the target site refuses, which is worse than a clear error because it looks like a failing solver rather than an unsupported challenge.

friendly captcha solver Friendly Captcha

Friendly Captcha asks the visitor’s browser to do a piece of arithmetic instead of asking the visitor to do anything. There is no image to click, no slider and no audio fallback, so there is nothing on screen to get wrong. CapSkip returns the token the widget would have produced, ready to submit with your form.

How It Works

Friendly Captcha is a proof of work CAPTCHA. The widget is handed a difficulty setting, searches for values that hash below it, and writes the result into a hidden field in your form. Nothing is ever shown to the visitor, which is the point of the product: a page using it looks like a page with no CAPTCHA on it.

Two entirely different protocols ship under this one name, and a sitekey does not tell you which one a site uses. They share a brand and a sitekey namespace and nothing else. Deciding between them is the first thing an integration has to get right, so it has its own section below.

The full cycle is four steps:

  1. Read the sitekey from the target page, and the widget script URL with it.
  2. Submit both to /in.php with method=friendly_captcha.
  3. Poll /res.php until the token is ready.
  4. Put the token in the form field the widget would have filled, and submit.

Solve time is not a constant for this method. The service decides how much work a request is worth at the moment it is made, so the same sitekey can cost noticeably more at one time than another. Budget for that in your polling rather than assuming a fixed duration.

What You Need Before Solving

Two values are required, and a third is worth sending whenever you can get it.

ParameterWhere it comes from
sitekeyThe data-sitekey attribute of the widget element, which is the element carrying class="frc-captcha".
pageurlThe full URL of the page the widget appears on.
module_scriptThe src of the widget script tag that carries type="module". Not required, but it is what tells CapSkip which protocol version the site uses, so send it if the page has one.
Version 1 and Version 2

This is the part that will cost you an afternoon if you skip it. Both versions are live, both are in use, and a sitekey registered for one also answers on the other’s endpoint. Solve the wrong one and you get a well formed token that the target site rejects, with no indication anywhere that the version was the problem.

versionWidget packageSupportedDescription
v1friendly-challengeYesThe original, open source widget. Its script is widget.module.min.js or widget.min.js. The default when nothing says otherwise.
v2@friendlycaptcha/sdkYesThe current SDK. Its script is site.min.js. A page loading this one is v2 whatever else it looks like.

CapSkip decides the version in this order, and stops at the first answer:

  1. The version parameter, if you sent one. v1 and v2 are the spellings; 1, 2, 1.0 and 2.0 are accepted too. Any other value is ignored, and the next step decides.
  2. The widget script URL, from module_script or nomodule_script. This is the most reliable signal there is, because it is the build the site actually loads.
  3. Failing both, v1.

CapSkip does not ask the service which version a sitekey belongs to, because the service will answer for either one. Send the version, or send the script URL, and the question never arises.

Where to Find the Sitekey

Open the browser developer tools on the target page and look for the widget element. The sitekey and the script are next to each other in the page source, and between them they give you everything this method needs.

<!-- Version 1: the friendly-challenge widget -->
<div class="frc-captcha" data-sitekey="FCMEXAMPLE1234AB"></div>
<script type="module" src="https://cdn.example.com/[email protected]/widget.module.min.js"></script>
<script nomodule src="https://cdn.example.com/[email protected]/widget.min.js"></script>

<!-- Version 2: the @friendlycaptcha/sdk widget -->
<div class="frc-captcha" data-sitekey="FCMEXAMPLE1234AB"></div>
<script type="module" src="https://cdn.example.com/@friendlycaptcha/[email protected]/site.min.js"></script>

Some deployments serve the script from their own domain rather than a CDN. The file name is what matters, not the host it comes from.

List of POST Request Parameters
ParameterTypeRequiredDescription
keyStringYes*Your CapSkip API key. Required only when API Key Validation is enabled.
methodStringYesMust be friendly_captcha. Specifies that you are submitting a Friendly Captcha. friendlycaptcha is accepted too.
sitekeyStringYesThe data-sitekey value read from the widget element on the target page.
pageurlStringYesThe full URL of the page the widget appears on.
versionString
Default: v1
NoThe protocol version, v1 or v2. See Version 1 and Version 2 above.
module_scriptStringNoThe src of the widget script tag carrying type="module". Used to work out the version when version was not sent.
nomodule_scriptStringNoThe src of the widget script tag carrying nomodule. Read for the same reason.
api_serverStringNoSpecific to CapSkip. The data residency endpoint the sitekey belongs to. Accepts global (the default), eu, a host name or a full URL. See Data Residency below.
useragentStringNoThe User-Agent to send with the request. Optional, and rarely needed.
proxyStringNoProxy address: IP:PORT, login:password@IP:PORT or IP:PORT:login:password; a host name works in place of the IP. A value that cannot be read returns ERROR_PROXY_FORMAT.
proxytypeString
Default: HTTP
NoProxy type: HTTP, HTTPS, SOCKS5 or SOCKS5H. SOCKS4 is not accepted: it, and any other type, returns ERROR_BAD_PARAMETERS.
jsonInteger
Default: 0
No0 returns the response as plain text. 1 returns the response as JSON.

CapSkip does not force a proxy for this method, and you will want one sooner here than almost anywhere else on this page. The service decides how much work each request is worth, and it raises that figure for addresses it has already seen a lot of: measured against one sitekey from a single address, the difficulty setting rose steadily over a session of testing, and the published range between a fresh address and a heavily used one is close to thirty times the work for the same token. One address is fine for testing and for occasional solves. Past that, configure a proxy pool in CapSkip and let it spread the load, or send a per-request proxy when a solve has to come from a particular network.

Submit an HTTP GET or POST request to your CapSkip API endpoint (/in.php) with method=friendly_captcha. Form fields, a query string and a JSON body are all accepted under identical field names, because this method carries no image to upload.

Submit Friendly Captcha (form fields):

curl -X POST \
-d "key=YOUR_API_KEY" \
-d "method=friendly_captcha" \
-d "sitekey=FCMEXAMPLE1234AB" \
-d "pageurl=https://www.example.com/signup" \
-d "version=v2" \
-d "json=1" \
http://127.0.0.1:8080/in.php

Submit Friendly Captcha (JSON body, with the script URLs instead of an explicit version):

curl -X POST \
-H "Content-Type: application/json" \
-d '{
    "key": "YOUR_API_KEY",
    "method": "friendly_captcha",
    "sitekey": "FCMEXAMPLE1234AB",
    "pageurl": "https://www.example.com/signup",
    "module_script": "https://cdn.example.com/@friendlycaptcha/[email protected]/site.min.js",
    "nomodule_script": "https://cdn.example.com/@friendlycaptcha/[email protected]/site.compat.js",
    "json": 1
}' \
http://127.0.0.1:8080/in.php

If everything is correct, CapSkip returns the CAPTCHA ID as plain text: OK|2122988149. If the json=1 parameter was sent, the response is a JSON envelope instead. Either way, the returned value is the CAPTCHA ID you poll for the result.

{
    "status": 1,
    "request": "2122988149"
}

Otherwise CapSkip returns an appropriate error code. A missing sitekey or an unusable page URL is rejected on the submit request itself rather than after polling, so you find out on the request that was wrong.

Wait approximately 5 seconds, then submit an HTTP GET request to the result endpoint (/res.php) with the CAPTCHA ID you received.

List of GET request parameters
ParameterTypeRequiredDescription
keyStringYes*Your CapSkip API key. Required only when API Key Validation is enabled.
actionStringYesSpecify get to retrieve the CAPTCHA solution.
idIntegerYesThe CAPTCHA ID returned by the in.php request.
jsonInteger
Default: 0
No0 returns the response as plain text. 1 returns the response as JSON.
curl "http://127.0.0.1:8080/res.php?key=YOUR_API_KEY&action=get&id=2122988149&json=1"

If the CAPTCHA has been solved, CapSkip returns the token in JSON format. The token is in request, and solution.token carries the same string for clients that expect it there:

{
    "status": 1,
    "request": "c62c4da36bbaf7f253873035832709ef.aqwpWwdbzRWKY/UQAQwwpgAAAAAAAAAAM7hBvJOzqjc=.AAAAAArcCQABAAAAxv8QAAIAAACKYRgA.AgAB",
    "solution": {
        "token": "c62c4da36bbaf7f253873035832709ef.aqwpWwdbzRWKY/UQAQwwpgAAAAAAAAAAM7hBvJOzqjc=.AAAAAArcCQABAAAAxv8QAAIAAACKYRgA.AgAB"
    },
    "cost": "0.00299",
    "createTime": 1789667786,
    "endTime": 1789667807,
    "errorId": 0,
    "solveCount": 1
}

Without json=1, the same token follows the OK| prefix as plain text, which is what a client reading res.php as text will hand back:

OK|c62c4da36bbaf7f253873035832709ef.aqwpWwdbzRWKY/UQAQwwpgAAAAAAAAAAM7hBvJOzqjc=.AAAAAArcCQABAAAAxv8QAAIAAACKYRgA.AgAB

If the CAPTCHA has not yet been solved, CapSkip returns CAPCHA_NOT_READY, spelled exactly that way as on every other method. Wait 5 seconds and repeat the request.

Each result is delivered once. The first successful poll returns the token and discards it, and every later poll for the same ID returns an empty body, so keep the token from the reply that carried it.

The two versions produce tokens of very different shapes and sizes. A v1 token is four dot separated parts and runs to a few hundred characters, as above. A v2 token is a single opaque string beginning AQQA. and is roughly six kilobytes long, so make sure whatever carries it, a hidden field, a database column or a proxied request, is sized for that.

A sitekey the service does not recognise returns ERROR_RECAPTCHA_INVALID_SITEKEY, and one used from a site it is not registered for returns ERROR_RECAPTCHA_INVALID_DOMAIN. Resubmitting either fails again. Any other failure returns ERROR_CAPTCHA_UNSOLVABLE, or the replacement text set in Settings.

JSON API (createTask)

Friendly Captcha is also accepted on /createTask, with the result read from /getTaskResult. Three task types are recognised: FriendlyCaptchaTaskProxyless, FriendlyCaptchaTask, and CapMonster’s CustomTask with class set to friendly. All three read the same fields, and a proxy in the task is used whichever you send. Not available while NextCaptcha or EzCaptcha is the selected service in CapSkip.

ParameterTypeRequiredDescription
typeStringYesOne of the task types above.
classStringNofriendly, with type set to CustomTask.
websiteURLStringYesAs pageurl above.
websiteKeyStringYesAs sitekey above.
versionStringNoAs version above: without it, the version is read from the script URL, else v1.
moduleScriptStringNoAs module_script above.
nomoduleScriptStringNoAs nomodule_script above.
metadataObjectNoFor CustomTask: apiGetLib, the widget script URL, used like moduleScript.
apiEndpointStringNoAs api_server above. apiServer and api_server are accepted too.
userAgentStringNoAs useragent above.
proxyStringNoProxy as a single string, or the proxyType, proxyAddress, proxyPort, proxyLogin and proxyPassword fields. A proxy that cannot be read is ignored.
curl -X POST http://127.0.0.1:8080/createTask \
-H "Content-Type: application/json" \
-d '{
    "clientKey": "YOUR_API_KEY",
    "task": {
        "type": "FriendlyCaptchaTaskProxyless",
        "websiteURL": "https://www.example.com/signup",
        "websiteKey": "FCMEXAMPLE1234AB",
        "moduleScript": "https://cdn.example.com/@friendlycaptcha/[email protected]/site.min.js"
    }
}'

The solution carries the token twice, under token and data.token:

{
    "errorId": 0,
    "status": "ready",
    "solution": {
        "token": "AQQA.vW7kd3CujKT8PaQgEcW18QaH...",
        "data": {
            "token": "AQQA.vW7kd3CujKT8PaQgEcW18QaH..."
        }
    }
}

A request without websiteURL or websiteKey returns errorId 1, ERROR_BAD_PARAMETERS, and a websiteURL that is not a full URL returns ERROR_PAGEURL. A refused sitekey returns errorId 31, ERROR_RECAPTCHA_INVALID_SITEKEY, or 32, ERROR_RECAPTCHA_INVALID_DOMAIN. Any other failure returns errorId 12, ERROR_CAPTCHA_UNSOLVABLE.

Submitting the Token

The token goes into the hidden field the widget would have filled in itself, and the two versions do not use the same field name. This catches people who move a working v1 integration onto a v2 site.

versionForm field the token goes into
v1frc-captcha-solution
v2frc-captcha-response
<!-- Version 1 -->
<input type="hidden" name="frc-captcha-solution" value="c62c4da3...AgAB">

<!-- Version 2 -->
<input type="hidden" name="frc-captcha-response" value="AQQA.vW7kd3CujKT8PaQgEcW18QaH...">

Submit the token verbatim. Do not trim it, re-encode it or strip what look like padding characters: every part of it is verified against the challenge it was issued for, so any edit invalidates it.

A site is free to rename that field, and some do. If the page you are integrating with uses a different name, read the name off the widget element and use that instead. If the page defines a callback for the widget, calling it with the token as its only argument does the same job.

Data Residency

Friendly Captcha runs separate endpoints for different data residency regions, and a sitekey belongs to one of them. Both will issue a token for the same sitekey, so sending the request to the wrong one produces a token that looks perfectly valid here and is refused by the target site with nothing more useful than a failed verification.

The widget names its region in an attribute: data-api-endpoint on a v2 widget, data-puzzle-endpoint on a v1 widget. If the target page carries one, pass the same value as api_server. That parameter is specific to CapSkip and has no equivalent elsewhere, so a client written against another service will not be sending it: add it yourself when the target page is on a regional endpoint.

api_serverWhat it selects
globalThe default. Used when the attribute is absent, which is the common case.
euThe European endpoint, selected by data-api-endpoint="eu".
A host nameA host alone, such as frc.example.com. The standard API path for the version is added.
A full URLA self hosted or otherwise custom deployment. Send the endpoint exactly as the page gives it. A v1 data-puzzle-endpoint that lists several URLs separated by commas is accepted as it is.

datadome solver DataDome

DataDome is the bot protection behind many large shops, news sites and marketplaces. When it doubts a visitor, the site answers with a block page instead of its content, and that page holds a slider or a short device check. Passing it sets a datadome cookie, and requests that carry the cookie are let through. CapSkip passes the challenge you send and returns the cookie, so a script with no browser of its own can keep fetching the site.

How It Works

A blocked request comes back with status 403 (sometimes 401) and a small HTML page. That page carries a script object, var dd={...}, and loads the challenge in an iframe from geo.captcha-delivery.com. The iframe address is what CapSkip needs: it is called the captcha_url below.

DataDome shows two kinds of challenge, and CapSkip handles both through this one method:

  • Slider. The iframe path is /captcha/ and the visitor drags a slider, sometimes onto a puzzle piece.
  • Device check. The iframe path is /interstitial/ and the page reads “Verifying the device” for a few seconds. When the check is not satisfied, DataDome moves on to a slider.

The full cycle is four steps:

  1. Request the target page and receive the DataDome block page.
  2. Build the captcha_url from that page (see below), and submit it to /in.php with method=datadome.
  3. Poll /res.php until the cookie is ready.
  4. Repeat your request with the cookie, the same User-Agent and the same IP address.

A solve usually takes between 3 and 20 seconds. Device checks are at the short end of that range and sliders at the long end.

The Cookie Belongs to One IP and One Browser

DataDome ties the cookie to the IP address and the User-Agent that earned it. A cookie replayed from a different address, or with a different User-Agent, is usually refused and the block page comes back. Two rules follow from that:

  • The solve has to come from the address you will use the cookie from. If your requests go out through a proxy, send that proxy with the task. If they come from the computer running CapSkip, send no proxy.
  • Send the User-Agent you will use. It must be Chrome for Windows, no more than 2 major versions older or newer than the Chrome version CapSkip reports. Any other User-Agent would produce a cookie the site rejects, so it is refused up front with ERROR_WRONG_USERAGENT. Firefox, Safari, Edge and mobile User-Agents are refused for the same reason.

When the block page itself says the address is banned, nothing sent from that address can pass, so the task is refused at once with ERROR_PROXY_BANNED instead of being attempted. You can spot this in advance: the dd object carries 't':'bv' instead of 't':'fe'. Change the address and request the page again.

Building the captcha_url

If the block page you received already contains the iframe, take its src attribute as it is. Most block pages build the iframe with a script instead, so you assemble the same address from the dd object. A block page looks like this:

<script>
var dd={'rt':'c','cid':'AHrlqAAAAAMA7KBvCr0n4cEAG330MA==','hsh':'D013AA612AB2224D03B2318D0F5B19','t':'fe','s':45225,'e':'549255a0289eaf17af60822309ab8db4','host':'geo.captcha-delivery.com','cookie':'KzE6_pZBBTHdCdvZkauT9VAshi0wS7~v5_M_MacEtdw8'}
</script>
<script src="https://ct.captcha-delivery.com/c.js"></script>

The value of rt picks the path: c means https://geo.captcha-delivery.com/captcha/ and i means https://geo.captcha-delivery.com/interstitial/. The query string is built from the other fields:

URL parameterValue
initialCidThe cid field.
hashThe hsh field.
cidThe cookie field.
tThe t field. Present on /captcha/ only.
refererThe URL of the page you requested.
sThe s field.
eThe e field, when present.
bThe b field. Present on /interstitial/ only.
dmAlways cd.

URL encode every value. In JavaScript:

const dd = JSON.parse(html.match(/var\s+dd\s*=\s*(\{[^}]*\})/)[1].replace(/'/g, '"'));
const path = dd.rt === 'i' ? 'interstitial' : 'captcha';
const q = new URLSearchParams({ initialCid: dd.cid, hash: dd.hsh, cid: dd.cookie });
if (dd.rt !== 'i' && dd.t) q.set('t', dd.t);
q.set('referer', pageUrl);
q.set('s', dd.s);
if (dd.e) q.set('e', dd.e);
if (dd.b) q.set('b', dd.b);
q.set('dm', 'cd');
const captchaUrl = `https://${dd.host || 'geo.captcha-delivery.com'}/${path}/?${q}`;

Each block page is a fresh challenge. Submit it soon after you receive it, and request the page again for the next task rather than reusing an old captcha_url.

List of POST Request Parameters
ParameterTypeRequiredDescription
keyStringYes*Your CapSkip API key. Required only when API Key Validation is enabled.
methodStringYesMust be datadome. Specifies that you are submitting a DataDome challenge.
captcha_urlStringYesThe address of the challenge iframe on geo.captcha-delivery.com. See Building the captcha_url above. It must be an https address on a captcha-delivery.com host, under /captcha/ or /interstitial/, and carry initialCid, hash and cid. captchaUrl is accepted as an alias.
pageurlStringNoThe full URL of the page that returned the block page. When it is not sent, the referer inside captcha_url is used.
userAgentStringNoThe User-Agent you will send with the cookie: Chrome for Windows, no more than 2 major versions older or newer than the Chrome version CapSkip reports. If you send none, CapSkip uses its own User-Agent, and the reply names it so you can copy it as it is.
proxyStringNoProxy address: IP:PORT, login:password@IP:PORT or IP:PORT:login:password; a host name works in place of the IP. A scheme prefix such as http:// or socks5:// is accepted and sets the type when proxytype is not sent. Send the proxy your later requests will use.
proxytypeString
Default: HTTP
NoProxy type: HTTP, HTTPS, SOCKS5 or SOCKS5H. SOCKS4 is not accepted: it, and any other type, returns ERROR_BAD_PARAMETERS.
jsonInteger
Default: 0
No0 returns the response as plain text. 1 returns the response as JSON.

CapSkip does not force a proxy for this method. One address is fine for testing and for occasional solves. Past that, DataDome scores the address as much as the browser, and a steady stream of block pages from one IP ends in a ban for that IP on the site. At volume, send your requests and your tasks through a pool of residential proxies, one proxy per task, and use each cookie through the proxy that earned it. Use sticky proxies, ones that keep the same exit IP for at least a few minutes. A proxy that changes its IP on every connection cannot produce a working cookie: the challenge loads from several addresses, and the cookie is refused from the next one.

CapSkip also has a DataDome proxy list of its own, under Settings, Captcha types, DataDome, Configure Proxies. Tasks sent without a proxy are solved through that list. Leave it empty unless the requests that carry the cookie also go through those same proxies, since the cookie will only work from the address that solved it. The reply names the proxy each task used. A proxy sent with a task always takes priority over the list.

Submit an HTTP GET or POST request to your CapSkip API endpoint (/in.php) with method=datadome. Form fields, a query string and a JSON body are all accepted under identical field names.

Submit DataDome:

curl -X POST \
--data-urlencode "key=YOUR_API_KEY" \
--data-urlencode "method=datadome" \
--data-urlencode "captcha_url=https://geo.captcha-delivery.com/captcha/?initialCid=AHrlqAAAAAMA7KBvCr0n4cEAG330MA%3D%3D&hash=D013AA612AB2224D03B2318D0F5B19&cid=KzE6_pZBBTHdCdvZkauT9VAshi0wS7~v5_M_MacEtdw8&t=fe&referer=https%3A%2F%2Fwww.example.com%2F&s=45225&e=549255a0289eaf17af60822309ab8db4&dm=cd" \
--data-urlencode "pageurl=https://www.example.com/" \
--data-urlencode "userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/156.0.0.0 Safari/537.36" \
--data-urlencode "proxy=login:[email protected]:8080" \
--data-urlencode "proxytype=HTTP" \
--data-urlencode "json=1" \
http://127.0.0.1:8080/in.php

If everything is correct, CapSkip returns the CAPTCHA ID as plain text: OK|2122988149. If the json=1 parameter was sent, the response is a JSON envelope instead. Either way, the returned value is the CAPTCHA ID you poll for the result.

{
    "status": 1,
    "request": "2122988149"
}

Otherwise CapSkip returns an error code on the submit request itself, before any work is done:

ErrorCause
ERROR_BAD_PARAMETERScaptcha_url is missing or is not a DataDome challenge address, or proxytype is SOCKS4 or another type not listed above.
ERROR_PAGEURLpageurl (or, when it is not sent, the referer in captcha_url) is missing, is not an http or https address, or is a captcha-delivery.com address.
ERROR_WRONG_USERAGENTThe User-Agent is not Chrome for Windows within 2 major versions of the Chrome version CapSkip reports.
ERROR_PROXY_BANNEDThe block page says this address is banned (t=bv).
ERROR_PROXY_FORMATThe proxy value could not be read.

Wait approximately 5 seconds, then submit an HTTP GET request to the result endpoint (/res.php) with the CAPTCHA ID you received.

List of GET request parameters
ParameterTypeRequiredDescription
keyStringYes*Your CapSkip API key. Required only when API Key Validation is enabled.
actionStringYesSpecify get to retrieve the CAPTCHA solution.
idIntegerYesThe CAPTCHA ID returned by the in.php request.
jsonInteger
Default: 0
No0 returns the response as plain text. 1 returns the response as JSON.
curl "http://127.0.0.1:8080/res.php?key=YOUR_API_KEY&action=get&id=2122988149&json=1"

If the challenge has been passed, CapSkip returns the cookie exactly as DataDome set it, attributes included:

{
    "status": 1,
    "request": "datadome=FAPPpli4jkT1MZGtgF8ez7mjSz8MrJ9fGRNE51Gj79cq9fXp5xn~F1P5APWjqvJojf4U9dq0R81Xaj2hpYtjle95mkg; Max-Age=31536000; Domain=.example.com; Path=/; Secure; SameSite=Lax",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/156.0.0.0 Safari/537.36",
    "proxy": "203.0.113.10:8080"
}

userAgent is the User-Agent the cookie was earned with: the one you sent, or the one CapSkip used when you sent none. Send it with every request that carries the cookie.

proxy appears only when your task sent no proxy and CapSkip took one from its DataDome proxy list. It is that proxy as host:port, without its login, and the cookie works only through it. When the task sent its own proxy, or CapSkip solved without one, the field is absent.

Without json=1, the cookie follows the OK| prefix as plain text, and the same two values arrive in the X-DataDome-User-Agent and X-DataDome-Proxy response headers:

OK|datadome=FAPPpli4jkT1MZGtgF8ez7mjSz8MrJ9fGRNE51Gj79cq9fXp5xn~F1P5APWjqvJojf4U9dq0R81Xaj2hpYtjle95mkg; Max-Age=31536000; Domain=.example.com; Path=/; Secure; SameSite=Lax

If the challenge has not yet been passed, CapSkip returns CAPCHA_NOT_READY, spelled exactly that way as on every other method. Wait 5 seconds and repeat the request.

Each result is delivered once. The first successful poll returns the cookie and discards it, so keep it from the reply that carried it.

A task that could not be passed returns ERROR_CAPTCHA_UNSOLVABLE. Two failures name the address instead, because resubmitting through it would fail again: ERROR_PROXY_BANNED when DataDome banned the address during the solve, and ERROR_PROXY_CONNECT_REFUSED when the proxy could not be reached.

JSON API (createTask)

DataDome is also accepted on /createTask, with the result read from /getTaskResult. Two task types are recognised: DataDomeSliderTask (CapSolver’s DatadomeSliderTask is the same, since task types are not case sensitive) and CapMonster’s CustomTask with class set to DataDome. Both cover the slider and the device check. Not available while NextCaptcha or EzCaptcha is the selected service in CapSkip.

ParameterTypeRequiredDescription
typeStringYesOne of the task types above.
classStringNoDataDome, with type set to CustomTask.
websiteURLStringNoAs pageurl above, including the fallback to the referer in the challenge address. Required when you send the block page instead of captchaUrl.
captchaUrlStringYesAs captcha_url above. Not needed when the block page is sent instead, in html or metadata.
htmlStringNoThe HTML of the block page, in place of captchaUrl. The challenge address is read from its dd object.
metadataObjectNoFor CustomTask: captchaUrl, or htmlPageBase64 (the block page, base64 encoded) in its place.
userAgentStringNoAs for in.php above.
proxyStringNoProxy as a single string, or the proxyType, proxyAddress, proxyPort, proxyLogin and proxyPassword fields. A proxy that cannot be read returns ERROR_PROXY_FORMAT.
curl -X POST http://127.0.0.1:8080/createTask \
-H "Content-Type: application/json" \
-d '{
    "clientKey": "YOUR_API_KEY",
    "task": {
        "type": "DataDomeSliderTask",
        "websiteURL": "https://www.example.com/",
        "captchaUrl": "https://geo.captcha-delivery.com/captcha/?initialCid=AHrlqAAAAAMA7KBvCr0n4cEAG330MA%3D%3D&hash=D013AA612AB2224D03B2318D0F5B19&cid=KzE6_pZBBTHdCdvZkauT9VAshi0wS7~v5_M_MacEtdw8&t=fe&referer=https%3A%2F%2Fwww.example.com%2F&s=45225&e=549255a0289eaf17af60822309ab8db4&dm=cd",
        "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/156.0.0.0 Safari/537.36",
        "proxyType": "http",
        "proxyAddress": "203.0.113.10",
        "proxyPort": 8080,
        "proxyLogin": "login",
        "proxyPassword": "password"
    }
}'

The solution carries the cookie as cookie, exactly as on res.php. userAgent is added only when the task sent none, and proxy follows the same rule as on res.php:

{
    "errorId": 0,
    "status": "ready",
    "solution": {
        "cookie": "datadome=FAPPpli4jkT1MZGtgF8ez7mjSz8MrJ9fGRNE51Gj79cq9fXp5xn~F1P5APWjqvJojf4U9dq0R81Xaj2hpYtjle95mkg; Max-Age=31536000; Domain=.example.com; Path=/; Secure; SameSite=Lax",
        "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/156.0.0.0 Safari/537.36"
    }
}

A CustomTask, and any DataDome task while CapMonster Cloud is the selected service, returns the cookie value in CapMonster’s shape instead, keyed by the cookie’s domain:

{
    "errorId": 0,
    "status": "ready",
    "solution": {
        "domains": {
            "example.com": {
                "cookies": {
                    "datadome": "FAPPpli4jkT1MZGtgF8ez7mjSz8MrJ9fGRNE51Gj79cq9fXp5xn~F1P5APWjqvJojf4U9dq0R81Xaj2hpYtjle95mkg"
                }
            }
        }
    }
}

A task refused at submit returns errorId 1 with the error codes in the table above. A failed task returns errorId 1 with ERROR_PROXY_BANNED or ERROR_PROXY_CONNECT_REFUSED, or errorId 12 with ERROR_CAPTCHA_UNSOLVABLE.

Using the Cookie

The part before the first semicolon is the cookie itself. Send it with your next request, through the same proxy and with the same User-Agent you sent in the task:

curl "https://www.example.com/" \
-x "http://login:[email protected]:8080" \
-A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/156.0.0.0 Safari/537.36" \
-b "datadome=FAPPpli4jkT1MZGtgF8ez7mjSz8MrJ9fGRNE51Gj79cq9fXp5xn~F1P5APWjqvJojf4U9dq0R81Xaj2hpYtjle95mkg"

If you keep a cookie jar, you can store the whole string instead: Domain, Path and Max-Age are the values DataDome chose for the site.

DataDome may send a replacement datadome cookie on later responses. Keep the newest one, as a browser would. When the block page comes back anyway, the site has decided to challenge again: build a new captcha_url from it and submit a new task.

mtcaptcha solver MTCaptcha

MTCaptcha is a text CAPTCHA used on login, sign-up and contact forms. The visitor types the distorted characters shown in a picture, and the widget puts a verified token into the form. CapSkip takes the sitekey and page address you send and returns a valid MTCaptcha token, ready to submit with the form.

How It Works

The MTCaptcha widget is configured on the page with a sitekey that starts with MTPublic-. When a visitor passes the challenge, MTCaptcha issues a token beginning with v1(, and the widget writes it into a hidden form field named mtcaptcha-verifiedtoken. The site checks that token with MTCaptcha when the form arrives.

CapSkip needs only the sitekey and the page address. You do not load or solve the widget yourself, and you send no picture: the token CapSkip returns is accepted on its own. The full cycle is three steps:

  1. Submit the sitekey and page URL to /in.php with method=mt_captcha.
  2. Poll /res.php until the token is ready.
  3. Submit the form with the token in mtcaptcha-verifiedtoken.
Finding the Sitekey

Most pages configure the widget with a mtcaptchaConfig object in the page source:

<script>
var mtcaptchaConfig = {
  "sitekey": "MTPublic-KzqLY1cKH",
  "action": "login"
};
</script>

Copy the sitekey exactly as it appears. If the object also sets action, send that value too. When the widget is already on screen, the same sitekey is in the address of its iframe on service.mtcaptcha.com, in its query string as sitekey.

List of POST Request Parameters
ParameterTypeRequiredDescription
keyStringYes*Your CapSkip API key. Required only when API Key Validation is enabled.
methodStringYesMust be mt_captcha. Specifies that you are submitting an MTCaptcha challenge. mtcaptcha is accepted as well.
sitekeyStringYesThe MTCaptcha sitekey from the page, starting with MTPublic-.
pageurlStringYesThe full URL of the page the widget is on. MTCaptcha only issues tokens for the domains the sitekey is registered for, so send the real page address.
actionStringNoThe action name the page sets in its mtcaptchaConfig object, if it sets one.
userAgentStringNoThe User-Agent to present to MTCaptcha. If you send none, CapSkip uses a Chrome for Windows User-Agent.
proxyStringNoProxy address: IP:PORT, login:password@IP:PORT or IP:PORT:login:password; a host name works in place of the IP.
proxytypeString
Default: HTTP
NoProxy type: HTTP, HTTPS, SOCKS5 or SOCKS5H. SOCKS4 is not accepted.
jsonInteger
Default: 0
No0 returns the response as plain text. 1 returns the response as JSON.

CapSkip does not force a proxy for this method. One address is fine for testing and for occasional solves. Past that, configure a proxy pool: a steady stream of solves from one address is what MTCaptcha’s rate limiting is built to catch. Add the pool under Settings, Captcha types, MTCaptcha, Configure Proxies, and tasks sent without a proxy are spread across it. Send proxy with a task when the solve has to come from a particular network. A proxy sent with a task always takes priority over the list.

Submit an HTTP GET or POST request to your CapSkip API endpoint (/in.php) with method=mt_captcha. Form fields, a query string and a JSON body are all accepted under identical field names. Not available while Anti-Captcha is the selected service in CapSkip.

Submit MTCaptcha:

curl -X POST \
--data-urlencode "key=YOUR_API_KEY" \
--data-urlencode "method=mt_captcha" \
--data-urlencode "sitekey=MTPublic-KzqLY1cKH" \
--data-urlencode "pageurl=https://www.example.com/login" \
--data-urlencode "action=login" \
--data-urlencode "json=1" \
http://127.0.0.1:8080/in.php

If everything is correct, CapSkip returns the CAPTCHA ID as plain text: OK|2122988149. If the json=1 parameter was sent, the response is a JSON envelope instead. Either way, the returned value is the CAPTCHA ID you poll for the result.

{
    "status": 1,
    "request": "2122988149"
}

Otherwise CapSkip returns an error code on the submit request itself, before any work is done:

ErrorCause
ERROR_BAD_PARAMETERSsitekey is missing or is not an MTCaptcha sitekey (MTPublic- followed by letters, digits, - or _).
ERROR_PAGEURLpageurl is missing or is not an http or https address.
ERROR_PROXY_FORMATThe proxy value could not be read, or proxytype is not one of the accepted types.

Wait approximately 5 seconds, then submit an HTTP GET request to the result endpoint (/res.php) with the CAPTCHA ID you received.

List of GET request parameters
ParameterTypeRequiredDescription
keyStringYes*Your CapSkip API key. Required only when API Key Validation is enabled.
actionStringYesSpecify get to retrieve the CAPTCHA solution.
idIntegerYesThe CAPTCHA ID returned by the in.php request.
jsonInteger
Default: 0
No0 returns the response as plain text. 1 returns the response as JSON.
curl "http://127.0.0.1:8080/res.php?key=YOUR_API_KEY&action=get&id=2122988149&json=1"

If the challenge has been passed, CapSkip returns the MTCaptcha token:

{
    "status": 1,
    "request": "v1(23ed91f2,61d9f4fe,MTPublic-KzqLY1cKH,079c683122559a6f**)"
}

Without json=1, the token follows the OK| prefix as plain text:

OK|v1(23ed91f2,61d9f4fe,MTPublic-KzqLY1cKH,079c683122559a6f**)

If the challenge has not yet been passed, CapSkip returns CAPCHA_NOT_READY, spelled exactly that way as on every other method. Wait 5 seconds and repeat the request.

Each result is delivered once. The first successful poll returns the token and discards it, so keep it from the reply that carried it.

A task that could not be passed returns ERROR_CAPTCHA_UNSOLVABLE, or the replacement text set in Settings. Two failures name the task instead, because resubmitting it unchanged would fail again: ERROR_RECAPTCHA_INVALID_SITEKEY when MTCaptcha does not recognise the sitekey, and ERROR_RECAPTCHA_INVALID_DOMAIN when the sitekey is not allowed on the domain of pageurl. Both codes keep their historical names and apply to every method.

JSON API (createTask)

MTCaptcha is also accepted on /createTask, with the result read from /getTaskResult. Two task types are recognised, MtCaptchaTask and MtCaptchaTaskProxyless, in any letter case (MTCaptchaTask and MtCaptchaTaskProxyLess work as well). Both read the same fields, and a proxy sent with either is used. Not available while Anti-Captcha, NextCaptcha or EzCaptcha is the selected service in CapSkip.

ParameterTypeRequiredDescription
typeStringYesOne of the two task types above.
websiteURLStringYesAs pageurl above.
websiteKeyStringYesAs sitekey above. A value copied as sk=MTPublic-... is accepted too.
pageActionStringNoAs action above.
isInvisibleBooleanNotrue for an invisible (low-friction) MTCaptcha widget.
userAgentStringNoAs for in.php above.
proxyStringNoProxy as a single string, or the proxyType, proxyAddress, proxyPort, proxyLogin and proxyPassword fields.
curl -X POST http://127.0.0.1:8080/createTask \
-H "Content-Type: application/json" \
-d '{
    "clientKey": "YOUR_API_KEY",
    "task": {
        "type": "MtCaptchaTaskProxyless",
        "websiteURL": "https://www.example.com/login",
        "websiteKey": "MTPublic-KzqLY1cKH",
        "pageAction": "login"
    }
}'

Refusals arrive on the createTask request with the same codes as on in.php. The solution carries the token under token:

{
    "errorId": 0,
    "status": "ready",
    "solution": {
        "token": "v1(23ed91f2,61d9f4fe,MTPublic-KzqLY1cKH,079c683122559a6f**)"
    }
}

A failed task carries the same error codes as on res.php, in errorCode.

Submitting the Token

Put the token in the form field mtcaptcha-verifiedtoken and submit the form as the page would. If you post the form yourself:

curl -X POST "https://www.example.com/login" \
--data-urlencode "username=alice" \
--data-urlencode "password=YOUR_PASSWORD" \
--data-urlencode "mtcaptcha-verifiedtoken=v1(23ed91f2,61d9f4fe,MTPublic-KzqLY1cKH,079c683122559a6f**)"

In a browser you control, set the hidden field before the form is submitted:

document.querySelector('input[name="mtcaptcha-verifiedtoken"]').value = token;

A token is short-lived and single-use: MTCaptcha accepts it once, and only for a few minutes after it is issued. Use it as soon as it arrives, and request a new one for every form submission. The site verifies the token on its own server with MTCaptcha’s checktoken call, which checks the sitekey and the domain, so a token is only good on the site it was requested for.

yandex smartcaptcha solver Yandex SmartCaptcha

Yandex SmartCaptcha is the CAPTCHA service of Yandex Cloud, used on sign-up, login, contact and checkout forms. The visitor ticks “I’m not a robot” or pulls a slider, and Yandex may then ask for a challenge: two distorted words to type, icons to press in a given order, or a scrambled picture to put back together. CapSkip takes the sitekey and page address you send and returns a valid SmartCaptcha token, ready to submit with the form. It also answers a single challenge picture that you send yourself.

How It Works

The SmartCaptcha widget is placed on the page with a sitekey. When the visitor passes, Yandex issues a token, and the widget writes it into a hidden form field named smart-token. The site checks that token with Yandex when the form arrives.

CapSkip needs only the sitekey and the page address. You do not load the widget or answer its challenges yourself: whatever kind of challenge Yandex asks for along the way, CapSkip returns only the finished token. The full cycle is three steps:

  1. Submit the sitekey and page URL to /in.php with method=yandex.
  2. Poll /res.php until the token is ready.
  3. Submit the form with the token in smart-token.

Not available while Anti-Captcha, CapMonster Cloud, CapSolver, DeathByCaptcha or Captchas.io is the selected service in CapSkip. This covers the picture tasks below as well.

Finding the Sitekey

Most pages place the widget with a container that carries the sitekey in a data-sitekey attribute:

<script src="https://smartcaptcha.yandexcloud.net/captcha.js" defer></script>
<div class="smart-captcha" data-sitekey="ysc1_HrTv0IuXWNH5JxfcWnRozoir2pTFbxsaZbrbGI4e292406f2"></div>

Pages that render the widget from their own script pass the same key to window.smartCaptcha.render as sitekey, so search the page’s scripts for it instead. Client keys usually start with ysc1_. When the widget is already on screen, the key is also in the address of its iframe on smartcaptcha.yandexcloud.net, in its query string as sitekey. Copy the key exactly as it appears.

List of POST Request Parameters
ParameterTypeRequiredDescription
keyStringYes*Your CapSkip API key. Required only when API Key Validation is enabled.
methodStringYesMust be yandex. Specifies that you are submitting a Yandex SmartCaptcha.
sitekeyStringYesThe SmartCaptcha sitekey from the page: 16 to 120 letters, digits, _ or -.
pageurlStringYesThe full URL of the page the widget is on. Yandex checks the sitekey against the domain it is used on, so send the real page address.
userAgentStringNoThe User-Agent to present to Yandex. If you send none, a current Chrome User-Agent is used.
proxyStringNoProxy address: IP:PORT, login:password@IP:PORT or IP:PORT:login:password; a host name works in place of the IP.
proxytypeString
Default: HTTP
NoProxy type: HTTP, HTTPS, SOCKS5 or SOCKS5H. SOCKS4 is not accepted.
jsonInteger
Default: 0
No0 returns the response as plain text. 1 returns the response as JSON.

CapSkip does not force a proxy for this method. One address is fine for testing and for occasional solves. Past that, configure a proxy pool: Yandex scores the network every check comes from, and a steady stream of them from one address is what makes it ask for harder challenges and start refusing answers. Add the pool under Settings, Captcha types, Yandex SmartCaptcha, Configure Proxies, and tasks sent without a proxy are spread across it. Send proxy with a task when the solve has to come from a particular network. A proxy sent with a task always takes priority over the list.

If your proxy plan limits how many connections it allows at once, turn off Fast solve in the same row. Each solve then holds a single connection to its proxy, at the cost of slower solves.

Submit an HTTP GET or POST request to your CapSkip API endpoint (/in.php) with method=yandex. Form fields, a query string and a JSON body are all accepted under identical field names.

Submit Yandex SmartCaptcha:

curl -X POST \
--data-urlencode "key=YOUR_API_KEY" \
--data-urlencode "method=yandex" \
--data-urlencode "sitekey=ysc1_HrTv0IuXWNH5JxfcWnRozoir2pTFbxsaZbrbGI4e292406f2" \
--data-urlencode "pageurl=https://www.example.com/register" \
--data-urlencode "json=1" \
http://127.0.0.1:8080/in.php

If everything is correct, CapSkip returns the CAPTCHA ID as plain text: OK|2122988149. If the json=1 parameter was sent, the response is a JSON envelope instead. Either way, the returned value is the CAPTCHA ID you poll for the result.

{
    "status": 1,
    "request": "2122988149"
}

Otherwise CapSkip returns an error code on the submit request itself, before any work is done:

ErrorCause
ERROR_BAD_PARAMETERSsitekey is missing or is not a SmartCaptcha sitekey (16 to 120 letters, digits, _ or -).
ERROR_PAGEURLpageurl is missing or is not an http or https address.
ERROR_PROXY_FORMATThe proxy value could not be read, or proxytype is not one of the accepted types.

Wait approximately 10 seconds, then submit an HTTP GET request to the result endpoint (/res.php) with the CAPTCHA ID you received.

List of GET request parameters
ParameterTypeRequiredDescription
keyStringYes*Your CapSkip API key. Required only when API Key Validation is enabled.
actionStringYesSpecify get to retrieve the CAPTCHA solution.
idIntegerYesThe CAPTCHA ID returned by the in.php request.
jsonInteger
Default: 0
No0 returns the response as plain text. 1 returns the response as JSON.
curl "http://127.0.0.1:8080/res.php?key=YOUR_API_KEY&action=get&id=2122988149&json=1"

If the challenge has been passed, CapSkip returns the SmartCaptcha token:

{
    "status": 1,
    "request": "dD0xNzk0NDE5NTg3O2k9MjAzLjAuMTEzLjI1O0Q9QjQ1RjJBN0MxRTkwRDM2ODU0QzA1M0M3..."
}

Without json=1, the token follows the OK| prefix as plain text:

OK|dD0xNzk0NDE5NTg3O2k9MjAzLjAuMTEzLjI1O0Q9QjQ1RjJBN0MxRTkwRDM2ODU0QzA1M0M3...

If the challenge has not yet been passed, CapSkip returns CAPCHA_NOT_READY, spelled exactly that way as on every other method. Wait 5 seconds and repeat the request.

Each result is delivered once. The first successful poll returns the token and discards it, so keep it from the reply that carried it.

A task that could not be passed returns ERROR_CAPTCHA_UNSOLVABLE, or the replacement text set in Settings. Three failures name the cause instead, because resubmitting the task unchanged would fail again: ERROR_RECAPTCHA_INVALID_SITEKEY when Yandex does not accept the sitekey, ERROR_RECAPTCHA_INVALID_DOMAIN when the sitekey is not allowed on the domain of pageurl, and ERROR_PROXY_CONNECT_REFUSED when the solve could not reach Yandex through the proxy. Both sitekey codes keep their historical names and apply to every method.

Submitting the Token

Put the token in the form field smart-token and submit the form as the page would. If you post the form yourself:

curl -X POST "https://www.example.com/register" \
--data-urlencode "[email protected]" \
--data-urlencode "smart-token=dD0xNzk0NDE5NTg3O2k9MjAzLjAuMTEzLjI1O0Q9QjQ1RjJBN0MxRTkwRDM2ODU0QzA1M0M3..."

In a browser you control, set the hidden field before the form is submitted:

document.querySelector('input[name="smart-token"]').value = token;

A token is valid for five minutes and can be checked only once. Use it as soon as it arrives, and request a new one for every form submission. The site verifies the token on its own server by sending it to Yandex’s validate endpoint together with its server key, and Yandex reports the domain the token was issued on, so a token is only good on the site it was requested for.

Solving a Challenge Picture

If you load the widget yourself and only need one challenge answered, send the challenge picture instead of the sitekey. Two kinds are accepted, chosen with img_type:

  • smart_captcha: the picture with icons to press in a given order. CapSkip returns the points to click, in order.
  • pazl_smart_captcha: the scrambled picture (the kaleidoscope). CapSkip returns how many steps to move the slider.

Send the pictures exactly as the widget loads them, without cropping or resizing: the challenge picture is 320 by 180 pixels. These tasks need no proxy and no sitekey. Submit them with an HTTP POST to /in.php, since the pictures are too large for a query string.

Picture Request Parameters
ParameterTypeRequiredDescription
keyStringYes*Your CapSkip API key. Required only when API Key Validation is enabled.
methodStringYesMust be base64.
coordinatescaptchaIntegerYesMust be 1. coordinatecaptcha=1 is accepted as well.
img_typeStringYessmart_captcha for the icons challenge, or pazl_smart_captcha for the kaleidoscope.
bodyStringYesThe challenge picture, base64 encoded. A data: URL is accepted as well.
imginstructionsStringYes*Required for smart_captcha. The instruction picture that shows the icons in the order to press them (the strip under “Press in the following order”), base64 encoded, unchanged.
taskStringYes*Required for pazl_smart_captcha. The challenge’s list of puzzle steps as a JSON array, for example [15,24,4,13,10,18]. Send it unchanged: a list with an odd number of entries, a negative entry, or entries that do not fit a square grid of tiles is refused.
textinstructionsStringNoAccepted for compatibility and not needed.
jsonInteger
Default: 0
No0 returns the response as plain text. 1 returns the response as JSON.

Submit an icons challenge:

curl -X POST \
--data-urlencode "key=YOUR_API_KEY" \
--data-urlencode "method=base64" \
--data-urlencode "coordinatescaptcha=1" \
--data-urlencode "img_type=smart_captcha" \
--data-urlencode "body=$(base64 -w0 picture.png)" \
--data-urlencode "imginstructions=$(base64 -w0 instructions.png)" \
--data-urlencode "json=1" \
http://127.0.0.1:8080/in.php

Submit a kaleidoscope:

curl -X POST \
--data-urlencode "key=YOUR_API_KEY" \
--data-urlencode "method=base64" \
--data-urlencode "coordinatescaptcha=1" \
--data-urlencode "img_type=pazl_smart_captcha" \
--data-urlencode "body=$(base64 -w0 picture.png)" \
--data-urlencode "task=[15,24,4,13,10,18]" \
--data-urlencode "json=1" \
http://127.0.0.1:8080/in.php

The reply is a CAPTCHA ID, as for the token. These codes refuse a picture task up front:

ErrorCause
ERROR_BAD_PARAMETERSbody is missing or decodes to less than 32 bytes or more than 8 MB, imginstructions is missing for smart_captcha, or task is missing or is not a list of puzzle steps for pazl_smart_captcha.
ERROR_INVALID_BASE64body is not valid base64.
ERROR_BAD_IMGINSTRUCTIONSimginstructions was sent but could not be decoded, or decodes to less than 32 bytes or more than 8 MB.

A picture that decodes but is not the challenge picture is answered on /res.php with ERROR_CAPTCHA_UNSOLVABLE, or the replacement text set in Settings.

Poll /res.php in the same way. Answers to pictures arrive within a few seconds. For smart_captcha, the answer is the list of points to click, in order, in pixels of the picture you sent, counted from its top left corner:

{
    "status": 1,
    "request": {
        "coordinates": [
            {"x": 57, "y": 82},
            {"x": 239, "y": 75},
            {"x": 138, "y": 113},
            {"x": 154, "y": 42}
        ]
    }
}

Without json=1, the same points follow the OK| prefix:

OK|coordinate:x=57,y=82;x=239,y=75;x=138,y=113;x=154,y=42

Click the points in that order on the picture, then press Submit in the widget. For pazl_smart_captcha, the answer is the number of steps to move the slider from its starting position, which is the number of presses on its right arrow:

{
    "status": 1,
    "request": "8"
}

As plain text that is OK|8. Yandex judges the answer when you submit it in the widget; if it shows a new challenge instead of passing, answer the new one the same way.

JSON API (createTask)

Yandex SmartCaptcha is also accepted on /createTask, with the result read from /getTaskResult. Type and field names are matched in any letter case. YandexSmartCaptchaTask and YandexSmartCaptchaTaskProxyless return a token; a proxy sent with either is used. SmartCaptchaTask answers an icons picture, PazlCaptchaTask a kaleidoscope, and CoordinatesTask either one, chosen with imgType. Not available while Anti-Captcha, CapMonster Cloud, CapSolver, DeathByCaptcha, Captchas.io, NextCaptcha or EzCaptcha is the selected service in CapSkip.

ParameterTypeRequiredDescription
typeStringYesOne of the task types above.
websiteURLStringYes*Token tasks. As pageurl above.
websiteKeyStringYes*Token tasks. As sitekey above.
userAgentStringNoToken tasks. As for in.php above.
proxyStringNoToken tasks. Proxy as a single string, or the proxyType, proxyAddress, proxyPort, proxyLogin and proxyPassword fields.
imageStringYes*Picture tasks. The challenge picture, as body above. body is accepted as well.
imgInstructionsStringYes*Required for SmartCaptchaTask, and for CoordinatesTask with smart_captcha. As imginstructions above.
taskArrayYes*Required for PazlCaptchaTask, and for CoordinatesTask with pazl_smart_captcha. The puzzle steps as above; a string holding the array is accepted too.
imgTypeStringYes*Required for CoordinatesTask: smart_captcha or pazl_smart_captcha. Any other value returns ERROR_TASK_NOT_SUPPORTED.
curl -X POST http://127.0.0.1:8080/createTask \
-H "Content-Type: application/json" \
-d '{
    "clientKey": "YOUR_API_KEY",
    "task": {
        "type": "YandexSmartCaptchaTaskProxyless",
        "websiteURL": "https://www.example.com/register",
        "websiteKey": "ysc1_HrTv0IuXWNH5JxfcWnRozoir2pTFbxsaZbrbGI4e292406f2"
    }
}'

Refusals arrive on the createTask request with the same codes as on in.php, except that a picture that is not valid base64 returns ERROR_BAD_PARAMETERS. A token task’s solution carries the token under token:

{
    "errorId": 0,
    "status": "ready",
    "solution": {
        "token": "dD0xNzk0NDE5NTg3O2k9MjAzLjAuMTEzLjI1O0Q9QjQ1RjJBN0MxRTkwRDM2ODU0QzA1M0M3..."
    }
}

For an icons picture the solution is {"coordinates": [{"x": 57, "y": 82}, ...]}, the same points in the same order as on res.php. For a kaleidoscope the solution is the number of slider steps as a bare string, for example "solution": "8". A failed task carries the same error codes as on res.php, in errorCode.

lemin solver Lemin

Lemin Cropped Captcha is a puzzle CAPTCHA used on sign-up, contact and lead forms. The visitor drags one or more picture pieces into the holes cut out of a photo, and the widget puts the result into the form. CapSkip takes the captcha ID and page address you send and returns the two values the form expects, ready to submit.

How It Works

Every Lemin widget is identified by a captcha ID that starts with CROPPED_. When a visitor completes the puzzle, the widget writes two hidden form fields: lemin_answer and lemin_challenge_id. The site sends both to Lemin when the form arrives, and Lemin confirms that the puzzle was completed.

CapSkip needs only the captcha ID and the page address. You do not load or complete the widget yourself. The full cycle is three steps:

  1. Submit the captcha ID and page URL to /in.php with method=lemin.
  2. Poll /res.php until the result is ready.
  3. Submit the form with the two values written into its hidden fields lemin_answer and lemin_challenge_id.
Finding the Captcha ID

The widget is loaded by a script whose address carries the captcha ID, next to the element it is drawn into:

<div id="lemin-cropped-captcha"></div>
<script src="https://api.leminnow.com/captcha/v1/cropped/CROPPED_5a1f2c3_8d1b4e0c9a7f4e2b9c6d3a1f0e5b7c42/js"></script>

Copy the ID exactly as it appears in the script address, from CROPPED_ to the slash before js. The host of the same address is the Lemin API server; send it as api_server only when it is not api.leminnow.com. Some widgets load only when they scroll into view, so look in the page source rather than in the network log of a page you have not scrolled.

List of POST Request Parameters
ParameterTypeRequiredDescription
keyStringYes*Your CapSkip API key. Required only when API Key Validation is enabled.
methodStringYesMust be lemin. Specifies that you are submitting a Lemin challenge.
captcha_idStringYesThe Lemin captcha ID from the page, starting with CROPPED_.
pageurlStringYesThe full URL of the page the widget is on.
div_idStringNoThe id of the element the widget is drawn into, such as lemin-cropped-captcha. Accepted for compatibility; the result does not depend on it.
api_serverStringNoThe Lemin API host from the widget script address. Defaults to api.leminnow.com.
userAgentStringNoThe User-Agent to present to Lemin. If you send none, CapSkip uses a Chrome for Windows User-Agent.
proxyStringNoProxy address. Accepts IP:PORT, LOGIN:PASSWORD@IP:PORT or IP:PORT:LOGIN:PASSWORD.
proxytypeStringNoProxy type: HTTP, HTTPS, SOCKS5 or SOCKS5H.
jsonInteger
Default: 0
No0 returns the response as plain text. 1 returns the response as JSON.

CapSkip does not force a proxy for this method. One address is fine for testing and for occasional solves. Past that, configure a proxy pool: every solve draws fresh puzzles from Lemin’s API, and a steady stream of them from one address is what rate limiting is built to catch. Add the pool under Settings, Captcha types, Lemin, Configure Proxies, and tasks sent without a proxy are spread across it. Send proxy with a task when the solve has to come from a particular network. A proxy sent with a task always takes priority over the list.

Submit an HTTP GET or POST request to your CapSkip API endpoint (/in.php) with method=lemin. Form fields, a query string and a JSON body are all accepted under identical field names.

Submit Lemin:

curl -X POST \
--data-urlencode "key=YOUR_API_KEY" \
--data-urlencode "method=lemin" \
--data-urlencode "captcha_id=CROPPED_5a1f2c3_8d1b4e0c9a7f4e2b9c6d3a1f0e5b7c42" \
--data-urlencode "pageurl=https://www.example.com/contact" \
--data-urlencode "div_id=lemin-cropped-captcha" \
--data-urlencode "json=1" \
http://127.0.0.1:8080/in.php

If everything is correct, CapSkip returns the CAPTCHA ID as plain text: OK|2122988149. If the json=1 parameter was sent, the response is a JSON envelope instead. Either way, the returned value is the CAPTCHA ID you poll for the result.

{
    "status": 1,
    "request": "2122988149"
}

Otherwise CapSkip returns an error code on the submit request itself, before any work is done:

ErrorCause
ERROR_BAD_PARAMETERScaptcha_id is missing or is not a Lemin captcha ID, or api_server is not a valid host.
ERROR_PAGEURLpageurl is missing or is not an http or https address.
ERROR_PROXY_FORMATThe proxy value could not be read.

Wait approximately 5 seconds, then submit an HTTP GET request to the result endpoint (/res.php) with the CAPTCHA ID you received.

List of GET request parameters
ParameterTypeRequiredDescription
keyStringYes*Your CapSkip API key. Required only when API Key Validation is enabled.
actionStringYesSpecify get to retrieve the CAPTCHA solution.
idIntegerYesThe CAPTCHA ID returned by the in.php request.
jsonInteger
Default: 0
No0 returns the response as plain text. 1 returns the response as JSON.
curl "http://127.0.0.1:8080/res.php?key=YOUR_API_KEY&action=get&id=2122988149&json=1"

If the challenge has been passed, CapSkip returns an object with two values:

{
    "status": 1,
    "request": {
        "answer": "0x5xclx0xax9kx0x76x2qx_?_gAAAAABq2c39kVx...",
        "challenge_id": "b8a7c3e2-41f6-4d0a-9e58-2c7d16f0a934"
    }
}

Without json=1, the reply is OK| followed by the same object as JSON text:

OK|{"answer":"0x5xclx0xax9kx0x76x2qx_?_gAAAAABq2c39kVx...","challenge_id":"b8a7c3e2-41f6-4d0a-9e58-2c7d16f0a934"}
FieldDescription
answerThe value for the form field lemin_answer. Send it unchanged.
challenge_idThe value for the form field lemin_challenge_id. It belongs to this answer and to no other.

If the challenge has not yet been passed, CapSkip returns CAPCHA_NOT_READY, spelled exactly that way as on every other method. Wait 5 seconds and repeat the request.

Each result is delivered once. The first successful poll returns the result and discards it, so keep it from the reply that carried it.

A task that could not be passed returns ERROR_CAPTCHA_UNSOLVABLE. When Lemin does not recognise the captcha ID, because it was mistyped or the widget has been deactivated, the result is ERROR_RECAPTCHA_INVALID_SITEKEY instead, since resubmitting the same task would fail again. The code keeps its historical name and applies to every method.

Submitting the Result

Copy the value of answer into the form field lemin_answer and the value of challenge_id into the form field lemin_challenge_id, then submit the form as the page would. If you post the form yourself:

curl -X POST "https://www.example.com/contact" \
--data-urlencode "name=Alice" \
--data-urlencode "message=Hello" \
--data-urlencode "lemin_answer=0x5xclx0xax9kx0x76x2qx_?_gAAAAABq2c39kVx..." \
--data-urlencode "lemin_challenge_id=b8a7c3e2-41f6-4d0a-9e58-2c7d16f0a934"

In a browser you control, set both hidden fields before the form is submitted:

document.querySelector('input[name="lemin_answer"]').value = result.answer;
document.querySelector('input[name="lemin_challenge_id"]').value = result.challenge_id;

A result is single-use: the site checks the pair with Lemin on its own server, and Lemin accepts each pair once. Use it soon after it arrives, and request a new one for every form submission.

tencent captcha solver Tencent Captcha

Tencent Captcha (TCaptcha) is the CAPTCHA of Tencent Cloud, used on Tencent’s own sites such as QQ and Tencent Cloud and on many other sites in China and abroad. The visitor completes a slide puzzle or picks the matching pictures, and the widget hands the page a ticket. CapSkip takes the app ID and page address you send and returns the ticket and its random string, ready for the site’s server to check.

How It Works

Every Tencent Captcha widget is identified by a numeric app ID. When a visitor passes the challenge, the widget calls a function of the page with two values, ticket and randstr. The page sends both to its own server, which asks Tencent whether they are valid before accepting the request.

CapSkip needs only the app ID and the page address. You do not load or complete the widget yourself. The full cycle is three steps:

  1. Submit the app ID and page URL to /in.php with method=tencent.
  2. Poll /res.php until the result is ready.
  3. Send ticket and randstr to the site the way its page does.
Finding the App ID

The page loads a Tencent loader script and creates the widget with the app ID as its first argument:

<script src="https://turing.captcha.qcloud.com/TCaptcha.js"></script>
<script>
  var captcha = new TencentCaptcha('190123456', function (res) {
    // res.ret === 0 means passed; res.ticket and res.randstr go to the server
  });
  captcha.show();
</script>

Some pages use a button instead, with the app ID in a data-appid attribute and the callback named in data-cbfn:

<button id="TencentCaptcha" data-appid="190123456" data-cbfn="onCaptcha">Verify</button>

The app ID is often built into the page’s own script bundle rather than written into the HTML. If you cannot find it in the source, open the browser’s network log, trigger the CAPTCHA and look for the request to cap_union_prehandle: its aid parameter is the app ID.

Note the address of the loader script as well. Which script a page loads tells which Tencent service the app ID belongs to, and an app ID is refused by the services it was not registered with:

Loader scriptUsed by
https://turing.captcha.qcloud.com/TCaptcha.jsTencent Cloud Captcha for mainland China, the most common.
https://captcha.gtimg.com/TCaptcha.jsThe older loader, still used by QQ and other Tencent sites.
TCaptcha-global.js on any hostThe international service, for example on tencentcloud.com.

Send the full address of the script the page loads as captcha_script. Without it CapSkip still finds the right service, but the first attempt may go to the wrong one and the solve takes longer.

List of POST Request Parameters
ParameterTypeRequiredDescription
keyStringYes*Your CapSkip API key. Required only when API Key Validation is enabled.
methodStringYesMust be tencent. Specifies that you are submitting a Tencent Captcha challenge.
app_idStringYesThe app ID of the widget, digits only.
pageurlStringYesThe full URL of the page the widget is on.
captcha_scriptStringNoThe full address of the Tencent loader script the page loads, such as https://turing.captcha.qcloud.com/TCaptcha.js.
proxyStringNoProxy address. Accepts IP:PORT, LOGIN:PASSWORD@IP:PORT or IP:PORT:LOGIN:PASSWORD.
proxytypeStringNoProxy type: HTTP, HTTPS, SOCKS5 or SOCKS5H.
jsonInteger
Default: 0
No0 returns the response as plain text. 1 returns the response as JSON.

CapSkip does not force a proxy for this method. One address is fine for testing and for occasional solves. Past that, configure a proxy pool: Tencent judges the network a request comes from as well as the answer, and a steady stream of solves from one address is what that judgement is built to catch. Add the pool under Settings, Captcha types, Tencent, Configure Proxies, and tasks sent without a proxy are spread across it. Send proxy with a task when the solve has to come from a particular network. A proxy sent with a task always takes priority over the list.

Submit an HTTP GET or POST request to your CapSkip API endpoint (/in.php) with method=tencent. Form fields, a query string and a JSON body are all accepted under identical field names.

Submit Tencent Captcha:

curl -X POST \
--data-urlencode "key=YOUR_API_KEY" \
--data-urlencode "method=tencent" \
--data-urlencode "app_id=190123456" \
--data-urlencode "pageurl=https://www.example.com/login" \
--data-urlencode "captcha_script=https://turing.captcha.qcloud.com/TCaptcha.js" \
--data-urlencode "json=1" \
http://127.0.0.1:8080/in.php

If everything is correct, CapSkip returns the CAPTCHA ID as plain text: OK|2122988149. If the json=1 parameter was sent, the response is a JSON envelope instead. Either way, the returned value is the CAPTCHA ID you poll for the result.

{
    "status": 1,
    "request": "2122988149"
}

Otherwise CapSkip returns an error code on the submit request itself, before any work is done:

ErrorCause
ERROR_BAD_PARAMETERSapp_id is missing or is not a number, or captcha_script is not an http or https address.
ERROR_PAGEURLpageurl is missing or is not an http or https address.
ERROR_PROXY_FORMATThe proxy value could not be read.

Wait approximately 5 seconds, then submit an HTTP GET request to the result endpoint (/res.php) with the CAPTCHA ID you received.

List of GET request parameters
ParameterTypeRequiredDescription
keyStringYes*Your CapSkip API key. Required only when API Key Validation is enabled.
actionStringYesSpecify get to retrieve the CAPTCHA solution.
idIntegerYesThe CAPTCHA ID returned by the in.php request.
jsonInteger
Default: 0
No0 returns the response as plain text. 1 returns the response as JSON.
curl "http://127.0.0.1:8080/res.php?key=YOUR_API_KEY&action=get&id=2122988149&json=1"

If the challenge has been passed, CapSkip returns the same object the widget gives the page:

{
    "status": 1,
    "request": {
        "appid": "190123456",
        "ret": 0,
        "ticket": "t03Wq8tY2XkzR5uB0hDqP7nLc1VsJg9eA4mFdK6oHbN3iZx...",
        "randstr": "@k3T"
    }
}

Without json=1, the reply is OK| followed by the same object as JSON text:

OK|{"appid":"190123456","ret":0,"ticket":"t03Wq8tY2XkzR5uB0hDqP7nLc1VsJg9eA4mFdK6oHbN3iZx...","randstr":"@k3T"}
FieldDescription
appidThe app ID the ticket was issued for.
retAlways 0 in a delivered result, which is how the widget marks a passed challenge.
ticketThe proof that the challenge was passed. The site’s server checks it with Tencent.
randstrThe random string that belongs to this ticket. The server needs both.

If the challenge has not yet been passed, CapSkip returns CAPCHA_NOT_READY, spelled exactly that way as on every other method. Wait 5 seconds and repeat the request.

Each result is delivered once. The first successful poll returns the result and discards it, so keep it from the reply that carried it.

A task that could not be passed returns ERROR_CAPTCHA_UNSOLVABLE. When Tencent refuses the app ID, because it was mistyped or the widget has been deactivated, the result is ERROR_RECAPTCHA_INVALID_SITEKEY instead, since resubmitting the same task would fail again. The code keeps its historical name and applies to every method. When the proxy you sent with the task could not be reached, the result is ERROR_PROXY_CONNECT_REFUSED.

Some sites, Tencent’s own account pages among them, accept a ticket only when High score mode for Tencent is on under Settings, Captcha types, Tencent. It is on by default.

Submitting the Result

Pass ticket and randstr to the site exactly where its page would. Most pages send them with the request the CAPTCHA protects, as two extra fields. Watch the request the page makes after a manual solve to learn their names. If you drive the page in a browser, call the page’s own callback with the result instead:

// the function the page passed to new TencentCaptcha(...), or named in data-cbfn
onCaptcha({ ret: 0, appid: result.appid, ticket: result.ticket, randstr: result.randstr });

The site checks the pair on its own server by calling Tencent’s DescribeCaptchaResult with CaptchaAppId, Ticket and Randstr. A ticket is valid for a short time and is accepted once, so use it soon after it arrives and request a new one for every submission.

binance captcha solver Binance Captcha

Binance Captcha is the CAPTCHA Binance runs on its own website, on pages such as login, registration and withdrawal. The visitor drags a puzzle piece into the gap in a picture, and Binance hands the page a token that lets the protected request through. CapSkip takes the scenario and validate ID you send and returns that token.

How It Works

Binance Captcha appears only on binance.com, so there is no sitekey that a site owner registers. Instead, each CAPTCHA belongs to a business scenario, such as login, and to a validate ID that Binance issues when it decides a request needs a check. The validate ID is short lived and tied to the session and network that received it.

The full cycle is four steps:

  1. Make the request to Binance as usual and read the scenario and validate ID from its security check.
  2. Submit them with the page URL to /in.php with method=binance.
  3. Poll /res.php until the result is ready.
  4. Repeat the request with the token, from the same network and with the same User-Agent.
Finding the Scenario and Validate ID

When Binance wants a check, its reply to the protected request carries a validate ID, usually in a field named securityCheckResponseValidateId (some endpoints call it validateId or securityId). The scenario is the bizId the page sends when it loads the puzzle. Open the browser’s network log, trigger the CAPTCHA and look for the request to getCaptcha. Its body reads like this:

bizId=login

Send that value as sitekey and the validate ID as validate_id. Request a new validate ID for every task: one that has expired or was already used cannot be passed.

List of POST Request Parameters
ParameterTypeRequiredDescription
keyStringYes*Your CapSkip API key. Required only when API Key Validation is enabled.
methodStringYesMust be binance. Specifies that you are submitting a Binance Captcha challenge.
sitekeyStringYesThe business scenario, the bizId value, for example login. bizId, bizType and bizCode are accepted under their own names as well.
validate_idStringYesThe validate ID from Binance’s security check. validateId, securityId and securityCheckResponseValidateId are accepted under their own names as well.
pageurlStringYesThe full URL of the Binance page that shows the CAPTCHA, for example https://www.binance.com/en/login.
userAgentStringNoThe User-Agent you will send the token with. Send it so the token is issued for the same browser identity. It must be a Windows desktop Chrome User-Agent: any other is refused with ERROR_BAD_PARAMETERS.
proxyStringNoProxy address. Accepts IP:PORT, LOGIN:PASSWORD@IP:PORT or IP:PORT:LOGIN:PASSWORD.
proxytypeStringNoProxy type: HTTP, HTTPS, SOCKS5 or SOCKS5H.
jsonInteger
Default: 0
No0 returns the response as plain text. 1 returns the response as JSON.

CapSkip does not force a proxy for this method, but Binance does in practice. Because the validate ID is tied to the network that received it, send the proxy your own requests to Binance go through, so the solve comes from the same address. If you reach Binance without a proxy, one address is fine for testing and for occasional solves. Past that, use a proxy pool: Binance judges the network a request comes from, and a steady stream of solves from one address is what that judgement is built to catch. A pool can also be added under Settings, Captcha types, Binance, Configure Proxies, and tasks sent without a proxy are spread across it. A proxy sent with a task always takes priority over the list.

Submit an HTTP GET or POST request to your CapSkip API endpoint (/in.php) with method=binance. Form fields, a query string and a JSON body are all accepted under identical field names.

Submit Binance Captcha:

curl -X POST \
--data-urlencode "key=YOUR_API_KEY" \
--data-urlencode "method=binance" \
--data-urlencode "sitekey=login" \
--data-urlencode "validate_id=f3a9c2e1b7d84c6a9e0b5d2f8a1c7e43" \
--data-urlencode "pageurl=https://www.binance.com/en/login" \
--data-urlencode "userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36" \
--data-urlencode "proxy=203.0.113.10:8080:login:password" \
--data-urlencode "proxytype=HTTP" \
--data-urlencode "json=1" \
http://127.0.0.1:8080/in.php

If everything is correct, CapSkip returns the CAPTCHA ID as plain text: OK|2122988149. If the json=1 parameter was sent, the response is a JSON envelope instead. Either way, the returned value is the CAPTCHA ID you poll for the result.

{
    "status": 1,
    "request": "2122988149"
}

Otherwise CapSkip returns an error code on the submit request itself, before any work is done:

ErrorCause
ERROR_BAD_PARAMETERSsitekey or validate_id is missing, or is longer than 128 characters.
ERROR_PAGEURLpageurl is missing or is not an http or https address.
ERROR_PROXY_FORMATThe proxy value could not be read, or proxytype is not one of the supported types.

Wait approximately 10 seconds, then submit an HTTP GET request to the result endpoint (/res.php) with the CAPTCHA ID you received.

List of GET request parameters
ParameterTypeRequiredDescription
keyStringYes*Your CapSkip API key. Required only when API Key Validation is enabled.
actionStringYesSpecify get to retrieve the CAPTCHA solution.
idIntegerYesThe CAPTCHA ID returned by the in.php request.
jsonInteger
Default: 0
No0 returns the response as plain text. 1 returns the response as JSON.
curl "http://127.0.0.1:8080/res.php?key=YOUR_API_KEY&action=get&id=2122988149&json=1"

If the challenge has been passed, CapSkip returns the token:

{
    "status": 1,
    "request": "captcha#5f0e8b1c2d3a4e6f9b7c8d0e1f2a3b4c-Kq7XcR2vN9mLpT4sWzY8..."
}

Without json=1, the reply is OK| followed by the token.

If the challenge has not yet been passed, CapSkip returns CAPCHA_NOT_READY, spelled exactly that way as on every other method. Wait 5 seconds and repeat the request.

Each result is delivered once. The first successful poll returns the result and discards it, so keep it from the reply that carried it.

A task that could not be passed returns ERROR_CAPTCHA_UNSOLVABLE. An expired or already used validate ID ends this way too, so request a fresh one before you submit again. When the proxy you sent with the task could not be reached, the result is ERROR_PROXY_CONNECT_REFUSED.

Submitting the Result

Repeat the request Binance asked to check, with the token added where the page adds it after a manual solve. Watch that request in the browser’s network log to learn where it goes. Send it from the same network the validate ID was issued to and with the same User-Agent you sent as userAgent. A token is valid for a short time and is accepted once, so use it soon after it arrives and request a new one for every submission.

drag and drop captcha solver Drag and Drop

A drag and drop CAPTCHA shows a background picture with a gap in it and one or more puzzle pieces that the visitor drags into place. Slider puzzles are the most common kind: the visitor pulls a handle and the piece slides along until it fills the gap. You send CapSkip the background and the pieces, and it returns where each piece belongs, ready for you to drag it there or to send the position to the site.

How It Works

This is a picture task: you load the CAPTCHA yourself and send its pictures, and CapSkip answers with positions. Nothing is sent to the CAPTCHA’s website, so these tasks need no proxy, no page address and no sitekey. The full cycle is three steps:

  1. Submit the background and the pieces to /in.php with method=drag_drop.
  2. Poll /res.php until the positions are ready.
  3. Drag each piece to its position in the page, or send the position wherever the page sends it.

Each task counts as one image CAPTCHA, whatever the number of pieces.

Getting the Pictures

Send the pictures exactly as the CAPTCHA loads them, without cropping, resizing or re-encoding. The background is usually a JPEG or PNG, and each piece a PNG with a transparent surround: keep that transparency, because the piece’s outline is part of what has to be matched. Many widgets fetch both from their own API as base64 strings, which you can pass on unchanged. If the widget draws the pictures on a canvas instead, read them with toDataURL(), which gives a data: URL that CapSkip also accepts.

Each picture may be up to 600 kB and up to 1000 pixels on each side. One task takes up to 10 pieces, and the order you send them in is the order of the answer.

List of POST Request Parameters
ParameterTypeRequiredDescription
keyStringYes*Your CapSkip API key. Required only when API Key Validation is enabled.
methodStringYesMust be drag_drop. Specifies that you are submitting a drag and drop CAPTCHA.
bodyStringYesThe background picture, base64 encoded. A data: URL is accepted as well.
imagesStringYesThe pieces, as a JSON array of base64 encoded pictures, for example ["iVBORw0KGgo...","iVBORw0KGgo..."]. In a JSON body the array can be sent as an array. Form encodings can send the pieces one per field instead, as images[0], images[1] and so on.
textinstructionsStringNoAccepted for compatibility and not needed.
jsonInteger
Default: 0
No0 returns the response as plain text. 1 returns the response as JSON.

Submit an HTTP POST request to your CapSkip API endpoint (/in.php) with method=drag_drop. The pictures are too large for a query string, so GET is not accepted. Multipart form data, URL encoded form fields and a JSON body are all accepted under identical field names. This method is not available while Anti-Captcha, CapMonster Cloud, CapSolver, DeathByCaptcha, NextCaptcha or EzCaptcha is the selected service in CapSkip.

Submit a drag and drop CAPTCHA:

curl -X POST \
--data-urlencode "key=YOUR_API_KEY" \
--data-urlencode "method=drag_drop" \
--data-urlencode "body=$(base64 -w0 background.jpg)" \
--data-urlencode "images=[\"$(base64 -w0 piece.png)\"]" \
--data-urlencode "json=1" \
http://127.0.0.1:8080/in.php

The same task as a JSON body:

{
    "key": "YOUR_API_KEY",
    "method": "drag_drop",
    "body": "/9j/4AAQSkZJRgABAQAAAQABAAD...",
    "images": ["iVBORw0KGgoAAAANSUhEUgAAAD0...", "iVBORw0KGgoAAAANSUhEUgAAAEU..."],
    "json": 1
}

If everything is correct, CapSkip returns the CAPTCHA ID as plain text: OK|2122988149. If the json=1 parameter was sent, the response is a JSON envelope instead. Either way, the returned value is the CAPTCHA ID you poll for the result.

{
    "status": 1,
    "request": "2122988149"
}

Otherwise CapSkip returns an error code on the submit request itself, before any work is done:

ErrorCause
ERROR_UPLOADbody is missing or empty.
ERROR_INVALID_IMAGEThe background or one of the pieces is not valid base64, or is not a picture.
ERROR_BAD_PARAMETERSimages is missing, is not a list of base64 strings, or holds more than 10 pieces.
ERROR_TOO_BIG_CAPTCHA_FILESIZEA picture is larger than 600 kB or 1000 pixels on a side.

Wait approximately 2 seconds, then submit an HTTP GET request to the result endpoint (/res.php) with the CAPTCHA ID you received.

List of GET request parameters
ParameterTypeRequiredDescription
keyStringYes*Your CapSkip API key. Required only when API Key Validation is enabled.
actionStringYesSpecify get to retrieve the CAPTCHA solution.
idIntegerYesThe CAPTCHA ID returned by the in.php request.
jsonInteger
Default: 0
No0 returns the response as plain text. 1 returns the response as JSON.
curl "http://127.0.0.1:8080/res.php?key=YOUR_API_KEY&action=get&id=2122988149&json=1"

When the task is solved, CapSkip returns one x,y pair per piece, in the order the pieces were sent, separated by |:

{
    "status": 1,
    "request": "184,103|null"
}

Without json=1, the same answer follows the OK| prefix as plain text:

OK|184,103|null

Each pair is where the top left corner of that piece picture goes, in pixels of the background you sent, counted from the background’s top left corner. null marks a piece that could not be placed; it is not an error, and it keeps its place in the list so the other pairs still line up with your pieces. A task in which no piece could be placed fails as a whole.

If the task has not been solved yet, CapSkip returns CAPCHA_NOT_READY, spelled exactly that way as on every other method. Wait 1 second and repeat the request. Each result is delivered once: the first successful poll returns it and discards it. A task that could not be solved returns ERROR_CAPTCHA_UNSOLVABLE, or the replacement text set in Settings.

Using the Answer

The positions are in the pixels of the pictures you sent. If the page shows the background at another size, scale the numbers by the same factor before you use them.

For a slider, the piece moves only sideways, so only x matters to the drag: move the handle by x minus the piece’s starting x. Many slider CAPTCHAs also time the drag, so move the handle in small steps over a second or so rather than in a single jump.

JSON API (createTask)

Drag and drop is also accepted on /createTask as DragAndDropTask, with the result read from /getTaskResult. Type and field names are matched in any letter case. Like in.php, it is not available while Anti-Captcha, CapMonster Cloud, CapSolver, DeathByCaptcha, NextCaptcha or EzCaptcha is the selected service in CapSkip.

ParameterTypeRequiredDescription
typeStringYesMust be DragAndDropTask.
backgroundStringYesThe background picture, as body above.
imagesArrayYesThe pieces, as an array of base64 encoded pictures, as above.
commentStringNoAccepted for compatibility and not needed.
curl -X POST http://127.0.0.1:8080/createTask \
-H "Content-Type: application/json" \
-d '{
    "clientKey": "YOUR_API_KEY",
    "task": {
        "type": "DragAndDropTask",
        "background": "/9j/4AAQSkZJRgABAQAAAQABAAD...",
        "images": ["iVBORw0KGgoAAAANSUhEUgAAAD0...", "iVBORw0KGgoAAAANSUhEUgAAAEU..."]
    }
}'

Refusals arrive on the createTask request with the same codes as on in.php, except that a missing background returns ERROR_BAD_PARAMETERS. The solution lists one point per piece, in the same order, with null for a piece that could not be placed:

{
    "errorId": 0,
    "status": "ready",
    "solution": {
        "coordinates": [
            {"x": 184, "y": 103},
            null
        ]
    }
}

A failed task reports ERROR_CAPTCHA_UNSOLVABLE in its errorCode field.

JSON API: VisionEngine Slider

While CapSolver is the selected service in CapSkip, a single slider piece can also be sent as VisionEngine with module set to slider_1. This task is answered on the createTask request itself, so there is nothing to poll.

ParameterTypeRequiredDescription
typeStringYesMust be VisionEngine.
moduleStringYesMust be slider_1. Any other module returns ERROR_TASK_NOT_SUPPORTED.
imageStringYesThe piece, base64 encoded.
imageBackgroundStringYesThe background picture, base64 encoded.
websiteURLStringNoAccepted for compatibility and not needed.
curl -X POST http://127.0.0.1:8080/createTask \
-H "Content-Type: application/json" \
-d '{
    "clientKey": "YOUR_API_KEY",
    "task": {
        "type": "VisionEngine",
        "module": "slider_1",
        "image": "iVBORw0KGgoAAAANSUhEUgAAAD0...",
        "imageBackground": "/9j/4AAQSkZJRgABAQAAAQABAAD..."
    }
}'
{
    "errorId": 0,
    "errorCode": "",
    "errorDescription": "",
    "status": "ready",
    "solution": {
        "distance": 184
    },
    "taskId": "2122988149"
}

distance is the x of the piece’s left edge on the background, counted from the background’s left edge, the same value as x above. A piece that could not be placed returns ERROR_CAPTCHA_UNSOLVABLE on the same request.

Using Proxies

For reCAPTCHA v2, v3, Invisible, Enterprise, Cloudflare Turnstile, hCaptcha, AWS WAF, GeeTest, ALTCHA, CaptchaFox, Capy Puzzle, Friendly Captcha, DataDome, MTCaptcha, Yandex SmartCaptcha, Tencent Captcha and Binance Captcha (token tasks), you can send a proxy with each task. CapSkip will solve the CAPTCHA through that proxy instead of using the proxy pool configured in the CapSkip application.

This is useful when the target website checks that the CAPTCHA token was generated from the same IP address as your own requests, for example, sites behind Cloudflare, strict reCAPTCHA scoring, or geo-restricted pages.

One address is fine for testing and occasional solves. At volume a proxy is needed: configure a proxy pool in CapSkip, or send one with each task.

List of POST Request Parameters
ParameterTypeRequiredDescription
proxyStringNoProxy address: IP:PORT, login:password@IP:PORT or IP:PORT:login:password; a host name works in place of the IP. Example: 123.123.123.123:3128. Send it without a scheme prefix such as http://.
proxytypeString
Default: HTTP
NoHTTP, HTTPS, SOCKS5 or SOCKS5H. SOCKS4 is not accepted.

A proxy that cannot be parsed is refused with ERROR_PROXY_FORMAT, and an unsupported proxytype with ERROR_BAD_PARAMETERS (ERROR_PROXY_FORMAT for MTCaptcha, Yandex SmartCaptcha, Tencent Captcha and Binance Captcha).

On the JSON API (/createTask), send the proxy as proxyType, proxyAddress, proxyPort, proxyLogin and proxyPassword, or as one proxy string, on the task types whose names end in Task. The reCAPTCHA and Turnstile Proxyless types ignore a proxy.

Error Codes

CodeMeaning
ERROR_KEY_DOES_NOT_EXISTThe API key is not one of your keys. The JSON API also answers this for a missing key.
ERROR_WRONG_USER_KEYThe key parameter is missing or empty while API Key Validation is enabled (in.php and res.php only).
ERROR_WRONG_METHODWrong HTTP method or action: an image sent with GET, a body that is not multipart/form-data, x-www-form-urlencoded or JSON, a res.php action other than get or getbalance, or a GET to /createTask or /getTaskResult.
ERROR_WRONG_ID_FORMATInvalid captcha ID format.
ERROR_BAD_PARAMETERSMissing or invalid required parameters.
ERROR_UPLOADNo image was found in the request: method=post without a file, method=base64 without a body, or a method value CapSkip does not know.
ERROR_INVALID_IMAGEInvalid image format or corrupted image data.
ERROR_INVALID_BASE64Invalid base64 encoding.
ERROR_TOO_BIG_CAPTCHA_FILESIZEImage size exceeds 600 kB or dimensions exceed 1000px.
ERROR_CAPTCHA_UNSOLVABLEFailed to solve the captcha. Submit a new task and retry.
ERROR_GOOGLEKEYInvalid googlekey parameter.
ERROR_PAGEURLInvalid pageurl parameter.
ERROR_ZERO_BALANCEThe API key has no credits left for this method.
ERROR_PROXY_FORMATThe proxy value could not be parsed.
ERROR_TASK_NOT_SUPPORTEDThe task type is not supported, or its setting is turned off in CapSkip.
ERROR_PROXY_MISSINGThe task requires a proxy and the request carried no usable one.
ERROR_WRONG_USERAGENTThe User-Agent in the request cannot be used for this task.
ERROR_PROXY_BANNEDThe target site blocked the proxy address. Use a different proxy.
ERROR_PROXY_CONNECT_REFUSEDThe target could not be reached through the proxy.
ERROR_RECAPTCHA_INVALID_SITEKEYThe sitekey is missing, or the CAPTCHA service refused it for this page.
ERROR_RECAPTCHA_INVALID_DOMAINThe sitekey is not allowed on the domain of pageurl. Send the address of the page the widget is really on.
ERROR_BAD_IMGINSTRUCTIONSThe instruction picture sent with a picture task could not be decoded. Send the picture unchanged, base64 encoded.
ERROR_NO_SLOT_AVAILABLEThe key has reached its Requests per minute limit, or the reCAPTCHA queue is full. Retry after a short wait.
ERROR_IP_NOT_ALLOWEDThe key has One device at a time turned on and is in use from another IP address.
ERROR_WRONG_CAPTCHA_IDJSON API: the taskId does not exist, has expired, or belongs to another key.
ERROR_INTERNALJSON API: the task could not be accepted because of an unexpected error. Check the request and retry.
ERROR_UNKNOWNThe balance could not be read. Retry.
ERROR_SERVER_OVERLOADEDCapSkip could not queue the request, answered with HTTP 503. Retry after a short wait.
CAPCHA_NOT_READYThe captcha is still being processed. Keep polling.
(empty response)The result has already been retrieved, or the ID does not exist.

A failed task returns ERROR_CAPTCHA_UNSOLVABLE on res.php. The returned text can be changed in Settings, under Confidence Filter, in the box that follows change the result to: res.php then returns that text for every failed task. Its default is ERROR_CAPTCHA_UNSOLVABLE. With Enable Confidence Filter on, an image answer below the confidence threshold set there counts as a failed task.

A failure with a named cause keeps its own code on res.php: ERROR_RECAPTCHA_INVALID_SITEKEY, ERROR_RECAPTCHA_INVALID_DOMAIN, ERROR_PROXY_CONNECT_REFUSED or ERROR_PROXY_BANNED, for hCaptcha, DataDome, MTCaptcha, Yandex SmartCaptcha, Tencent Captcha, Binance Captcha, CaptchaFox, Capy Puzzle and Friendly Captcha. A reCAPTCHA sitekey or domain that Google refuses is reported as ERROR_RECAPTCHA_INVALID_SITEKEY or ERROR_RECAPTCHA_INVALID_DOMAIN on /getTaskResult. The JSON API never uses the replacement text.