Actor

petr_cermak/anti-captcha-recaptcha

  • Builds
  • latest 0.0.9 / 2018-09-05
  • Created 2017-10-05
  • Last modified 2018-09-12
  • grade 30

Description

Act for solving google recaptcha using the anti-captcha.com service. You need to have an anti-captcha subscription to be able to use it.


API

To run the actor, send a HTTP POST request to:

https://api.apify.com/v2/acts/petr_cermak~anti-captcha-recaptcha/runs?token=<YOUR_API_TOKEN>

The POST payload will be passed as input for the actor. For more information, read the docs.


Example input

Content type: application/json; charset=utf-8

{ 
    "key": "ANTI_CAPTCHA_KEY",
    "webUrl": "PROTECTED_WEBSITE_URL",
    "siteKey": "CAPTCHA-DATA-SITEKEY"
}

Readme

act-anti-captcha-recaptcha

Act for solving google recaptcha using the anti-captcha.com service. You need to have an anti-captcha subscription to be able to use it.

The act accepts input in the following format:

{ 
    "key": ANTI_CAPTCHA_KEY,
    "webUrl": PROTECTED_WEBSITE_URL,
    "siteKey": CAPTCHA_DATA_SITEKEY
}

You can find CAPTCHA_DATA_SITEKEY on the protected website. It is usually in a "data-sitekey" attribute in an element with a "g-recaptcha" class or id.

Output is the resulting g-recaptcha-response which you have to send the same way the protected website would.
Usually it can be sent in a form input with name="g-recaptcha-response".

Some sites may require the captcha to be solved from the same IP address and/or browser,
in such case it is possible to use the following input attributes (in addition to the default ones).

    "proxyType": "http",
    "proxyAddress": "8.8.8.8",
    "proxyPort": 8080,
    "proxyLogin": "theLogin",
    "proxyPassword": "thePassword",
    "userAgent": "Opera 6.0",
    "cookies": "name=value; name2=value2"