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/facetsQuery 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.| 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.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"