{
  "openapi": "3.0.1",
  "info": {
    "title": "eBay Sold Items & Auction Scraper — Prices, Bids, Sellers",
    "description": "Extract eBay SOLD/completed listings the official Browse API does not expose: real sold price, sold date, bid count, listing format and seller reputation. Built for resellers and arbitrage. Multi-marketplace (.com/.fr/.de/.co.uk/.it/.es).",
    "version": "1.0",
    "x-build-id": "NClsKmdwd8dTuP09X"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dr1ms~ebay-sold-auction-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dr1ms-ebay-sold-auction-intelligence",
        "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/dr1ms~ebay-sold-auction-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-dr1ms-ebay-sold-auction-intelligence",
        "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/dr1ms~ebay-sold-auction-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-dr1ms-ebay-sold-auction-intelligence",
        "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",
        "required": [
          "searchQueries"
        ],
        "properties": {
          "searchQueries": {
            "title": "Search queries",
            "minItems": 1,
            "type": "array",
            "description": "Keywords to search eBay sold/completed listings for. One scrape per query. Example: ['nintendo switch oled', 'pokemon booster box'].",
            "items": {
              "type": "string"
            }
          },
          "marketplace": {
            "title": "Marketplace",
            "enum": [
              "www.ebay.com",
              "www.ebay.co.uk",
              "www.ebay.fr",
              "www.ebay.de",
              "www.ebay.it",
              "www.ebay.es"
            ],
            "type": "string",
            "description": "eBay site to scrape. Currency and date format follow the marketplace automatically.",
            "default": "www.ebay.com"
          },
          "proxyCountryCode": {
            "title": "Proxy country code",
            "type": "string",
            "description": "Two-letter residential proxy country (e.g. US, FR, DE, GB). Leave empty to derive from the marketplace (.com→US, .fr→FR, …). Scraping a marketplace from its own country reduces blocks."
          },
          "maxItemsPerQuery": {
            "title": "Max items per query",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on unique sold items collected per query. Primary cost guardrail (residential proxy is billed per GB).",
            "default": 500
          },
          "maxPagesPerQuery": {
            "title": "Max pages per query",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum search-result pages to paginate per query. eBay limits sold history to roughly the last 90 days.",
            "default": 10
          },
          "itemsPerPage": {
            "title": "Items per page",
            "minimum": 60,
            "maximum": 240,
            "type": "integer",
            "description": "eBay results per page (_ipg). Use 60, 120, or 240 — 240 maximizes items per request (fewer IPs consumed, recommended).",
            "default": 240
          },
          "format": {
            "title": "Listing format",
            "enum": [
              "all",
              "auction",
              "buy_it_now"
            ],
            "type": "string",
            "description": "Filter by sale format. 'all' = every sold listing; 'auction' = LH_Auction=1; 'buy_it_now' = LH_BIN=1.",
            "default": "all"
          },
          "priceMin": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Lower price bound (_udlo), in the marketplace currency. Optional."
          },
          "priceMax": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Upper price bound (_udhi), in the marketplace currency. Optional."
          },
          "categoryId": {
            "title": "Category ID",
            "type": "string",
            "description": "Restrict the search to an eBay category (_sacat). Optional."
          },
          "sortOrder": {
            "title": "Sort order",
            "type": "string",
            "description": "eBay sort code (_sop). Common values: 13 = Best Match, 12 = Newly listed, 10 = Ending soonest, 15 = Price+shipping highest, 16 = Price+shipping lowest. Optional."
          },
          "fetchItemDetails": {
            "title": "Fetch item details (slower, more expensive)",
            "type": "boolean",
            "description": "Also open each item's /itm/ page to add item specifics (brand/model), seller location, quantity sold and returns policy. Multiplies proxy cost — opt-in.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Max simultaneous page fetches. Each fetch uses its own fresh residential IP. Keep modest to stay polite and control cost.",
            "default": 5
          },
          "maxRetriesPerPage": {
            "title": "Max retries per page",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many fresh residential IPs to try before giving up on a page. eBay throttles per IP, so a blocked page usually succeeds on a later fresh IP. Higher = fewer lost pages but more IPs consumed. 8 is a good balance.",
            "default": 8
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy settings. RESIDENTIAL with per-request rotation is REQUIRED — eBay throttles datacenter and single IPs. Defaults are correct; change only if you know what you are doing.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}