Amazon Best Sellers
POST /api/v1/amazon/bestsellers
Get the current Amazon Best Sellers ranking for a category, with rank, title, price and rating.
Overview
Get the current Amazon Best Sellers ranking for a category, with rank, title, price and rating.
POST /api/v1/amazon/bestsellers
Method: POST Path: /api/v1/amazon/bestsellers Category: E-Commerce
Request Parameters
Endpoint Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
| category | string | Required | Amazon Best Sellers category slug as it appears in the URL, e.g. electronics, books, toys-and-games. |
| limit | integer | Optional | Maximum number of ranked products to return (1-50). |
| location | string | Optional | Two-letter country code to localise results (e.g. US, GB, DE). |
Request Example
Amazon Best Sellers Request Examples
curl -X POST "https://api.dataguru.cc/api/v1/amazon/bestsellers" \ -H "Authorization: Api-Key YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"category": "example", "limit": "10", "location": "US"}'
Response Example
200 OK
Typical 200 OK JSON response structure with envelope metadata.
{ "bestseller_type": "bestsellers", "category_id": "1234567890", "category": "string", "title": "string", "results": [ { "type": "string", "rank": 0, "title": "string", "asin": "string", "url": "https://example.com/...", "image": "https://example.com/...", "stars": 0.0, "total_reviews": 0, "price": "string", "extracted_price": 0.0, "position": 0 } ], "pagination": { "current_page": 0, "total_pages": 0 }, "_metadata": { "request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e", "execution_time_ms": 842, "endpoint": "Amazon Best Sellers", "mode": "live", "format": "json", "timestamp": "2026-01-01T12:00:00+00:00" } }
Response Schema
Fields returned in a successful response. Nested fields use dot notation and `[]` marks items of a list. Fields that are not required can be missing or `null` when the source does not provide them. Every response also includes a `_metadata` block.
Response Fields
| Field | Type | Required | Description |
|---|---|---|---|
| bestseller_type | string | Yes | Ranking type identifier (default: 'bestsellers'). |
| category_id | string | Yes | Category slug used in the request (e.g. 'electronics', 'books'). |
| category | string | Yes | Human-readable category department name. |
| title | string | Yes | Page heading as rendered by Amazon. |
| results | array<object> | Yes | Ranked products in the Best Sellers category. |
| results[].type | string | Yes | Listing ranking category type ('bestsellers'). |
| results[].rank | integer | null | Yes | Amazon sales rank number (e.g. 1, 2, 3). |
| results[].title | string | Yes | Product display title. |
| results[].asin | string | Yes | Amazon Standard Identification Number. |
| results[].url | string | Yes | Direct URL to product listing. |
| results[].image | string | Yes | Product image URL. |
| results[].stars | number | null | Yes | Float rating score out of 5 (e.g. 4.7). |
| results[].total_reviews | integer | Yes | Integer review count. |
| results[].price | string | Yes | Price as formatted string (e.g. '$19.99'). |
| results[].extracted_price | number | null | Yes | Parsed numeric price as float or integer. |
| results[].position | integer | Yes | Item order position in the parsed page. |
| pagination | object | Yes | Best Sellers pagination details. |
| pagination.current_page | integer | Yes | Current active page number. |
| pagination.total_pages | integer | Yes | Total pages available in category. |
Asynchronous Requests
Long-running requests can be processed in the background. Add `?async=true` (or the `Prefer: respond-async` header) to receive a `job_id` immediately, then poll the job until its status is `COMPLETED`.
Async Workflow
curl -X POST "https://api.dataguru.cc/api/v1/amazon/bestsellers?async=true" \ -H "Authorization: Api-Key YOUR_API_KEY" # 202 Accepted { "success": true, "status": "SUBMITTED", "job_id": "0ca215ce-244f-4b28-b481-dc1b551983c8", "status_url": "/api/v1/jobs/0ca215ce-244f-4b28-b481-dc1b551983c8/" }
Batch Processing
To run many requests at half price, upload them as a CSV file: one row per request, with the parameter names above as the header row. Rows run in the background within 24 hours (up to 7 days for large files) and each successful row costs 50% of the price below. Poll /api/v1/batches/{batch_id}/ for progress and download results.json when it has finished. See the Batch Processing guide for details.
Batch Workflow
category,limit,location example,10,US
Pricing & Rate Limits
Endpoint Pricing
$0.0012 / per successful request (USD)
Consumed per successful call: 1 request unit(s), 1 credit(s).
Endpoint Rate Limits
Common Errors
Common HTTP Errors
| Status | Code | Description |
|---|---|---|
| 400 | VALIDATION_ERROR | A required parameter is missing or malformed. |
| 401 | UNAUTHORIZED | Missing or invalid API key. |
| 402 | INSUFFICIENT_BALANCE | Your balance cannot cover this request. |
| 403 | ENDPOINT_DISABLED | This endpoint is currently unavailable. |
| 405 | METHOD_NOT_ALLOWED | The endpoint was called with the wrong HTTP method. |
| 429 | RATE_LIMIT_EXCEEDED | Too many requests. See the Retry-After header. |
| 502 | PROVIDER_ERROR | The upstream data source failed. Retry with exponential backoff. |