Apinoa Docs

Goto

Get where a Google result link leads, for a result whose url is still Google's link.

View raw .mdx
GET | POST /v1/google/goto

Send parameters as a query string with GET, or as a JSON body with POST. Both are equivalent.

Google releases some result links only after a short wait. A search, an AI Overview or an AI Mode answer does not wait for them: where a link was not yet released, the result's url is Google's own link (https://www.google.com/goto?url=…). Send that link here to get where it leads.

The wait starts when the results are returned, so asking a few seconds later usually answers at once. If Google still holds the link when the call has waited as long as it can, the call answers 429 with Retry-After: ask again after that many seconds.

This call is free.

Request

curl "https://gateway.apinoa.com/v1/google/goto" \
  -H "x-api-key: $APINOA_API_KEY" \
  -H "content-type: application/json" \
  -d '{"url": "https://www.google.com/goto?url=CAESeAHrOzAV..."}'

Parameters

ParameterTypeRequiredNotes
urlstringyesA result's url that is still a Google link (https://www.google.com/goto?url=…), as a search, an AI Overview or AI Mode returned it.

The same parameters, and every response type, are in the OpenAPI document.

Response

Returns ResolvedLink in data: the link you sent and where it leads.

{
  "success": true,
  "data": {
    "engine": "google",
    "link": "https://www.google.com/goto?url=CAESeAHrOzAV...",
    "url": "https://www.merriam-webster.com/dictionary/hello"
  }
}

Errors

StatusCodeMeaning
400INVALID_PARAMSurl is not a Google result link (https://www.google.com/goto?url=…).
401UNAUTHORIZEDThe x-api-key header is missing, or the key is revoked or unknown.
429UPSTREAM_RATE_LIMITEDGoogle has not released the link yet. Ask again after the Retry-After seconds.
503SERVICE_UNAVAILABLEA temporary failure. Retry with backoff.

Every code is listed in Errors.

Pricing

Price 0 credits per call. Plans and credits.

On this page