เอกสาร API Hop
เอกสารอ้างอิง Google Shopping
ค้นหาสินค้าบน Google Shopping และดูตัวกรอง รายละเอียดสินค้า และข้อเสนอจากร้านค้า
ขีดจำกัดการทำงานพร้อมกัน
AI และ Data ใช้โควตาคำขอพร้อมกันร่วมกันภายในแต่ละหมวดของบัญชี ค่าเริ่มต้นคือ 5 AI / 2 Data และปรับตามแพ็กเกจสมาชิก ขีดจำกัดเฉพาะ endpoint ยังอยู่ภายใต้ขีดจำกัดรวมของหมวด เมื่อถึงขีดจำกัดใดจะส่ง 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 ของ API Hop การเข้าถึงขึ้นอยู่กับเกตเวย์และสิทธิ์ ดูราคาต่อคำขอที่สำเร็จในแค็ตตาล็อกและบัญชี โดยใช้ราคาบัญชีก่อน ผลลัพธ์ว่างที่สำเร็จก็คิดค่าบริการ คำขอที่ล้มเหลวคืนยอดสำรอง หมดเวลาที่ 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": []
}
}
}