querystringจำเป็น
Search keywords, e.g. "airpods" or "laptop".
https://api.sandbase.ai/v1/api/slickdeals/searchSearch Slickdeals deals by keyword with optional sort, price, discount, and page filters and get title, price, list price, store, score, and comment count for each deal in one normalized response.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
Search Slickdeals deals by keyword with optional sort, price, discount, and page filters and get title, price, list price, store, score, and comment count for each deal in one normalized response.
curl -X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "slickdeals/search", "query": "airpods"}'
The result is returned in outputs[0].data. Lookups that find nothing fail with a not-found error.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Search keywords, e.g. "airpods" or "laptop". |
hideExpired | boolean | No | Optional; true leaves out deals the community marked expired. |
maxPrice | number | No | Optional maximum deal price in USD; deals without a numeric price are left out. |
minDiscount | integer | No | Optional; keep only deals at least this many percent off the list price, e.g. 50. |
minPrice | number | No | Optional minimum deal price in USD; deals without a numeric price are left out. |
page | integer | No | 1-based page of 40 deals; Slickdeals stops at page 25. Each page is billed as one request. Default 1. |
sort | string | No | Result order; omit for Slickdeals' relevance order (e.g. new for the most recently posted deals first). One of: best_match, new, popular, price_low, price_high. |
Billed at the actual cost of each call, about $0.00213 per request. A call can cost more when the first data source fails and another one answers. Failed calls and lookups that find nothing are not charged.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/slickdeals/search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"query": "airpods"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
querystringจำเป็นSearch keywords, e.g. "airpods" or "laptop".
pageinteger1-based page of 40 deals; Slickdeals stops at page 25. Each page is billed as one request.
ค่าเริ่มต้น: 1
sortstringResult order; omit for Slickdeals' relevance order (e.g. new for the most recently posted deals first).
ค่าที่เป็นไปได้: best_match, new, popular, price_low, price_high
maxPricenumberOptional maximum deal price in USD; deals without a numeric price are left out.
minPricenumberOptional minimum deal price in USD; deals without a numeric price are left out.
hideExpiredbooleanOptional; true leaves out deals the community marked expired.
minDiscountintegerOptional; keep only deals at least this many percent off the list price, e.g. 50.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Slickdeals SearchAPI นี้ Slickdeals | เริ่มต้นที่ $0.00213 ต่อครั้ง | JSON |
Slickdeals | เริ่มต้นที่ $0.00213 ต่อครั้ง | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/slickdeals/search โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
เริ่มต้นที่ $0.00213 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: query (string). ตัวเลือก: page (integer), sort (หนึ่งใน best_match, new, popular, price_low, price_high), maxPrice (number), minPrice (number), hideExpired (boolean) และ minDiscount (integer). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส)
ไม่จำเป็น Slickdeals Search ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Slickdeals API แยกต่างหาก