bestcaptchasolverapi is a super easy to use bypass captcha Java API wrapper for bestcaptchasolver.com captcha service
git clone https://github.com/bestcaptchasolver/bestcaptchasolver-java
Simply import the library, set the auth details and start using the captcha service:
import com.bestcaptchasolver.BestCaptchaSolverAPI;
Set access_token or username and password (legacy) for authentication
String access_token = "your_access_key";
BestCaptchaSolverAPI bcs = new BestCaptchaSolverAPI(access_token);
Once you've set your authentication details, you can start using the API
String balance = bcs.account_balance();
System.out.println(String.Format("Balance: %s", balance));
int id = bcs.submit_image_captcha("/home/me/Desktop/captcha.jpg");
Takes a 2nd argument, case_sensitive which is a bool (optional)
Once you have the captchaID, you can check for it's completion
int id = bcs.submit_image_captcha("/home/me/Desktop/captcha.jpg");
String image_text = null;
while(image_text == null)
{
image_text = bcs.retrieve(id);
Thread.sleep(2000);
}
For recaptcha submission there are two things that are required.
- page_url
- site_key
- proxy (optional), works in this format
12.34.56.78:1234
oruser:password@12.34.56.78:1234
id = bcs.submit_recaptcha(page_url, site_key);
Same as before, this returns an ID which is used to regulary check for completion
id = bcs.submit_recaptcha(page_url, site_key);
String gresponse = null;
while (gresponse == null)
{
gresponse = bcs.retrieve(id);
Thread.sleep(5000);
}
In case a captcha was wrongly completed, you can use the set_captcha_bad(captchaID)
method like this
bcs.set_captcha_bad(45);
Compile and run the com.example package
If you don't want to compile your own library, you can check the binary folder for a compiled version. Keep in mind that this might not be the latest version with every release
API library is licensed under the MIT License
More details about the server-side API can be found here
captcha, bypasscaptcha, decaptcher, decaptcha, 2captcha, deathbycaptcha, anticaptcha, bypassrecaptchav2, bypassnocaptcharecaptcha, bypassinvisiblerecaptcha, captchaservicesforrecaptchav2, recaptchav2captchasolver, googlerecaptchasolver, recaptchasolverpython, recaptchabypassscript, bestcaptchasolver