categorystringrequerido
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.
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
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.
Empiece a construir
Endpoint de la API de la plataforma con autenticación unificada y seguimiento de uso.
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"
}'Configure su clave de API de SandBase en el entorno de su servidor. Las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve su clave en el servidor. No la exponga en código del navegador.
categorystringrequeridoBest 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.
Valor predeterminado: "US"
Valores posibles: 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.
Valor predeterminado: 1
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
No se ha publicado ninguna respuesta guardada. Ejecute la API en Playground para inspeccionar su respuesta.
Explorar más
| API | Precio | Respuesta |
|---|---|---|
Amazon Best SellersEsta API Amazon | $0.014286 por llamada | JSON |
Amazon | Desde $0.0033 por llamada | JSON |
Amazon | $0.00015 por llamada | JSON asíncrono |
Amazon | $0.014286 por llamada | JSON |
Amazon | Desde $0.00085 por llamada | JSON |
Amazon | $0.01 por llamada | JSON |
Preguntas
Envía una solicitud POST a https://api.sandbase.ai/v1/api/amazon/best-sellers con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.
$0.014286 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.
Requeridos: category (string). Opcionales: country (una de US, AU, BR, CA, CN, FR, DE, IN, IT, MX, NL, SG, ES, TR, AE, GB, JP, SA, PL, SE, BE, EG, ZA, IE) y page (integer). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.
Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.
No. Amazon Best Sellers funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Amazon por separado.