SerpBase
Back to Blog

Google Redirect URL Resolver: Turn google.com/url Links into Real URLs

A free endpoint that turns Google's /url and /goto wrapper links into the real page addresses, up to 50 per request. Tested on single links, lists and a whole search answer.

November 28, 2026
By SerpBase Team3 min read

Short answer: post Google's wrapper links to /google/resolve and you get the real page address for each one. It takes up to 50 links per request and costs 0 credits. It handles both forms Google uses: https://www.google.com/url?... and https://www.google.com/goto?....

Google does not always put the destination in a result link. Some links point back at Google and only redirect when a browser follows them, so a script that stores the link stores Google's address, not the page's.

The request

curl -X POST 'https://api.serpbase.dev/google/resolve' \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: YOUR_API_KEY' \
  -d '{"links":["https://www.google.com/url?sa=t&url=https%3A%2F%2Fwww.example.com%2F"]}'

What comes back

We ran these on 28 November 2026.

{
  "status": 0,
  "credits_charged": 0,
  "product_id": "google_resolve",
  "resolved_links": [
    {
      "link": "https://www.google.com/url?sa=t&url=https%3A%2F%2Fwww.example.com%2F",
      "reason": "resolved",
      "url": "https://www.example.com/"
    }
  ]
}

Four goto links from a search answer, sent as a list. All four came back resolved, pointing at pages on nike.com, rtings.com, cnn.com and amazon.com.

A whole search answer, sent as response. You can paste the JSON you got from /google/search and every Google wrapper inside it is found and resolved, sitelinks included. One answer gave 15 links, all resolved. Another gave 21, all resolved.

A large answer that did not make it. One answer contained 27 wrapper links; every entry came back with reason timeout and no url. The request itself still had status 0. Sending just the five organic links from that answer as a list straight afterwards resolved all five.

A link that is not a Google wrapper. https://example.com/page was refused with status 1000: each link must be a Google result link (https://www.google.com/goto?... or /url?...).

FieldWhat it holds
linkThe Google link exactly as you sent it
urlThe real page address. Missing when the link was not resolved
reasonresolved, or why not: timeout, paced_over_budget, challenge, no_location, not_a_wrapper, error

Python: clean the links in a search answer

import time, requests

API = "https://api.serpbase.dev"
HEADERS = {"X-API-Key": "YOUR_API_KEY"}

def post(path, body):
    return requests.post(API + path, headers=HEADERS, json=body, timeout=60).json()

r = post("/google/search", {"q": "best trail running shoes", "gl": "us", "hl": "en"})
organic = r.get("organic", [])
wrapped = [o["link"] for o in organic if "google.com/goto" in o["link"]]

real = {}
if wrapped:
    time.sleep(1)
    fixed = post("/google/resolve", {"links": wrapped})
    real = {x["link"]: x["url"] for x in fixed.get("resolved_links", [])
            if x.get("reason") == "resolved"}

for o in organic:
    print(o["rank"], real.get(o["link"], o["link"]))

When we ran this flow, the search answer had 8 organic results, 5 of them wrappers, and all 5 resolved.

Things that trip people up

  • status 0 does not mean every link resolved. Read reason on each entry. Only resolved entries have a url.
  • Send the links you need, not everything. A full answer can hold two dozen wrappers once videos and sitelinks are counted. The short lists in our tests resolved; the 27-link answer timed out.
  • paced_over_budget means wait. The docs say to send that link again after about two minutes, not sooner.
  • Only Google links are accepted. One ordinary address in the list and the whole request is refused with status 1000. Filter before you send.
  • Send links or response, not both.

Related endpoints

The wrapper links come from Google web search answers. If you run searches from pasted Google addresses, see Google search URL to JSON.

Cost and limits

Resolving is free: 0 credits per request, up to 50 links each. It still needs an API key and counts against your requests per second. Searches cost 1 credit, and credits cost $0.25–$0.50 per 1,000 depending on the plan; new accounts get 500 free credits without a card.