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?...).
| Field | What it holds |
|---|---|
link | The Google link exactly as you sent it |
url | The real page address. Missing when the link was not resolved |
reason | resolved, 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
status0 does not mean every link resolved. Readreasonon each entry. Onlyresolvedentries have aurl.- 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_budgetmeans 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
linksorresponse, 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.
- Parameters and the full response: link resolver docs
- Try it in the browser: Google link resolver
- Credit packs: pricing