Docs / API reference /
Get the target of a Google redirect link
POST https://api.answerline.dev/v1/monitor/google/goto
Returns the destination URL of a single Google redirect link. Pass the redirectLink value that accompanies each resolved link in a Google Search or AI Mode response; the reply contains the URL it leads to.
Free of charge. One link is resolved per request, and Google is given up to 10 seconds to respond.
Body
-
urlstring required -
Absolute URL of a Google redirect link that you want resolved. It must point to
google.comorwww.google.comand use a path of/gotoor/url, which is the form returned asredirectLinkalongside each resolved link in AI Mode, Google Search and Google News responses.
Returns
-
urlstring required -
Target URL that the redirect link leads to
Responses
- 200
- Target URL that the redirect link leads to
- 400
- Bad Request - url is absent, badly formed, or not a /goto or /url link on google.com
- 401
- Unauthorized - API key absent or not valid
- 429
- Too Many Requests - the call could not start now (
CONCURRENT_LIMIT_EXCEEDED), or the service dropped the request because it was overloaded (SERVICE_OVERLOADED); that case returnsRetry-Afterwithout any limit headers.RATE_LIMIT_EXCEEDED, withRetry-After, is sent only when one address presented too many unknown keys - 500
- Internal Server Error
- 502
- Bad Gateway - Google's reply was not a redirect, or calling Google failed