Documentation has been updated: see help center and changelog in one place.

Best Sellers

The amazon_bestsellers data source is designed to retrieve Amazon Best Sellers pages. To see the response example with retrieved data, download this sample output file in HTML format or check structured data output here.

Explore output data dictionary for Best Sellers, offering a brief description, screenshot, parsed JSON code snippet, and a table defining each parsed field. Navigate through the details using the right-side navigation or scrolling down the page.

Request samples

In the code examples below, we make a request to retrieve the 2nd page of Best Sellers in category, which ID is 172541, on amazon.com marketplace.

curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
        "source": "amazon_bestsellers",
        "domain": "com", 
        "query": "172541", 
        "render": "html",
        "start_page": 2, 
        "parse": true
    }'

We use synchronous Realtime integration method in our examples. If you would like to use Proxy Endpoint or asynchronous Push-Pull integration, refer to the integration methods section.

Request parameter values

Generic

Basic setup and customization options for scraping Amazon Best Sellers pages.

Parameter
Description
Default Value

source

Sets the scraper.

amazon_bestsellers

query

Browse node ID.

-

render

Enables JavaScript rendering when set to html. More info.

-

parse

Returns parsed data when set to true. Explore output data dictionary.

false

callback_url

URL to your callback endpoint. More info.

-

user_agent_type

Device type and browser. The full list can be found here.

desktop

- mandatory parameter

Localization

Adapt results to specific geographical locations, domains, languages.

Parameter
Description
Default Value

geo_location

The Deliver to location. See our guide to using this parameter here.

-

domain

Domain localization for Amazon. The full list of available domains can be found here.

com

locale

Accept-Language header value, which sets the interface language of the Amazon page. More info.

-

Pagination

Controls for managing the pagination and retrieval of search results.

Parameter
Description
Default Value

start_page

Starting page number.

1

pages

Number of pages to retrieve.

1

Other

Additional advanced settings and controls for specialized requirements.

Parameter
Description
Default Value

context: currency

Sets the currency. Check the available values here.

Depends on the marketplace. Check the default values here.

Code example

Structured data

Below you can find a structured output example for amazon_bestsellers.

Amazon_bestsellers output example

Data dictionary

HTML example

JSON structure

The amazon_bestsellers provides comprehensive data on the best-selling products on Amazon. The table below presents a detailed list of each field we parse, along with its description and data type. The table also includes some metadata.

Key
Description
Type

url

The URL of the Amazon Best Sellers page.

string

page

The current page number.

integer

pages

The total number of pages.

integer

query

The original search term.

string

results

A dictionary containing the results of the search.

object

results.pos

An indicator denoting the position of a bestselling item.

integer

results.url

The URL of the best selling item.

string

results.asin

Amazon Standard Identification Number.

string

results.price

The price of the product.

string

results.title

The title of the product.

string

results.rating

The rating of the product.

float

results.currency

The currency in which the price is denominated.

string

results.is_prime

Indicates whether the product is eligible for Amazon Prime.

boolean

results.price_str

The original price before any discounts or promotions

float

results.price_upper

The upper limit of the price if applicable.

float

results_ratings_count

The total number of ratings given to the product.

integer

parse_status_code

The status code of the parsing job. You can see the parser status codes described here.

integer

created_at

The timestamp when the scraping job was created.

timestamp

updated_at

The timestamp when the scraping job was finished.

timestamp

job_id

The ID of the job associated with the scraping job.

string

status_code

The status code of the scraping job. You can see the scraper status codes described here.

integer

parser_type

The type of parser used for parsing the data.

string

Last updated

Was this helpful?