MTCaptcha

mtcaptcha widget

Token-based method for automated solving of MTCaptcha.

Task types

  • MtCaptchaTaskProxyless - we use our own proxies pool to load and solve the captcha
  • MtCaptchaTask - 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

Method: getTaskResult
API endpoint: https://api.2captcha.com/getTaskResult

{
    "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
}