{
  "openapi": "3.0.1",
  "info": {
    "title": "eBay Scraper - Listings, Sold Prices & Seller Leads",
    "description": "Scrape eBay active listings AND real sold/completed prices (comps): condition, price, shipping, bids, sold count, seller & feedback. Item detail adds brand, MPN, GTIN, ratings & photos; seller leads add feedback & location. Sold-price analytics, 10 marketplaces, monitoring mode.",
    "version": "0.1",
    "x-build-id": "aePGkS9MfRLYwAx1u"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~ebay-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-ebay-scraper",
        "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/scrapesage~ebay-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-ebay-scraper",
        "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/scrapesage~ebay-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-ebay-scraper",
        "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": {
          "mode": {
            "title": "What to scrape",
            "enum": [
              "search",
              "sold",
              "itemDetail",
              "seller"
            ],
            "type": "string",
            "description": "<b>Active listings</b> = items currently for sale (the default). <b>Sold / completed</b> = real sold prices (comps) — what items actually sold for, with the sold date. <b>Item detail</b> = full data for specific item URLs (brand, MPN, GTIN, ratings, all photos, seller). <b>Seller</b> = a seller's full inventory + a B2B lead profile (feedback, items sold, location).",
            "default": "search"
          },
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Keywords to search on eBay, e.g. <code>nintendo switch oled</code>, <code>iphone 15 pro</code>, <code>vintage rolex</code>, <code>pokemon booster box</code>. Each is combined with the filters below. Leave empty to browse a whole category (set <b>Category ID</b>).",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Paste eBay URLs directly: search pages (<code>ebay.com/sch/i.html?_nkw=...</code>), item pages (<code>ebay.com/itm/123...</code>), or seller pages (<code>ebay.com/usr/&lt;name&gt;</code>, <code>ebay.com/str/&lt;store&gt;</code>). Used in addition to the keywords above.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "sellerNames": {
            "title": "Seller usernames (Seller mode)",
            "type": "array",
            "description": "eBay seller usernames to scrape in <b>Seller</b> mode, e.g. <code>musicstore_official</code>. The actor pulls each seller's active inventory and a lead profile.",
            "items": {
              "type": "string"
            }
          },
          "marketplace": {
            "title": "eBay marketplace",
            "enum": [
              "US",
              "UK",
              "DE",
              "AU",
              "CA",
              "FR",
              "IT",
              "ES",
              "NL",
              "IE"
            ],
            "type": "string",
            "description": "Which eBay site to search. Controls the domain and default currency.",
            "default": "US"
          },
          "categoryId": {
            "title": "Category ID",
            "type": "string",
            "description": "Optional eBay category id (<code>_sacat</code>) to scope the search, e.g. <code>139971</code> (Video Game Consoles). Find it in any eBay search URL."
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "any",
              "new",
              "open_box",
              "refurbished",
              "used",
              "parts"
            ],
            "type": "string",
            "description": "Filter by item condition.",
            "default": "any"
          },
          "listingType": {
            "title": "Listing type",
            "enum": [
              "all",
              "auction",
              "buy_it_now"
            ],
            "type": "string",
            "description": "Restrict to auctions or fixed-price (Buy It Now) listings.",
            "default": "all"
          },
          "priceMin": {
            "title": "Min price",
            "minimum": 0,
            "type": "integer",
            "description": "Only items at or above this price (in the marketplace currency)."
          },
          "priceMax": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Only items at or below this price."
          },
          "freeShippingOnly": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "Only return listings that ship for free.",
            "default": false
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "best_match",
              "newest",
              "ending_soonest",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "How to order results. For Sold mode, \"Newest\" surfaces the most recently sold.",
            "default": "best_match"
          },
          "enrichItemDetails": {
            "title": "Fetch full item details (brand, MPN, GTIN, ratings, all photos, seller)",
            "type": "boolean",
            "description": "For each listing, open its item page to add brand, model, MPN, GTIN/UPC, color, product rating, high-resolution photos, payment methods, the seller (username + feedback) and quantity sold/watchers. Adds one request per item.",
            "default": false
          },
          "emitSellerLeads": {
            "title": "Also emit seller-lead records",
            "type": "boolean",
            "description": "Output one deduplicated seller-lead record (type = \"seller\") for every unique seller found — with positive-feedback %, feedback score, items sold, location, member-since and a 0–100 lead score. (In Active/Sold modes this requires item-detail enrichment to discover sellers.)",
            "default": false
          },
          "computeAnalytics": {
            "title": "Compute sold-price analytics (Sold mode)",
            "type": "boolean",
            "description": "In Sold mode, add one summary record per query with min / max / average / median sold price, the sold-date range, an estimated sold-per-day rate and a recommended list price — instant resale comps.",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of listings (or sold items) to scrape across all queries. eBay paginates up to ~240/page.",
            "default": 100
          },
          "maxSellers": {
            "title": "Max seller leads",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of seller-lead profiles to fetch (Seller mode, or when \"emit seller-lead records\" is on).",
            "default": 50
          },
          "deduplicateResults": {
            "title": "Deduplicate within a run",
            "type": "boolean",
            "description": "Skip records already emitted in this run (recommended).",
            "default": true
          },
          "monitorMode": {
            "title": "Monitoring mode — only new records",
            "type": "boolean",
            "description": "Remember item/seller ids across runs in a named key-value store and emit ONLY records not seen before — new listings, newly sold items, or new sellers. Perfect for deal alerts and price-watching. Works with Apify Schedules.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Names the memory used by monitoring mode. Use a distinct key per saved search so different watches keep separate state.",
            "default": "default"
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum parallel requests. eBay needs residential IPs; 3–6 is a good balance of speed and reliability.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. eBay blocks datacenter IPs, so RESIDENTIAL proxy is the default and is strongly recommended.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}