categorystringbắt buộc
Best Sellers category path taken from an Amazon Best Sellers URL. It may be a category slug or a nested category path.
https://api.sandbase.ai/v1/api/amazon/best-sellersGet the Amazon Best Sellers list for a category path in a chosen marketplace country, with rank, title, price, rating and ASIN, page by page.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
Returns the Amazon Best Sellers list for one category in one marketplace country. Each item has its rank, ASIN, title, star rating, rating count, photo and product URL. You send a category path and can set country and page.
electronics over time.country.curl -X POST "https://api.sandbase.ai/v1/api/amazon/best-sellers" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"category": "electronics"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
category | string | Yes | Best Sellers category path taken from an Amazon Best Sellers URL. It may be a category slug or a nested category path. |
country | string | No | Country code for the Amazon product. |
page | integer | No | Page number for pagination. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"best_sellers": [
{
"asin": "B08JHCVHTY",
"product_num_ratings": 281657,
"product_photo": "https://images-na.ssl-images-amazon.com/images/I/31YHGbJsldL._AC_UL900_SR900,600…",
"product_price": "$11.99",
"product_star_rating": "4.4",
"product_title": "blink plus plan with monthly auto-renewal",
"product_url": "https://www.amazon.com/dp/B08JHCVHTY",
"rank": 1,
"rank_change_label": null
}
],
"category_name": "Electronics",
"country": "US",
"domain": "www.amazon.com"
}
| Field | Meaning |
|---|---|
best_sellers[] | One entry per product on the requested page of the Best Sellers list. |
best_sellers[].rank | Position of the product in the list. 1 is the top seller. |
best_sellers[].asin | Amazon product ID. Use it to look up the product in other APIs. |
best_sellers[].product_title | Product title as shown in the list. |
best_sellers[].product_star_rating / best_sellers[].product_num_ratings | Average star rating as a string, and the number of ratings as an integer. |
best_sellers[].product_url / best_sellers[].product_photo | Link to the product page and link to the product image. |
best_sellers[].rank_change_label | Label for a rank change. It is null in this response. |
category_name / country / domain | The category name, country code and Amazon domain that the list came from. |
category value from an Amazon Best Sellers URL. It can be a slug like electronics or a nested path.page to move through the list. It defaults to 1.country defaults to US. The response echoes it in country and gives the matching domain, such as www.amazon.com.asin values with Amazon Product Details to get more data on a single product.$0.014286 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/amazon/best-sellers" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"country": "US",
"category": "electronics"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
categorystringbắt buộcBest Sellers category path taken from an Amazon Best Sellers URL. It may be a category slug or a nested category path.
countrystringCountry code for the Amazon product.
Mặc định: "US"
Giá trị có thể dùng: US, AU, BR, CA, CN, FR, DE, IN, IT, MX, NL, SG, ES, TR, AE, GB, JP, SA, PL, SE, BE, EG, ZA, IE
pageintegerPage number for pagination.
Mặc định: 1
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Amazon Best SellersAPI này Amazon | $0.014286 mỗi lần gọi | JSON |
Amazon | Từ $0.0033 mỗi lần gọi | JSON |
Amazon | $0.00015 mỗi lần gọi | JSON bất đồng bộ |
Amazon | $0.014286 mỗi lần gọi | JSON |
Amazon | Từ $0.00085 mỗi lần gọi | JSON |
Amazon | $0.01 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/amazon/best-sellers với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.014286 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: category (string). Tùy chọn: country (một trong số US, AU, BR, CA, CN, FR, DE, IN, IT, MX, NL, SG, ES, TR, AE, GB, JP, SA, PL, SE, BE, EG, ZA, IE) và page (integer). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. Amazon Best Sellers chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Amazon.