Depop API endpoint
Returns Depop's own search-box autocomplete suggestions for a partial query, including the category a suggestion maps to when relevant. Public data sourced from Depop's own search-suggestions API.
/depop/suggestBilling: 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) — partial search query to autocomplete.Notable response behavior:
503 means both paths were blocked. Retry later.value is the suggested phrase with Depop's own bold-match markup
stripped (the upstream API wraps the substring matching query in
**...** for highlighting; this endpoint returns the plain text).group, suggested_filter_label, and gender are present when the
suggestion maps to a specific Depop category/department (e.g. group
tops, suggested_filter_label "in Women's Tops", gender female)
— all three omitted for a plain free-text suggestion with no category
match.query returns 400 before any upstream request is made.200 with "suggestions": [].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 7 checked | Values in the sample |
|---|---|---|
| value | 7 | “red corset” and 4 other values |
| group | 2 | “tops” and 1 other value |
| suggested_filter_label | 2 | “in Women's Tops” and 1 other value |
| gender | 2 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| query | string | Yes | Partial search query to autocomplete | red corte | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/depop/suggest?query=red+corte" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"query": "red corte",
"suggestions": [
{
"value": "red corset",
"group": "tops",
"suggested_filter_label": "in Women's Tops",
"gender": "female"
},
{
"value": "red corset"
},
{
"value": "red corset top"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/depop.suggestResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | depop.SuggestResponse | No | ||||
| data.extras | object | No | Extras carries every upstream field this API does not model as a named field (see docs/depop-suggest.md "Extras"). It mirrors the upstream shape, holds only the unmodelled keys, and is omitted when there are none. | |||
| data.query | string | No | ||||
| data.suggestions | array | No | ||||
| data.suggestions[].extras | object | No | Extras carries every upstream field this API does not model as a named field (see docs/depop-suggest.md "Extras"). It mirrors the upstream shape, holds only the unmodelled keys, and is omitted when there are none. | |||
| data.suggestions[].gender | string | No | ||||
| data.suggestions[].group | string | No | Group and SuggestedFilterLabel are present when the suggestion maps to a specific category (e.g. Group "tops", SuggestedFilterLabel "in Women's Tops") -- both omitted for a plain free-text suggestion. | |||
| data.suggestions[].suggested_filter_label | string | No | ||||
| data.suggestions[].value | 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/suggest?query=red+corte" \
-H "x-api-key: $CRAWLORA_API_KEY"