Amazon Rankings Endpoint
Return ranked Amazon listings for a query or category URL.
Getting Started
Send your API key as a bearer token. Start with the smallest request below.
Run Amazon Rankings
Send the smallest useful request and read the structured response.
curl -X POST "https://api.datablue.dev/v1/data/amazon/rankings" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "kiro beauty",
"domain": "amazon.in",
"num_results": 20,
"page": 1
}'{
"success": true,
"query": "kiro beauty",
"domain": "amazon.in",
"total_results": "32",
"pages_fetched": 1,
"time_taken": 2.9,
"products": [
{
"position": 1,
"asin": "B0XXXXXXX1",
"title": "Kiro Beauty Lipstick",
"price": "₹799",
"rating": 4.3
}
]
}Options
Query and Target
Set the search term, identifier, or source URL that defines the request.
curl -X POST "https://api.datablue.dev/v1/data/amazon/rankings" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "web scraping tools",
"domain": "amazon.in",
"num_results": 20,
"page": 1,
"url": "https://example.com/products/widget"
}'{
"success": true,
"query": "kiro beauty",
"domain": "amazon.in",
"total_results": "32",
"pages_fetched": 1,
"time_taken": 2.9,
"products": [
{
"position": 1,
"asin": "B0XXXXXXX1",
"title": "Kiro Beauty Lipstick",
"price": "₹799",
"rating": 4.3
}
]
}Results and Pagination
Control how many records or pages are returned.
curl -X POST "https://api.datablue.dev/v1/data/amazon/rankings" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "kiro beauty",
"domain": "amazon.in",
"num_results": 20,
"page": 1,
"page_limit": 10
}'{
"success": true,
"query": "kiro beauty",
"domain": "amazon.in",
"total_results": "32",
"pages_fetched": 1,
"time_taken": 2.9,
"products": [
{
"position": 1,
"asin": "B0XXXXXXX1",
"title": "Kiro Beauty Lipstick",
"price": "₹799",
"rating": 4.3
}
]
}Location and Language
Localize results with country, language, coordinates, or delivery-location fields.
curl -X POST "https://api.datablue.dev/v1/data/amazon/rankings" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "kiro beauty",
"domain": "amazon.in",
"num_results": 20,
"page": 1,
"country": "us",
"postal_code": "10001"
}'{
"success": true,
"query": "kiro beauty",
"domain": "amazon.in",
"total_results": "32",
"pages_fetched": 1,
"time_taken": 2.9,
"products": [
{
"position": 1,
"asin": "B0XXXXXXX1",
"title": "Kiro Beauty Lipstick",
"price": "₹799",
"rating": 4.3
}
]
}Filters and Sorting
Narrow or order the returned records.
curl -X POST "https://api.datablue.dev/v1/data/amazon/rankings" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "kiro beauty",
"domain": "amazon.in",
"num_results": 20,
"page": 1,
"sort_by": "example",
"min_price": 10,
"max_price": 10,
"prime_only": false
}'{
"success": true,
"query": "kiro beauty",
"domain": "amazon.in",
"total_results": "32",
"pages_fetched": 1,
"time_taken": 2.9,
"products": [
{
"position": 1,
"asin": "B0XXXXXXX1",
"title": "Kiro Beauty Lipstick",
"price": "₹799",
"rating": 4.3
}
]
}Response
Read success first, then consume the endpoint-specific records and pagination fields shown below.
Error Handling
Handle 401 for authentication, 422 for invalid input, 429 for limits, and retry only transient failures.
