---
title: "Goto"
description: "Get where a Google result link leads, for a result whose url is still Google's link."
---

> Every apinoa docs page as markdown: https://apinoa.com/llms.txt (all in one file: https://apinoa.com/llms-full.txt; this API family in one file: https://apinoa.com/docs/serp/llms.txt)

```http
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](/docs/api-reference/google-aio/answer) or an [AI Mode](/docs/api-reference/google-ai-mode/answer) 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

```bash tab="cURL"
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..."}'
```

```js tab="JavaScript"
const res = await fetch("https://gateway.apinoa.com/v1/google/goto", {
  method: "POST",
  headers: { "x-api-key": process.env.APINOA_API_KEY, "content-type": "application/json" },
  body: JSON.stringify({ url: "https://www.google.com/goto?url=CAESeAHrOzAV..." }),
});
const { success, data, error } = await res.json();
```

```python tab="Python"
import os

import requests

res = requests.post(
    "https://gateway.apinoa.com/v1/google/goto",
    json={"url": "https://www.google.com/goto?url=CAESeAHrOzAV..."},
    headers={"x-api-key": os.environ["APINOA_API_KEY"]},
)
body = res.json()
```

## Parameters

| Parameter | Type | Required | Notes |
|---|---|---|---|
| `url` | string | yes | A 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: https://apinoa.com/openapi.json

## Response

Returns [`ResolvedLink`](/docs/api-reference/serp/response-schema#resolvedlink) in `data`: the link you sent and where it leads.

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

## Errors

| Status | Code | Meaning |
|---|---|---|
| 400 | `INVALID_PARAMS` | `url` is not a Google result link (`https://www.google.com/goto?url=…`). |
| 401 | `UNAUTHORIZED` | The `x-api-key` header is missing, or the key is revoked or unknown. |
| 429 | `UPSTREAM_RATE_LIMITED` | Google has not released the link yet. Ask again after the `Retry-After` seconds. |
| 503 | `SERVICE_UNAVAILABLE` | A temporary failure. Retry with backoff. |

Every code is listed in [Errors](/docs/errors).

## Pricing

**Price** 0 credits per call. [Plans and credits](https://apinoa.com/en/pricing).
