{
  "openapi": "3.0.1",
  "info": {
    "title": "Depop Real Time Data Scraper",
    "description": "Scrape live Depop data: search results, full listings, seller shops, profiles, trending items, or any URL. Get rich fields including prices, brands, sizes, sold history, shipping details, and seller signals.",
    "version": "0.0",
    "x-build-id": "h1h2fUZKLIUHVhWl3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/b2b_leads~Depop-Real-Time-Data/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-b2b_leads-Depop-Real-Time-Data",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/b2b_leads~Depop-Real-Time-Data/runs": {
      "post": {
        "operationId": "runs-sync-b2b_leads-Depop-Real-Time-Data",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/b2b_leads~Depop-Real-Time-Data/run-sync": {
      "post": {
        "operationId": "run-sync-b2b_leads-Depop-Real-Time-Data",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "country": {
            "title": "Region / Country",
            "enum": [
              "US",
              "UK",
              "AU"
            ],
            "type": "string",
            "description": "Depop region. Drives headers and proxy recommendation.",
            "default": "US"
          },
          "enableListingSearch": {
            "title": "Listing Search",
            "type": "boolean",
            "description": "Search Depop listings by keyword and filters.",
            "default": true
          },
          "searchKeywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "Keywords, brands, or terms (e.g. \"vintage levis\", \"nike dunk\").",
            "default": [
              "vintage jeans"
            ],
            "items": {
              "type": "string"
            }
          },
          "searchMaxResults": {
            "title": "Max results per keyword",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum listings per keyword (1-200).",
            "default": 20
          },
          "searchSort": {
            "title": "Sort order",
            "enum": [
              "relevance",
              "newest",
              "price-low",
              "price-high"
            ],
            "type": "string",
            "description": "How to sort search results.",
            "default": "relevance"
          },
          "searchBrand": {
            "title": "Brand filter (optional)",
            "type": "string",
            "description": "Filter by brand name.",
            "default": ""
          },
          "searchSize": {
            "title": "Size filter (optional)",
            "type": "string",
            "description": "e.g. M, L, 8, 10",
            "default": ""
          },
          "searchCondition": {
            "title": "Condition filter",
            "enum": [
              "",
              "new",
              "used",
              "good"
            ],
            "type": "string",
            "description": "Filter by item condition.",
            "default": ""
          },
          "enableListingDetails": {
            "title": "Listing Details",
            "type": "boolean",
            "description": "Fetch full details for specific listings.",
            "default": false
          },
          "listingSlugs": {
            "title": "Listing slugs / IDs",
            "type": "array",
            "description": "Listing identifiers or slugs.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "listingUrls": {
            "title": "Listing URLs",
            "type": "array",
            "description": "Full Depop listing page URLs.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "enableSellerListings": {
            "title": "Seller Listings (Shop)",
            "type": "boolean",
            "description": "Get listings from a seller's shop.",
            "default": false
          },
          "sellerUsernames": {
            "title": "Seller usernames",
            "type": "array",
            "description": "Depop usernames (without @).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sellerMaxListings": {
            "title": "Max listings per seller",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of listings to fetch per seller (1-100).",
            "default": 30
          },
          "enableSellerProfile": {
            "title": "Seller Profile",
            "type": "boolean",
            "description": "Fetch seller profile information.",
            "default": false
          },
          "enableScrapeByUrl": {
            "title": "Scrape By URL",
            "type": "boolean",
            "description": "Scrape any Depop URL with auto-detection.",
            "default": false
          },
          "scrapeUrls": {
            "title": "Depop URLs",
            "type": "array",
            "description": "Any Depop search, product, or shop URL.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "enableTrending": {
            "title": "Trending / Category",
            "type": "boolean",
            "description": "Scrape trending or category pages.",
            "default": false
          },
          "trendingCategory": {
            "title": "Category or trend slug",
            "type": "string",
            "description": "e.g. womens, footwear, streetwear",
            "default": ""
          },
          "trendingMaxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of trending items to fetch (1-100).",
            "default": 30
          },
          "enrichResults": {
            "title": "Enrich results with full details",
            "type": "boolean",
            "description": "For Search, Seller Listings, and Trending: fetch full page details for the top results to get richer data (descriptions, measurements, shipping, sold history, etc.). Increases requests.",
            "default": false
          },
          "enrichMaxItems": {
            "title": "Max items to enrich",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many top results to fetch full details for (when enrichment enabled).",
            "default": 5
          },
          "extractSellerContacts": {
            "title": "Extract seller contact signals",
            "type": "boolean",
            "description": "For Seller Profile: attempt to find emails, phones, and contact methods from bios/descriptions.",
            "default": true
          },
          "includeSoldHistory": {
            "title": "Include sold history",
            "type": "boolean",
            "description": "Extract sold counts, last sold dates, and related signals where available.",
            "default": true
          },
          "includeShippingDetails": {
            "title": "Include detailed shipping info",
            "type": "boolean",
            "description": "Expand shipping with handling time, free shipping thresholds, international, returns, etc.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy settings",
            "type": "object",
            "description": "Use Apify Proxy with Residential for best results on Depop.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}