categorystringobrigatório
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.
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
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.
Comece a construir
Endpoint da API da plataforma com autenticação unificada e rastreamento 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"
}'Defina sua chave da API SandBase no ambiente do seu servidor. As requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha sua chave no servidor. Não a exponha em código do navegador.
categorystringobrigatórioBest 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.
Padrão: "US"
Valores possíveis: 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.
Padrão: 1
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
Nenhuma resposta salva foi publicada. Execute a API no Playground para inspecionar a resposta.
Explorar mais
| API | Preço | Resposta |
|---|---|---|
Amazon Best SellersEsta API Amazon | $0.014286 por chamada | JSON |
Amazon | A partir de $0.0033 por chamada | JSON |
Amazon | $0.00015 por chamada | JSON assíncrono |
Amazon | $0.014286 por chamada | JSON |
Amazon | A partir de $0.00085 por chamada | JSON |
Amazon | $0.01 por chamada | JSON |
Perguntas
Envie uma solicitação POST para https://api.sandbase.ai/v1/api/amazon/best-sellers com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.
$0.014286 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.
Obrigatórios: category (string). Opcionais: country (um 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) e page (integer). A tabela de Parâmetros e o Playground nesta página listam todos os campos.
Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.
Não. Amazon Best Sellers funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Amazon separadamente.