Depop
Depop Categories API
Depop's category tree: departments (Men, Women, Kids, Everything else), their groups and product types, each with an id, a name and the path the category endpoint takes (mens/bottoms/jeans). Group and product type ids are the group and product_type filters of search and brand. Names in en, en-US, de, fr or it (department names stay English); include_sizes adds each department's size systems with their size filter values. Global. Costs 1 credit.
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/jsonlanguageenum<string>default:enLanguage of group and product type names. Department names stay English.
Example: de
en— English (UK wording). The default.en-US— English (US wording).de— German.fr— French.it— Italian.
include_sizesbooleandefault:falseAdd size_sets: each department's size systems with the size filter values search takes (size_set_id.size_id). A larger answer.
Example: true
Notes
Markets. categories 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 scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key", timeout=60)
tree = client.depop.categories(language="en")["data"]
for d in tree["departments"]:
for g in d["groups"]:
print(g["path"], [t["id"] for t in g["product_types"]][:5])Response