Resolve a Google redirect
The page a Google result’s redirectLink leads to.
POST
/
v1
/
google
/
goto
Resolve a Google redirect
curl --request POST \
--url https://api.querying.ai/v1/google/goto \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://www.google.com/goto?url=CAESjgEB6zswFXseyYyAhWD5OBf1yt0u8gIlzwuA5qsqIm3tBmKqh3hpxRZdyK_1IDcHZx"
}
'import requests
url = "https://api.querying.ai/v1/google/goto"
payload = { "url": "https://www.google.com/goto?url=CAESjgEB6zswFXseyYyAhWD5OBf1yt0u8gIlzwuA5qsqIm3tBmKqh3hpxRZdyK_1IDcHZx" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
url: 'https://www.google.com/goto?url=CAESjgEB6zswFXseyYyAhWD5OBf1yt0u8gIlzwuA5qsqIm3tBmKqh3hpxRZdyK_1IDcHZx'
})
};
fetch('https://api.querying.ai/v1/google/goto', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.querying.ai/v1/google/goto",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'url' => 'https://www.google.com/goto?url=CAESjgEB6zswFXseyYyAhWD5OBf1yt0u8gIlzwuA5qsqIm3tBmKqh3hpxRZdyK_1IDcHZx'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.querying.ai/v1/google/goto"
payload := strings.NewReader("{\n \"url\": \"https://www.google.com/goto?url=CAESjgEB6zswFXseyYyAhWD5OBf1yt0u8gIlzwuA5qsqIm3tBmKqh3hpxRZdyK_1IDcHZx\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.querying.ai/v1/google/goto")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://www.google.com/goto?url=CAESjgEB6zswFXseyYyAhWD5OBf1yt0u8gIlzwuA5qsqIm3tBmKqh3hpxRZdyK_1IDcHZx\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.querying.ai/v1/google/goto")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"https://www.google.com/goto?url=CAESjgEB6zswFXseyYyAhWD5OBf1yt0u8gIlzwuA5qsqIm3tBmKqh3hpxRZdyK_1IDcHZx\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"url": "https://www.rtings.com/headphones/reviews/best/wireless-bluetooth-earbuds-under-100"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
],
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"success": false,
"error": {
"code": "MISSING_API_KEY",
"message": "Missing or invalid API key",
"timestamp": "2026-07-09T04:12:00.000Z"
}
}{
"success": false,
"error": {
"code": "GOOGLE_REDIRECT_UNRESOLVED",
"message": "goto did not answer a redirect; retry later",
"timestamp": "2026-11-09T00:00:00.000Z"
}
}A Google result whose redirect was not read in time comes back with an empty
link and the redirect in redirectLink. Send that redirectLink here as url to get the page it leads to. One link per request, and it costs no credits. POST /v1/monitor/google/goto answers the same request, so a client written for Cloro’s path works unchanged.
502 GOOGLE_REDIRECT_UNRESOLVED means Google has not answered the redirect yet. Retry after the seconds in Retry-After when the response has one, otherwise a little later.Body
application/json
⌘I
Resolve a Google redirect
curl --request POST \
--url https://api.querying.ai/v1/google/goto \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://www.google.com/goto?url=CAESjgEB6zswFXseyYyAhWD5OBf1yt0u8gIlzwuA5qsqIm3tBmKqh3hpxRZdyK_1IDcHZx"
}
'import requests
url = "https://api.querying.ai/v1/google/goto"
payload = { "url": "https://www.google.com/goto?url=CAESjgEB6zswFXseyYyAhWD5OBf1yt0u8gIlzwuA5qsqIm3tBmKqh3hpxRZdyK_1IDcHZx" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
url: 'https://www.google.com/goto?url=CAESjgEB6zswFXseyYyAhWD5OBf1yt0u8gIlzwuA5qsqIm3tBmKqh3hpxRZdyK_1IDcHZx'
})
};
fetch('https://api.querying.ai/v1/google/goto', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.querying.ai/v1/google/goto",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'url' => 'https://www.google.com/goto?url=CAESjgEB6zswFXseyYyAhWD5OBf1yt0u8gIlzwuA5qsqIm3tBmKqh3hpxRZdyK_1IDcHZx'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.querying.ai/v1/google/goto"
payload := strings.NewReader("{\n \"url\": \"https://www.google.com/goto?url=CAESjgEB6zswFXseyYyAhWD5OBf1yt0u8gIlzwuA5qsqIm3tBmKqh3hpxRZdyK_1IDcHZx\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.querying.ai/v1/google/goto")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://www.google.com/goto?url=CAESjgEB6zswFXseyYyAhWD5OBf1yt0u8gIlzwuA5qsqIm3tBmKqh3hpxRZdyK_1IDcHZx\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.querying.ai/v1/google/goto")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"https://www.google.com/goto?url=CAESjgEB6zswFXseyYyAhWD5OBf1yt0u8gIlzwuA5qsqIm3tBmKqh3hpxRZdyK_1IDcHZx\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"url": "https://www.rtings.com/headphones/reviews/best/wireless-bluetooth-earbuds-under-100"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
],
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"success": false,
"error": {
"code": "MISSING_API_KEY",
"message": "Missing or invalid API key",
"timestamp": "2026-07-09T04:12:00.000Z"
}
}{
"success": false,
"error": {
"code": "GOOGLE_REDIRECT_UNRESOLVED",
"message": "goto did not answer a redirect; retry later",
"timestamp": "2026-11-09T00:00:00.000Z"
}
}