---
title: "Goto"
description: "결과의 url이 아직 Google 링크일 때, 그 링크가 가리키는 주소를 가져옵니다."
---

> 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
```

파라미터는 `GET`의 쿼리 문자열로도, `POST`의 JSON 본문으로도 보낼 수 있습니다. 둘은 같습니다.

Google은 일부 결과 링크를 잠시 기다린 뒤에야 열어 줍니다. 검색, [AI 개요](/docs/api-reference/google-aio/answer), [AI Mode](/docs/api-reference/google-ai-mode/answer) 답변은 이 링크를 기다리지 않습니다. 아직 열리지 않은 링크는 결과의 `url`이 Google 링크(`https://www.google.com/goto?url=…`) 그대로입니다. 그 링크를 여기로 보내면 가리키는 주소를 돌려줍니다.

기다리는 시간은 결과를 돌려준 순간부터 흐르므로, 몇 초 뒤에 물으면 대개 바로 답합니다. 호출이 기다릴 수 있는 만큼 기다려도 Google이 아직 열어 주지 않으면 `429`와 `Retry-After`로 답합니다. 그 초만큼 기다린 뒤 다시 물으세요.

이 호출은 무료입니다.

## 요청

```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()
```

## 파라미터

| 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

## 응답

`data`에 [`ResolvedLink`](/docs/api-reference/serp/response-schema#resolvedlink)를 돌려줍니다. 보낸 링크와 그 링크가 가리키는 주소입니다.

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

## 에러

| 상태 | 코드 | 의미 |
|---|---|---|
| 400 | `INVALID_PARAMS` | `url`이 Google 결과 링크(`https://www.google.com/goto?url=…`)가 아닙니다. |
| 401 | `UNAUTHORIZED` | `x-api-key` 헤더가 없거나, 폐기되었거나 알 수 없는 키입니다. |
| 429 | `UPSTREAM_RATE_LIMITED` | Google이 아직 링크를 열어 주지 않았습니다. `Retry-After` 초만큼 기다린 뒤 다시 물으세요. |
| 503 | `SERVICE_UNAVAILABLE` | 일시적인 장애입니다. 간격을 두고 다시 시도하세요. |

모든 코드는 [Errors](/docs/errors)에 있습니다.

## 가격

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