Skip to content
Scrappa Get API key
Depop API 1 credit/request

Depop Shop Aggregates API Documentation

GET https://scrappa.co/api/depop/shop/aggregates

Depop Shop Aggregates API Documentation Get how many items a seller has in each category, brand, colour, condition and size, plus the total. The data is public Depop data and the endpoint is read only. A failed request is never billed.

Depop Shop Aggregates API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/depop/shop/aggregates
Auth header
x-api-key
Cost
1 credit/request
seller_id = 1234567890
Response preview
200 OK
{
    "data": {
        "sizes": {
            "22.3": 1,
            "22.7": 1,
            "22.8": 2,
            "4.15": 4,
            "4.16": 18,
            "4.17": 13,
            "4.18": 2,
            "4.32": 1,
            "22.16": 1,
            "22.17": 1,
            "22.27": 3,
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

seller_id integer Required

Numeric seller id. Get it from product.seller.id or from /api/depop/users/search.

Example value 1234567890

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "data": {
        "sizes": {
            "22.3": 1,
            "22.7": 1,
            "22.8": 2,
            "4.15": 4,
            "4.16": 18,
            "4.17": 13,
            "4.18": 2,
            "4.32": 1,
            "22.16": 1,
            "22.17": 1,
            "22.27": 3,
            "22.28": 6
        },
        "total": 160,
        "brands": {
            "9": {
                "count": 1
            },
            "32": {
                "count": 1
            },
            "55": {
                "count": 1
            },
            "98": {
                "count": 1
            },
            "147": {
                "count": 3
            },
            "158": {
                "count": 2
            },
            "189": {
                "count": 1
            },
            "195": {
                "count": 1
            },
            "212": {
                "count": 3
            },
            "222": {
                "count": 1
            },
            "277": {
                "count": 1
            },
            "282": {
                "count": 1
            }
        },
        "colours": {
            "red": {
                "count": 16
            },
            "tan": {
                "count": 12
            },
            "blue": {
                "count": 31
            },
            "gold": {
                "count": 4
            },
            "grey": {
                "count": 7
            },
            "pink": {
                "count": 20
            },
            "brown": {
                "count": 14
            },
            "green": {
                "count": 9
            },
            "orange": {
                "count": 6
            },
            "purple": {
                "count": 3
            },
            "silver": {
                "count": 17
            },
            "yellow": {
                "count": 6
            }
        },
        "seller_id": 222287722,
        "categories": {
            "kidswear": {
                "count": 0,
                "variants": {
                    "male": {
                        "count": 0,
                        "variants": []
                    },
                    "female": {
                        "count": 0,
                        "variants": []
                    },
                    "unisex": {
                        "count": 0,
                        "variants": []
                    }
                }
            },
            "menswear": {
                "count": 2,
                "variants": {
                    "tops": {
                        "count": 1
                    },
                    "gilets": {
                        "count": 1
                    },
                    "blouses": {
                        "count": 1
                    },
                    "coats-jackets": {
                        "count": 1
                    }
                }
            },
            "womenswear": {
                "count": 158,
                "variants": {
                    "belt": {
                        "count": 1
                    },
                    "tops": {
                        "count": 38
                    },
                    "shorts": {
                        "count": 6
                    },
                    "bottoms": {
                        "count": 20
                    },
                    "dresses": {
                        "count": 45
                    },
                    "footwear": {
                        "count": 9
                    },
                    "nightwear": {
                        "count": 2
                    },
                    "accessories": {
                        "count": 23
                    },
                    "scarf-wraps": {
                        "count": 2
                    },
                    "coats-jackets": {
                        "count": 4
                    },
                    "swim-beach-wear": {
                        "count": 2
                    },
                    "jumpsuit-and-playsuit": {
                        "count": 1
                    }
                }
            },
            "everything-else": {
                "count": 0,
                "variants": []
            }
        },
        "conditions": {
            "brand_new": {
                "count": 9
            },
            "used_fair": {
                "count": 2
            },
            "used_good": {
                "count": 24
            },
            "used_like_new": {
                "count": 7
            },
            "used_excellent": {
                "count": 118
            }
        }
    },
    "meta": {
        "billable": true,
        "endpoint_family": "shop_aggregates"
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

A parameter is missing or invalid. Depop is not called and the request is not billable.

{
    "errors": {
        "query": [
            "A query is required, for example jacket."
        ]
    },
    "message": "The request validation failed"
}
503

Upstream Unavailable

Depop did not answer after several tries. Retry later. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "shop_aggregates"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "The Depop API is temporarily unavailable. Please retry."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.