Depop API: Resale Listings as JSON
To get Depop listings as JSON, call GET /v1/depop/search with a query: the recorded search for "jacket" returned items with brand, condition, colours, sizes, price.amount, shipping and is_sold, a total_count of 6,815,522 and a cursor for more. Product, similar-product, facet, brand, category and size endpoints fill in the rest. The Depop API on Perceptlayer has 18 endpoints, all standard-tier and 1 credit per successful call. This guide covers the search, the product lookups, a Python price snapshot and the cost.
What does the Depop API on Perceptlayer cover?
The Depop API on Perceptlayer has 18 GET endpoints, all standard-tier and all 1 credit per successful call. They cover listing search, single products, similar products, search facets and suggestions, reference lists (brands, categories, sizes, markets, shipping providers) and seller shops. Search is where most jobs start, because one call returns listings with prices, brands, conditions and sizes as named fields.
| Group | Endpoints | Required parameters |
|---|---|---|
| Search | search, facets, suggestions |
query |
| Products | product, product-similar |
product_id |
| Products | product-extended |
slug |
| Reference | brands, markets, sizes, shipping-providers |
none |
| Reference | categories |
view (filters, groups or size_mapping) |
| Sellers | shop, shop-aggregates, shop-feedback, shop-likes, shop-products, shop-sold, users-search |
see below |
The data is collected from publicly available sources and returned as found at the time of the call. These are Perceptlayer endpoints, not Depop's own developer offering; if you're comparing the two, check the fields and terms of each yourself. The Depop API page lists all 18 endpoints with a playground.
Which parameters does the Depop search take?
search takes one required parameter, query, and 18 optional ones. The catalogue documents types, length limits and allowed values, and nothing more, so it states no default page size and no format for the string filters. Test a filter in the playground on the search endpoint page before relying on it.
| Parameter | Type | Documented constraint |
|---|---|---|
query |
string, required | Up to 200 characters |
country |
string | None documented |
limit |
integer | None documented |
cursor |
string | Up to 500 characters |
sort |
string | One of price_asc, price_desc |
condition, brands, colours, variants, product_types |
string | Up to 500 characters each |
groups, discount_types |
string | None documented |
gender |
string | One of male, female, unisex |
is_kids, discounted |
boolean | None documented |
price_min, price_max |
number | None documented |
min_discount, max_discount |
integer | None documented |
curl "https://api.perceptlayer.com/v1/depop/search?query=jacket" \
-H "X-API-Key: $API_KEY"
Keys start with sk_live_ and go in the X-API-Key header, or the api_key query parameter where you can't set headers; the authentication docs cover both.
What does a Depop search response contain?
The response is a data object with the query, country, sort, a total_count, an items array and a pagination object. Each item has an id, status flags, brand, category fields, condition, colours, sizes, a price object, shipping, like_count and pictures. This excerpt of the recorded "jacket" search leaves out the listing slugs, URLs, locations and pictures:
{
"success": true,
"data": {
"query": "jacket",
"country": "us",
"sort": "relevance",
"total_count": 6815522,
"items": [
{
"id": 995977021,
…
"status": "STATUS_ONSALE",
"active_status": "active",
"is_sold": false,
"brand": { "id": 20035, "name": "Source Unknown", "slug": "source-unknown" },
"category_name": "Outerwear",
"group": "coats-jackets",
"product_type": "jackets",
"gender": "male",
"is_kids": false,
"condition": "used_good",
"colours": ["green"],
…
"sizes": [
{ "id": 5, "name": "L", "quantity": 1, "status": "STATUS_ONSALE" }
],
…
"price": {
"currency": "USD",
"amount": 13.19,
"total_amount": 13.19,
"original_amount": 13.19,
"is_reduced": false,
…
"shipping": { "amount": 1.99, "boundary": "NATIONAL", "provider": "USPS" }
},
…
"like_count": 1,
"is_boosted": false,
…
},
…
],
"pagination": {
"has_more": true,
"next_cursor": "MnwyNHwxNzk0NDg4ODg2.BOOSTED_EXHAUSTED.0"
}
},
…
}
| Field | What a market study does with it |
|---|---|
id |
Deduplicates listings across runs |
brand.name, group, product_type |
Groups listings by brand and category |
condition |
Values in the recording: used_good, brand_new |
price.amount, price.currency |
The asking price and its currency |
price.original_amount, price.is_reduced |
Whether the price was cut |
price.shipping.amount |
Shipping cost shown with the price |
sizes[].name, colours |
Size and colour mix |
is_sold, status |
Whether the listing is still on sale |
The response's pagination.next_cursor has the same name as the cursor parameter, but we have no recording of a call that passes it, so confirm paging in the playground. The second recorded item had styles and boosted_at fields that the first lacked, so treat every field as optional.
How do you look up one Depop product?
Three endpoints describe one product. GET /v1/depop/product takes an integer product_id. GET /v1/depop/product-extended takes a slug and returns labelled attributes and a price breakdown. GET /v1/depop/product-similar takes a product_id plus optional country and limit, and returns listings like it.
curl "https://api.perceptlayer.com/v1/depop/product?product_id=960845412" \
-H "X-API-Key: $API_KEY"
The recorded product response for 960845412, without the seller block, location, slug and pictures:
{
"success": true,
"data": {
"product": {
"id": 960845412,
…
"status": "S",
"is_sold": false,
"brand": { "id": 14806, "name": "Shyanne" },
"category": { "id": 13, "name": "Outerwear" },
…
"price": {
"currency": "USD",
"amount": 10.5,
"national_shipping_cost": 5.99
},
"quantity": 1,
"variants": { "16": 1 },
…
}
},
…
}
Search items and the product endpoint use different shapes: here status is "S" where search items say "STATUS_ONSALE", and category is an object rather than category_name. Parse each endpoint on its own terms. The recorded product-extended call used the same slug value that this product response returned, and it added fields such as condition.name ("Excellent condition"), materials and a price.campaigns entry that lowered shipping from "5.99" to "5.36".
The recorded product-similar call for 960845412 listed the product itself as its first item, with seller_id among its fields, and returned pagination.has_more: false. Skip items whose id equals the product_id you asked about.
Which endpoints help you build filters?
Five reference endpoints describe the catalogue rather than listings, and each costs 1 credit. They're worth calling once and caching, because they let a job pick valid filter values.
| Endpoint | Parameters | What the recording returned |
|---|---|---|
facets |
query, optional country |
Per-department and per-group counts; total 700000 for "jacket" |
suggestions |
query (up to 100 characters) |
Values such as "varsity jacket", each with group and gender |
brands |
optional letter, slug, query, limit, offset |
total 21732 brands with id, name, slug |
markets |
none | count 237 markets with code and name |
shipping-providers |
optional country |
featured and all provider names |
categories takes a required view of filters, groups or size_mapping, and sizes takes no parameters. The facets response reports total: 700000 while the search reported total_count: 6815522 for the same query, so treat the two as separate figures and don't reconcile them. Group keys in facets, such as coats-jackets, have the same names as the group values on search items.
Which seller endpoints are there?
Seven endpoints return shop and user data. This guide lists them by name and parameters only and keeps every use case to listings and markets, not individual sellers. If you use them, store only what your purpose needs, and leave seller names and avatars out of what you keep.
| Endpoint | Required | Optional |
|---|---|---|
shop |
none | seller_id, username |
shop-aggregates |
seller_id |
none |
shop-feedback |
seller_id, role (seller or buyer) |
limit, offset |
shop-likes |
seller_id |
limit, cursor |
shop-products |
seller_id |
limit, cursor, ranking (recent, price_asc, price_desc) |
shop-sold |
seller_id |
limit, cursor |
users-search |
query (up to 60 characters) |
none |
How do you snapshot Depop prices in Python?
A price snapshot runs a fixed set of searches each day and appends one row per listing: the run time, the query, the listing id, brand, product type, condition, price, original price, the reduced flag and the first size. Grouping rows by query, brand and condition gives median asking prices over time. The script uses Python, requests and csv, and reads only fields from the recorded search.
import csv
import datetime
import os
import time
import requests
API_KEY = os.environ["API_KEY"]
URL = "https://api.perceptlayer.com/v1/depop/search"
QUERIES = ["jacket", "denim jacket", "varsity jacket"]
def search(query, attempts=3):
for _ in range(attempts):
r = requests.get(URL, params={"query": query},
headers={"X-API-Key": API_KEY}, timeout=60)
if r.status_code in (429, 503):
time.sleep(int(r.headers.get("Retry-After", "5")))
continue
r.raise_for_status()
return r.json()["data"]
raise RuntimeError(f"gave up on {query}")
now = datetime.datetime.now(datetime.timezone.utc).isoformat()
with open("depop-prices.csv", "a", newline="") as f:
out = csv.writer(f)
for query in QUERIES:
for item in search(query).get("items", []):
price = item.get("price") or {}
sizes = item.get("sizes") or [{}]
out.writerow([
now, query, item.get("id"), (item.get("brand") or {}).get("name"),
item.get("product_type"), item.get("condition"),
price.get("currency"), price.get("amount"),
price.get("original_amount"), price.get("is_reduced"),
sizes[0].get("name"), item.get("is_sold"),
])
time.sleep(1)
The script writes no slug, URL, location or picture, because a market study doesn't need them. The one-second pause keeps a free account inside its 1 request a second.
What should the job do with errors?
Every error returns an HTTP status and a JSON body with code, message and request_id, and costs nothing. Retry rate_limited (429) and temporarily_unavailable (503) after the Retry-After seconds. Treat invalid_parameters (422) as a bug in your query list, and check the product_id when a product call returns not_found (404). The errors docs list every code.
What does Depop data cost?
Every successful call to any of the 18 Depop endpoints costs 1 credit, and failed calls cost nothing, returning X-Credits-Used: 0. A search call returns a page of listings for that 1 credit, so a snapshot's cost follows the number of queries, not the number of listings. Product lookups cost 1 credit per listing.
| Plan | Arithmetic | Credits a month |
|---|---|---|
| 50 searches daily | 50 × 30 days × 1 credit | 1,500 |
| 300 searches daily | 300 × 30 days × 1 credit | 9,000 |
| 1,000 product checks daily | 1,000 × 30 days × 1 credit | 30,000 |
The first two fit the Starter pack's 10,000 credits, and the third fits the Build pack's 50,000. The 100 free credits on signup cover 100 calls, enough to run the three-query script above 33 times. Purchased credits last 12 months. See pricing for what credits cost and the credits docs for how calls are debited.
To try it, run query=jacket in the playground on the Depop API page, then get a free API key. For other resale sources, see the Poshmark and Mercari API guide, the StockX API guide and the marketplaces APIs.
APIs in this post
Frequently asked questions
Is this Depop's official API?
No. These are Perceptlayer endpoints that return public Depop data, collected from publicly available sources and returned as found at the time of the call. They search listings, look up products and list reference data such as brands and sizes. If you're choosing between them and Depop's own offering, compare fields and terms yourself, and read Depop's terms before commercial use.
Can I filter a Depop search by price and condition?
Yes. search takes price_min and price_max as numbers, condition as a string of up to 500 characters, and sort as price_asc or price_desc. The catalogue doesn't document the format of condition values; the recorded items used used_good and brand_new, so test those in the playground before you rely on them.
How do I get more than one page of Depop results?
Search responses carry pagination.has_more and pagination.next_cursor, and the endpoint takes a cursor parameter of up to 500 characters. The names match, but we have no recording of a call that passes the cursor, so confirm the behaviour in the playground. Each page is a separate call at 1 credit.
Does the Depop data show whether a price was reduced?
Yes. Each search item's price object has amount, original_amount and is_reduced. In the recorded search, both items had is_reduced: false with amount equal to original_amount. Search also accepts discounted, min_discount and max_discount filters, which the catalogue documents by type only.
Are the Depop endpoints restricted?
No. All 18 Depop endpoints are standard-tier, so any key can call them without accepting extra terms. Some responses include seller details. Keep your use to listings, brands and markets, store only the fields your purpose needs, and leave seller names and avatars out of what you keep.