Google Search Autocomplete API - リアルタイムキーワード候補

Googleの検索候補を活用して、強力なキーワードリサーチ、SEO最適化、コンテンツ戦略を実現。100以上の言語でリアルタイムのオートコンプリートデータを取得。

何ができますか?
超高速サジェストAPI

Chromeがバックグラウンドで使用しているのと同じエンドポイント。

100以上の言語に対応

"hl"パラメータで任意のISO言語コードを指定可能。

キーワードリサーチに最適

スクレイピング不要のSEOおよびコンテンツアイデア向けインサイト。

ライブで試す
99.9 % 稼働時間
164.7ms レスポンス
5 req/s
0.01 クレジット / リクエスト

Query Suggest


POST https://api.yeb.to/v1/google/search/autocomplete
パラメータ必須説明
api_key string はい Your API key
q string はい Search phrase
hl string 任意 Language/locale (ISO-639-1), default “en”

curl -X POST https://api.yeb.to/v1/google/search/autocomplete \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_KEY",
  "q": "best electric cars",
  "hl": "en"
}'

レスポンス例

{
  "query": "best electric cars",
  "lang": "en",
  "cnt_results": 5,
  "suggestions": [
    "best electric cars 2025",
    "best electric cars range",
    "best electric cars under 40k",
    "best electric cars for families",
    "best electric cars lease deals"
  ]
}
{"error":"Missing \"q\" (query) parameter","code":400}

レスポンスコード

コード説明
200 Successリクエスト処理成功。
400 Bad Request入力バリデーション失敗。
401 UnauthorizedAPIキーが不足または不正。
403 Forbiddenキーが無効または許可されていません。
429 Rate Limitリクエストが多すぎます。
500 Server Error予期しないエラー。

Autocomplete

google/search/autocomplete 0.0100 credits

Parameters

API Key
query · string · required
Query
query · string · required
Language/locale
query · string

Code Samples


                
                
                
            

Response

Status:
Headers

                
Body

                

Google Search Autocomplete API - リアルタイムキーワード候補 — Practical Guide

A hands-on guide to Query Suggest (Google Autocomplete): what the endpoint does, when to use it, the parameters that matter, and how to read responses to power typeahead, SEO ideation, and discovery UX.

#What Query Suggest solves

Autocomplete shows real user search intents as you type. Use it to reduce zero-result queries, guide users to popular paths, and expand content/keyword ideas by language and locale.

#Endpoint & when to use it

#POST /v1/google/search/autocomplete/autocomplete — Query Suggest (Autocomplete)

  • Best for: Search bars, filters, onboarding wizards, SEO ideation, merchandising queries.
  • How it works: You pass a prefix (q) and optional language (hl), we return ranked suggestions.
  • Typical use: Client debounces keystrokes (e.g., 120–200ms), calls backend which proxies this endpoint.

#Quick start

curl -X POST "https://api.yeb.to/v1/google/search/autocomplete/autocomplete" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: <YOUR_API_KEY>" \
  -d '{ "q": "best electric cars", "hl": "en" }'
// JS Fetch example
fetch('https://api.yeb.to/v1/google/search/autocomplete/autocomplete', {
  method: 'POST',
  headers: {
    'X-API-Key': '<YOUR_API_KEY>',
    'Content-Type': 'application/json',
    'Accept': 'application/json'
  },
  body: JSON.stringify({ q: 'best electric cars', hl: 'en' })
})
.then(r => r.json())
.then(console.log)
.catch(console.error);

#Parameters that actually matter

ParamTypeRequiredPractical guidance
api_key string Yes Use a server-side secret or signed edge token; never expose raw keys in the browser.
q string Yes User’s input prefix. Trim whitespace; short prefixes (1–2 chars) often return fewer/no results.
hl string No Locale (ISO-639-1). Default en. Match your UI language for best relevance.

#Reading & acting on responses

{
  "query": "best electric cars",
  "lang": "en",
  "cnt_results": 5,
  "suggestions": [
    "best electric cars 2025",
    "best electric cars range",
    "best electric cars under 40k",
    "best electric cars for families",
    "best electric cars lease deals"
  ]
}
  • query — the normalized input we processed (useful for debugging/caching).
  • lang — effective language used; verify it matches your UI.
  • cnt_results — fast guard for empty states and rate-limiting logic.
  • suggestions[] — ordered phrases you can render directly in your typeahead.

#Recommended actions

  • Debounce & cache: 120–200ms debounce per user; cache last 20 prefixes per session (and server-side LRU for hot prefixes).
  • Empty state UX: If cnt_results = 0, show recent searches or curated shortcuts.
  • Locale-aware: Tie hl to user’s language selector; don’t infer from IP unless UI also changes.

#Practical recipes

  • Typeahead: On keypress, call with q, render the top 5 suggestions; accept arrow/enter to complete.
  • SEO ideation: Precompute common stems (e.g., “best <category>”), store suggestions for content planning.
  • Facet helpers: In complex search, merge suggestions with your own filters to guide users to valid queries.
  • Localize: Switch hl with the app locale to keep suggestions culturally relevant.

#Troubleshooting & field notes

  1. “Missing q” (400): Ensure you send q as a non-empty string; trim before sending.
  2. Unauthorized (401): Invalid/expired key or wrong header (X-API-Key required).
  3. Few/zero results: Try a longer prefix or switch hl to match your audience language.
  4. Rate limits: Implement client debounce + server-side caching. Backoff on repeated requests for the same prefix.

#API Changelog

2025-10-20
Stabilized cnt_results and lang fields; tightened normalization of q (trim/whitespace collapse).
2025-10-12
Improved suggestion ranking consistency across locales; minor fixes for edge Unicode cases in hl.
2025-10-01
Initial release of /google/search/autocomplete with q and optional hl.

よくある質問

はい!"hl"パラメータで適切なISO言語コードを渡すことで、100以上の言語で候補をリクエストできます(例:スペイン語は"es"、フランス語は"fr")。

ChromeやGoogleサービスが使用しているのと同じ公開APIから取得されるため、結果は通常google.comのものと同一です。地域による違いが生じる場合があります。

人気の用途には、SEO向けキーワードリサーチ、検索ボックスのオートコンプリートUI、コンテンツアイデア、トレンド発見、競合分析、市場調査があります。

候補はGoogleのライブオートコンプリートサービスからリアルタイムで取得され、最新のトレンド検索クエリを確実に取得できます。

お使いのプランに基づいた標準的なレート制限が適用されます。各リクエストは0.01クレジットで、クエリごとに最大10件の候補を提供します。

はい。エラーが発生したリクエストを含め、すべてのリクエストがクレジットを消費します。クレジットは成功・失敗に関係なくリクエスト数に紐づいています。エラーが明らかに当社のプラットフォーム側の問題による場合は、影響を受けたクレジットを復元します(現金での返金はありません)。

[email protected]までご連絡ください。フィードバックを真摯に受け止めています。バグレポートや機能リクエストが意味のあるものであれば、APIを迅速に修正・改善し、お礼として50の無料クレジットを付与します。

APIやエンドポイントによって異なります。一部のエンドポイントは外部ソースのデータを使用しており、より厳しい制限がある場合があります。また、不正利用の防止とプラットフォームの安定性維持のために制限を設けています。各エンドポイントの具体的な制限についてはドキュメントをご確認ください。

クレジットシステムで運営しています。クレジットは前払いの返金不可の単位で、API呼び出しやツールに使用します。クレジットはFIFO(古いものから順に)消費され、購入日から12か月間有効です。ダッシュボードに各購入日とその有効期限が表示されます。

はい。購入したすべてのクレジット(端数残高を含む)は購入から12か月間有効です。未使用のクレジットは有効期間終了時に自動的に期限切れとなり、永久に削除されます。期限切れのクレジットは復元や現金その他の価値への変換はできません。経過措置:2025年9月22日以前に購入したクレジットは2025年9月22日購入として扱われ、2026年9月22日に期限切れとなります(購入時により早い期限が記載されていない限り)。

はい—有効期間内で繰り越されます。未使用のクレジットは利用可能な状態のまま月ごとに繰り越され、購入後12か月で期限切れになります。

クレジットは返金不可です。必要な分だけ購入してください—後からいつでもチャージできます。プラットフォーム側のエラーで課金に失敗した場合、調査後に影響を受けたクレジットを復元する場合があります。現金での返金はありません。

料金はドルではなくクレジットで設定されています。各エンドポイントには独自のコストがあります—上記の「クレジット / リクエスト」バッジをご覧ください。常に正確な支出額がわかります。
← APIに戻る