curl -H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":[{"url":"https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics"}],"limit_per_input":null}' \
"https://api.brightdata.com/datasets/v3/scrape?dataset_id=gd_l7q7dkf244hwjntr0¬ify=false&include_errors=true&type=discover_new&discover_by=best_sellers_url"
import requests
response = requests.post(
"https://api.brightdata.com/datasets/v3/scrape",
params={
"dataset_id": "gd_l7q7dkf244hwjntr0",
"notify": "false",
"include_errors": "true",
"type": "discover_new",
"discover_by": "best_sellers_url",
},
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"input": [
{
"url": "https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics",
},
],
"limit_per_input": None,
},
)
print(response.text)
const params = new URLSearchParams({
dataset_id: "gd_l7q7dkf244hwjntr0",
notify: "false",
include_errors: "true",
type: "discover_new",
discover_by: "best_sellers_url",
});
const response = await fetch(`https://api.brightdata.com/datasets/v3/scrape?${params}`, {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
input: [
{
url: "https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics",
},
],
limit_per_input: null,
}),
});
console.log(await response.text());
[
{
"title": "Portable Bluetooth Speaker",
"url": "https://www.amazon.com/dp/B09XY1234Z",
"asin": "B09XY1234Z",
"price": 39.99,
"currency": "USD",
"rating": 4.7,
"reviews_count": 85200,
"seller_name": "AudioTech Direct",
"brand": "AudioTech",
"availability": "In Stock",
"main_image": "https://m.media-amazon.com/images/I/example-bestseller.jpg",
"description": "Compact portable speaker with 20-hour battery and waterproof design.",
"category": "Electronics > Portable Audio > Speakers"
}
]
Amazon
Discover Amazon best sellers by URL
Discover Amazon products from a best sellers page URL with the Bright Data Scraper API. Send POST /datasets/v3/scrape with dataset_id gd_l7q7dkf244hwjntr0.
POST
/
datasets
/
v3
/
scrape
curl -H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":[{"url":"https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics"}],"limit_per_input":null}' \
"https://api.brightdata.com/datasets/v3/scrape?dataset_id=gd_l7q7dkf244hwjntr0¬ify=false&include_errors=true&type=discover_new&discover_by=best_sellers_url"
import requests
response = requests.post(
"https://api.brightdata.com/datasets/v3/scrape",
params={
"dataset_id": "gd_l7q7dkf244hwjntr0",
"notify": "false",
"include_errors": "true",
"type": "discover_new",
"discover_by": "best_sellers_url",
},
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"input": [
{
"url": "https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics",
},
],
"limit_per_input": None,
},
)
print(response.text)
const params = new URLSearchParams({
dataset_id: "gd_l7q7dkf244hwjntr0",
notify: "false",
include_errors: "true",
type: "discover_new",
discover_by: "best_sellers_url",
});
const response = await fetch(`https://api.brightdata.com/datasets/v3/scrape?${params}`, {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
input: [
{
url: "https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics",
},
],
limit_per_input: null,
}),
});
console.log(await response.text());
[
{
"title": "Portable Bluetooth Speaker",
"url": "https://www.amazon.com/dp/B09XY1234Z",
"asin": "B09XY1234Z",
"price": 39.99,
"currency": "USD",
"rating": 4.7,
"reviews_count": 85200,
"seller_name": "AudioTech Direct",
"brand": "AudioTech",
"availability": "In Stock",
"main_image": "https://m.media-amazon.com/images/I/example-bestseller.jpg",
"description": "Compact portable speaker with 20-hour battery and waterproof design.",
"category": "Electronics > Portable Audio > Speakers"
}
]
Query Parameters
string
default:"gd_l7q7dkf244hwjntr0"
required
The dataset ID used for this request.
Must be set to
gd_l7q7dkf244hwjntr0 to collect Discover by Best Sellers URL data.string
default:"discover_new"
Must be set to
discover_new.string
default:"best_sellers_url"
Must be set to
best_sellers_url.boolean
default:false
Whether to send notifications when the request is completed.
boolean
default:true
Whether to include errors in the response.
Request Body
object[]
required
curl -H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":[{"url":"https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics"}],"limit_per_input":null}' \
"https://api.brightdata.com/datasets/v3/scrape?dataset_id=gd_l7q7dkf244hwjntr0¬ify=false&include_errors=true&type=discover_new&discover_by=best_sellers_url"
import requests
response = requests.post(
"https://api.brightdata.com/datasets/v3/scrape",
params={
"dataset_id": "gd_l7q7dkf244hwjntr0",
"notify": "false",
"include_errors": "true",
"type": "discover_new",
"discover_by": "best_sellers_url",
},
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"input": [
{
"url": "https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics",
},
],
"limit_per_input": None,
},
)
print(response.text)
const params = new URLSearchParams({
dataset_id: "gd_l7q7dkf244hwjntr0",
notify: "false",
include_errors: "true",
type: "discover_new",
discover_by: "best_sellers_url",
});
const response = await fetch(`https://api.brightdata.com/datasets/v3/scrape?${params}`, {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
input: [
{
url: "https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics",
},
],
limit_per_input: null,
}),
});
console.log(await response.text());
[
{
"title": "Portable Bluetooth Speaker",
"url": "https://www.amazon.com/dp/B09XY1234Z",
"asin": "B09XY1234Z",
"price": 39.99,
"currency": "USD",
"rating": 4.7,
"reviews_count": 85200,
"seller_name": "AudioTech Direct",
"brand": "AudioTech",
"availability": "In Stock",
"main_image": "https://m.media-amazon.com/images/I/example-bestseller.jpg",
"description": "Compact portable speaker with 20-hour battery and waterproof design.",
"category": "Electronics > Portable Audio > Speakers"
}
]
Was this page helpful?