

Python library for interacting with the Solvecaptcha API (captcha-solving service)
A simple and efficient method to integrate the Solvecaptcha captcha-solving service into your code, enabling the automation of solving various types of captchas.
Examples of API requests for different captcha types can be found on the Python captcha solver page.
✅ Supported captcha solvers
To get started quickly, check out the Captcha Solver API documentation.
Helpful links:
🛠️ Features
- Fast and fully automated captcha bypass
- Works in Python environments
- Compatible with Selenium, Playwright, and other browser automation tools
- Lightweight SDK with modern async/await support
- Pay only for successful solves
- 99.9% uptime
- 24/7 support for developers and integration teams
📦 Use cases
- Web scraping behind reCAPTCHA or Cloudflare walls
- Automated form submission and login flows
- QA pipelines and headless browser testing
- Bypassing captchas in research or bot-detection evaluation
- Custom browser automations using Python
Need help integrating with your Python app or automation tools? Open an issue or fork this repo to contribute.
Installation
This package can be installed using Pip:
pip3 install solvecaptcha-python
or You can install this package directly from GitHub using pip:
pip install git+https://github.com/solvercaptcha/solvecaptcha-python.git
Configuration
An instance of Solvecaptcha can be created as follows:
from solvecaptcha import Solvecaptcha
solver = Solvecaptcha('YOUR_API_KEY')
Additionally, there are several options available for configuration:
config = {
'server': 'solvecaptcha.com',
'apiKey': 'YOUR_API_KEY',
'callback': 'https://your.site/result-receiver',
'defaultTimeout': 120,
'recaptchaTimeout': 600,
'pollingInterval': 10,
'extendedResponse': False
}
solver = Solvecaptcha(**config)
Solvecaptcha instance options
| Option |
Default value |
Description |
| server |
solvecaptcha.com |
API server. You can configure it to solvecaptcha.com if your account is registered on this platform. |
| callback |
- |
The URL of your web server that receives the captcha recognition result. This URL must first be registered in your account's pingback settings. |
| defaultTimeout |
120 |
Polling timeout in seconds for all captcha types except reCAPTCHA. Specifies the duration for which the module attempts to retrieve the response from the res.php API endpoint. |
| recaptchaTimeout |
600 |
Polling timeout for reCAPTCHA in seconds. Specifies the duration for which the module attempts to retrieve the response from the res.php API endpoint. |
| pollingInterval |
10 |
Interval in seconds between requests to the res.php API endpoint. It is not recommended to set a value lower than 5 seconds. |
| extendedResponse |
None |
Set to True to receive the response with additional fields or in a more structured format (enables JSON response from the res.php API endpoint). Recommended for ClickCaptcha and Canvas. |
[!IMPORTANT]
Once callback is defined for the Solvecaptcha instance, all methods return only the captcha ID and DO NOT poll the API to get the result. The result will be sent to the callback URL.
To get the answer manually, use the get_result method.
Solve captcha
When submitting any image-based CAPTCHA, you can provide additional options to assist Solvecaptcha workers in solving it correctly.
Captcha options
| Option |
Default Value |
Description |
| numeric |
0 |
Specifies whether the captcha consists only of numbers or includes other symbols. More details are available in the API documentation. |
| minLen |
0 |
Sets the minimum length of the expected answer. |
| maxLen |
0 |
Sets the maximum length of the expected answer. |
| phrase |
0 |
Indicates whether the response consists of multiple words. |
| caseSensitive |
0 |
Determines if the response must match the original case. |
| calc |
0 |
Specifies if the captcha involves a mathematical calculation. |
| lang |
- |
Defines the language of the captcha. Refer to the list of supported languages. |
| hintImg |
- |
Provides an additional image as a hint for workers alongside the captcha. |
| hintText |
- |
Displays a text hint or task description for workers along with the captcha. |
Below, you can find basic examples for each captcha type. For more examples with all available options, check the examples directory.
Normal Captcha
API method description.
To solve a standard captcha (distorted text on an image), use the following method. This method can also be applied for text recognition in any image.
result = solver.normal('path/to/captcha.jpg', param1=..., ...)
# OR
result = solver.normal('https://site-with-captcha.com/path/to/captcha.jpg', param1=..., ...)
result = solver.audio('path/to/captcha.mp3', lang = 'lang', param1=..., ...)
# OR
result = solver.audio('https://site-with-captcha.com/path/to/captcha.mp3', lang = 'lang', param1=..., ...)
Text Captcha
API method description.
This method can be used to solve captchas that require answering a question presented in plain text.
result = solver.text('If tomorrow is Saturday, what day is today?', param1=..., ...)
reCAPTCHA v2
API method description.
Use the following method to solve reCAPTCHA V2 and retrieve a token for bypassing the protection.
result = solver.recaptcha(sitekey='6Le-wvkSVVABCPBMRTvw0Q4Muexq1bi0DJwx_mJ-',
url='https://mysite.com/page/with/recaptcha',
param1=..., ...)
reCAPTCHA v3
API method description.
This method offers a reCAPTCHA V3 solver and returns a token.
result = solver.recaptcha(sitekey='6Le-wvkSVVABCPBMRTvw0Q4Muexq1bi0DJwx_mJ-',
url='https://mysite.com/page/with/recaptcha-v3',
version='v3',
param1=..., ...)
FunCaptcha
API method description.
FunCaptcha (Arkoselabs) solving method that returns a token.
result = solver.funcaptcha(sitekey='6Le-wvkSVVABCPBMRTvw0Q4Muexq1bi0DJwx_mJ-',
url='https://mysite.com/page/with/funcaptcha',
param1=..., ...)
GeeTest
API method description.
Method for solving GeeTest puzzle captcha. Returns a set of tokens in JSON format.
result = solver.geetest(gt='f1ab2cdefa3456789012345b6c78d90e',
challenge='12345678abc90123d45678ef90123a456b',
url='https://www.site.com/page/',
param1=..., ...)
GeeTest v4
API method description.
Use this method to solve GeeTest v4. The response is returned in JSON format.
result = solver.geetest_v4(captcha_id='e392e1d7fd421dc63325744d5a2b9c73',
url='https://www.site.com/page/',
param1=..., ...)
Cloudflare Turnstile