เอกสาร API Hop
เอกสารอ้างอิง Walmart
ค้นหาสินค้าบน Walmart และดูรายละเอียดสินค้า ข้อเสนอจากผู้ขาย และรีวิว
ขีดจำกัดการทำงานพร้อมกัน
AI และ Data ใช้โควตาคำขอพร้อมกันร่วมกันภายในแต่ละหมวดของบัญชี ค่าเริ่มต้นคือ 5 AI / 2 Data และปรับตามแพ็กเกจสมาชิก ขีดจำกัดเฉพาะ endpoint ยังอยู่ภายใต้ขีดจำกัดรวมของหมวด เมื่อถึงขีดจำกัดใดจะส่ง HTTP 429 งานอะซิงโครนัสใช้ช่องจนกว่าการทำงานจะสิ้นสุด
GET /v1/walmart/search GET /v1/walmart/product GET /v1/walmart/product/sellers GET /v1/walmart/reviews ค้นหาสินค้าบน Walmart และดูรายละเอียดสินค้า ข้อเสนอจากผู้ขาย และรีวิว
การยืนยันตัวตนและค่าบริการ
ราคามาตรฐานต่อคำขอที่สำเร็จคือ $0.0003 (300 credits) ใช้คีย์ API ของ API Hop การเข้าถึงขึ้นอยู่กับเกตเวย์และสิทธิ์ ดูราคาต่อคำขอที่สำเร็จในแค็ตตาล็อกและบัญชี โดยใช้ราคาบัญชีก่อน ผลลัพธ์ว่างที่สำเร็จก็คิดค่าบริการ คำขอที่ล้มเหลวคืนยอดสำรอง หมดเวลาที่ 60 วินาที ไม่ลองซ้ำหรือแบ่งหน้าอัตโนมัติ ข้อผิดพลาดการชำระไม่เรียกผู้ให้บริการซ้ำ
Authorization: Bearer YOUR_API_KEYWalmart: ค้นหาสินค้า
GET https://api.apihop.ai/v1/walmart/search
พารามิเตอร์
| ฟิลด์ | ชนิด | ข้อจำกัด | ตัวอย่าง |
|---|---|---|---|
query | string | คำค้น; query: optional | coffee |
page | integer | หน้าเริ่มจาก 1; page: optional; min: 1; max: 100 | 1 |
device | string | อุปกรณ์; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | ไม่เก็บถาวรคำตอบ; zero_trace: optional | true |
store_id | string | ตัวกรองดั้งเดิม (store_id); store_id: optional; ^[0-9]{1,10}$ | - |
walmart_domain | string | โดเมนภูมิภาค (walmart_domain); walmart_domain: optional; walmart.com, walmart.com.mx | walmart.com |
sort | string | การเรียงดั้งเดิม (sort); sort: optional; price_low, price_high, best_seller, best_match, rating_high, new | price_low |
soft_sort | boolean | ตัวกรองดั้งเดิม (soft_sort); soft_sort: optional | true |
cat_id | string | รหัสหมวดหมู่ (cat_id); cat_id: optional; ^[0-9]+(?:_[0-9]+)*$ | - |
facet | string | ตัวกรองดั้งเดิม (facet); facet: optional; UTF-8 bytes: 4096 | - |
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 |
spelling | boolean | ตัวกรองดั้งเดิม (spelling); spelling: optional | true |
nd_en | boolean | ตัวกรองดั้งเดิม (nd_en); nd_en: optional | true |
include_filters | boolean | ตัวกรองดั้งเดิม (include_filters); include_filters: 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})?$/min_price <= max_pricequery OR cat_id: required
ตัวอย่าง
curl --get "https://api.apihop.ai/v1/walmart/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=coffee"Walmart: ดูรายละเอียดสินค้า
GET https://api.apihop.ai/v1/walmart/product
พารามิเตอร์
| ฟิลด์ | ชนิด | ข้อจำกัด | ตัวอย่าง |
|---|---|---|---|
id | string | รหัสสินค้าหรือผู้ขายจากผลค้นหา (id); id: REQUIRED | 510561525 |
device | string | อุปกรณ์; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | ไม่เก็บถาวรคำตอบ; zero_trace: optional | true |
store_id | string | ตัวกรองดั้งเดิม (store_id); store_id: optional; ^[0-9]{1,10}$ | - |
การตรวจสอบ
รับเฉพาะพารามิเตอร์คิวรี ไม่รับเนื้อหาคำขอ ปฏิเสธค่าที่ไม่รู้จัก ซ้ำ ว่าง หรือไม่ถูกต้อง รองรับ 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: /^[0-9]{1,30}$/
ตัวอย่าง
curl --get "https://api.apihop.ai/v1/walmart/product" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=510561525"Walmart: ดูข้อเสนอจากผู้ขาย
GET https://api.apihop.ai/v1/walmart/product/sellers
พารามิเตอร์
| ฟิลด์ | ชนิด | ข้อจำกัด | ตัวอย่าง |
|---|---|---|---|
id | string | รหัสสินค้าหรือผู้ขายจากผลค้นหา (id); id: REQUIRED | 10543894 |
device | string | อุปกรณ์; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | ไม่เก็บถาวรคำตอบ; zero_trace: optional | true |
store_id | string | ตัวกรองดั้งเดิม (store_id); store_id: REQUIRED; ^[1-9][0-9]{0,9}$ | 100 |
การตรวจสอบ
รับเฉพาะพารามิเตอร์คิวรี ไม่รับเนื้อหาคำขอ ปฏิเสธค่าที่ไม่รู้จัก ซ้ำ ว่าง หรือไม่ถูกต้อง รองรับ 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: /^[0-9]{1,30}$/
ตัวอย่าง
curl --get "https://api.apihop.ai/v1/walmart/product/sellers" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=10543894" \
--data-urlencode "store_id=100"Walmart: ดูรีวิว
GET https://api.apihop.ai/v1/walmart/reviews
พารามิเตอร์
| ฟิลด์ | ชนิด | ข้อจำกัด | ตัวอย่าง |
|---|---|---|---|
id | string | รหัสสินค้าหรือผู้ขายจากผลค้นหา (id); id: REQUIRED | 510561525 |
page | integer | หน้าเริ่มจาก 1; page: optional; min: 1; max: 100 | 1 |
device | string | อุปกรณ์; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | ไม่เก็บถาวรคำตอบ; zero_trace: optional | true |
rating | integer | ดาว คั่นด้วยจุลภาค; rating: optional; min: 1; max: 5 | 1 |
sort | string | การเรียงดั้งเดิม (sort); sort: optional; relevancy, helpful, submission-desc, submission-asc, rating-desc, rating-asc | relevancy |
การตรวจสอบ
รับเฉพาะพารามิเตอร์คิวรี ไม่รับเนื้อหาคำขอ ปฏิเสธค่าที่ไม่รู้จัก ซ้ำ ว่าง หรือไม่ถูกต้อง รองรับ 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: /^[0-9]{1,30}$/
ตัวอย่าง
curl --get "https://api.apihop.ai/v1/walmart/reviews" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=510561525"ผลลัพธ์และข้อผิดพลาด
คง JSON ต้นฉบับและความแม่นยำ ตัวอย่างคือผลลัพธ์ว่างที่สำเร็จ HTTP 400: ข้อมูล; 401: ยืนยันตัวตน; 402: ยอดเงิน; 403: สิทธิ์; 405: วิธี; 429: จำกัด; 5xx: บริการ เก็บ X-Request-Id
{
"success": true,
"request_id": "example-request",
"data": {
"format": "json",
"content": {
"results": []
}
}
}