# ライブ Google オートコンプリート（拡張版）

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/serp/google/autocomplete/live/advanced`

**Tags:** DataForSEO

Google でクエリを入力する際に表示される候補を同期的に返します。`keyword`、`type`、`se_domain`、`location_code`、`language_code`、`check_url`、`datetime`、`spell`、`refinement_chips`、`item_types`、`items_count`、`items` を返します。`advanced` が既定の選択肢です。ランク付けされたリストだけが必要な場合は `regular`、パーサーが何を取りこぼしたかを確認したい場合のみ `html` を使用してください。DataForSEO のエンベロープに包まれます。データは `tasks[0].result`、結果は `tasks[0].status_code` に格納され、拒否されたリクエストでも HTTP 200 が返ります。

### 料金の参考情報

- 計量方式：報告されたレスポンスコスト。
- 参考リクエスト見積もり：0.02 USD。
- 参照用の顧客乗数：1.0。確定済みの顧客金額に再適用しないでください。

参照用のメタデータのみであり、アカウントへの見積もり、保証された価格、支出上限ではありません。リソースクレジットは Felo クレジットではありません。最終的な請求は Felo の請求記録に従います。

## Base URL

- `https://openapi.felo.ai`

## Authentication

- `FeloBearerAuth` (http bearer, bearer format Felo API Key)
- `FeloApiKey` (apiKey in header `X-API-Key`)

## Request body

Required: **no**

### application/json

Schema:

```json
{
  "type": "array",
  "items": {
    "type": [
      "object",
      "null"
    ],
    "oneOf": [
      {
        "type": "object",
        "properties": {
          "keyword": {
            "type": "string",
            "description": "<p><em>keyword</em><p><strong>必須フィールド</strong><p><code>keyword</code> フィールドには<strong>最大 700 文字</strong>を指定できます<p>すべての %## はデコードされます（また、‘+’ 文字は空白文字にデコードされます）<p><code>keyword</code> に “%” 文字を使用する必要がある場合は、“%25” として指定してください；<p><code>keyword</code> に “+” 文字を使用する必要がある場合は、“%2B” として指定してください；</p><br><p>DataForSEO API の <code>keyword</code> フィールドと <code>keywords</code> フィールドのルールと制限については、こちらの <a href=\"https://dataforseo.com/help-center/rules-and-limitations-of-keyword-and-keywords-fields-in-dataforseo-apis\" rel=\"noopener noreferrer\" target=\"_blank\">ヘルプセンター記事</a>を参照してください</p>"
          },
          "location_code": {
            "type": "integer",
            "description": "<p><em>検索エンジンのロケーションコード</em><p><strong><code>location_name</code> を指定しない場合は必須フィールド</strong>；<p>別途 <code>https://api.dataforseo.com/v3/serp/google/locations</code> にリクエストを送信すると、検索エンジンの利用可能なロケーションとその <code>location_code</code> の一覧を取得できます<p>例:<p><code class=\"long-string\">2840</code></p>"
          },
          "language_code": {
            "type": "string",
            "description": "<p><em>検索エンジンの言語コード</em><p><strong><code>language_name</code> を指定しない場合は必須フィールド</strong><p><strong>このフィールドを使用する場合、<code>language_name</code> を指定する必要はありません</strong>；<p>別途 <code>https://api.dataforseo.com/v3/serp/google/languages</code> にリクエストを送信すると、検索エンジンの利用可能な言語とその <code>language_code</code>&nbsp;の一覧を取得できます<em><p></em>例:<em><p></em><code class=\"long-string\">en</code></p>"
          },
          "cursor_pointer": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<p><em>検索バーのカーソル位置</em><p>任意フィールド<p>検索バー内のキーワードにおけるカーソルの水平方向の数値位置；<p>カーソル位置を変更すると、同じシードキーワードでも異なるオートコンプリート候補を取得できます；<p>最小値: <code>0</code><p>デフォルト値: 指定した <code>keyword</code> の最後の文字の番号<p>例:<p><code>|which query are s</code> - <code>\"cursor_pointer\": 0</code><p><code>which query is s|</code> - <code>\"cursor_pointer\": 16</code><p><code>which que|ry is s</code> - <code>\"cursor_pointer\": 9</code></p>"
          },
          "location_name": {
            "type": "string",
            "description": "<p><em>検索エンジンのロケーションの正式名称</em><p><strong><code>location_code</code> を指定しない場合は必須フィールド</strong><p><strong>このフィールドを使用する場合、<code>location_code</code> を指定する必要はありません</strong>；<p>別途 <code>https://api.dataforseo.com/v3/serp/google/autocomplete/locations</code> にリクエストを送信すると、検索エンジンの利用可能なロケーションとその <code>location_name</code> の一覧を取得できます<p>例:<p><code class=\"long-string\">London,England,United Kingdom</code></p>"
          },
          "language_name": {
            "type": "string",
            "description": "<p><em>検索エンジンの言語の正式名称</em><p><strong><code>language_code</code> を指定しない場合は必須フィールド</strong><p><strong>このフィールドを使用する場合、<code>language_code</code> を指定する必要はありません</strong>；<p>別途 <code>https://api.dataforseo.com/v3/serp/google/languages</code> にリクエストを送信すると、検索エンジンの利用可能な言語とその <code>language_name</code> の一覧を取得できます<p>例:<p><code class=\"long-string\">English</code></p>"
          },
          "client": {
            "type": [
              "string",
              "null"
            ],
            "description": "<p><em>オートコンプリート用の検索クライアント</em><p>任意フィールド<p>オートコンプリートの結果は検索クライアントによって異なる場合があります；<p>指定可能な値:<p><code>chrome</code> — Google Chrome で Google 検索を開いたときに使用されます；<p><code>chrome-omni</code> — Chrome のアドレスバーで使用されます；<p><code>gws-wiz</code> — Google 検索のホームページで使用されます；<p><code>gws-wiz-serp</code> — Google 検索の検索結果ページで使用されます；<p><code>safari</code> — Safari ブラウザで Google 検索を開いたときに使用されます；<p><code>firefox</code> — Firefox ブラウザで Google 検索を開いたときに使用されます；<p><code>psy-ab</code> — Google Chrome ブラウザで Google 検索を開いたときに使用される場合があります；<p><code>toolbar</code> — XML を返します；<p><code>youtube</code> — JSONP を返します；<p><code>gws-wiz-local</code> — Google ローカルで使用されます；<p><code>img</code> — Google の画像検索で使用されます；<p><code>products-cc</code> — Google ショッピング検索で使用されます</p>"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "<p><em>ユーザー定義のタスク識別子</em><p>任意フィールド<p><em>文字数上限は 255 です</em><p>このパラメータを使ってタスクを識別し、結果と照合できます<p>指定した <code>tag</code> の値は、レスポンスの <code>data</code> オブジェクトに含まれます</p>"
          }
        },
        "example": [
          {
            "language_code": "en",
            "location_code": 2840,
            "keyword": "albert einstein",
            "client": "gws-wiz-serp"
          }
        ]
      }
    ]
  },
  "example": [
    {
      "language_code": "en",
      "location_code": 2840,
      "keyword": "albert einstein",
      "client": "gws-wiz-serp"
    }
  ]
}
```

## Responses

### 200 — 操作成功

Headers:
- `X-Request-Id` (string) — Felo サポートに問い合わせる際に伝えるリクエスト識別子。

**application/json**

Schema: object | null

```json
{
  "type": [
    "object",
    "null"
  ],
  "oneOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_SerpGoogleAutocompleteLiveAdvancedResponseInfo"
    }
  ]
}
```

### 400 — リクエストを処理できませんでした。リクエストパラメータを確認してください。

### 401 — 有効な Felo API キーが必要です。

### 402 — 請求要件が満たされていないため、リクエストを続行できません。

### 403 — このアカウントにはこの操作を行う権限がありません。

### 429 — リクエストまたは支出の上限に達しました。

### 502 — サービスがリクエストを完了できませんでした。

### 503 — API または請求サービスが一時的に利用できません。

### 504 — リクエストの処理中にサービスがタイムアウトしました。

### default — エラーレスポンス。上流のパススルーレスポンスはプロバイダーの形式を使用する場合があります

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_AmazonLabelElement

`#/components/schemas/Response36Afe1097B20_AmazonLabelElement`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "要素の種類"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "要素のタイトル"
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "絞り込みパラメーター付きの検索 URL"
    },
    "domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "SERP のドメイン"
    }
  }
}
```

### Response36Afe1097B20_Autocomplete

`#/components/schemas/Response36Afe1097B20_Autocomplete`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "要素の種類"
    },
    "rank_group": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>SERP のグループ順位</em><br>同じ <code>type</code> 値を持つ要素のグループ内での位置<br><code>type</code> 値が異なる要素の位置は <code>rank_group</code> から除外されます"
    },
    "rank_absolute": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>SERP の絶対順位</em><br>SERP 内のすべての要素の中での絶対位置"
    },
    "relevance": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>候補キーワードの関連性</em><br>オートコンプリート候補が対象キーワードにどの程度関連しているかを表します<br><code>500</code> から <code>2000</code> までの値をとります<br>値が高いほど、候補の関連性が高くなります<br><strong>注意:</strong> 次の <code>client</code> でのみ使用できます:<br><code>chrome/chrome-omni</code>"
    },
    "suggestion": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>google オートコンプリートのキーワード候補</em>"
    },
    "suggestion_type": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>google オートコンプリート候補のタイプ</em><br><strong>注意:</strong> 次の <code>client</code> でのみ使用できます:<br><code>chrome/chrome-omni</code>"
    },
    "search_query_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>検索結果の URL</em><br>google オートコンプリート候補に関連する検索結果の URL"
    },
    "thumbnail_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>サムネイル画像の URL</em><br>google オートコンプリート候補のサムネイル画像の URL<br><strong>注意:</strong> 次の <code>client</code> でのみ使用できます:<br><code>gws-wiz</code><br><code>gws-wiz-serp</code>"
    },
    "highlighted": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "<em>オートコンプリートでハイライト表示されるキーワード</em><br>検索バーでハイライト表示される google オートコンプリート候補のリストを含みます。<br><strong>注意:</strong> 配列は次の <code>client</code> でのみ使用できます:<br><code>gws-wiz</code><br><code>psy-ab</code><br><code>gws-wiz-local</code>"
    }
  }
}
```

### Response36Afe1097B20_BaseResponseInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseInfo`

```json
{
  "properties": {
    "version": {
      "type": [
        "string",
        "null"
      ],
      "description": "API の現在のバージョン"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "一般的なステータスコード\nレスポンスコードの完全な一覧はこちらです"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "一般的な情報メッセージ\n一般的な情報メッセージの完全な一覧はこちらです"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "合計実行時間（秒）"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "タスクの総コスト（USD）",
      "format": "double"
    },
    "tasks_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "tasks 配列内のタスク数",
      "format": "int64"
    },
    "tasks_error": {
      "type": [
        "integer",
        "null"
      ],
      "description": "エラーで返された tasks 配列内のタスク数",
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_BaseResponseTaskInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo`

```json
{
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ],
      "description": "タスク識別子\n当社システム内で UUID 形式の一意のタスク識別子"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "タスクのステータスコード\nDataForSEO によって生成され、次の範囲の値になります: 10000-60000\nレスポンスコードの完全な一覧はこちらです"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "タスクの情報メッセージ\n一般的な情報メッセージの完全な一覧はこちらです"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "実行時間（秒）"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "タスクの総コスト（USD）",
      "format": "double"
    },
    "result_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "result 配列内の要素数",
      "format": "int64"
    },
    "path": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "URL パス"
    },
    "data": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "object",
          "null"
        ]
      },
      "description": "POST リクエストで指定したものと同じパラメーターを含みます"
    }
  }
}
```

### Response36Afe1097B20_RefinementChipsElement

`#/components/schemas/Response36Afe1097B20_RefinementChipsElement`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "要素の種類"
    },
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "要素のタイトル"
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "絞り込みパラメーター付きの検索 URL"
    },
    "domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "SERP のドメイン"
    },
    "options": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_AmazonLabelElement"
          }
        ]
      },
      "description": "さらなる検索絞り込みオプション"
    }
  }
}
```

### Response36Afe1097B20_RefinementChipsInfo

`#/components/schemas/Response36Afe1097B20_RefinementChipsInfo`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "要素の種類"
    },
    "xpath": {
      "type": [
        "string",
        "null"
      ],
      "description": "要素の XPath"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_RefinementChipsElement"
          }
        ]
      },
      "description": "要素の項目"
    }
  }
}
```

### Response36Afe1097B20_SerpGoogleAutocompleteLiveAdvancedResponseInfo

`#/components/schemas/Response36Afe1097B20_SerpGoogleAutocompleteLiveAdvancedResponseInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseInfo"
    },
    {
      "type": "object",
      "properties": {
        "tasks": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "object",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/Response36Afe1097B20_SerpGoogleAutocompleteLiveAdvancedTaskInfo"
              }
            ]
          },
          "description": "<em>タスクの配列</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_SerpGoogleAutocompleteLiveAdvancedResultInfo

`#/components/schemas/Response36Afe1097B20_SerpGoogleAutocompleteLiveAdvancedResultInfo`

```json
{
  "type": "object",
  "properties": {
    "keyword": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>POST 配列で受信したキーワード<br></em><strong>キーワードはデコードされた %## で返されます（プラス文字 '+' はスペース文字にデコードされます）</strong>"
    },
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "要素の種類"
    },
    "se_domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>POST 配列内の検索エンジンドメイン</em>"
    },
    "location_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>POST 配列内のロケーションコード</em>"
    },
    "language_code": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>POST 配列内の言語コード</em>"
    },
    "check_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>検索エンジン結果への直接 URL</em><br>正確な結果が提供されていることを確認するために使用できます"
    },
    "datetime": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>結果を受信した日時</em><br>UTC 形式：“yyyy-mm-dd hh-mm-ss +00:00”<br>例：<br><code class=\"long-string\">2019-11-15 12:57:46 +00:00</code>"
    },
    "spell": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_SpellInfo"
        }
      ],
      "description": "<em>検索エンジンによる自動修正</em><br>修正されたキーワードに対して検索エンジンが結果を返した場合、検索エンジンによって修正されたキーワードと自動修正のタイプを示します；<br>この場合、<code>null</code> になります"
    },
    "refinement_chips": {
      "type": [
        "object",
        "null"
      ],
      "oneOf": [
        {
          "$ref": "#/components/schemas/Response36Afe1097B20_RefinementChipsInfo"
        }
      ],
      "description": "<em>検索絞り込みチップ</em>"
    },
    "item_types": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "<em>SERP の検索結果タイプ</em><br>SERP で見つかった検索結果のタイプ（<code>items</code>）を含みます。<br>指定可能な項目タイプ：<br><code>autocomplete</code>"
    },
    "se_results_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em> SERP の結果総数</em>",
      "format": "int64"
    },
    "items_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em><strong><code>items</code></strong> 配列で返された結果数</em>",
      "format": "int64"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_Autocomplete"
          }
        ]
      },
      "description": "<em>要素の項目</em>"
    }
  }
}
```

### Response36Afe1097B20_SerpGoogleAutocompleteLiveAdvancedTaskInfo

`#/components/schemas/Response36Afe1097B20_SerpGoogleAutocompleteLiveAdvancedTaskInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo"
    },
    {
      "type": "object",
      "properties": {
        "result": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "object",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/Response36Afe1097B20_SerpGoogleAutocompleteLiveAdvancedResultInfo"
              }
            ]
          },
          "description": "<em>結果の配列</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_SpellInfo

`#/components/schemas/Response36Afe1097B20_SpellInfo`

```json
{
  "properties": {
    "keyword": {
      "type": [
        "string",
        "null"
      ],
      "description": "検索エンジンの自動修正によって取得されたキーワード\n 結果は修正後のキーワードに対して提供されます"
    },
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "自動修正のタイプ\n 指定可能な値：\n did_you_mean、showing_results_for、no_results_found_for、including_results_for\n 注意：Yahoo と Yandex がサポートする自動修正タイプは次のとおりです：\n including_results_for"
    }
  }
}
```
