เอกสาร API Hop
เอกสารอ้างอิง Home Depot
ค้นหาสินค้าบน Home Depot และดูรายละเอียดสินค้าและรีวิว
ขีดจำกัดการทำงานพร้อมกัน
AI และ Data ใช้โควตาคำขอพร้อมกันร่วมกันภายในแต่ละหมวดของบัญชี ค่าเริ่มต้นคือ 5 AI / 2 Data และปรับตามแพ็กเกจสมาชิก ขีดจำกัดเฉพาะ endpoint ยังอยู่ภายใต้ขีดจำกัดรวมของหมวด เมื่อถึงขีดจำกัดใดจะส่ง HTTP 429 งานอะซิงโครนัสใช้ช่องจนกว่าการทำงานจะสิ้นสุด
GET /v1/home-depot/search GET /v1/home-depot/product GET /v1/home-depot/reviews ค้นหาสินค้าบน Home Depot และดูรายละเอียดสินค้าและรีวิว
การยืนยันตัวตนและค่าบริการ
ราคามาตรฐานต่อคำขอที่สำเร็จคือ $0.0003 (300 credits) ใช้คีย์ API ของ API Hop การเข้าถึงขึ้นอยู่กับเกตเวย์และสิทธิ์ ดูราคาต่อคำขอที่สำเร็จในแค็ตตาล็อกและบัญชี โดยใช้ราคาบัญชีก่อน ผลลัพธ์ว่างที่สำเร็จก็คิดค่าบริการ คำขอที่ล้มเหลวคืนยอดสำรอง หมดเวลาที่ 60 วินาที ไม่ลองซ้ำหรือแบ่งหน้าอัตโนมัติ ข้อผิดพลาดการชำระไม่เรียกผู้ให้บริการซ้ำ
Authorization: Bearer YOUR_API_KEYHome Depot: ค้นหาสินค้า
GET https://api.apihop.ai/v1/home-depot/search
พารามิเตอร์
| ฟิลด์ | ชนิด | ข้อจำกัด | ตัวอย่าง |
|---|---|---|---|
query | string | คำค้น; query: REQUIRED | coffee |
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 |
country | string | รหัสประเทศหรือร้านค้า (country); country: optional; us, ca; ^[A-Za-z]{2}$ | us |
store | string | ตัวกรองดั้งเดิม (store); country=ca; ค่าเริ่มต้น: 7140; store: optional; ^[0-9]{1,6}$ | - |
sort | string | การเรียงดั้งเดิม (sort); sort: optional; price-asc, price-desc, reviewAvgRating, relevance | price-asc |
filter | string | ตัวกรองดั้งเดิม (filter); filter: optional; ^[A-Za-z0-9]+(-[A-Za-z0-9]+){0,49}$ | - |
minmax | string | ช่วง (min หรือ min,max) (minmax); ตัวอย่าง: price:[100 TO 500], price:[100 TO *]; minmax: optional; UTF-8 bytes: 200 | - |
pagesize | integer | ผลลัพธ์ต่อหน้า (pagesize); pagesize: optional; min: 1; max: 40 | 1 |
delivery_zip | string | รหัสไปรษณีย์จัดส่ง (delivery_zip); delivery_zip: optional; ^[0-9]{5}$ | - |
store_id | string | ตัวกรองดั้งเดิม (store_id); store_id: optional; ^[0-9]{1,4}$ | - |
hd_sort | string | การเรียงดั้งเดิม (hd_sort); hd_sort: optional; top_sellers, price_low_to_high, price_high_to_low, top_rated, best_match | top_sellers |
hd_filter_tokens | string | ตัวกรองดั้งเดิม (hd_filter_tokens); hd_filter_tokens: optional; UTF-8 bytes: 1000; ^[a-z0-9]+(,[a-z0-9]+){0,49}$ | - |
ps | integer | ผลลัพธ์ต่อหน้า (ps); ps: optional; min: 1; max: 24 | 1 |
nao | integer | ตัวกรองดั้งเดิม (nao); nao: optional; min: 0; max: 720 | 0 |
lowerbound | integer | ราคาต่ำสุด (lowerbound); lowerbound: optional; min: 0; max: 2147483647 | 0 |
upperbound | integer | ราคาสูงสุด (upperbound); upperbound: optional; min: 1; max: 2147483647 | 1 |
การตรวจสอบ
รับเฉพาะพารามิเตอร์คิวรี ไม่รับเนื้อหาคำขอ ปฏิเสธค่าที่ไม่รู้จัก ซ้ำ ว่าง หรือไม่ถูกต้อง รองรับ 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})?$/lowerbound <= upperboundpage > 1 => NOT nao AND NOT startcountry = ca => NOT delivery_zip AND NOT store_id AND NOT hd_sort AND NOT hd_filter_tokens AND NOT ps AND NOT nao AND NOT lowerbound AND NOT upperboundcountry = us (default) => NOT store AND NOT sort AND NOT filter AND NOT minmax AND NOT pagesize
ตัวอย่าง
curl --get "https://api.apihop.ai/v1/home-depot/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=coffee"Home Depot: ดูรายละเอียดสินค้า
GET https://api.apihop.ai/v1/home-depot/product
พารามิเตอร์
| ฟิลด์ | ชนิด | ข้อจำกัด | ตัวอย่าง |
|---|---|---|---|
id | string | รหัสสินค้าหรือผู้ขายจากผลค้นหา (id); id: REQUIRED | 336764862 |
device | string | อุปกรณ์; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | ไม่เก็บถาวรคำตอบ; zero_trace: optional | true |
delivery_zip | string | รหัสไปรษณีย์จัดส่ง (delivery_zip); delivery_zip: optional; ^[0-9]{5}$ | - |
store_id | string | ตัวกรองดั้งเดิม (store_id); store_id: optional; ^[0-9]{1,4}$ | - |
การตรวจสอบ
รับเฉพาะพารามิเตอร์คิวรี ไม่รับเนื้อหาคำขอ ปฏิเสธค่าที่ไม่รู้จัก ซ้ำ ว่าง หรือไม่ถูกต้อง รองรับ 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/home-depot/product" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=336764862"Home Depot: ดูรีวิว
GET https://api.apihop.ai/v1/home-depot/reviews
พารามิเตอร์
| ฟิลด์ | ชนิด | ข้อจำกัด | ตัวอย่าง |
|---|---|---|---|
id | string | รหัสสินค้าหรือผู้ขายจากผลค้นหา (id); id: REQUIRED | 336764862 |
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 |
term | string | ตัวกรองดั้งเดิม (term); term: optional; UTF-8 bytes: 1000 | - |
rating | string | ดาว คั่นด้วยจุลภาค; rating: optional; ^[1-5](,[1-5]){0,4}$ | - |
sort_by | string | การเรียง; sort_by: optional; photoreview, mosthelpfull, oldest, newest, highestrating, lowestrating | photoreview |
verified_purchases | boolean | ตัวกรองดั้งเดิม (verified_purchases); verified_purchases: optional | true |
start | integer | ตำแหน่งผลลัพธ์; start: optional; min: 1; max: 100001 | 1 |
pagesize | integer | ผลลัพธ์ต่อหน้า (pagesize); pagesize: optional; min: 1; max: 100 | 1 |
การตรวจสอบ
รับเฉพาะพารามิเตอร์คิวรี ไม่รับเนื้อหาคำขอ ปฏิเสธค่าที่ไม่รู้จัก ซ้ำ ว่าง หรือไม่ถูกต้อง รองรับ 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})?$/NOT (page AND start)page > 1 => NOT nao AND NOT startid: /^[0-9]{1,30}$/
ตัวอย่าง
curl --get "https://api.apihop.ai/v1/home-depot/reviews" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=336764862"ผลลัพธ์และข้อผิดพลาด
คง JSON ต้นฉบับและความแม่นยำ ตัวอย่างคือผลลัพธ์ว่างที่สำเร็จ HTTP 400: ข้อมูล; 401: ยืนยันตัวตน; 402: ยอดเงิน; 403: สิทธิ์; 405: วิธี; 429: จำกัด; 5xx: บริการ เก็บ X-Request-Id
{
"success": true,
"request_id": "example-request",
"data": {
"format": "json",
"content": {
"results": []
}
}
}