Friendly CAPTCHA bypass API service
Request examples:
Method: createTask
API endpoint:https://api.2captcha.com/createTask
FriendlyCaptchaTaskProxyless
{ "clientKey": "YOUR_API_KEY", "task": { "type": "FriendlyCaptchaTaskProxyless", "websiteURL": "https://example.com", "websiteKey": "2FZFEVS1FZCGQ9" } }
FriendlyCaptchaTask
{ "clientKey": "YOUR_API_KEY", "task": { "type": "FriendlyCaptchaTask", "websiteURL": "https://example.com", "websiteKey": "2FZFEVS1FZCGQ9", "proxyType": "http", "proxyAddress": "1.2.3.4", "proxyPort": "8080", "proxyLogin": "user23", "proxyPassword": "p4$w0rd" } }
Response example
{ "errorId": 0, "status": "ready", "solution": { "token": "f8b10f4ad796484bae963b1ebe3ce2bb.ZXL8Z...AAAAAA.AgAD" }, "cost": "0.00299", "ip": "1.2.3.4", "createTime": 1692863536, "endTime": 1692863556, "solveCount": 1 }
Using the token
Use the returned token as a value for `input` with `name = frc-captcha-solution`, then submit it's parent form, for example:
document.querySelector('input.frc-captcha-solution').value='f8b10f4ad796484bae963b1ebe3ce2bb.ZXL8Z...AAAAAA.AgAD' document.querySelector('form').submit()
Please note, that form name can be customized with `data-solution-field-name` attribute, then you need to use the name set as the attribute's value.
If there's a callback function defined, you can call it passing the token as argument. For example, if `data-callback="doneCallback"` you should run it as:
doneCallback('f8b10f4ad796484bae963b1ebe3ce2bb.ZXL8Z...AAAAAA.AgAD')