API Hop ドキュメント
Google Shopping API リファレンス
Google Shopping の商品を検索し、フィルター、商品詳細、販売店の価格を取得します。
同時実行上限
AI と Data はそれぞれアカウント全体の同時実行枠を共有します。既定値は AI 5 / Data 2 で、サブスクリプションにより変わります。エンドポイント別の設定もカテゴリ全体の上限を超えられません。いずれかの上限に達すると HTTP 429 を返します。非同期タスクは実行終了まで枠を使用します。
GET /v1/google-shopping/search GET /v1/google-shopping/light GET /v1/google-shopping/filters GET /v1/google-shopping/product GET /v1/google-shopping/immersive-product Google Shopping の商品を検索し、フィルター、商品詳細、販売店の価格を取得します。
認証と料金
既定料金は成功したリクエストごとに $0.0003(300 credits)です。 API Hop API キーを使用します。利用可否は有効なゲートウェイと権限によります。成功したリクエストの料金はカタログとアカウントを確認してください。個別料金が優先され、成功した空の結果も課金されます。失敗時は予約額を解放します。タイムアウトは 60 秒で、自動再試行と自動ページングはありません。精算失敗による再呼び出しも行いません。
Authorization: Bearer YOUR_API_KEYGoogle Shopping: 商品を検索
GET https://api.apihop.ai/v1/google-shopping/search
パラメーター
| フィールド | 型 | 制約 | 例 |
|---|---|---|---|
query | string | 検索語; query: optional | 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 |
device | string | 端末; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | レスポンスを保存しない; zero_trace: optional | true |
location | string | 検索の起点; location: optional | - |
latitude | number | 緯度; latitude: optional; min: -90; max: 90 | -90 |
longitude | number | 経度; longitude: optional; min: -180; max: 180 | -180 |
safe | string | 固有の検索フィルター (safe); safe: optional; active, off | active |
uule | string | 固有の検索フィルター (uule); uule: optional; UTF-8 bytes: 4096 | - |
google_domain | string | 地域ドメイン (google_domain); google_domain: optional | - |
start | integer | 結果のオフセット; start: optional; min: 0; max: 1000 | 0 |
shoprs | string | 固有の検索フィルター (shoprs); shoprs: optional; UTF-8 bytes: 16384 | - |
min_price | number | 最低価格 (min_price); min_price: optional; min: 0; max: 1000000000 | 0 |
max_price | number | 最高価格 (max_price); max_price: optional; min: 0; max: 1000000000 | 0 |
sort_by | string | 並び順; sort_by: optional; 1, 2 | 1 |
free_shipping | boolean | 送料無料 (free_shipping); free_shipping: optional | true |
on_sale | boolean | セール商品 (on_sale); on_sale: optional | true |
small_business | boolean | 小規模事業者 (small_business); small_business: optional | true |
入力検証
クエリパラメーターのみ受け付け、本文は使用しません。不明、重複、空、無効な値は拒否されます。JSON のみ対応し、自動ページ取得や再試行は行いません。規則: AND = 両方、OR = または、XOR = いずれか一つ、NOT = 不可、=> = 必須。
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedstring: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integerlanguage: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/latitude => longitude; longitude => latitudeNOT (page AND start)min_price <= max_pricequery OR shoprs: requireduule => NOT location AND NOT latitude AND NOT longitude
例
curl --get "https://api.apihop.ai/v1/google-shopping/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=coffee grinder"Google Shopping: 商品を検索(軽量版)
GET https://api.apihop.ai/v1/google-shopping/light
パラメーター
| フィールド | 型 | 制約 | 例 |
|---|---|---|---|
query | string | 検索語; query: optional | 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 |
device | string | 端末; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | レスポンスを保存しない; zero_trace: optional | true |
location | string | 検索の起点; location: optional | - |
latitude | number | 緯度; latitude: optional; min: -90; max: 90 | -90 |
longitude | number | 経度; longitude: optional; min: -180; max: 180 | -180 |
safe | string | 固有の検索フィルター (safe); safe: optional; active, off | active |
uule | string | 固有の検索フィルター (uule); uule: optional; UTF-8 bytes: 4096 | - |
google_domain | string | 地域ドメイン (google_domain); google_domain: optional | - |
start | integer | 結果のオフセット; start: optional; min: 0; max: 1000 | 0 |
shoprs | string | 固有の検索フィルター (shoprs); shoprs: optional; UTF-8 bytes: 16384 | - |
min_price | number | 最低価格 (min_price); min_price: optional; min: 0; max: 1000000000 | 0 |
max_price | number | 最高価格 (max_price); max_price: optional; min: 0; max: 1000000000 | 0 |
sort_by | string | 並び順; sort_by: optional; 1, 2 | 1 |
free_shipping | boolean | 送料無料 (free_shipping); free_shipping: optional | true |
on_sale | boolean | セール商品 (on_sale); on_sale: optional | true |
small_business | boolean | 小規模事業者 (small_business); small_business: optional | true |
入力検証
クエリパラメーターのみ受け付け、本文は使用しません。不明、重複、空、無効な値は拒否されます。JSON のみ対応し、自動ページ取得や再試行は行いません。規則: AND = 両方、OR = または、XOR = いずれか一つ、NOT = 不可、=> = 必須。
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedstring: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integerlanguage: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/latitude => longitude; longitude => latitudeNOT (page AND start)min_price <= max_pricequery OR shoprs: requireduule => NOT location AND NOT latitude AND NOT longitude
例
curl --get "https://api.apihop.ai/v1/google-shopping/light" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=coffee grinder"Google Shopping: 商品フィルターを取得
GET https://api.apihop.ai/v1/google-shopping/filters
パラメーター
| フィールド | 型 | 制約 | 例 |
|---|---|---|---|
query | string | 検索語; query: REQUIRED | coffee grinder |
country | string | 国または店舗コード (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | 言語; language: optional | - |
location | string | 検索の起点; location: optional | - |
latitude | number | 緯度; latitude: optional; min: -90; max: 90 | -90 |
longitude | number | 経度; longitude: optional; min: -180; max: 180 | -180 |
uule | string | 固有の検索フィルター (uule); uule: optional; UTF-8 bytes: 4096 | - |
google_domain | string | 地域ドメイン (google_domain); google_domain: optional | - |
shoprs | string | 固有の検索フィルター (shoprs); shoprs: optional; UTF-8 bytes: 16384 | - |
device | string | 端末; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | レスポンスを保存しない; zero_trace: optional | true |
入力検証
クエリパラメーターのみ受け付け、本文は使用しません。不明、重複、空、無効な値は拒否されます。JSON のみ対応し、自動ページ取得や再試行は行いません。規則: AND = 両方、OR = または、XOR = いずれか一つ、NOT = 不可、=> = 必須。
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedstring: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integerlanguage: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/latitude => longitude; longitude => latitudeuule => NOT location AND NOT latitude AND NOT longitude
例
curl --get "https://api.apihop.ai/v1/google-shopping/filters" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=coffee grinder"Google Shopping: 商品詳細を取得
GET https://api.apihop.ai/v1/google-shopping/product
パラメーター
| フィールド | 型 | 制約 | 例 |
|---|---|---|---|
id | string | 検索結果の商品または販売者識別子 (id); id: optional | 17755277695162489284 |
query | string | 検索語; query: optional | sony wh-1000xm5 |
country | string | 国または店舗コード (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | 言語; language: optional | - |
zero_trace | boolean | レスポンスを保存しない; zero_trace: optional | true |
page_token | string | 最新の応答からコピーした商品選択トークン (page_token); page_token: optional; UTF-8 bytes: 16384 | - |
offer_view | boolean | 他の販売者の価格 (offer_view); offer_view: optional | true |
入力検証
クエリパラメーターのみ受け付け、本文は使用しません。不明、重複、空、無効な値は拒否されます。JSON のみ対応し、自動ページ取得や再試行は行いません。規則: AND = 両方、OR = または、XOR = いずれか一つ、NOT = 不可、=> = 必須。
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedstring: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integerlanguage: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/id XOR page_token: required; page_token => NOT query AND NOT country AND NOT language AND NOT offer_viewid: /^[0-9]{1,30}$/Tokens: copy the exact token from a fresh response; do not invent or reuse expired tokens
例
curl --get "https://api.apihop.ai/v1/google-shopping/product" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=17755277695162489284" \
--data-urlencode "query=sony wh-1000xm5"Google Shopping: 没入型の商品詳細を取得
GET https://api.apihop.ai/v1/google-shopping/immersive-product
パラメーター
| フィールド | 型 | 制約 | 例 |
|---|---|---|---|
page_token | string | 最新の応答からコピーした商品選択トークン (page_token); page_token: REQUIRED; UTF-8 bytes: 16384 | gprod1.eyJ2IjoxLCJpZCI6IjE3NzU1Mjc3Njk1MTYyNDg5Mjg0IiwicSI6InNvbnkgd2gtMTAwMHhtNSIsImdsIjoidXMiLCJobCI6ImVuIn0 |
more_stores | boolean | 店舗の追加オファー (more_stores); more_stores: optional | true |
next_page_token | string | 次ページのトークン; next_page_token: optional; UTF-8 bytes: 24576 | - |
zero_trace | boolean | レスポンスを保存しない; zero_trace: optional | true |
入力検証
クエリパラメーターのみ受け付け、本文は使用しません。不明、重複、空、無効な値は拒否されます。JSON のみ対応し、自動ページ取得や再試行は行いません。規則: AND = 両方、OR = または、XOR = いずれか一つ、NOT = 不可、=> = 必須。
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedstring: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integerlanguage: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/page_token: copy immersive_product_page_token from a fresh search result; next_page_token requires more_stores = trueTokens: copy the exact token from a fresh response; do not invent or reuse expired tokens
例
curl --get "https://api.apihop.ai/v1/google-shopping/immersive-product" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "page_token=gprod1.eyJ2IjoxLCJpZCI6IjE3NzU1Mjc3Njk1MTYyNDg5Mjg0IiwicSI6InNvbnkgd2gtMTAwMHhtNSIsImdsIjoidXMiLCJobCI6ImVuIn0"レスポンスとエラー
元の JSON と数値精度を保持します。例は空の成功結果です。HTTP 400: 入力、401: 認証、402: 残高、403: アクセス、405: メソッド、429: 制限、5xx: 障害。X-Request-Id を保存してください。
{
"success": true,
"request_id": "example-request",
"data": {
"format": "json",
"content": {
"results": []
}
}
}