How to Scrape Depop with Python: Sold Items, Asking vs Sold Prices, Days to Sell, and a Comps Report

●4 ●13
calendar_today ago • schedule10 min read

"Depop sold" gets about 4,400 US searches a month, and almost all of that is one question: what does this thing actually sell for? Asking prices on Depop are cheap to read and easy to misread. A jacket listed at $45 tells you what one seller hopes for. The sold tab on a shop tells you what someone paid. If you price stock, buy for resale or build a pricing tool, you want the second number, and you want a lot of them.

This post builds a small sold-comps tool in Python 3.10+ with the standard library only:

  1. search Depop for a term and keep the listings that really match (brand, type, no kids' items, no $1 placeholders)
  2. recover each seller's ID from the listing photos, because search results don't include it
  3. read those shops' sold items and active listings
  4. print asking vs sold prices by condition, days from listing to sale, price cuts and sizes, and write a CSV

Everything below ran on November 25, 2026 (Asia/Saigon morning) with Python 3.13.

Read this first: Depop's Terms of Service prohibit scraping. The current Terms of Service say you may not "mine data, scrape or crawl the Service, including any internal software capabilities used to offer our Service (e.g. an application programming interface), or use any bots or other third party software on the Service." The new US terms (effective January 1, 2027) add a separate ban on "any robot, spider, scraper, data mining tools, data gathering and extraction tools, or other automated means ... to access our Service for any purpose, except with the prior express permission of Depop", and forbid you to "test, circumvent, monitor or breach the security measures" of the service. Review the terms and the legal risk for your use case and location before running anything. Depop's official Selling API is for approved partners who manage sellers' own shops. If that's you, use it. Its terms also rule out using it for analytics or market research without written permission, so it is not a comps source. Keep request volumes low, keep the cache local, and don't publish data about individual sellers. The reports below contain prices, sizes and product IDs only.

Step 1: What a plain Python client gets

Before writing any parsing code, check what depop.com sends to a script:

# probe.py - can you reach Depop's own pages and JSON directly from this machine?
import urllib.request, urllib.error

UA = ("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 "
      "(KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36")
URLS = [
    "https://www.depop.com/robots.txt",
    "https://www.depop.com/products/any-product-slug/",
    "https://www.depop.com/presentation/api/v1/search/products/?what=carhartt+jacket&limit=24&country=us&currency=USD",
    "https://webapi.depop.com/api/v3/search/products/?what=carhartt+jacket&country=us",
]

def fetch(url):
    req = urllib.request.Request(url, headers={"User-Agent": UA, "Accept": "application/json"})
    try:
        with urllib.request.urlopen(req, timeout=30) as r:
            return r.status, r.headers, r.read(300)
    except urllib.error.HTTPError as e:
        return e.code, e.headers, e.read(300)

for url in URLS:
    try:
        status, headers, body = fetch(url)
    except Exception as e:  # Cloudflare sometimes just drops the connection
        print(f"ERR {type(e).__name__}: {e}  {url.split('?')[0]}")
        continue
    text = body.decode("utf-8", "replace")
    why = text.split("<title>")[1].split("</title>")[0].strip() if "<title>" in text else text.strip()[:80]
    print(f"{status} server={headers.get('server')} cf-ray={'yes' if headers.get('cf-ray') else 'no'} "
          f"{url.split('?')[0]}\n    -> {why}")
$ python3 probe.py
403 server=cloudflare cf-ray=yes https://www.depop.com/robots.txt
    -> Forbidden - Depop
403 server=cloudflare cf-ray=yes https://www.depop.com/products/any-product-slug/
    -> Forbidden - Depop
403 server=cloudflare cf-ray=yes https://www.depop.com/presentation/api/v1/search/products/
    -> Forbidden - Depop
410 server=cloudflare cf-ray=yes https://webapi.depop.com/api/v3/search/products/
    -> {"code":9001,"message":"Deprecated endpoint","service":"routing","type":"error"}

From a server IP, every depop.com URL comes back as a Cloudflare 403, even robots.txt. A product slug that doesn't exist gets the same 403, so the block happens before Depop's app ever sees the request. Sometimes Cloudflare just drops the connection instead, which is why probe.py catches every exception and not only HTTPError. The JSON API that older tutorials use (webapi.depop.com/api/v3/...) now answers 410 "Deprecated endpoint". The site moved to /presentation/api/v1/... routes, and those sit behind the same block.

The site loads fine for shoppers in a browser. The block is aimed at automated traffic like this, and getting a script past it means working around Cloudflare, which is exactly the "circumvent ... security measures" part of the terms. I didn't try.

Step 2: A client with a disk cache

The tool reads Depop through ScrapeAtlas*, which returns Depop's search, shop sold-items and shop-listings data as JSON (/v1/depop/search, /v1/depop/shop/sold, /v1/depop/shop/products). A successful call costs 1 credit and failed ones cost nothing. A comps run touches the same shops again and again while you tweak filters, so every response goes into a disk cache for six hours. Re-runs with different filters are free:

# depop_sold.py - Depop sold comps: asking prices vs what actually sold.
# Python 3.10+, standard library only. Needs SCRAPEATLAS_API_KEY in the environment.
import argparse, csv, hashlib, json, os, re, statistics, sys, time
import urllib.error, urllib.parse, urllib.request
from collections import Counter
from datetime import datetime

API = "https://api.scrapeatlas.com/v1/depop/"
HERE = os.path.dirname(os.path.abspath(__file__))
CACHE = os.path.join(HERE, "cache")


def sa(path, ttl=6 * 3600, **params):
    """GET one ScrapeAtlas Depop endpoint, with a disk cache and a small retry loop."""
    url = API + path + "?" + urllib.parse.urlencode({k: v for k, v in params.items() if v is not None})
    os.makedirs(CACHE, exist_ok=True)
    cached = os.path.join(CACHE, hashlib.sha1(url.encode()).hexdigest()[:16] + ".json")
    if os.path.exists(cached) and time.time() - os.path.getmtime(cached) < ttl:
        return json.load(open(cached))
    req = urllib.request.Request(url, headers={"x-api-key": os.environ["SCRAPEATLAS_API_KEY"]})
    for attempt in range(4):
        try:
            with urllib.request.urlopen(req, timeout=90) as r:
                data = json.load(r)
            break
        except urllib.error.HTTPError as e:
            body = json.loads(e.read() or b"{}")
            if e.code in (429, 500, 502, 503, 504) and attempt < 3:
                time.sleep(2 ** attempt * 3)
                continue
            raise SystemExit(f"{e.code} on {path}: {body.get('failure')}")
    if data.get("status") != "success":
        print(f"  note: {path} status={data.get('status')} warnings={data.get('coverage', {}).get('warnings')}",
              file=sys.stderr)
    json.dump(data, open(cached, "w"))
    return data

Every response carries status (success, partial or failed) and coverage.warnings. The client prints anything that isn't a clean success instead of quietly using half a page. Every call the tool made in my runs came back success.

Step 3: Search, and the seller ID hiding in the photos

A search result is a listing with brand, group (coats-jackets), product type (jackets), condition, sizes and a price breakdown. Here's one, trimmed:

{"id": 1010881929, "brand": {"id": 1673, "name": "Carhartt"}, "brandSlug": "carhartt",
 "group": "coats-jackets", "productType": "jackets", "condition": "used_excellent", "isKids": false,
 "price": {"current": 22, "original": null, "currency": "USD", "isReduced": false},
 "priceBreakdown": {"item": 22, "buyerFee": 0, "shipping": 5.99,
                    "headlineIncludes": {"buyerFee": false, "shipping": false, "tax": false}},
 "sizes": [{"id": 6, "name": "XL", "quantity": 1}], "sellerId": null, "createdAt": null,
 "images": ["https://media-photos.depop.com/r1/316002583/5285720229_e4eb.../P0.jpg"]}

Two fields that you'd want are null: sellerId and createdAt. You can't get from a search result to the seller's shop without opening every product page, and that's one extra request per listing. But look at the photo URL: /r1/316002583/ is the seller's numeric ID. It was there on all 399 listings I checked (r1/ and b1/ prefixes), and the shop endpoints accept user_id directly:

def item_price(it):
    """The seller's item price, without Depop's buyer fee (some endpoints fold the fee in)."""
    pb = it.get("priceBreakdown") or {}
    return float(pb["item"]) if pb.get("item") is not None else float(it["price"]["current"])


SELLER_IN_IMAGE = re.compile(r"media-photos\.depop\.com/[a-z]\d/(\d+)/")


def seller_id(it):
    """Search results have sellerId=null, but every photo URL starts with the seller's numeric id."""
    if it.get("sellerId"):
        return it["sellerId"]
    for url in it.get("images") or []:
        m = SELLER_IN_IMAGE.search(url)
        if m:
            return int(m.group(1))
    return None


def search(query, pages):
    items, cursor, total = [], None, None
    for _ in range(pages):
        d = sa("search", query=query, country="us", limit=100, cursor=cursor)
        total = total or d.get("totalCount")  # only page 1 carries the total
        items += d["items"]
        cursor = d.get("nextCursor")
        if not d.get("hasMore") or not cursor:
            break
    seen, out = set(), []
    for it in items:  # boosted listings can show up on two pages
        if it["id"] not in seen:
            seen.add(it["id"])
            out.append(it)
    return out, total

item_price matters later. Some endpoints fold Depop's buyer fee into price.current and some don't (Step 5), so the tool always uses priceBreakdown.item, the seller's own price.

The search pager hands you an opaque nextCursor, and only the first page has totalCount. limit=100 works, so two pages give you 200 listings for 2 credits.

Step 4: One filter for both sides

The most common comps mistake is comparing different things: active "carhartt jacket" results (kids' sizes, vests, $1 placeholders) against sold items from a shop that also sells T-shirts. So one function decides what counts, and it runs on active listings and sold items alike:

def matches(it, f):
    """Same filter for active and sold items, so both sides describe the same thing."""
    if f.brand and it.get("brandSlug") != f.brand:
        return False
    if f.group and it.get("group") not in f.group:
        return False
    if f.type and it.get("productType") not in f.type:
        return False
    if it.get("isKids") and not f.kids:
        return False
    if item_price(it) < f.min_price:  # $1 placeholders and "send offers!" shop ads
        return False
    text = (it.get("slug", "") + " " + (it.get("description") or "")).lower()
    return all(w in text for w in f.must)

Each rule is there because of something in the real data:

  • Brands are IDs, not words. /v1/depop/brands?query=carhartt returns two brands, Carhartt (carhartt) and Carhartt WIP (carhartt-wip), and they're separate brands in Depop's catalog (Carhartt WIP is the European streetwear line). For Levi's the slug is levi-s. Look the slug up once and filter on brandSlug.
  • Kids' items are mixed in. 36 of the first 200 "carhartt jacket" results had isKids: true.
  • Some prices are bait. The cheapest "carhartt jacket" results were five copies of "Carhartt Work jacket" at $1.25 from one seller, and a run of $5 listings whose description was "Huge sale on all items! Send offers!". They're shop ads, not jackets. The --min-price default of $10 drops them, and a per-shop cap (Step 6) stops one seller's batch from setting the price.
  • Slug and description are the only free text. --must 501 is how you narrow "levis" to 501s. There's no title field in search results (product pages have a generated one like "Carhartt Men's Blue and Navy Jacket").

Step 5: Reading a shop's sold items

/v1/depop/shop/sold returns up to 100 sold items per page, newest first, with an opaque cursor. Each item looks like a listing, plus a status and two timestamps:

{"id": 794338195, "status": "STATUS_MARKED_AS_SOLD", "isSold": true,
 "price": {"current": 5.25, "original": 15, "currency": "USD", "isReduced": true},
 "createdAt": "2026-06-24T02:29:18.708322Z", "updatedAt": "2026-11-21T22:00:53.863935Z"}
def sold_items(uid, pages):
    items, cursor = [], None
    for _ in range(pages):
        d = sa("shop/sold", user_id=uid, limit=100, cursor=cursor)
        items += d["items"]
        cursor = d.get("nextCursor")
        if not d.get("hasMore") or not cursor:
            break
    return items


def shop_listings(uid):
    """Active listings of one shop. Note: this endpoint's price.current includes the buyer fee."""
    return sa("shop/products", user_id=uid, limit=100)["items"]


def ts(s):
    return datetime.fromisoformat(s.replace("Z", "+00:00")) if s else None


def comp_row(it, uid):
    created, updated = ts(it.get("createdAt")), ts(it.get("updatedAt"))
    days = (updated - created).total_seconds() / 86400 if created and updated else None
    if days is not None and days < 600 / 86400:  # updatedAt never moved after listing: no sale date
        days, updated = None, None
    orig = (it["price"].get("original") or None)
    return {
        "id": it["id"], "seller": uid, "status": it["status"].replace("STATUS_", "").lower(),
        "price": item_price(it), "original": orig, "reduced": bool(it["price"].get("isReduced")),
        "condition": it.get("condition"), "size": (it.get("sizes") or [{}])[0].get("name"),
        "type": it.get("productType"), "listed": it.get("createdAt", "")[:10],
        "sold_approx": updated.date().isoformat() if updated else "",
        "days_to_sell": round(days, 1) if days is not None else None, "url": it["url"],
    }

Three things in there aren't obvious:

  • STATUS_MARKED_AS_SOLD isn't a sale on Depop. It means the seller flipped the item to sold by hand (sold elsewhere, cross-listed, or just tidying up). STATUS_PURCHASED is a checkout on Depop. Across the 4,227 sold items my runs read, 791 (19%) were "marked as sold". The tool counts them and leaves them out of the price stats.
  • There's no sold date. updatedAt is the closest thing, and the sold list is ordered by it, but 341 of those 4,227 items had an updatedAt within 10 minutes of createdAt. The record was never touched after listing, so the sale date is unknown. The tool treats those as "unknown" and doesn't report them as instant sales. That one check moved the 25th-percentile "days to sell" for Carhartt jackets from 0.0 to 1.2.
  • The buyer fee is sometimes inside the price. On /v1/depop/shop/products (active listings of one shop), 132 of 1,322 items had headlineIncludes.buyerFee: true. One showed price.current 16.45 while priceBreakdown said item 15 plus buyer fee 1.45. Search results and sold items didn't fold the fee in. Mix those up and the same seller looks about 10% more expensive on one endpoint than the other.

Sold prices are listed prices at the time of sale. If the buyer paid less through an accepted offer or a bundle discount, this data doesn't show it. Shipping isn't included either, and the buyer paid it on 4,125 of the 4,227 sold items. On a $4 pair of jeans with $5.99 shipping, that's more than half the money.

Step 6: The report

The rest is counting. q() prints n, 25th percentile, median and 75th percentile. Below four values it only prints the median, because quartiles of three prices mean nothing:

def q(xs):
    """n, p25, median, p75 for a list of prices."""
    xs = sorted(xs)
    if len(xs) < 4:
        return f"n={len(xs):<4} " + ("median " + f"{statistics.median(xs):.0f}" if xs else "-")
    p25, med, p75 = statistics.quantiles(xs, n=4)
    return f"n={len(xs):<4} p25 {p25:>6.2f}  median {med:>6.2f}  p75 {p75:>6.2f}"


def report(query, total, asking, same_shop, comps, marked, shops, capped, out):
    sold = [c for c in comps if c["status"] == "purchased"]
    print(f"\nDepop sold comps for '{query}'  ({datetime.now():%Y-%m-%d %H:%M})")
    print(f"search: {total:,} results; {len(asking)} matching active listings kept")
    print(f"sold:   {len(sold)} matching sales from {shops} shops "
          f"(+{marked} 'marked as sold' skipped, {capped} over the per-shop cap)")
    top = Counter(c["seller"] for c in sold).most_common(1)
    if top:
        print(f"biggest single shop: {top[0][1]} of {len(sold)} sales ({top[0][1] / len(sold):.0%})\n")
    print(f"{'asking (active)':<20}{q([item_price(a) for a in asking])}")
    print(f"{'asking, same shops':<20}{q([item_price(a) for a in same_shop])}")
    print(f"{'sold':<20}{q([c['price'] for c in sold])}")
    print("\nby condition         asking                          sold")
    conds = Counter(a.get("condition") for a in asking) + Counter(c["condition"] for c in sold)
    for cond, _ in conds.most_common(5):
        a = [item_price(x) for x in asking if x.get("condition") == cond]
        s = [c["price"] for c in sold if c["condition"] == cond]
        print(f"  {cond:<18} {q(a):<32} {q(s)}")
    days = [c["days_to_sell"] for c in sold if c["days_to_sell"] is not None]
    print(f"\nsale date known for {len(days)} of {len(sold)} sales", end="")
    if days:
        p = statistics.quantiles(days, n=4) if len(days) >= 4 else [min(days), statistics.median(days), max(days)]
        print(f"; days from listing to sale: p25 {p[0]:.1f}  median {p[1]:.1f}  p75 {p[2]:.1f}")
        print(f"  sold within 7 days: {sum(d <= 7 for d in days) / len(days):.0%}")
    cut = [c for c in sold if c["reduced"] and c["original"]]
    if sold:
        print(f"sold at a reduced price: {len(cut)}/{len(sold)} ({len(cut) / len(sold):.0%})", end="")
        if cut:
            print(f", median cut {statistics.median(1 - c['price'] / c['original'] for c in cut):.0%}")
        else:
            print()
    sizes = Counter(c["size"] for c in sold)
    print("sold by size: " + ", ".join(f"{s} {n}" for s, n in sizes.most_common(6)))
    print("\nlatest sales:")
    for c in sorted((c for c in sold if c["sold_approx"]), key=lambda c: c["sold_approx"], reverse=True)[:8]:
        print(f"  {c['sold_approx']}  ${c['price']:>7.2f}  {c['condition']:<15} {str(c['size']):<6} "
              f"{c['days_to_sell'] if c['days_to_sell'] is not None else '?':>5}d  {c['type']:<10} id {c['id']}")
    os.makedirs(os.path.dirname(out), exist_ok=True)
    with open(out, "w", newline="") as f:
        w = csv.DictWriter(f, fieldnames=list(comps[0].keys()) if comps else ["id"])
        w.writeheader()
        w.writerows(comps)
    print(f"\nwrote {len(comps)} rows to {os.path.relpath(out)}")

And main() wires it together. Sellers are ranked by how many matching listings they have in the search results (ties keep search order), and the 40 at the top get their sold items read. The cap keeps at most 5 matching sales per shop, newest first, and applies the same cap to active listings:

def main():
    ap = argparse.ArgumentParser()
    ap.add_argument("query")
    ap.add_argument("--brand", help="brand slug, e.g. carhartt")
    ap.add_argument("--group", action="append", help="Depop group, e.g. coats-jackets (repeatable)")
    ap.add_argument("--type", action="append", help="Depop productType, e.g. jackets (repeatable)")
    ap.add_argument("--must", default="", help="comma-separated words that must appear in slug/description")
    ap.add_argument("--min-price", type=float, default=10, help="ignore items priced below this (USD)")
    ap.add_argument("--kids", action="store_true", help="include kids' items")
    ap.add_argument("--pages", type=int, default=2, help="search pages of 100")
    ap.add_argument("--shops", type=int, default=40, help="how many sellers to read sold items from")
    ap.add_argument("--sold-pages", type=int, default=2, help="sold pages of 100 per shop")
    ap.add_argument("--max-per-shop", type=int, default=5, help="newest N matching sales kept per shop")
    a = ap.parse_args()
    a.must = [w.strip().lower() for w in a.must.split(",") if w.strip()]

    listings, total = search(a.query, a.pages)
    hits = [it for it in listings if matches(it, a)]
    per_seller = Counter(seller_id(it) for it in hits)
    per_seller.pop(None, None)
    asking, n = [], Counter()
    for it in hits:  # same per-shop cap on the asking side (bait listings come in batches)
        n[seller_id(it)] += 1
        if n[seller_id(it)] <= a.max_per_shop:
            asking.append(it)
    shops = [uid for uid, _ in per_seller.most_common(a.shops)]
    print(f"{len(listings)} listings, {len(hits)} match, {len(asking)} after the per-shop cap, "
          f"{len(per_seller)} sellers; reading {len(shops)} shops",
          file=sys.stderr)

    comps, same_shop, marked, capped, seen = [], [], 0, 0, set()
    for i, uid in enumerate(shops, 1):
        hits = [it for it in sold_items(uid, a.sold_pages) if matches(it, a)]
        kept = 0
        for it in hits:  # newest first
            if it["id"] in seen:
                continue
            seen.add(it["id"])
            if it["status"] == "STATUS_MARKED_AS_SOLD":  # sold off-platform or just hidden: no price signal
                marked += 1
                continue
            if kept >= a.max_per_shop:  # one big reseller shouldn't set the market price
                capped += 1
                continue
            comps.append(comp_row(it, uid))
            kept += 1
        if kept:  # what the shops that actually sell this item are asking right now
            same_shop += [it for it in shop_listings(uid) if matches(it, a)][:a.max_per_shop]
        print(f"  shop {i}/{len(shops)}: {len(hits)} matching sold", file=sys.stderr)

    slug = re.sub(r"[^a-z0-9]+", "-", a.query.lower()).strip("-")
    report(a.query, total or 0, asking, same_shop, comps, marked, len(shops), capped, os.path.join(HERE, "data", f"comps-{slug}.csv"))


if __name__ == "__main__":
    main()

A run costs about 2 search calls, up to 2 sold pages for each of 40 shops, and one shop-listings call for each shop that had a matching sale. The Carhartt run below made 65 calls, the Levi's run 49, and re-running either one from the cache cost nothing.

Results: Carhartt jackets

$ python3 depop_sold.py "carhartt jacket" --brand carhartt --type jackets --type coats
200 listings, 141 match, 140 after the per-shop cap, 134 sellers; reading 40 shops
Depop sold comps for 'carhartt jacket'  (2026-11-25 11:26)
search: 119,365 results; 140 matching active listings kept
sold:   31 matching sales from 40 shops (+21 'marked as sold' skipped, 30 over the per-shop cap)
biggest single shop: 5 of 31 sales (16%)

asking (active)     n=140  p25  25.00  median  45.55  p75  85.00
asking, same shops  n=30   p25  29.00  median  59.99  p75  62.50
sold                n=31   p25  40.00  median  59.99  p75  80.00

by condition         asking                          sold
  used_excellent     n=54   p25  24.75  median  42.50  p75  80.00 n=15   p25  59.99  median  59.99  p75  60.00
  used_good          n=33   p25  29.00  median  65.00  p75 135.00 n=12   p25  39.25  median  60.00  p75 134.25
  used_fair          n=22   p25  19.88  median  42.50  p75  75.00 n=4    p25  39.25  median  40.00  p75  74.50
  used_like_new      n=16   p25  20.00  median  48.50  p75  82.69 n=0    -
  brand_new          n=15   p25  29.00  median  50.00  p75  75.00 n=0    -

sale date known for 28 of 31 sales; days from listing to sale: p25 1.2  median 6.9  p75 16.7
  sold within 7 days: 50%
sold at a reduced price: 7/31 (23%), median cut 38%
sold by size: L 13, XL 11, S 3, M 3, XXL 1

latest sales:
  2026-11-25  $  59.99  used_excellent  S      120.2d  jackets    id 839956476
  2026-11-24  $  59.99  used_excellent  S        7.5d  jackets    id 1003412788
  2026-11-24  $  59.99  used_excellent  XL       7.3d  jackets    id 1003408173
  2026-11-24  $  59.99  used_excellent  L       27.1d  jackets    id 974593204
  2026-11-24  $  59.99  used_excellent  L        7.1d  jackets    id 1003410713
  2026-11-24  $  60.00  used_excellent  L        8.1d  jackets    id 1003054388
  2026-11-24  $  60.00  used_excellent  M        8.1d  jackets    id 1003040588
  2026-11-24  $  60.00  used_excellent  XL       8.0d  jackets    id 1003058846

wrote 31 rows to data/comps-carhartt-jacket.csv

How to read it:

  • Asking and sold are different populations. 140 active listings had a median asking price of $45.55, and 31 matching sales had a median of $59.99. That doesn't mean jackets sell above asking. Search results are full of one-off sellers, while sales come from shops that actually sell. The middle line is the fair comparison: the 13 shops that had a matching sale are asking a median $59.99 right now, the same as what they sold at.
  • Concentration is the first thing to check. Without the per-shop cap (--max-per-shop 1000), one reseller's batch of near-identical reworked jackets was 20 of 61 sales (33%), and the quartiles collapsed to $54.95 / $59.99 / $60.00. That looks like a precise market price, and it's mostly one shop. With the default cap of 5, the biggest shop is 16% and the middle half of sales spans $40 to $80. The median stays at $59.99 because several shops price this kind of jacket at $59.99 to $60.00.
  • Half the dated sales happened within a week of listing, the median was 6.9 days, and 3 of the 31 had no usable sale date. The "120.2d" sale at the top is an old listing that finally sold, and it's a reminder that createdAt is the listing date, not the date the seller first had the item.
  • Price cuts are common and deep. 23% of sales were at a reduced price, with a median cut of 38% from the original asking price.
  • Sizes skew large: L and XL were 24 of 31 sales.

When the sample is too thin: Levi's 501

The same tool on a busier, cheaper search:

$ python3 depop_sold.py "levis 501" --brand levi-s --must 501
199 listings, 54 match, 54 after the per-shop cap, 53 sellers; reading 40 shops
Depop sold comps for 'levis 501'  (2026-11-25 11:24)
search: 8,915 results; 54 matching active listings kept
sold:   6 matching sales from 40 shops (+3 'marked as sold' skipped, 0 over the per-shop cap)
biggest single shop: 2 of 6 sales (33%)

asking (active)     n=54   p25  10.00  median  10.00  p75  12.00
asking, same shops  n=11   p25  10.00  median  12.00  p75  14.00
sold                n=6    p25  11.75  median  13.50  p75  25.50

by condition         asking                          sold
  used_excellent     n=32   p25  10.00  median  10.00  p75  12.00 n=2    median 19
  used_like_new      n=12   p25  10.00  median  10.60  p75  12.00 n=3    median 13
  used_good          n=6    p25  10.00  median  10.00  p75  10.25 n=1    median 14
  brand_new          n=2    median 10                 n=0    -
  used_fair          n=2    median 10                 n=0    -

sale date known for 5 of 6 sales; days from listing to sale: p25 0.4  median 0.8  p75 4.0
  sold within 7 days: 80%
sold at a reduced price: 2/6 (33%), median cut 15%
sold by size: 36" 2, 24 2, 30" 1, 32" 1
...

145 of the first 199 results were under $10. The $10 floor is doing most of the work here, and the median asking price of the rest is the floor itself. Forty shops gave only six matching sales, because the sellers who list cheap 501s in search mostly have little history: 34 of the 40 had fewer than 20 sold items in total, and 5 had none. Six sales are an anecdote, not a price. When n is this small, change the inputs before you read the output. Read more search pages (--pages 4), rank shops by sales history instead of listing count (one /v1/depop/shop call each returns itemsSold), or drop --must and filter on product type.

Pitfalls, in one place

  • depop.com blocks scripts from server IPs with a Cloudflare 403, including robots.txt. The old webapi.depop.com/api/v3 routes return 410. Don't build on them.
  • Search results have no seller ID and no listing date. The seller ID is in the photo URL path. The listing date is only on sold and shop items.
  • "Sold" has two meanings. Drop STATUS_MARKED_AS_SOLD from price stats.
  • updatedAt is a proxy for the sale date, and about 8% of sold items never got one.
  • Use priceBreakdown.item. One endpoint folds the buyer fee into price.current for some items, the others don't.
  • Prices exclude shipping and accepted offers. For cheap items, shipping can cost more than the item.
  • Filter on brand slugs, not text. Carhartt and Carhartt WIP are different brands.
  • Cap per shop on both sides, or one reseller's batch becomes "the market".
  • Asking vs sold from different sellers isn't a markdown rate. Compare sales with the same shops' active listings.
  • Two endpoints failed for me. /v1/depop/filters and /v1/depop/sizes returned 404 not_found on November 25, 2026, with and without parameters. The tool doesn't need them, since it reads condition, sizes and types from the items.

Wrapping up

  • A Depop sold-comps tool fits in about 240 lines of standard-library Python: search, seller IDs from photo URLs, shop sold pages, one shared filter, a report.
  • The traps are in the meaning of the fields, not in the parsing: two kinds of "sold", a missing sale date, a buyer fee that comes and goes, bait prices and big resellers.
  • Show n and concentration next to every median. "$59.99 from 31 sales, biggest shop 16%" is a price you can act on. "$13.50 from 6 sales" isn't.
  • Depop's terms ban scraping. Read them, keep volumes small, and keep data about individual sellers out of anything you publish.

*I build it.

Want more #python & #tutorial deep dives?

Join 6,022+ developers sharing real benchmarks, code breakdowns, and projects. Free forever.

More Posts

Dashboard Operasional Armada Rental Mobil dengan Python + FastAPI

Masbadar - Mar 12

How I Built a React Portfolio in 7 Days That Landed ₹1.2L in Freelance Work

Dharanidharan - Feb 9

When One Python Process Fails, You Need to See All of Them

Tom Smithverified - Nov 23

I’m a Senior Dev and I’ve Forgotten How to Think Without a Prompt

Karol Modelski - Mar 19

Python for commerce students, from a former bio kid

rahuldk1105 - Oct 30
chevron_left
266 Points • 17 Badges
6Posts
0Comments

Related Jobs

View all jobs →

Commenters (This Week)

12 comments
8 comments
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!