常规CAPTCHA绕过API服务
要使用我们的服务处理常规captcha,您需要使用HTTP POST请求将图像上传到我们的API的URL:
https://2captcha.cn/in.php服务器接受multipart或base64格式的图像。代码示例:
阅读更多 - captcha处理API文档。
// https://github.com/2captcha/2captcha-php require(__DIR__ . '/../src/autoloader.php'); $solver = new \TwoCaptcha\TwoCaptcha('YOUR_API_KEY'); try { $result = $solver->normal('path/to/captcha.jpg'); } catch (\Exception $e) { die($e->getMessage()); } die('Captcha solved: ' . $result->code);