Skip to main content

2Captcha Python3 API Wrapper

Project description


2Captcha Python3 API Wrapper


You will need a ``2Captcha API Key`` which can be found `here`_ after
registering for 2Captcha on



.. code:: py

from twocaptcha import TwoCaptcha

twoCaptcha = TwoCaptcha(API_KEY)


.. code:: py

page_url = ''
site_key = '6Le4AQgUAAAAAABhHEq7RWQNJwGR_M-6Jni9tgtA'
captcha_token = twoCaptcha.solve_captcha(site_key=site_key, page_url=page_url)
print(captcha_token) # Ex. '03AE...'


.. code:: py

balance = twoCaptcha.get_balance()
print(balance) # Ex. '6.11472'


- [ ] proxy support
- [ ] poll interval
- [ ] request error handling
- [ ] request unblocking
- [ ] unit tests

.. _here:

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for two-captcha-sdk, version
Filename, size File type Python version Upload date Hashes
Filename, size two-captcha-sdk- (3.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page