The easiest way to quickly integrate 2Captcha into your code to automate solving of any types of captcha.
2captcha-java artifact is available in Maven Central
TwoCaptchainstance can be created like this:
TwoCaptcha solver = new TwoCaptcha('YOUR_API_KEY');
Also there are few options that can be configured:
solver.setSoftId(123); solver.setCallback("https://your.site/result-receiver"); solver.setDefaultTimeout(120); solver.setRecaptchaTimeout(600); solver.setPollingInterval(10);