The Amazon best sellers API for ranked listings

Track Amazon rankings as JSON with one row per rank. Rows hold a bestseller rank when the page lists one. Pass a best sellers URL or a search query.

Amazon Rankings API at a glance

This API returns ranked rows for an Amazon search page or a best sellers category page. Send a POST request with a query or a url, then read each row from the products array. Run the example below to see the exact shape.

Endpoint
POST /v1/data/amazon/rankings
Authentication
API key as Authorization: Bearer wh_…
Stage
Stable
Output
A products array with rank, asin, title, url, price, price_value, currency, rating, review_count, bestseller_ranks, is_sponsored, is_prime and badge
Input
A query, or a url for an Amazon search page or category page
Marketplace
Set domain to a store such as amazon.com. The default is amazon.in. Add country and postal_code for the delivery location.
Results per request
num_results from 1 to 200. The default is 20. Pages run from 1 to 20.
Sort values
relevance, popularity, price_low, price_high, rating or newest
Bestseller rank
Filled on the best sellers page in our test and null on search results
Enrichment
None in the schema. Use Amazon Products or Amazon Full Scrape for product detail.
Credit weight
1. See the pricing page for current rates.

One request, structured JSON.

This request reads the Amazon.com best sellers page for electronics. The response below shows two of the three rows returned. Our call completed inline with no job to poll. Copy the request to try it yourself.

POST /v1/data/amazon/rankings
curl -X POST "https://api.datablue.dev/v1/data/amazon/rankings" \
  -H "Authorization: Bearer wh_..." \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics",
    "domain": "amazon.com",
    "num_results": 3
  }'
Response (trimmed to 2 of 3 rows)
{
  "success": true,
  "url": "https://www.amazon.com/Best-Sellers-Electronics/zgbs/electronics",
  "domain": "amazon.com",
  "pages_fetched": 1,
  "products": [
    {
      "rank": 1,
      "asin": "B08JHCVHTY",
      "title": "blink plus plan with monthly auto-renewal",
      "url": "https://www.amazon.com/Blink-Plus-Plan-monthly-auto-renewal/dp/B08JHCVHTY",
      "brand": null,
      "price": "$11.99",
      "price_value": 11.99,
      "currency": "USD",
      "rating": 4.4,
      "review_count": 282223,
      "bestseller_ranks": ["#1 in Electronics"],
      "is_sponsored": false,
      "is_prime": false,
      "badge": null
    },
    {
      "rank": 2,
      "asin": "B0DCH8VDXF",
      "title": "Apple EarPods Headphones with USB-C Plug, Wired Ear Buds with Built-in Remote to Control Music, Phone Calls, and Volume",
      "url": "https://www.amazon.com/Apple-EarPods-Headphones-Built-Control/dp/B0DCH8VDXF",
      "brand": null,
      "price": null,
      "price_value": null,
      "currency": null,
      "rating": 4.5,
      "review_count": 20494,
      "bestseller_ranks": ["#2 in Electronics"],
      "is_sponsored": false,
      "is_prime": false,
      "badge": null
    }
  ]
}

What a ranking row returns.

Each row arrives as one flat object.

Rank and identity

Every row has a rank and an asin. Rank counts up from 1 in page order. Use the asin to join rows across runs.

Bestseller rank

The bestseller_ranks field is an array of strings. On our best sellers run the first row carried the text #1 in Electronics as Amazon listed it. Our search query run returned null on all three rows. Pass a best sellers URL to get that field filled.

Price

Price arrives as a string, and price_value holds the same amount as a number in the row. The currency field gives a code such as USD. Two of the three best sellers rows in our run had null price fields and a null currency. Check for null before you do any math.

Rating and reviews

Each row has a rating and a review_count. In our tests one ASIN showed 18224 reviews on a best sellers page and 182 in search. Compare review_count only across rows from the same source page.

Sponsored, badge and Prime

The is_sponsored flag marks which rows are paid placements. The badge field held Overall Pick on one search row. Our tests returned false for is_prime on every row. Treat is_prime as unverified until you see a true value.

Title, link and brand

Each row carries a title and a url. Brand was null on all three best sellers rows. Live urls carry tracking parameters that the sample cuts. Keep the path before ref when you store a link.

Options that shape your ranking.

Send either a query or a url. Add the rest to narrow the ranked rows.

Source

Set query to rank a keyword search. Set url to read a search page or a category page, such as a best sellers page. You need one of the two in every request.

Marketplace and location

Set domain to pick the marketplace, such as amazon.com. Domain defaults to amazon.in when you leave it out. Add country and postal_code for the delivery location.

Result count and depth

Ask for 1 to 200 rows with num_results, and expect 20 when you send nothing. Page from 1 to 20 sets the starting page. Use page_limit to cap how many listing pages load. Keep the count small while you test.

Sort and filters

Set sort_by to rating to sort by customer rating. Use price_low or price_high to sort by price. Set min_price and max_price in whole currency units. We did not test these filters in our runs. Add prime_only to keep rows that are Prime-eligible.

What it leaves out

The schema has no detail or enrichment options. Rows hold ranking fields and nothing else. Fields such as image_url and delivery come from Amazon Products. Call Amazon Products when you need product detail.

What teams build with it.

Rank rows turn a query into a time series. Pick the job that matches your own.

Bestseller rank tracking

Pass a best sellers URL, then schedule the same call to run once a day. Store rank and bestseller_ranks beside each asin. Plot movement for the ASINs you care about.

Keyword rank tracking

Search a target keyword with the query field. Find your ASIN in the rows and record its rank. Repeat the search each day to see movement.

Ad pressure

Read is_sponsored beside rank on a keyword search. Count the top rows that are paid placements. Track that count to see ad pressure change.

Badge audits

Read badge for each row on a keyword search. Note which listings carry a label such as Overall Pick. Compare the labels from week to week for your brand.

Why use an API instead of tracking Amazon ranks by hand.

A rank only helps when you repeat the measurement. This API returns one fixed row shape on every call. Store each run with its run date, then compare the runs in your own code.

Rank rows come from the page you point at. A search query ranks search results, while a best sellers URL reads the best sellers list. Our best sellers run filled bestseller_ranks, but our search run left that field null in every row. Pick the source page before you build your tracker.

This API stays narrow, with no detail enrichment options. Amazon Products adds enrichment and a higher result cap, while Amazon Full Scrape combines modules in one job. Pick the API by the question you need answered.

Your first ranking pull in a minute.

Get a key, then pull your first ranked list.

  1. Create an account

    Sign up to get your API key.

  2. Pick a source

    POST a query or a url to /v1/data/amazon/rankings. Add your Bearer key as the Authorization header.

  3. Read the rows

    Loop over the products array in the response. Read rank and asin from each object.

Amazon best sellers API questions.

Short answers about rankings and billing before you start.

It returns ranked Amazon listings as structured JSON. Each row has a rank and an asin. Pass the URL of a best sellers page to read that list in rank order.

POST a best sellers page URL and your Bearer key to /v1/data/amazon/rankings for the list. Read bestseller_ranks on each row for the category position.

It is an array of text values. In our run the first best sellers row held the text #1 in Electronics, with the next row at #2. Parse the number and the category from that text.

Yes, set query to rank a keyword search. Rows then carry a rank in page order. Our search run returned null for bestseller_ranks on every row.

Set num_results from 1 to 200 for the row count. The default is 20 rows when you send nothing.

Amazon Products returns search listings with image and delivery fields. This API returns rank rows with bestseller_ranks and badge fields. It has no enrichment options, so call Amazon Products or Amazon Full Scrape for product detail.

Run the same request on a daily schedule, then store every run with the date you ran it. Responses carry no timestamp field, so the date you store is the only record of when a run happened. Compare rank for each asin between runs.

The is_sponsored flag marks paid placements on each row. Filter on it to separate ads from organic rows. It was false on every row we tested.

This API is marked stable in our catalogue today. Build against the documented fields, then check the changelog before each upgrade you ship to production.

This API has a credit weight of 1. Check the pricing page for current rates.

Run an Amazon ranking pull in a minute.

Create an account to get your key. Then paste the example request with your own category URL.

Start free