categoryIdstringจำเป็น
Numeric Amazon category node ID taken from the node query parameter of a category URL.
https://api.sandbase.ai/v1/api/amazon/category-productsGet paginated Amazon products for a numeric category node in a selected country marketplace, with configurable result sorting.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
Returns a page of Amazon products listed under one category node in a chosen country marketplace. You send a numeric categoryId and can set country, sortBy and page. Each product includes its ASIN, title, rating, offer count and listing badges.
product_original_price with the current listed amount.sortBy set to BEST_SELLERS or REVIEWS to find top items.country.curl -X POST "https://api.sandbase.ai/v1/api/amazon/category-products" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"categoryId": "electronics"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
categoryId | string | Yes | Numeric Amazon category node ID taken from the node query parameter of a category URL. |
country | string | No | Country code for the Amazon product. |
page | integer | No | Page number for pagination. |
sortBy | string | No | Sort by. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"country": "US",
"domain": "www.amazon.com",
"products": [
{
"asin": "B0FHJ7TKZM",
"climate_pledge_friendly": true,
"currency": "USD",
"delivery": "Join Prime to get FREE delivery Tomorrow, Nov 4Or Non-members get FREE delivery …",
"has_variations": true,
"is_amazon_choice": false,
"is_best_seller": false,
"is_prime": true,
"product_badge": "Limited Prime deal",
"product_minimum_offer_price": "$39.99",
"product_num_offers": 1,
"product_num_ratings": 8292
}
],
"total_products": 917494
}
| Field | Meaning |
|---|---|
total_products | Total number of products reported for the category. Use it to plan how many pages to request. |
country / domain | The marketplace country code and the Amazon domain used for the results, such as US and www.amazon.com. |
products[].asin | The Amazon product ID. Use it to look up the product in other APIs. |
products[].product_title | The product title as shown in the listing. |
products[].product_price / products[].product_original_price / products[].product_minimum_offer_price | The current listed amount, the original amount before a discount, and the lowest offer amount. All are strings that include the currency symbol. |
products[].currency | The currency code for the amounts, such as USD. |
products[].product_star_rating / products[].product_num_ratings | The average star rating as a string and the number of ratings. |
products[].product_num_offers | The number of offers shown for the product. |
products[].is_prime / products[].is_best_seller / products[].is_amazon_choice / products[].climate_pledge_friendly | Boolean flags for Prime eligibility and listing badges. |
products[].sales_volume | Text such as 10K+ bought in past month. |
products[].product_url / products[].product_photo | The product page link and the main image link. |
categoryId from the node query parameter of an Amazon category URL.page to get more results. It starts at 1 by default.asin to Amazon Product Details.$0.014286 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/amazon/category-products" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"sortBy": "RELEVANCE",
"country": "US",
"categoryId": "electronics"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
categoryIdstringจำเป็นNumeric Amazon category node ID taken from the node query parameter of a category URL.
countrystringCountry code for the Amazon product.
ค่าเริ่มต้น: "US"
ค่าที่เป็นไปได้: US, AU, BR, CA, CN, FR, DE, IN, IT, MX, NL, SG, ES, TR, AE, GB, JP, SA, PL, SE, BE, EG, ZA, IE
sortBystringSort by.
ค่าเริ่มต้น: "RELEVANCE"
ค่าที่เป็นไปได้: RELEVANCE, LOWEST_PRICE, HIGHEST_PRICE, REVIEWS, NEWEST, BEST_SELLERS
pageintegerPage number for pagination.
ค่าเริ่มต้น: 1
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Amazon Products By CategoryAPI นี้ Amazon | $0.014286 ต่อการเรียก | JSON |
Amazon | เริ่มต้นที่ $0.0033 ต่อครั้ง | JSON |
Amazon | $0.00015 ต่อการเรียก | Async JSON |
Amazon | $0.014286 ต่อการเรียก | JSON |
Amazon | เริ่มต้นที่ $0.00085 ต่อครั้ง | JSON |
Amazon | $0.01 ต่อการเรียก | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/amazon/category-products โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.014286 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: categoryId (string). ตัวเลือก: country (หนึ่งใน US, AU, BR, CA, CN, FR, DE, IN, IT, MX, NL, SG, ES, TR, AE, GB, JP, SA, PL, SE, BE, EG, ZA, IE), sortBy (หนึ่งใน RELEVANCE, LOWEST_PRICE, HIGHEST_PRICE, REVIEWS, NEWEST, BEST_SELLERS) และ page (integer). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Amazon Products By Category ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Amazon API แยกต่างหาก