Skip to content

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

Depop Scraper API by ScrapeBadger

Get API key Docs MCP server Pricing

Depop Scraper API

Get Depop listings as JSON with one HTTP request. The Depop Scraper API searches Depop's second-hand fashion catalog with price, brand, size, condition and gender filters, returns full product pages (title, description, brand, condition, price, availability, dispatch time, photos and seller), and reads seller shop profiles and everything a shop has listed, in 10 Depop markets. This repo has a runnable Python, Node.js and cURL example for each endpoint and the real response each one returned.

What does a Depop scraper do?

A Depop scraper collects public listing data from Depop, such as item titles, brands, sizes, conditions, prices, photos and seller shop details, and returns it as structured data. Resellers use it to price items and spot trending brands, and analysts use it to track the second-hand fashion market. With this API you send a keyword, a product slug or a shop name and get JSON back, in the market and currency you pick.

Contents

Quick start

  1. Create a free ScrapeBadger account. You get 1,000 free credits, no card needed.

  2. Copy your API key from the dashboard and export it:

    export SCRAPEBADGER_API_KEY="your_api_key"
  3. Make your first request: search Depop listings.

cURL

curl -sS --max-time 120 -G "https://scrapebadger.com/v1/depop/search" \
  -H "X-API-Key: $SCRAPEBADGER_API_KEY" \
  --data-urlencode 'query=vintage carhartt jacket' \
  --data-urlencode 'market=us'

Python (pip install requests)

import json
import os

import requests

API_KEY = os.environ["SCRAPEBADGER_API_KEY"]

response = requests.get(
    "https://scrapebadger.com/v1/depop/search",
    headers={"X-API-Key": API_KEY},
    params={
        "query": "vintage carhartt jacket",
        "market": "us",
    },
    timeout=120,
)
response.raise_for_status()
print(json.dumps(response.json(), indent=2, ensure_ascii=False))

Node.js (18+, no dependencies)

const params = new URLSearchParams({
  query: 'vintage carhartt jacket',
  market: 'us',
});

const response = await fetch(`https://scrapebadger.com/v1/depop/search?${params}`, {
  headers: { 'X-API-Key': process.env.SCRAPEBADGER_API_KEY },
  signal: AbortSignal.timeout(120000),
});
if (!response.ok) {
  throw new Error(`HTTP ${response.status}: ${await response.text()}`);
}
console.log(JSON.stringify(await response.json(), null, 2));

Every endpoint below has the same three versions in examples/, and the real response it returned is in output-samples/.

Endpoints

Base URL: https://scrapebadger.com. Authenticate with the X-API-Key header. Credits are charged only for successful requests.

Endpoint What it returns Credits per request Docs
GET /v1/depop/search Search Depop products 10 Docs
GET /v1/depop/products/{product_id} Get product detail 10
GET /v1/depop/users/{username} Get shop/user profile 10 Docs
GET /v1/depop/users/{username}/products Get a user's products 10 Docs
GET /v1/depop/markets List markets Free Docs

Common parameters

Parameter Description Default
market Depop market, which sets the country and currency, e.g. us, gb, au, fr, de. GET /v1/depop/markets lists all 10. us
per_page Results per page on search and shop listings. 24

Examples by endpoint

Each example prints the JSON response. The Python versions are below; Node.js and cURL versions are linked under each one.

Search Depop listings

Search the Depop catalog with filters (cursor-paginated).

GET /v1/depop/search · Credits: 10 · Docs

Parameter Required Type Default Description
query Yes string Search text, e.g. 'nike vintage'
market string us Market code (us, gb, au, it, fr, ...)
per_page integer 24 Results per page
cursor string Pagination cursor (from previous page)
price_min number Minimum price
price_max number Maximum price
brands string Comma-separated brand IDs
categories string Comma-separated category IDs
sizes string Comma-separated size IDs
conditions string Comma-separated condition slugs (brand_new, used_excellent, ...)
gender string male | female
sort string relevance (default) | priceAscending | priceDescending
import json
import os

import requests

API_KEY = os.environ["SCRAPEBADGER_API_KEY"]

response = requests.get(
    "https://scrapebadger.com/v1/depop/search",
    headers={"X-API-Key": API_KEY},
    params={
        "query": "vintage carhartt jacket",
        "market": "us",
    },
    timeout=120,
)
response.raise_for_status()
print(json.dumps(response.json(), indent=2, ensure_ascii=False))

Node.js · cURL · Output sample (11 KB)

Get product details

Full detail for a single product (by numeric id or slug).

GET /v1/depop/products/{product_id} · Credits: 10

Parameter Required Type Default Description
product_id Yes string Depop product slug (the part after /products/ in a product URL) or numeric product ID
market string us Market code
import json
import os

import requests

API_KEY = os.environ["SCRAPEBADGER_API_KEY"]

product_id = "viktageinamerica-carhartt-reworked-acid-wash-detroit-jacket-5d0b"

response = requests.get(
    f"https://scrapebadger.com/v1/depop/products/{product_id}",
    headers={"X-API-Key": API_KEY},
    params={
        "market": "us",
    },
    timeout=120,
)
response.raise_for_status()
print(json.dumps(response.json(), indent=2, ensure_ascii=False))

Node.js · cURL · Output sample (1 KB)

Get a seller's shop profile

Public shop/user profile by username.

GET /v1/depop/users/{username} · Credits: 10 · Docs

Parameter Required Type Default Description
username Yes string Depop shop username (the part after depop.com/ in a shop URL), e.g. vintageinamerica
market string us Market code
import json
import os

import requests

API_KEY = os.environ["SCRAPEBADGER_API_KEY"]

username = "vintageinamerica"

response = requests.get(
    f"https://scrapebadger.com/v1/depop/users/{username}",
    headers={"X-API-Key": API_KEY},
    params={
        "market": "us",
    },
    timeout=120,
)
response.raise_for_status()
print(json.dumps(response.json(), indent=2, ensure_ascii=False))

Node.js · cURL · Output sample (1 KB)

Get a seller's listings

A user's active listings (cursor-paginated).

GET /v1/depop/users/{username}/products · Credits: 10 · Docs

Parameter Required Type Default Description
username Yes string Depop shop username (the part after depop.com/ in a shop URL), e.g. vintageinamerica
market string us Market code
per_page integer 24 Results per page on search and shop listings.
cursor string Pagination cursor
import json
import os

import requests

API_KEY = os.environ["SCRAPEBADGER_API_KEY"]

username = "vintageinamerica"

response = requests.get(
    f"https://scrapebadger.com/v1/depop/users/{username}/products",
    headers={"X-API-Key": API_KEY},
    params={
        "market": "us",
    },
    timeout=120,
)
response.raise_for_status()
print(json.dumps(response.json(), indent=2, ensure_ascii=False))

Node.js · cURL · Output sample (10 KB)

List markets

List supported Depop markets (country + currency).

GET /v1/depop/markets · Credits: Free · Docs

import json
import os

import requests

API_KEY = os.environ["SCRAPEBADGER_API_KEY"]

response = requests.get(
    "https://scrapebadger.com/v1/depop/markets",
    headers={"X-API-Key": API_KEY},
    timeout=120,
)
response.raise_for_status()
print(json.dumps(response.json(), indent=2, ensure_ascii=False))

Node.js · cURL · Output sample (1 KB)

Example output

A real response from GET /v1/depop/search, trimmed to the first items of each list. The full response is in output-samples/search.json.

{
  "products": [
    {
      "slug": "gs_viutagetees-vintage-olive-green-carhartt-active-8e33",
      "url": "https://www.depop.com/products/gs_viutagetees-vintage-olive-green-carhartt-active-8e33/",
      "seller_username": null,
      "brand": "Carhartt",
      "size": "XL",
      "price": "12.00",
      "original_price": "120.00",
      "currency": "USD",
      "is_sold": false,
      "image": "https://media-photos.depop.com/r1/49151266/5347640666_18943a71a7c748f2ba6adbc029b4460a/P0.jpg"
    },
    {
      "slug": "wa1psells-vintage-90s-distressed-carhartt-jacket-2c89",
      "url": "https://www.depop.com/products/wa1psells-vintage-90s-distressed-carhartt-jacket-2c89/",
      "seller_username": null,
      "brand": "Carhartt",
      "size": "L",
      "price": "78.00",
      "original_price": "130.00",
      "currency": "USD",
      "is_sold": false,
      "image": "https://media-photos.depop.com/b1/334103156/5276942339_4e367c9b45874e24ae40d2a65742a3b4/P0.jpg"
    }
  ],
  "meta": {
    "result_count": 24,
    "page": 1,
    "has_more": true,
    "next_cursor": "MnwyNHwxNzk2MTcwMDgw.BOOSTED_EXHAUSTED.0"
  },
  "market": "us",
  "query": "vintage carhartt jacket"
}

Use it with AI agents (MCP)

ScrapeBadger runs a hosted MCP server, so Claude, Cursor, ChatGPT and other agents can call the Depop endpoints as tools, with no code.

  • Claude (claude.ai or Claude Desktop): Settings → Connectors → Add custom connector → https://mcp.scrapebadger.com/mcp, then sign in. No API key needed.
  • Cursor, VS Code, Windsurf and other clients: add this server to your MCP config:
{
  "mcpServers": {
    "scrapebadger": {
      "url": "https://mcp.scrapebadger.com/mcp?apis=depop",
      "headers": { "Authorization": "Bearer YOUR_SCRAPEBADGER_API_KEY" }
    }
  }
}

Then ask:

Search Depop US for vintage Carhartt Detroit jackets under $150, and give me the median asking price, the size spread and the 5 cheapest listings.

Setup guides for each client are in the MCP docs.

Use cases

Use case What you collect Endpoints
Resale pricing Asking prices for an item by brand, size and condition, in each market's currency Search Depop listings, Get product details
Trend and brand research Which brands and styles are listed for a keyword, and at what price points Search Depop listings
Shop and competitor research A shop's rating, followers, and everything it has for sale Get a seller's shop profile, Get a seller's listings
Cross-market comparison The same search in the US, UK and EU markets, with local prices Search Depop listings, List markets

Pricing

  • Each endpoint's credit cost is listed in the endpoints table.
  • Only successful requests are billed. Blocked, empty and failed results cost nothing.
  • New accounts get 1,000 free credits. After that, pay as you go or pick a monthly plan. Credits on pay-as-you-go never expire.

See ScrapeBadger pricing for the price per credit on each plan.

Errors

Errors come back as JSON with a detail field (and an error code on some).

Status Meaning What to do
400 / 422 A parameter is missing or invalid Check the parameter table for the endpoint
401 Missing, invalid or expired API key Send the key in the X-API-Key header
402 Out of credits Top up or upgrade in the dashboard
403 The key can't call this API, or the request came from an IP the key doesn't allow Check the key's scopes and IP allowlist
404 The item, page or profile doesn't exist (or is no longer public) Check the ID; not billed
429 Over your account's max concurrency Wait Retry-After (1 s) and retry; run fewer calls in parallel (concurrency)
502 / 503 / 504 The target site failed or timed out on this attempt Not billed. Retry with backoff

Long calls can run asynchronously: send Prefer: respond-async and poll the returned request_id (async requests).

FAQ

Is it legal to scrape Depop?

Listings and shop pages on Depop are public, and collecting public data is generally lawful in most jurisdictions. Shop profiles can contain personal data, so check the rules that apply to how you store and use it (for example GDPR), and ask a lawyer if you're unsure.

What Depop data can I get?

Search results with price, brand, size and sold status; full product pages with description, condition, photos, availability, dispatch time and the seller; shop profiles with name, bio, rating and follower count; and a shop's active listings. See the endpoints table.

How much does it cost?

Each request costs a fixed number of credits, shown in the endpoints table, and only successful requests are billed. You get 1,000 free credits when you sign up, then pay as you go or pick a plan on the pricing page.

Which Depop markets are supported?

10: United States, United Kingdom, Australia, Ireland, Italy, France, Germany, Spain, Netherlands and New Zealand. Pass the market code in market (us, gb, au and so on); prices come back in that market's currency. GET /v1/depop/markets returns the list.

How fast is it, and are there rate limits?

Most calls answer in 1 to 5 seconds. There's no per-minute cap: you can run as many requests in parallel as your plan's max concurrency allows, and a request over it gets 429 without being billed.

Other languages

These examples use plain HTTP. Official SDKs wrap every endpoint with types and retries:

Language Repository Install
Python scrape-badger/scrapebadger-python pip install scrapebadger
Node.js / TypeScript scrape-badger/scrapebadger-node npm install scrapebadger
Go scrape-badger/scrapebadger-go
Java scrape-badger/scrapebadger-java
C# scrape-badger/scrapebadger-csharp
PHP scrape-badger/scrapebadger-php
Ruby scrape-badger/scrapebadger-ruby
Rust scrape-badger/scrapebadger-rust
Kotlin scrape-badger/scrapebadger-kotlin
Swift scrape-badger/scrapebadger-swift
Dart scrape-badger/scrapebadger-dart
C++ scrape-badger/scrapebadger-cpp

There is also a CLI (pip install scrapebadger-cli) and an n8n node.

Related scrapers

  • Vinted Scraper API: Search by text or photo, items, sellers, brands and reference data on 27 markets
  • Wallapop Scraper API: Second-hand listings, items, sellers and reviews in Spain, Italy and Portugal
  • eBay Scraper API: Active and sold listings, item details, reviews and sellers on 18 marketplaces
  • Etsy Scraper API: Search, listings, shops, reviews, categories and suggestions
  • E-commerce Scraper API: Every marketplace we cover, with one example repo per marketplace

Learn more

Disclaimer

ScrapeBadger is an independent tool and is not affiliated with, endorsed by, or sponsored by Depop Limited or any of its subsidiaries or affiliates. "Depop" is a trademark of Depop Limited, used here only to describe the platform this scraper works with. This repository only covers publicly available data. You are responsible for how you use the data you collect and for following the laws that apply to you.

License

MIT. The examples are free to copy into your own projects.