API Hop

เอกสาร

เอกสาร API Hop

เอกสารอ้างอิง Walmart

ค้นหาสินค้าบน Walmart และดูรายละเอียดสินค้า ข้อเสนอจากผู้ขาย และรีวิว

ขีดจำกัดการทำงานพร้อมกัน

AI และ Data ใช้โควตาคำขอพร้อมกันร่วมกันภายในแต่ละหมวดของบัญชี ค่าเริ่มต้นคือ 5 AI / 2 Data และปรับตามแพ็กเกจสมาชิก ขีดจำกัดเฉพาะ endpoint ยังอยู่ภายใต้ขีดจำกัดรวมของหมวด เมื่อถึงขีดจำกัดใดจะส่ง HTTP 429 งานอะซิงโครนัสใช้ช่องจนกว่าการทำงานจะสิ้นสุด

GET /v1/walmart/search
ขีดจำกัดเริ่มต้น: 2
GET /v1/walmart/product
ขีดจำกัดเริ่มต้น: 2
GET /v1/walmart/product/sellers
ขีดจำกัดเริ่มต้น: 2
GET /v1/walmart/reviews
ขีดจำกัดเริ่มต้น: 2

ค้นหาสินค้าบน Walmart และดูรายละเอียดสินค้า ข้อเสนอจากผู้ขาย และรีวิว

การยืนยันตัวตนและค่าบริการ

ราคามาตรฐานต่อคำขอที่สำเร็จคือ $0.0003 (300 credits) ใช้คีย์ API ของ API Hop การเข้าถึงขึ้นอยู่กับเกตเวย์และสิทธิ์ ดูราคาต่อคำขอที่สำเร็จในแค็ตตาล็อกและบัญชี โดยใช้ราคาบัญชีก่อน ผลลัพธ์ว่างที่สำเร็จก็คิดค่าบริการ คำขอที่ล้มเหลวคืนยอดสำรอง หมดเวลาที่ 60 วินาที ไม่ลองซ้ำหรือแบ่งหน้าอัตโนมัติ ข้อผิดพลาดการชำระไม่เรียกผู้ให้บริการซ้ำ

http
Authorization: Bearer YOUR_API_KEY

Walmart: ค้นหาสินค้า

GET https://api.apihop.ai/v1/walmart/search

พารามิเตอร์

ฟิลด์ชนิดข้อจำกัดตัวอย่าง
querystringคำค้น; query: optionalcoffee
pageintegerหน้าเริ่มจาก 1; page: optional; min: 1; max: 1001
devicestringอุปกรณ์; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanไม่เก็บถาวรคำตอบ; zero_trace: optionaltrue
store_idstringตัวกรองดั้งเดิม (store_id); store_id: optional; ^[0-9]{1,10}$-
walmart_domainstringโดเมนภูมิภาค (walmart_domain); walmart_domain: optional; walmart.com, walmart.com.mxwalmart.com
sortstringการเรียงดั้งเดิม (sort); sort: optional; price_low, price_high, best_seller, best_match, rating_high, newprice_low
soft_sortbooleanตัวกรองดั้งเดิม (soft_sort); soft_sort: optionaltrue
cat_idstringรหัสหมวดหมู่ (cat_id); cat_id: optional; ^[0-9]+(?:_[0-9]+)*$-
facetstringตัวกรองดั้งเดิม (facet); facet: optional; UTF-8 bytes: 4096-
min_pricenumberราคาต่ำสุด (min_price); min_price: optional; min: 0; max: 10000000000
max_pricenumberราคาสูงสุด (max_price); max_price: optional; min: 0; max: 10000000000
spellingbooleanตัวกรองดั้งเดิม (spelling); spelling: optionaltrue
nd_enbooleanตัวกรองดั้งเดิม (nd_en); nd_en: optionaltrue
include_filtersbooleanตัวกรองดั้งเดิม (include_filters); include_filters: optionaltrue

การตรวจสอบ

รับเฉพาะพารามิเตอร์คิวรี ไม่รับเนื้อหาคำขอ ปฏิเสธค่าที่ไม่รู้จัก ซ้ำ ว่าง หรือไม่ถูกต้อง รองรับ JSON เท่านั้น ไม่มีการเปลี่ยนหน้าหรือลองใหม่อัตโนมัติ กฎ: AND = ทั้งคู่, OR = หรือ, XOR = อย่างใดอย่างหนึ่ง, NOT = ห้ามใช้, => = ต้องมี

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • string: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integer
  • language: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/
  • min_price <= max_price
  • query OR cat_id: required

ตัวอย่าง

bash
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

พารามิเตอร์

ฟิลด์ชนิดข้อจำกัดตัวอย่าง
idstringรหัสสินค้าหรือผู้ขายจากผลค้นหา (id); id: REQUIRED510561525
devicestringอุปกรณ์; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanไม่เก็บถาวรคำตอบ; zero_trace: optionaltrue
store_idstringตัวกรองดั้งเดิม (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 supported
  • string: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integer
  • language: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/
  • id: /^[0-9]{1,30}$/

ตัวอย่าง

bash
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

พารามิเตอร์

ฟิลด์ชนิดข้อจำกัดตัวอย่าง
idstringรหัสสินค้าหรือผู้ขายจากผลค้นหา (id); id: REQUIRED10543894
devicestringอุปกรณ์; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanไม่เก็บถาวรคำตอบ; zero_trace: optionaltrue
store_idstringตัวกรองดั้งเดิม (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 supported
  • string: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integer
  • language: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/
  • id: /^[0-9]{1,30}$/

ตัวอย่าง

bash
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

พารามิเตอร์

ฟิลด์ชนิดข้อจำกัดตัวอย่าง
idstringรหัสสินค้าหรือผู้ขายจากผลค้นหา (id); id: REQUIRED510561525
pageintegerหน้าเริ่มจาก 1; page: optional; min: 1; max: 1001
devicestringอุปกรณ์; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanไม่เก็บถาวรคำตอบ; zero_trace: optionaltrue
ratingintegerดาว คั่นด้วยจุลภาค; rating: optional; min: 1; max: 51
sortstringการเรียงดั้งเดิม (sort); sort: optional; relevancy, helpful, submission-desc, submission-asc, rating-desc, rating-ascrelevancy

การตรวจสอบ

รับเฉพาะพารามิเตอร์คิวรี ไม่รับเนื้อหาคำขอ ปฏิเสธค่าที่ไม่รู้จัก ซ้ำ ว่าง หรือไม่ถูกต้อง รองรับ JSON เท่านั้น ไม่มีการเปลี่ยนหน้าหรือลองใหม่อัตโนมัติ กฎ: AND = ทั้งคู่, OR = หรือ, XOR = อย่างใดอย่างหนึ่ง, NOT = ห้ามใช้, => = ต้องมี

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • string: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integer
  • language: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/
  • id: /^[0-9]{1,30}$/

ตัวอย่าง

bash
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

json
{
  "success": true,
  "request_id": "example-request",
  "data": {
    "format": "json",
    "content": {
      "results": []
    }
  }
}