Blog

Amazon competitor analysis: what to compare, and a Python script that does it for any keyword

How to do Amazon competitor analysis: find your real competitors, compare price, reviews, sales and rank, with a tested Python script for any keyword.

Published

Amazon competitor analysis is the work of finding the products that compete with yours for the same shoppers on Amazon, and comparing their listings with yours: price and discount, rating and reviews, how much they sell, their best sellers rank, their images and the deals they run. The aim is to know why a shopper picks their product over yours, and what to change.

This guide shows how to find your real competitors, which numbers to compare and what each one tells you, and what Amazon's own tools cover. It then gives a tested Python script of 182 lines that takes a keyword and your ASIN, reads the top organic results on amazon.com, saves every listing to a CSV file and prints where your product stands. Every number below comes from real runs on 24 November 2026, three days before Black Friday.

How do you find your competitors on Amazon?

Your competitors on Amazon are not the brands you compete with elsewhere. They are the products a shopper sees when they search for what you sell. Three places show them:

  1. The search results for your main keywords. Search the words shoppers use for your product, such as "yoga mat", and note the organic results on the first page. These are the listings that take the clicks you want.
  2. The sponsored results on the same search. Brands that pay to appear on your keyword are competing for it on purpose, even when they do not rank there yet.
  3. The best sellers list of your category. The category your product is filed under, such as Yoga Mats, ranks every product in it by sales. The products ranked just above you are the ones to study first.

Start with three to five keywords. A competitor that appears on several of them matters more than one that appears once.

Count products, not results

A first page of results often holds fewer products than it seems. In our "yoga mat" run, the 10 organic results were 8 distinct products from 5 brands. The other two were colors of listings already on the page, with the same reviews and the same category rank. Group them before you compare, or one brand with four colors counts as four competitors.

What should you compare in an Amazon competitor analysis?

What to compare Where it shows What it tells you
Price and list price Under the title Where you sit in the price range, and who is discounting
Deal badge or coupon Next to the price Who is buying attention right now
Rating and review count Under the title How much trust a shopper sees before clicking
"Bought in past month" Under the rating A rounded floor of recent purchases of that listing
Best sellers rank In the product details Sales position in the category, compared with every product in it
Images and videos Image gallery How much the listing shows before a shopper reads anything
Variants Color and size options How many choices the listing covers
Seller Buy box Whether Amazon or another seller holds the sale

Two of these need care. "Bought in past month" belongs to one listing, not one product, so the colors of one mat can show 10K+ and 2K+ side by side; our guide to "bought in past month" explains the rounding. Best sellers rank is usually shared across the colors of a listing, and you can only compare ranks inside the same category; our best sellers rank guide explains why one product can have several.

What do Amazon's own tools show?

Amazon gives sellers two research tools in Seller Central, and both are worth using:

  • Brand Analytics turns Amazon's search and purchase data into dashboards, such as Top Search Terms for search activity across Amazon stores, Search Query Performance for the keywords shoppers use to find your brand, and Market Basket Analysis for what shoppers buy together. To use it, you need a Professional selling account and must be a Brand Representative for a brand enrolled in Amazon Brand Registry (Amazon).
  • Product Opportunity Explorer groups search terms into niches "based on the products customers view or purchase after searching", and shows demand trends for each niche. You find it under Growth in Seller Central (Amazon).

These tools show demand: what shoppers search for and buy. They do not give you a table of your competitors' listings side by side, with their current price, deal, reviews, rank and images, saved with a date so you can see what changed next week. That is what the script below does, and it works whether or not you have Brand Registry.

How do you run an Amazon competitor analysis with Python?

The script searches amazon.com for a keyword, reads the product page of each of the top 10 organic results and of your own ASIN, and adds one dated row per listing to amazon_competitors.csv. It then prints a table, the sponsored listings on that keyword, the number of distinct products, and a few plain lines on where your listing stands. It uses the standard library only and needs Python 3.9 or later.

Get access

Every account starts with 200 free credits, and sign-in is by email. The quickest way is to give your coding agent (Claude Code, Cursor or similar) this line:

set up https://mcp.datawebot.com/setup.md

The agent asks for your email and you approve the sign-in from the email datawebot sends. The key is saved to ~/.datawebot/credentials, readable only by you, and the script reads it from there. That key lasts 30 days. For a script that runs every week, create a key that lasts 90 or 365 days on the dashboard under API keys, and put it in an environment variable named DATAWEBOT_API_KEY from your secret store. Never commit it.

The script

"""Amazon competitor analysis for one keyword: search amazon.com, read the top
organic results and your own product, save one dated row per product to a CSV
file and print how your listing compares. Standard library only.
Usage: python3 amazon_competitor_analysis.py "yoga mat" --mine B01LP0U5X0"""
import csv, json, os, statistics, sys, time, urllib.request
from concurrent.futures import ThreadPoolExecutor

API = "https://api.datawebot.com/v1/requests"
OUT = "amazon_competitors.csv"
TOP = 10  # how many organic results to compare
FIELDS = ["checked_at", "keyword", "position", "asin", "brand", "title", "price",
          "list_price", "rating", "reviews", "bought_past_month", "category", "rank",
          "seller", "deal", "coupon", "variants", "images", "videos", "url"]


def api_key():
    key = os.environ.get("DATAWEBOT_API_KEY")
    if key:
        return key
    # Written by the agent setup (https://mcp.datawebot.com/setup.md).
    with open(os.path.expanduser("~/.datawebot/credentials")) as f:
        return json.load(f)["profiles"]["https://mcp.datawebot.com"]["api_key"]


def call(method, url, body=None):
    req = urllib.request.Request(url, method=method,
        data=json.dumps(body).encode() if body else None,
        headers={"Authorization": "Bearer " + api_key(),
                 "Content-Type": "application/json",
                 "User-Agent": "amazon-competitor-analysis-example/1.0"})
    with urllib.request.urlopen(req, timeout=180) as r:
        return json.loads(r.read())


def run(body):
    """Send one request and wait for the answer; None when it failed."""
    try:
        res = call("POST", API, body)
        for _ in range(60):  # when the answer is "working", poll until it is done
            if res.get("status") != "working":
                break
            time.sleep(res.get("check_after_seconds") or 4)
            res = call("GET", f"{API}/{res['request_id']}")
        return res
    except (OSError, ValueError):  # a network or server error counts as a failure
        return None


def asin_of(url):
    return url.rsplit("/dp/", 1)[-1].split("/")[0].split("?")[0]


def read(item):
    """Read one product page as a row; None when the read failed or was incomplete."""
    position, asin = item
    res = run({"capability": "product", "country": "US",
               "url": "https://www.amazon.com/dp/" + asin})
    p = (res or {}).get("product")
    d = (p or {}).get("details") or {}
    if not d.get("delivery_location"):  # a full read names its delivery ZIP code
        return None
    leaf = (d.get("category_path") or [None])[-1]  # the category the page files it under
    ranks = d.get("best_sellers_rank") or []
    rank = next((r for r in ranks if r.get("category") == leaf), ranks[-1] if ranks else {})
    return {"checked_at": res["meta"]["as_of"], "position": position, "asin": asin,
            "brand": d.get("brand"), "title": p["title"],
            "price": (p.get("price") or {}).get("amount"),
            "list_price": (p.get("original_price") or {}).get("amount"),
            "rating": p.get("rating"), "reviews": p.get("review_count"),
            "bought_past_month": d.get("sold_count") if d.get("sold_count_basis") == "monthly" else None,
            "category": rank.get("category"), "rank": rank.get("rank"),
            "seller": (d.get("seller") or {}).get("name"),
            "deal": d.get("deal_badge"), "coupon": d.get("coupon"),
            "variants": d.get("variant_count") or 0, "images": d.get("image_count") or 0,
            "videos": len(d.get("videos") or []), "url": p["url"]}


def badge(n):
    """Amazon's wording: 900 -> 900+, 6000 -> 6K+."""
    if n is None:
        return "-"
    return f"{n // 1000}K+" if n >= 1000 else f"{n}+"


def products(rows):
    """One row per product: results with the same brand, reviews and rank are
    colors or sizes of one listing, which share their reviews and rank."""
    seen = {}
    for r in sorted(rows, key=lambda r: r["position"] or 99):
        seen.setdefault((r["brand"], r["reviews"], r["rank"]), r)
    return list(seen.values())


def compare(mine, rivals):
    """Plain sentences on where your listing stands against the others."""
    lines = []
    for field, label, money in [("price", "price", True), ("rating", "rating", False),
                                ("reviews", "reviews", False), ("images", "images", False)]:
        values = [r[field] for r in rivals if r[field] is not None]
        if mine[field] is None or not values:
            continue
        median = statistics.median(values)
        shown = (lambda v: f"${v:,.2f}") if money else (lambda v: f"{v:,g}")
        lines.append(f"{label}: yours {shown(mine[field])}, competitors' median {shown(median)}")
    sellers = [r for r in rivals if r["bought_past_month"]]
    ahead = sum(r["bought_past_month"] > (mine["bought_past_month"] or 0) for r in sellers)
    lines.append(f"bought in past month: yours {badge(mine['bought_past_month'])},"
                 f" {ahead} of {len(rivals)} competing products show a higher label")
    deals = sorted({r["brand"] or r["asin"] for r in rivals if r["deal"] or r["coupon"]})
    if deals:
        lines.append(f"running a deal or coupon: {', '.join(deals)}")
    return lines


def main():
    args = sys.argv[1:]
    mine = args[args.index("--mine") + 1] if "--mine" in args else None
    keyword = " ".join(a for a in args if a not in ("--mine", mine)) or "yoga mat"
    search = {"capability": "search", "query": keyword, "site": "amazon.com",
              "country": "US", "limit": TOP}
    found = run(search)
    if not (found or {}).get("products"):  # a failed search is free: try once more
        time.sleep(130)
        found = run(search)
    organic = [asin_of(p["url"]) for p in (found or {}).get("products") or []][:TOP]
    ads = [p for p in (found or {}).get("sponsored") or []]
    if not organic:
        sys.exit(f"The search for {keyword!r} returned no organic results.")
    items = list(enumerate(organic, 1))
    if mine and mine not in organic:
        items.append((None, mine))  # your product, read even when it is not in the top results
    with ThreadPoolExecutor(max_workers=2) as pool:
        rows = dict(zip(items, pool.map(read, items)))
    missed = [i for i, row in rows.items() if not row]
    if missed:  # failed reads are free, so each one is tried once more
        time.sleep(130)
        rows.update((i, read(i)) for i in missed)
    done = [row for row in rows.values() if row]
    for row in done:
        row["keyword"] = keyword
    new_file = not os.path.exists(OUT)
    with open(OUT, "a", newline="", encoding="utf-8") as f:
        writer = csv.DictWriter(f, fieldnames=FIELDS)
        if new_file:
            writer.writeheader()
        writer.writerows(done)
    print(f'"{keyword}" on amazon.com: {len(done)} of {len(items)} products read')
    cats = [r["category"] for r in done if r["category"]]
    main_cat = max(set(cats), key=cats.count) if cats else None
    print(" #  brand            price  rating  reviews  bought  rank        imgs  deal")
    for r in done:
        pos = f"{r['position']:>2}" if r["position"] else " -"
        price = f"${r['price']:,.2f}" if r["price"] else "-"
        rank = f"#{r['rank']:,}" if r["rank"] else "-"
        if r["rank"] and r["category"] != main_cat:
            rank += "*"  # a rank in another category, not comparable
        you = "  <- yours" if r["asin"] == mine else ""
        print(f"{pos}  {(r['brand'] or '-')[:14]:14} {price:>8}  {r['rating'] or '-':>6}"
              f"  {r['reviews'] or 0:>7,}  {badge(r['bought_past_month']):>6}  {rank:10}"
              f"  {r['images']:>4}  {(r['deal'] or r['coupon'] or '-')[:18]}{you}")
    other = sorted({r["category"] for r in done if r["rank"] and r["category"] != main_cat})
    print(f"Ranks are in {main_cat}" + (f"; * marks a rank in {', '.join(other)}" if other else ""))
    if ads:
        print("Sponsored on this keyword: " + "; ".join(
            f"{a['title'][:30]} (${(a.get('price') or {}).get('amount') or 0:,.2f})" for a in ads))
    distinct = products(done)
    print(f"{len(organic)} organic results, {len(distinct)} distinct products from "
          f"{len({r['brand'] for r in distinct})} brands")
    me = next((r for r in done if r["asin"] == mine), None)
    if me:
        print("Your listing against the others:")
        rivals = [r for r in distinct if (r["brand"], r["reviews"], r["rank"])
                  != (me["brand"], me["reviews"], me["rank"])]
        for line in compare(me, rivals):
            print("  " + line)
    failed = [i[1] for i, row in rows.items() if not row]
    if failed:
        print("Not read: " + ", ".join(failed))


if __name__ == "__main__":
    main()

How it works

  • The search asks amazon.com for the keyword and keeps the top 10 organic results in their order. Sponsored listings come back in a separate list, so ads never take a place in the table; the script prints them on their own line when the search returns any.
  • read sends one product read per ASIN, two at a time. Your own ASIN is read too, even when it is not on the first page.
  • The rank is the one for the category the page files the product under, such as Yoga Mats, not the broad Sports & Outdoors rank.
  • An incomplete read is retried. A full read always says which delivery ZIP code it was read for. A read without one did not finish, so it is tried again after about two minutes, together with any read that failed outright. Failed reads are free.
  • products groups results that share a brand, a review count and a rank, because those are colors or sizes of one listing. The comparison uses one row per product.
  • compare puts your price, rating, reviews and image count next to the median of the competing products, counts how many show a higher "bought in past month" label, and names the brands running a deal or coupon.
  • The file only grows. Each run appends rows with the time they were read, so running it every week shows who cut a price, who gained reviews and who started a deal.

What it printed

We ran it for "yoga mat" with the Retrospec Solana mat, the tenth result, as "your" product. The run started at 03:07 UTC on 24 November 2026 and took 2 minutes 2 seconds. All 10 products were read on the first try, and the Retrospec mat came back as the ninth result, so it is in the table with its position.

 1  Amazon Basics    $19.09     4.6   71,142    10K+  #1            13  Black Friday Deal
 2  CAP              $12.34     4.6    4,381     3K+  #3            20  Black Friday Deal
 3  Gaiam            $20.16     4.6   47,024     7K+  #2            20  Black Friday Deal
 4  Amazon Basics    $19.09     4.6   71,142     2K+  #1            14  Black Friday Deal
 5  Gruper           $23.79     4.4   10,849     5K+  #5            16  Black Friday Deal
 6  Gaiam            $21.23     4.6   47,024     4K+  #2            20  Black Friday Deal
 7  Gaiam            $17.11     4.5   12,701    600+  #7            17  Black Friday Deal
 8  Gaiam            $33.21     4.2    2,568     1K+  -             16  Black Friday Deal
 9  Retrospec        $39.99     4.5   15,252     2K+  #4            19  -  <- yours
10  Gaiam            $22.15     4.6   15,655    500+  #11           20  -
Ranks are in Yoga Mats
10 organic results, 8 distinct products from 5 brands
Your listing against the others:
  price: yours $39.99, competitors' median $20.16
  rating: yours 4.5, competitors' median 4.6
  reviews: yours 15,252, competitors' median 12,701
  images: yours 19, competitors' median 17
  bought in past month: yours 2K+, 4 of 7 competing products show a higher label
  running a deal or coupon: Amazon Basics, CAP, Gaiam, Gruper

To check a row against the page, we opened the Retrospec Solana page in a browser right after the run. It showed $39.99, 4.5 stars from 15,252 ratings and "2K+ bought in past month", sold and shipped by Amazon.com, the same as the row.

What does the yoga mat run show?

  • The price is the gap. At $39.99, the Retrospec mat costs about twice the median of the competing products, $20.16, and it was the only one of the top results without a deal badge. The page we opened shows this from the shopper's side: right under the description, Amazon placed a "Competitively priced item" box with the Amazon Basics mat at $19.09.
  • Reviews are not the problem. It has 15,252 reviews against a median of 12,701, and a rating of 4.5 against 4.6. A listing with this many reviews does not need a review campaign first.
  • It still sells. It ranks #4 in Yoga Mats with "2K+ bought in past month", above several cheaper mats. Its title leads with "1 inch extra thick", where the CAP and Gaiam Classic titles say 1/2 inch and 4mm, which is a likely reason shoppers pay more for it. Four of the seven competing products show a higher label, all of them cheaper.
  • Deals are everywhere three days before Black Friday. Amazon Basics, CAP, Gaiam and Gruper all showed a Black Friday Deal badge. A shopper comparing the first page sees discounts on almost every mat except this one.
  • One brand holds five places. Gaiam had 4 different products in 5 of the 10 organic places. Amazon Basics had 2 places with one product in two colors. Counting places instead of products would overstate both.
  • The search order moves within minutes. In an earlier run at 02:54 UTC the Retrospec mat was the tenth result; at 03:00 UTC it was not in the top 10, where a CAP folding mat ranked #1 in Gymnastics Training & Tumbling Mats had taken the tenth place; at 03:07 UTC it was ninth. One look at a search page is a snapshot, which is why the script keeps every run.

For this listing, the first test is plain: a Black Friday deal or a coupon, then a check of the rank and the label in the next runs. That is the kind of decision a competitor analysis should end in: one change, chosen from the numbers, and measured afterwards.

How do you track competitors over time?

Run the script on a schedule with the same keyword and your ASIN. Once a week is enough for most categories; around Black Friday, Cyber Monday and Prime Day, run it every day, because prices and deals change within days. On macOS or Linux, one cron line does it:

0 7 * * 1 cd /path/to/folder && python3 amazon_competitor_analysis.py "yoga mat" --mine B092XTMNCC

After a few weeks, the CSV answers the questions a single look cannot: which competitor cut its price before a sale, whose reviews grew fastest, and whether a new listing entered the first page. To watch prices alone on a fixed list of products, our Amazon price alert guide has a smaller script, and the Amazon buy box tracker records who holds the sale on each check. To follow where each product ranks for a keyword, see the Amazon search scraper and keyword rank tracker. To compare prices for the same product across retailers, see our competitor price tracking guide.

How do you do it with an AI agent?

If you work in Claude, ChatGPT, Cursor or another agent that supports MCP, you can ask without the script. After the setup line above, ask in plain language:

Use datawebot to search amazon.com for "yoga mat", read the top 10 organic
results and B092XTMNCC, and compare my product (B092XTMNCC) with the others on
price, list price, deal, rating, reviews, bought in past month, best sellers
rank and image count. Group colors of the same listing into one product.

The agent calls search_products and then get_product for each result, and answers from the same data the script reads. For a check that runs every week without you, use the script and a schedule. The Amazon product data API page lists every field and the Amazon countries, and the MCP server page shows how to connect each client.

Amazon competitor analysis checklist

  1. Pick three to five keywords shoppers use for your product, not your brand name.
  2. List the organic results and the sponsored ones separately for each keyword.
  3. Group colors and sizes into one product before you count competitors.
  4. Compare price, deal, rating, reviews, "bought in past month", rank and images against the median of the competing products, not against the single best seller.
  5. Compare ranks only inside the same category.
  6. Read the top competitors' images and titles for what they promise that yours does not.
  7. Save every check with its date, and compare week to week.
  8. Decide one change at a time, such as price, images or a coupon, and see what it does to your rank and label in the next checks.

What does it cost?

A search costs 5 credits and a product read 1 credit; failed reads are free. A run of this script therefore costs about 15 credits for 10 results, or 16 when your own product is not among them. The 200 free credits every account starts with cover about 12 weekly runs of one keyword, three months of checks. More credits are one-time packs with no subscription, listed on the pricing page.

To read other fields from the same pages, such as every variant, the GTIN and the full description, see our Amazon scraper API guide. To choose a niche before you compete in it, see our Amazon product research guide. To size a whole category from data like this, see our guide to ecommerce market research with marketplace data.

Need this at volume?

If you need competitor data for hundreds of keywords or thousands of ASINs every week, send a volume request and we will size it in credits. Our published samples show the result format.

Frequently asked questions

How do I do a competitor analysis on Amazon?

Search your main keywords on Amazon, list the organic and sponsored results, group colors of one listing into one product, and compare each competitor's price, deal, rating, reviews, "bought in past month" label, best sellers rank and images with yours. Save the comparison with its date and repeat it every week to see what changes.

How do I find my competitors on Amazon?

Search the keywords shoppers use for your product and note the products on the first page, including the sponsored ones. Then check the best sellers list of your category for the products ranked just above yours. Competitors that appear on several of your keywords matter most.

What is the best Amazon competitor analysis tool?

It depends on the question. Amazon's Brand Analytics shows search and purchase data if your brand is enrolled in Brand Registry, and Product Opportunity Explorer shows demand by niche. To compare competitors' live listings side by side and keep the history, a script like the one in this guide, or an AI agent connected to datawebot, reads the pages for about 15 credits per keyword.

Can I see my competitors' sales on Amazon?

Not exactly. Amazon shows a rounded "bought in past month" label on many listings, such as 2K+, and a best sellers rank in each category. Both are public, and together they show who sells more. Exact sales of other sellers are not public.

How often should I check my competitors on Amazon?

Once a week is enough for most products. Check every day around sale events such as Black Friday, Cyber Monday and Prime Day, when prices and deals change within days. Keep every check with its date so you can compare them.

Does Amazon Brand Analytics show competitor data?

It shows search and purchase data, such as the top search terms across Amazon stores and the products shoppers buy together, which includes what competing products get. It needs a Professional selling account and a brand enrolled in Amazon Brand Registry. It does not list competitors' current prices, deals or images side by side.

Sources

  1. https://sell.amazon.com/tools/amazon-brand-analytics
  2. https://sell.amazon.com/tools/product-opportunity-explorer
  3. https://www.datawebot.com/llms.txt
  4. https://mcp.datawebot.com/setup.md
  5. https://www.datawebot.com/solutions/amazon-product-data-api
  6. https://docs.python.org/3/library/csv.html
  7. https://docs.python.org/3/library/statistics.html

Read Amazon search results and product pages as JSON.

Every account starts with 200 free credits, with no subscription: a search costs 5 credits and a product read 1. Failed requests are free.

← All articles