How to bypass atbCAPTCHA
Request examples:
Method: createTask
API endpoint:https://api.2captcha.com/createTask
AtbCaptchaTaskProxyless
{ "clientKey": "YOUR_API_KEY", "task": { "type":"AtbCaptchaTaskProxyless", "appId":"af23e041b22d000a11e22a230fa8991c", "apiServer":"https://cap.aisecurius.com", "websiteURL":"https://www.example.com/" } }
AtbCaptchaTask
{ "clientKey": "YOUR_API_KEY", "task": { "type":"AtbCaptchaTask", "appId":"af23e041b22d000a11e22a230fa8991c", "apiServer":"https://cap.aisecurius.com", "websiteURL":"https://www.example.com/", "proxyType": "http", "proxyAddress": "1.2.3.4", "proxyPort": "8080", "proxyLogin": "user23", "proxyPassword": "p4$w0rd" } }
Response example
{ "errorId": 0, "status": "ready", "solution": { "token": "sl191suxzluwxxh6f:" }, "cost": "0.00299", "ip": "1.2.3.4", "createTime": 1692863536, "endTime": 1692863556, "solveCount": 1 }
Using the token
The token is passed to a callback function defined in "success" property during the captcha initialization. This function is usually used to make a request to the website backend where the token is verified. You can execute the callback function passing the token as an argument or build a request to the backend using passing the token.
const myCallbackFunction = (token) { // verify the token } var myCaptcha = as.Captcha(document.getElementById('demo'), { appId: 'af23e041b22d000a11e22a230fa8991c', success: myCallbackFunction })