Depop
Depop Shop Sold API
A Depop shop's sold listings, by username or shop id, 24 a page and paged by cursor: each with the price it sold at, the original price, the markdown percentage, whether it sold on Depop (sold) or the seller marked it sold (marked_as_sold), brand, category, size, condition and created_at and updated_at. Depop has no keyword search of sold listings, so a shop's sold list is where Depop sold prices come from; Depop shows no sale date, so updated_at (the listing's last change) is the nearest date. Shop data is global. Costs 1 credit per page.
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonusernamestringShop username (depop.com/<username>/; seller.username of product). Send one of username or shop_id.
Example: flomem
shop_idinteger | stringShop id (shop_id of shop, seller.id of product).
Example: 46847613
cursorstringnext_cursor of the previous page. Leave out for the first page.
limitintegerdefault:24Listings per page, 1 to 24.
Example: 24
Notes
Markets. shop-sold is global: a Depop shop, its listings, sold listings and reviews, the category tree and the brand list are one record for every market, so it takes no country. Prices in shop listings are in the seller's listing currency.
Request
from statistics import median
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key", timeout=60)
# What one shop's items sold for, per brand: 1 credit per page of 24.
sold = client.depop.shop_sold(username="flomem")["data"]["items"]
by_brand = {}
for i in sold:
if i["status"] != "sold": # marked_as_sold may be a sale outside Depop
continue
name = (i["brand"] or {}).get("name") or "no brand"
by_brand.setdefault(name, []).append(i["price"]["price"])
for name, prices in sorted(by_brand.items(), key=lambda kv: -len(kv[1])):
print(name, len(prices), "sold, median", median(prices))Response