

Go captcha solver: Bypass reCAPTCHA, Cloudflare, Amazon and more
Use the Go captcha solver to automatically bypass any captcha โ including reCAPTCHA v2, Invisible, v3, Enterprise, Cloudflare Turnstile, GeeTest sliders, Amazon AWS WAF, FunCaptcha, and both image and text-based captchas.
โ
Supported captcha solvers
To get started quickly, check out the captcha solver API documentation.
Helpful links:
๐ ๏ธ Features
- Fast and fully automated captcha solving
- Native support for Go 1.18+
- Uses standard net/http and JSON APIs โ no external dependencies
- Easy integration with any Go backend, CLI tool, or scraper
- Supports async solving via goroutines and channels
- Pay only for successful solves
- 99.9% uptime
- 24/7 developer support
๐ฆ Use cases
- Accessibility automation
- Web scraping
- Automating form submissions in Go-powered services
- Running solvers in goroutines or background jobs
- QA pipelines and headless test automation
- Security testing and bot protection research
Need help integrating with your Go project? Open an issue or fork this repo to contribute.
Installation
To install the api client, use this:
go get -u github.com/solvercaptcha/solvecaptcha-go
Configuration
Import the module like this:
import (
"github.com/solvercaptcha/solvecaptcha-go"
)
Client instance can be created like this:
client := apisolvecaptcha.NewClient("YOUR_API_KEY")
There are few options that can be configured:
client.DefaultTimeout = 120
client.RecaptchaTimeout = 600
client.PollingInterval = 100
Client instance options
| Option |
Default value |
Description |
| default_timeout |
120 |
Timeout in seconds for all captcha types except reCAPTCHA. Defines how long the module tries to get the answer from res.php API endpoint |
| recaptcha_timeout |
600 |
Timeout for reCAPTCHA in seconds. Defines how long the module tries to get the answer from res.php API endpoint |
| polling_interval |
10 |
Interval in seconds between requests to res.php API endpoint, setting values less than 5 seconds is not recommended |
To get the answer manually use GetResult method
Solve captcha
When you submit any image-based captcha use can provide additional options to help solvecaptcha workers to solve it properly.
Captcha options
| Option |
Default Value |
Description |
| numeric |
0 |
Defines if captcha contains numeric or other symbols see more info in the API docs |
| min_len |
0 |
minimal answer length |
| max_len |
0 |
maximum answer length |
| phrase |
0 |
defines if the answer contains multiple words or not |
| case_sensitive |
0 |
defines if the answer is case sensitive |
| calc |
0 |
defines captcha requires calculation |
| lang |
- |
defines the captcha language, see the list of supported languages |
| hint_img |
- |
an image with hint shown to workers with the captcha |
| hint_text |
- |
hint or task text shown to workers with the captcha |
Below you can find basic examples for every captcha type, check out the code below.
Basic example
Example below shows a basic solver call example with error handling.
captcha := apisolvecaptcha.Normal{
File: "/path/to/normal.jpg",
}
code, err := client.Solve(captcha.ToRequest())
if err != nil {
if err == apisolvecaptcha.ErrTimeout {
log.Fatal("Timeout");
} else if err == apisolvecaptcha.ErrApi {
log.Fatal("API error");
} else if err == apisolvecaptcha.ErrNetwork {
log.Fatal("Network error");
} else {
log.Fatal(err);
}
}
fmt.Println("code "+code)
Normal Captcha
API method description.
To bypass a normal captcha (distorted text on image) use the following method. This method also can be used to recognize any text on the image.
captcha:= apisolvecaptcha.Normal{
File: "/path/to/normal.jpg",
Numeric: 4,
MinLen: 4,
MaxLen: 20,
Phrase: true,
CaseSensitive: true,
Lang: "en",
HintImgFile: "/path/to/hint.jpg",
HintText: "Type red symbols",
}
Text Captcha
API method description.
This method can be used to bypass a captcha that requires to answer a question provided in clear text.
captcha:= apisolvecaptcha.Text{
Text: "If tomorrow is Saturday, what day is today?",
Lang: "en",
}
reCAPTCHA v2
API method description.
Use this method to solve reCAPTCHA V2 and obtain a token to bypass the protection.
captcha := apisolvecaptcha.ReCaptcha{
SiteKey: "6Le-wvkSVVABCPBMRTvw0Q4Muexq1bi0DJwx_mJ-",
Url: "https://mysite.com/page/with/recaptcha",
Invisible: true,
Action: "verify",
}
req := captcha.ToRequest()
req.SetProxy("HTTPS", "login:password@IP_address:PORT")
code, err := client.Solve(req)
reCAPTCHA v3
API method description.
This method provides reCAPTCHA V3 solver and returns a token.
captcha := apisolvecaptcha.ReCaptcha{
SiteKey: "6Le-wvkSVVABCPBMRTvw0Q4Muexq1bi0DJwx_mJ-",
Url: "https://mysite.com/page/with/recaptcha",
Version: "v3",
Action: "verify",
Score: 0.3,
}
req := captcha.ToRequest()
req.SetProxy("HTTPS", "login:password@IP_address:PORT")
code, err := client.Solve(req)
reCAPTCHA Enterprise
API method description.
reCAPTCHA Enterprise can be used as reCAPTCHA V2 and reCAPTCHA V3. Below is a usage example for both versions.
// reCAPTCHA V2
captcha:= apisolvecaptcha.ReCaptcha({
SiteKey: "6Le-wvkSVVABCPBMRTvw0Q4Muexq1bi0DJwx_mJ-",
Url: "https://mysite.com/page/with/recaptcha",
Invisible: true,
Action: "verify",
Enterprise: true,
})
// reCAPTCHA V3
captcha := apisolvecaptcha.ReCaptcha{
SiteKey: "6Le-wvkSVVABCPBMRTvw0Q4Muexq1bi0DJwx_mJ-",
Url: "https://mysite.com/page/with/recaptcha",
Version: "v3",
Action: "verify",
Score: 0.3,
Enterprise: true,
}
req := captcha.ToRequest()
req.SetProxy("HTTPS", "login:password@IP_address:PORT")
code, err := client.Solve(req)
FunCaptcha
API method description.
FunCaptcha (Arkoselabs) solving method. Returns a token.
captcha := apisolvecaptcha.FunCaptcha{
SiteKey: "69A21A01-CC7B-B9C6-0F9A-E7FA06677FFC",
Url: "https://mysite.com/page/with/funcaptcha",
Surl: "https://client-api.arkoselabs.com",
UserAgent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36",
Data: map[string]string{"anyKey":"anyValue"},
}
req := captcha.ToRequest()
req.SetProxy("HTTPS", "login:password@IP_address:PORT")
code, err := client.Solve(req)
GeeTest
API method description.
Method to solve GeeTest puzzle captcha. Returns a set of tokens as JSON.
captcha := apisolvecaptcha.GeeTest{
GT: "f2ae6cadcf7886856696502e1d55e00c",
ApiServer: "api-na.geetest.com",
Challenge: "12345678abc90123d45678ef90123a456b",
Url: "https://mysite.com/captcha.html",
}
req := captcha.ToRequest()
req.SetProxy("HTTPS", "login:password@IP_address:PORT")
code, err := client.Solve(req)
GeeTest V4
API method description.
Use this method to solve GeeTest v4. Returns the response in JSON.