MTCaptcha solver lanched. Added support for the MTCaptcha bypass method in the API
2Captcha launched a MTCaptcha captcha bypass service.
In this blog post, we'll focus on how to programmatically bypass MTCaptcha using the API.
What is MTCaptcha
This can be particularly useful for developers who are working on projects that require automating tasks that involve interacting with MTCaptcha protected websites.
Companies use MTCaptcha to try and prevent companies and developers from scraping data from their websites.
MTCaptcha technology is very sophisticated, however, with the right tool you can bypass it and reliably scrape the data you need.
They use machine learning algorithms and risk scores to analyze the request fingerprints and behavioral signals to detect and block bot attacks.
MTCaptcha captchas typically restrict access to services and information based on our social and cultural backgrounds, physical and cognitive abilities, the devices or networks we connect from, and other criteria.
MTCaptcha captcha challenge could look something like:
2Captcha - is a service for solving any captcha through API queries. Payment only for successfully solving queries.
Article describes the process of interaction with the MTCaptcha bypass API.
How to bypass MTCaptcha captcha
The ways to automate the MTCaptcha solving process:
- Using machine learning method
- Using motivated workers who perform tasks on recognition services
The task of automating the bypass is solved by specialized services.
The process of solving using an API is as follows:
- The customer passes a set of required parameters from the captcha placement page to the service, where it is solved by a worker;
- After that, the customer requests a set of parameters to be passed to the appropriate fields to solve the captcha on the target page.
This process is fast and reliable, and it can be used to solve any type of task, including MTCaptcha captchas.
Payment is only for successfully solved captchas.
Solving MTCaptcha captcha using the API is a great way to automate the bypassing process.
To use the API a user must register on 2Captcha. Once the profile is activated, the user can start using the API.
MTCaptcha solver API
Token-based method for automated solving of MTCaptcha.
Task types:
MtCaptchaTaskProxyless
- we use our own proxies pool to load and solve the captchaMtCaptchaTask
- we use your proxies
Task specification
Property | Type | Required | Description |
---|---|---|---|
type | String | Yes | Task type: MtCaptchaTaskProxyless MtCaptchaTask |
websiteURL | String | Yes | The full URL of target web page where the captcha is loaded. |
websiteKey | String | Yes | The MTCaptcha sitekey value found in the page code. |
MtCaptchaTask task type specification
MtCaptchaTask
extends MtCaptchaTaskProxyless
adding a set of proxy-related parameters listed below
Property | Type | Required | Description |
---|---|---|---|
proxyType | String | Yes | Proxy type: http socks4 socks5 |
proxyAddress | String | Yes | Proxy IP address or hostname |
proxyPort | Integer | Yes | Proxy port |
proxyLogin | String | No | Login for basic authentication on the proxy |
proxyPassword | String | No | Password for basic authentication on the proxy |
Request examples
Method: createTask
API endpoint: https://api.2captcha.com/createTask
MtCaptchaTaskProxyless
{
"clientKey": "{{clientKey}}",
"task": {
"type": "MtCaptchaTaskProxyless",
"websiteURL": "https://service.mtcaptcha.com/mtcv1/demo/index.html",
"websiteKey": "MTPublic-DemoKey9M"
}
}
MtCaptchaTask
{
"clientKey": "{{clientKey}}",
"task": {
"type": "MtCaptchaTask",
"websiteURL": "https://service.mtcaptcha.com/mtcv1/demo/index.html",
"websiteKey": "MTPublic-DemoKey9M",
"proxyType":"http",
"proxyAddress":"1.2.3.4",
"proxyPort":"8080",
"proxyLogin":"user23",
"proxyPassword":"p4$$w0rd"
}
}
Response example
{
"errorId": 0,
"status": "ready",
"solution": {
"token": "v1(00cc43a5,1adfe4b4,MTPublic-DemoKey9M,0080ab49...IJexMsishqlg**)"
},
"cost": "0.00299",
"ip": "1.2.3.4",
"createTime": 1695129688,
"endTime": 1695129702,
"solveCount": 1
}
Error handles
If the recognition process is not finished yet, the server will return CAPCHA_NOT_READY
result.
If something goes wrong, the server will return an error code.
A list of all errors with a description is collected on the API page.
Price
The price for 1000 recognitions is $2.99.
References
Detailed information on bypassing captcha is published on the API page.
Additional information on working with the service for customers is available on the FAQ page.
Code examples for working with the service on the official page in GitHub.