Join And Get Free Trial!

go captcha solver

Go excels in cloud-native development with built-in concurrency through goroutines/channels and fast compilation. Ideal for microservices, distributed systems, and CLI tools, its minimalist syntax, memory safety via garbage collection, and cross-platform binary generation power major projects like Docker/Kubernetes. Widely adopted by Google, Uber, and Twitch for scalable network services and infrastructure.

Integrate our Python captcha solver package to automatically solve CAPTCHA on any website.

Easy integration with the API of captcha solving service to bypass reCAPTCHA and solve any other CAPTCHA

Installation

Install NextCaptcha GO SDK with the package installer or manually

GitHub

You can install the NextCaptcha Golang SDK using the go get command:#

go get -u github.com/nextcaptcha/nextcaptcha-go

Configuration

Configure the NextCaptcha GO SDK with necessary parameters

Configuration Go Solver SDK

Configuration Example#

Here’s how you can set up and use the NextCaptcha Go SDK:
  import "github.com/nextcaptcha/nextcaptcha-go"
 
  api := nextcaptcha.NewNextCaptchaAPI(clientKey, "", "", true)
 
  result, err := api.RecaptchaV2("https://example.com", "SITE_KEY", nextcaptcha.RecaptchaV2Options{})
 

Here is a complete example of using the NextCaptcha Golang SDK to solve a reCAPTCHA v2 challenge:#

  package main
 
  import (
      "fmt"
      "github.com/nextcaptcha/nextcaptcha-go"
  )
 
  func main() {
      api := nextcaptcha.NewNextCaptchaAPI("YOUR_CLIENT_KEY")
 
      result, err := api.RecaptchaV2("https://example.com", "SITE_KEY", nextcaptcha.RecaptchaV2Options{})
      if err != nil {
          fmt.Printf("Error solving reCAPTCHA: %v\n", err)
          return
      }
 
      if result.Status == "ready" {
          fmt.Printf("reCAPTCHA solved: %s\n", result.Solution)
      } else {
          fmt.Printf("Failed to solve reCAPTCHA: %s\n", result.Error)
      }
  }

Solve CAPTCHA

`getMessageFallback` called for langGo.solve1

To solve reCAPTCHA v2, v3, Enterprise, or the mobile version using NextCaptcha's Token-based method, follow these steps:

1. Solve reCAPTCHA via Token-Based Method#

Use the Token-based approach to get the `g-recaptcha-response` token.

Solve reCAPTCHA v2 with Token base method#

 
  result, err := api.RecaptchaV2("https://example.com", "SITE_KEY", nextcaptcha.RecaptchaV2Options{})
 

Solving reCAPTCHA v2 Enterprise To solve reCAPTCHA v2 Enterprise challenges, use the RecaptchaV2Enterprise method: #

    result, err := api.RecaptchaV2Enterprise("https://example.com", "SITE_KEY", nextcaptcha.RecaptchaV2EnterpriseOptions{})

Solving reCAPTCHA v3 To solve reCAPTCHA v3 challenges, use the RecaptchaV3 method:#

  result, err := api.RecaptchaV3("https://example.com", "SITE_KEY", nextcaptcha.RecaptchaV3Options{})

Solving reCAPTCHA Mobile To solve reCAPTCHA Mobile challenges, use the RecaptchaMobile method:#

  result, err := api.RecaptchaMobile("APP_KEY", nextcaptcha.RecaptchaMobileOptions{})

3. Use the Token#

After receiving the `g-recaptcha-response` token, inject it into the website’s form and submit it.
<input type="hidden" name="g-recaptcha-response" value="your_token_here" />

Key Notes#

Supports reCAPTCHA v2, v3, Enterprise, and Mobile

Proxyless mode is available (use a proxy if the site requires specific IPs)

Token-based method allows seamless captcha bypassing.

Other methods

To check your NextCaptcha account balance, use the following method:

Get Balance Example#

  balance, err := api.GetBalance()
  fmt.Printf("Account balance: %s\n", balance)
 

Key Notes#

Retrieves your available balance in USD.

Ensure your API key is valid to get the correct balance.

;