Depop API endpoint
Returns result-count breakdowns per department/category/subcategory for a search query, via Depop's dedicated aggregates API -- a distinct upstream call from search itself, not embedded in its response. Public data sourced from Depop's own search-aggregates API.
/depop/search/facetsBilling: 3 credits per request, or 5 when the page needs a browser render. A call needs 5 available credits to start. Only a 2xx response is charged, and the x-credit-cost response header reports what the call cost.
Query parameters:
query (required) — free-text keyword search, same value you'd pass to
/depop/search.Notable response behavior:
503 means both paths were blocked. Retry later.departments is sorted alphabetically by department name; each
department's categories/subcategories are sorted alphabetically by
id for a deterministic order.categories/subcategories are already department-scoped — unlike
/depop/search's own category/subcategory filters, which apply
across all departments, a facet's count here only covers listings
within that specific department.subcategories are omitted (not an empty array) for a department with
no subcategory breakdown in the upstream response.query returns 400 before any upstream request is made.The named fields cover the reviewed Depop fields. Every other field the upstream
sends is returned in the nearest record's extras object (and in a response-level
extras for the envelope), mirroring the upstream shape: an extras object holds
only the keys the named fields do not, and arrays are aligned by index with null
for rows that have no extra key. Values the response reduces to one (a single
image, price, URL or brand) are returned whole in extras as well. Nothing the
upstream sends is stripped, including personal, contact, financial, moderation and
credential-like fields. extras is omitted when a record has no unmodelled
field.
| Field | Filled in, of 4 checked | Values in the sample |
|---|---|---|
| department | 4 | “everything_else” and 3 other values |
| count | 4 | 37 to 27,079, median 72 |
| categories | 3 | median 10 entries |
| subcategories | 3 | median 26 entries |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| query | string | Yes | Free-text keyword search | bandage dress | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/depop/search/facets?query=bandage+dress" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"query": "bandage dress",
"departments": [
{
"department": "menswear",
"count": 39,
"categories": [
{
"id": "coats-jackets",
"count": 4
},
{
"id": "fancy-dress",
"count": 14
},
{
"id": "tops",
"count": 12
}
],
"subcategories": [
{
"id": "jackets",
"count": 4
},
{
"id": "tshirts",
"count": 5
}
]
},
{
"department": "womenswear",
"count": 23744,
"categories": [
{
"id": "dresses",
"count": 22504
},
{
"id": "tops",
"count": 509
}
],
"subcategories": [
{
"id": "shift-dresses",
"count": 22
},
{
"id": "wedding-dresses",
"count": 7
}
]
}
]
}
}Request schema
No body schema
Response schema
#/definitions/depop.searchFacetsResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | depop.SearchFacetsResponse | No | ||||
| data.departments | array | No | ||||
| data.departments[].categories | array | No | ||||
| data.departments[].categories[].count | integer | No | ||||
| data.departments[].categories[].id | string | No | ||||
| data.departments[].count | integer | No | ||||
| data.departments[].department | string | No | ||||
| data.departments[].subcategories | array | No | ||||
| data.departments[].subcategories[].count | integer | No | ||||
| data.departments[].subcategories[].id | string | No | ||||
| data.extras | object | No | Extras carries every upstream field this API does not model as a named field (see docs/depop-search-facets.md "Extras"). It mirrors the upstream shape, holds only the unmodelled keys, and is omitted when there are none. | |||
| data.query | string | No | ||||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 500 | Internal Server Error | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/depop/search/facets?query=bandage+dress" \
-H "x-api-key: $CRAWLORA_API_KEY"