API Hop ドキュメント
Google Search API リファレンス
Google Search: ウェブ検索 · AI Mode の回答 · AI の概要 · 軽量検索 · 検索候補 · 関連する質問 · フォーラム検索 · 検索広告 · 情報源の詳細 · 広告素材の検索 · 広告素材の詳細.
同時実行上限
AI と Data はそれぞれアカウント全体の同時実行枠を共有します。既定値は AI 5 / Data 2 で、サブスクリプションにより変わります。エンドポイント別の設定もカテゴリ全体の上限を超えられません。いずれかの上限に達すると HTTP 429 を返します。非同期タスクは実行終了まで枠を使用します。
GET /v1/google-search/search GET /v1/google-search/ai-mode GET /v1/google-search/ai-overview GET /v1/google-search/light GET /v1/google-search/autocomplete GET /v1/google-search/related-questions GET /v1/google-search/forums GET /v1/google-search/ads GET /v1/google-search/about-this-result GET /v1/google-search/ads-transparency GET /v1/google-search/ads-transparency-details Google Search: ウェブ検索 · AI Mode の回答 · AI の概要 · 軽量検索 · 検索候補 · 関連する質問 · フォーラム検索 · 検索広告 · 情報源の詳細 · 広告素材の検索 · 広告素材の詳細.
認証と料金
既定料金は成功したリクエストごとに $0.0003(300 credits)です。 API Hop API キーを使用します。利用可否は有効なゲートウェイと権限によります。成功したリクエストの料金はカタログとアカウントを確認してください。個別料金が優先され、成功した空の結果も課金されます。失敗時は予約額を解放します。タイムアウトは 60 秒で、自動再試行と自動ページングはありません。精算失敗による再呼び出しも行いません。
Authorization: Bearer YOUR_API_KEYクエリのみ受け付け、本文は使用しません。不明、重複、空、無効な値は拒否します。JSON のみ対応し、自動ページ取得や再試行は行いません。識別子と継続トークンは最新の応答からコピーしてください。例は説明用です。確認済みの空結果や利用不可の結果を含め、完了した照会ごとに課金されます。XOR = いずれか一つ、NOT = 不可、=> = 必須。
Google Search: ウェブ検索
GET https://api.apihop.ai/v1/google-search/search
パラメーター
| フィールド | 型 | 制約 | 例 |
|---|---|---|---|
url | string | 完全な HTTPS 検索 URL (url); url: optional; maxLength: 32768 | https://www.google.com/search?q=coffee%20beans&hl=en&gl=us |
device_os | string | モバイル OS (device_os); device_os: optional; android, ios | ios |
query | string | 検索語; query: optional; minLength: 1; maxLength: 24576; UTF-8 bytes: 8192 | coffee |
query_encoded | boolean | 検索語は URL エンコード済み (query_encoded); query_encoded: optional | true |
uule | string | 地域 (uule); uule: optional; minLength: 3; maxLength: 4096; ^[wa]\+(?:[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}$ | w+CAIQICIaQXVzdGluLFRleGFzLFVuaXRlZCBTdGF0ZXM |
rewrite_links | boolean | HTML のリダイレクトリンクを解決 (rewrite_links); rewrite_links: optional | true |
zero_trace | boolean | レスポンスを保存しない; zero_trace: optional | true |
device | string | 端末; device: optional; mobile, tablet, desktop | mobile |
safe | string | 結果フィルター (safe); safe: optional; active, off | active |
color_scheme | string | 配色 (color_scheme); color_scheme: optional; light, dark | light |
ludocid | string | 検索モードまたはネイティブ選択値 (ludocid); ludocid: optional; maxLength: 20 | - |
lsig | string | 検索モードまたはネイティブ選択値 (lsig); lsig: optional; maxLength: 2048 | - |
kgmid | string | 検索モードまたはネイティブ選択値 (kgmid); kgmid: optional; maxLength: 131 | - |
si | string | 検索モードまたはネイティブ選択値 (si); si: optional; maxLength: 8192 | - |
ibp | string | 検索モードまたはネイティブ選択値 (ibp); ibp: optional; maxLength: 2048 | - |
uds | string | 検索モードまたはネイティブ選択値 (uds); uds: optional; maxLength: 8192 | - |
pws | integer | 結果フィルター (pws); pws: optional; 0, 1 | 0 |
nfpr | integer | 結果フィルター (nfpr); nfpr: optional; 0, 1 | 0 |
filter | integer | 結果フィルター (filter); filter: optional; 0, 1 | 0 |
lr | string | 言語フィルター (lr); lr: optional; ^lang_[a-z]{2,3}(\|lang_[a-z]{2,3})*$ | lang_fr |
cr | string | 国フィルター (cr); cr: optional; ^country[A-Za-z]{2}(\|country[A-Za-z]{2})*$ | countryFR |
start | integer | 結果のオフセット; start: optional; min: 0 | 10 |
google_domain | string | 検索エンジンのドメイン (google_domain); google_domain: optional; google.com, google.ad, google.ae, google.com.af, google.com.ag, google.al, google.am, google.co.ao, google.com.ar, google.as, ... 186 | google.co.uk |
gl | string | 国フィルター (gl); gl: optional; ad, ae, af, ag, ai, al, am, an, ao, aq, ... 252 | ad |
hl | string | 言語フィルター (hl); hl: optional; af, sq, am, ar, hy, az, bn, bg, my, ca, ... 76 | af |
location | string | 検索の起点; 出典; location: optional; minLength: 1 | Austin,Texas,United States |
coordinates | string | JSON 座標(latitude、longitude) (coordinates); coordinates: optional | {"latitude":30.2672,"longitude":-97.7431} |
radius | integer | 半径(メートル) (radius); radius: optional; min: 1; max: 1000 | 150 |
tbs | string | 期間 (tbs); tbs: optional | qdr:h |
tbm | string | 検索モードまたはネイティブ選択値 (tbm); tbm: optional; nws, vid, isch, shop, lcl, bks | nws |
udm | integer | 検索モードまたはネイティブ選択値 (udm); udm: optional; 1, 2, 6, 7, 12, 14, 28, 36, 50 | 2 |
入力検証
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectedcoordinates: JSON object {"latitude":number,"longitude":number}; latitude -90..90; longitude -180..180; NOT (location AND coordinates); NOT (uule AND location); NOT (uule AND coordinates)radius => coordinates; NOT uule; desktop radius <= 199 meters, mobile/tablet radius <= 1000 metersdevice_os => device = mobile OR tabletquery XOR url; tbm XOR udm when selecting a search tabquery: <= 8192 UTF-8 bytes after decoding; query_encoded=true => URL-encoded query value, not a URL or q= prefixurl: HTTPS Google /search with nonempty q or as_q; only device, device_os, zero_trace and rewrite_links may accompany urlludocid: nonzero unsigned 64-bit decimal string; preserve numeric precision
例
curl --get "https://api.apihop.ai/v1/google-search/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=coffee"Google Search: AI Mode の回答
GET https://api.apihop.ai/v1/google-search/ai-mode
パラメーター
| フィールド | 型 | 制約 | 例 |
|---|---|---|---|
query | string | 検索語; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192 | how do solar panels work |
country | string | 国フィルター (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | 言語; language: optional | - |
device | string | 端末; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | レスポンスを保存しない; zero_trace: optional | true |
location | string | 検索の起点; location: optional | - |
coordinates | string | JSON 座標(latitude、longitude) (coordinates); coordinates: optional | {"latitude":30.2672,"longitude":-97.7431} |
uule | string | 地域 (uule); uule: optional; maxLength: 4096 | - |
image_url | string | 公開 HTTPS 画像 URL (image_url); image_url: optional; maxLength: 2048 | - |
continuable | boolean | 追加質問用トークンを有効化 (continuable); continuable: optional | true |
subsequent_request_token | string | 最新の応答から取得したトークン (subsequent_request_token); subsequent_request_token: optional; maxLength: 24576 | - |
入力検証
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectedcoordinates: JSON object {"latitude":number,"longitude":number}; latitude -90..90; longitude -180..180; NOT (location AND coordinates); NOT (uule AND location); NOT (uule AND coordinates)continuable=true: return a conversation token; subsequent_request_token: new query, optional image_url, same original locale/location; token expires after 15 minutes or earlier at the sourceimage_url: public HTTPS image URL; no credentials, fragment or port
例
curl --get "https://api.apihop.ai/v1/google-search/ai-mode" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=how do solar panels work"Google Search: AI の概要
GET https://api.apihop.ai/v1/google-search/ai-overview
パラメーター
| フィールド | 型 | 制約 | 例 |
|---|---|---|---|
query | string | 検索語; query: optional; minLength: 1; UTF-8 bytes: 8192 | how do solar panels work |
country | string | 国フィルター (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | 言語; language: optional | - |
device | string | 端末; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | レスポンスを保存しない; zero_trace: optional | true |
page_token | string | 最新の応答から取得したトークン (page_token); page_token: optional; maxLength: 24576 | - |
入力検証
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectedquery XOR page_token; page_token: copy from a fresh search response; preserve original query and localepage_token: use within one minute; valid page without AI Overview => feature_available=false
例
curl --get "https://api.apihop.ai/v1/google-search/ai-overview" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=how do solar panels work"Google Search: 軽量検索
GET https://api.apihop.ai/v1/google-search/light
パラメーター
| フィールド | 型 | 制約 | 例 |
|---|---|---|---|
query | string | 検索語; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192 | coffee |
country | string | 国フィルター (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | 言語; language: optional | - |
page | integer | ページ番号(1 から); page: optional; min: 1; max: 1000 | 1 |
location | string | 検索の起点; location: optional | - |
safe | string | 結果フィルター (safe); safe: optional; active, off | active |
time_range | string | 期間 (time_range); time_range: optional | - |
device | string | 端末; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | レスポンスを保存しない; zero_trace: optional | true |
coordinates | string | JSON 座標(latitude、longitude) (coordinates); coordinates: optional | {"latitude":30.2672,"longitude":-97.7431} |
uule | string | 地域 (uule); uule: optional; maxLength: 4096 | - |
google_domain | string | 検索エンジンのドメイン (google_domain); google_domain: optional | - |
lr | string | 言語フィルター (lr); lr: optional; ^lang_[a-z]{2,3}(?:\|lang_[a-z]{2,3})*$ | - |
nfpr | integer | 結果フィルター (nfpr); nfpr: optional; 0, 1 | 0 |
filter | integer | 結果フィルター (filter); filter: optional; 0, 1 | 0 |
start | integer | 結果のオフセット; start: optional; min: 0; max: 1000 | 0 |
入力検証
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectedcoordinates: JSON object {"latitude":number,"longitude":number}; latitude -90..90; longitude -180..180; NOT (location AND coordinates); NOT (uule AND location); NOT (uule AND coordinates)
例
curl --get "https://api.apihop.ai/v1/google-search/light" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=coffee"Google Search: 検索候補
GET https://api.apihop.ai/v1/google-search/autocomplete
パラメーター
| フィールド | 型 | 制約 | 例 |
|---|---|---|---|
query | string | 検索語; query: REQUIRED; minLength: 1; maxLength: 100; UTF-8 bytes: 8192 | coffee |
country | string | 国フィルター (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | 言語; language: optional | - |
limit | integer | 結果の上限; limit: optional; min: 1; max: 20 | 1 |
device | string | 端末; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | レスポンスを保存しない; zero_trace: optional | true |
client | string | 検索モードまたはネイティブ選択値 (client); client: optional; chrome, chrome-omni, gws-wiz, safari, firefox, psy-ab, toolbar, youtube, gws-wiz-local | chrome |
cp | integer | カーソル位置 (cp); cp: optional; min: 0; max: 8192 | 0 |
入力検証
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejected
例
curl --get "https://api.apihop.ai/v1/google-search/autocomplete" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=coffee"Google Search: 関連する質問
GET https://api.apihop.ai/v1/google-search/related-questions
パラメーター
| フィールド | 型 | 制約 | 例 |
|---|---|---|---|
query | string | 検索語; query: optional; minLength: 1; UTF-8 bytes: 8192 | how do solar panels work |
country | string | 国フィルター (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | 言語; language: optional | - |
device | string | 端末; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | レスポンスを保存しない; zero_trace: optional | true |
next_page_token | string | 最新の応答から取得したトークン (next_page_token); next_page_token: optional; minLength: 1; maxLength: 24576 | - |
入力検証
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectednext_page_token: copy from a fresh response; keep original query, localization and filters; do not fabricate tokensquery OR next_page_token: required; result tokens expand an individual question
例
curl --get "https://api.apihop.ai/v1/google-search/related-questions" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=how do solar panels work"Google Search: フォーラム検索
GET https://api.apihop.ai/v1/google-search/forums
パラメーター
| フィールド | 型 | 制約 | 例 |
|---|---|---|---|
query | string | 検索語; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192 | best coffee grinder |
country | string | 国フィルター (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | 言語; language: optional | - |
page | integer | ページ番号(1 から); page: optional; min: 1; max: 1000 | 1 |
location | string | 検索の起点; location: optional | - |
safe | string | 結果フィルター (safe); safe: optional; active, off | active |
time_range | string | 期間 (time_range); time_range: optional | - |
device | string | 端末; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | レスポンスを保存しない; zero_trace: optional | true |
coordinates | string | JSON 座標(latitude、longitude) (coordinates); coordinates: optional | {"latitude":30.2672,"longitude":-97.7431} |
uule | string | 地域 (uule); uule: optional; maxLength: 4096 | - |
nfpr | integer | 結果フィルター (nfpr); nfpr: optional; 0, 1 | 0 |
filter | integer | 結果フィルター (filter); filter: optional; 0, 1 | 0 |
start | integer | 結果のオフセット; start: optional; min: 0; max: 1000 | 0 |
tbs | string | 期間 (tbs); tbs: optional; maxLength: 512 | - |
period_unit | string | 期間 (period_unit); period_unit: optional; s, n, h, d, w, m, y | s |
period_value | integer | 期間 (period_value); period_value: optional; min: 1; max: 2147483647 | 1 |
start_date | string | 日付の境界 (start_date); start_date: optional; ^[0-9]{8}$ | - |
end_date | string | 日付の境界 (end_date); end_date: optional; ^[0-9]{8}$ | - |
入力検証
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectedcoordinates: JSON object {"latitude":number,"longitude":number}; latitude -90..90; longitude -180..180; NOT (location AND coordinates); NOT (uule AND location); NOT (uule AND coordinates)
例
curl --get "https://api.apihop.ai/v1/google-search/forums" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=best coffee grinder"Google Search: 検索広告
GET https://api.apihop.ai/v1/google-search/ads
パラメーター
| フィールド | 型 | 制約 | 例 |
|---|---|---|---|
query | string | 検索語; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192 | car insurance |
country | string | 国フィルター (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | 言語; language: optional | - |
location | string | 検索の起点; location: optional | - |
device | string | 端末; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | レスポンスを保存しない; zero_trace: optional | true |
coordinates | string | JSON 座標(latitude、longitude) (coordinates); coordinates: optional | {"latitude":30.2672,"longitude":-97.7431} |
safe | string | 結果フィルター (safe); safe: optional; active, off | active |
nfpr | integer | 結果フィルター (nfpr); nfpr: optional; 0, 1 | 0 |
入力検証
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectedcoordinates: JSON object {"latitude":number,"longitude":number}; latitude -90..90; longitude -180..180; NOT (location AND coordinates); NOT (uule AND location); NOT (uule AND coordinates)valid page without ads => ads_available=false; this endpoint reads ads and does not create campaigns
例
curl --get "https://api.apihop.ai/v1/google-search/ads" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=car insurance"Google Search: 情報源の詳細
GET https://api.apihop.ai/v1/google-search/about-this-result
パラメーター
| フィールド | 型 | 制約 | 例 |
|---|---|---|---|
query | string | 検索語 (website URL; query XOR req_token); query: optional; minLength: 1; UTF-8 bytes: 8192 | https://www.starbucks.com/ |
req_token | string | 最新の応答から取得したトークン (req_token); req_token: optional; maxLength: 16384; ^[A-Za-z0-9_-]+={0,2}$ | - |
country | string | 国フィルター (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | 言語; language: optional | - |
google_domain | string | 検索エンジンのドメイン (google_domain); google_domain: optional | - |
zero_trace | boolean | レスポンスを保存しない; zero_trace: optional | true |
入力検証
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectedquery XOR req_token; query: website URL; req_token: copy from a fresh About This Result selector
例
curl --get "https://api.apihop.ai/v1/google-search/about-this-result" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=https://www.starbucks.com/"Google Search: 広告素材の検索
GET https://api.apihop.ai/v1/google-search/ads-transparency
パラメーター
| フィールド | 型 | 制約 | 例 |
|---|---|---|---|
query | string | 検索語; query: optional; minLength: 1; UTF-8 bytes: 8192 | nike.com |
country | string | 国フィルター (country); country: optional; ad, ae, af, ag, ai, al, am, ao, aq, ar, ... 244; ^[A-Za-z]{2}$ | ad |
language | string | 言語; language: optional | - |
limit | integer | 結果の上限; limit: optional; min: 1; max: 100 | 1 |
id | string | ネイティブ識別子 (id); id: optional | - |
category | string | 検索モードまたはネイティブ選択値 (category); category: optional; image, text, video | image |
next_page_token | string | 最新の応答から取得したトークン (next_page_token); next_page_token: optional; minLength: 1; maxLength: 24576 | - |
device | string | 端末; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | レスポンスを保存しない; zero_trace: optional | true |
advertiser_id | string | ネイティブ識別子 (advertiser_id); advertiser_id: optional; maxLength: 3499 | - |
platform | string | 検索モードまたはネイティブ選択値 (platform); platform: optional; PLAY, MAPS, SEARCH, SHOPPING, YOUTUBE | PLAY |
political_ads | boolean | 結果フィルター (political_ads); political_ads: optional | true |
get_advertiser | boolean | 広告主の詳細 (get_advertiser); get_advertiser: optional | true |
region | string | 地域 (region); 例: US=2840; region: optional; anywhere, 2004, 2008, 2010, 2012, 2016, 2020, 2024, 2028, 2031, ... 245; maxLength: 8 | anywhere |
start_date | string | 日付の境界 (start_date); start_date: optional; ^[0-9]{8}$ | - |
end_date | string | 日付の境界 (end_date); end_date: optional; ^[0-9]{8}$ | - |
creative_format | string | 検索モードまたはネイティブ選択値 (creative_format); creative_format: optional; image, text, video | image |
入力検証
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectednext_page_token: copy from a fresh response; keep original query, localization and filters; do not fabricate tokensexactly one of query, id, advertiser_id; category XOR creative_format when selecting a creative formatid, advertiser_id: AR-prefixed IDs, comma-separated, up to 100; get_advertiser=true => exactly one advertiser IDpolitical_ads=true => explicit country or region other than anywhere; start_date < end_date; dates must exist
例
curl --get "https://api.apihop.ai/v1/google-search/ads-transparency" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=nike.com"Google Search: 広告素材の詳細
GET https://api.apihop.ai/v1/google-search/ads-transparency-details
パラメーター
| フィールド | 型 | 制約 | 例 |
|---|---|---|---|
advertiser_id | string | ネイティブ識別子 (advertiser_id); advertiser_id: REQUIRED; maxLength: 34; ^AR[0-9]{1,32}$ | ${ADVERTISER_ID} |
creative_id | string | ネイティブ識別子 (creative_id); creative_id: REQUIRED; maxLength: 34; ^CR[0-9]{1,32}$ | ${CREATIVE_ID} |
region | string | 地域 (region); region: optional; anywhere, 2004, 2008, 2010, 2012, 2016, 2020, 2024, 2028, 2031, ... 245 | anywhere |
zero_trace | boolean | レスポンスを保存しない; zero_trace: optional | true |
入力検証
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectedadvertiser_id AND creative_id: copy from a fresh ads-transparency response; sample identifiers do not prove availability
例
curl --get "https://api.apihop.ai/v1/google-search/ads-transparency-details" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "advertiser_id=${ADVERTISER_ID}" \
--data-urlencode "creative_id=${CREATIVE_ID}"レスポンスとエラー
元の JSON と数値精度を保持します。例は空の成功結果です。HTTP 400: 入力、401: 認証、402: 残高、403: アクセス、405: メソッド、429: 制限、5xx: 障害。X-Request-Id を保存してください。
{
"success": true,
"request_id": "example-request",
"data": {
"format": "json",
"content": {
"results": []
}
}
}