Get the reCAPTCHA version
GET
/config
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Get, RequestUri = new Uri("https://tmpt.antibotapi.com/config"), Headers = { { "x-api-key", "<x-api-key>" }, },};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}package main
import ( "fmt" "net/http" "io")
func main() {
url := "https://tmpt.antibotapi.com/config"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
}const url = 'https://tmpt.antibotapi.com/config';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://tmpt.antibotapi.com/config \ --header 'x-api-key: <x-api-key>'Returns the reCAPTCHA release to fetch the anchor page with (the anchor URL’s v parameter). It changes when
Google ships a new release, so read it before each session rather than hardcoding it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”x-signature
string
A request signature. Required only when signing is on for your key. See Authentication.
Responses
Section titled “Responses”The release to use.
Media typeapplication/json
object
success
required
boolean
version
required
The reCAPTCHA release. Use it as the anchor URL’s v parameter.
string
Example
{ "success": true, "version": "NhfdZHzre16wrc2m6BxEdu7J"}The API key is missing, unknown, revoked or out of balance, or its signature is wrong.
Media typeapplication/json
object
success
required
boolean
error
required
object
type
required
validation, not_approved, unmodelled, unavailable or internal.
string
message
required
What went wrong.
string
Example
{ "success": false, "error": { "type": "validation", "message": "x-api-key is required" }}Temporarily unavailable. Retry after a few seconds.
Media typeapplication/json
object
success
required
boolean
error
required
object
type
required
validation, not_approved, unmodelled, unavailable or internal.
string
message
required
What went wrong.
string
Example
{ "success": false}