{
  "openapi": "3.0.1",
  "info": {
    "title": "eBay Sold Items Scraper: Sold Prices, Comps & Sell-Through",
    "description": "⚡🔥 BLAZING-FAST eBay sold-price scraper — every real sold price for any keyword in seconds. See what items really sell for, not asking prices, and price every flip right. Median & avg · sneakers, cards, electronics, any category · 8 marketplaces · newest-first.",
    "version": "1.0",
    "x-build-id": "rkeNgiDSr79ZjsGxX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yumitori~ebay-sold-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yumitori-ebay-sold-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/yumitori~ebay-sold-scraper/runs": {
      "post": {
        "operationId": "runs-sync-yumitori-ebay-sold-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/yumitori~ebay-sold-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-yumitori-ebay-sold-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": {
          "queries": {
            "title": "Keywords",
            "maxItems": 50,
            "type": "array",
            "description": "What to look up — one search term per line. You get every sold listing for each.",
            "items": {
              "type": "string"
            }
          },
          "ask": {
            "title": "Ask in plain English (optional)",
            "type": "string",
            "description": "Another way in — instead of the keyword field above, just ask a question: “how much do used AirPods Pro 2 sell for in the UK last 30 days”, “sealed pokemon booster box prices this year”, “compare iphone 15 pro on US vs UK”, “charizard ex 201/165 psa 10”. It fills in the keyword, marketplace, recency and condition for you, and can compare across sites or multiple items. Leave empty to use the keyword field above."
          },
          "marketplace": {
            "title": "eBay marketplace",
            "enum": [
              "US",
              "GB",
              "DE",
              "FR",
              "IT",
              "ES",
              "CA",
              "AU"
            ],
            "type": "string",
            "description": "Which eBay site to pull sold listings from.",
            "default": "US"
          },
          "categories": {
            "title": "Categories (optional)",
            "type": "array",
            "description": "Leave EMPTY (default) and each keyword is auto-scoped to its single most-relevant eBay category — this keeps comps accurate (a \"nintendo switch\" search returns real Switch consoles, not $5 games). Pick one or more categories to control the scope yourself: add several to broaden a search and pull far more volume across related categories (e.g. Video Games & Consoles + Video Games + Accessories for a Switch search). Heads-up: adding categories widens the price mix, so the median blends whatever categories you include. Don't see your category in the list? Look up ANY eBay category ID at https://ebay-categories.pages.dev and paste it into \"Custom category IDs\" below.",
            "items": {
              "type": "string",
              "enum": [
                "15709",
                "11450",
                "169291",
                "281",
                "183454",
                "64482",
                "1",
                "550",
                "11116",
                "139973",
                "139971",
                "54968",
                "58058",
                "9355",
                "625",
                "220",
                "888",
                "11700",
                "26395",
                "267"
              ],
              "enumTitles": [
                "Sneakers / Athletic Shoes",
                "Clothing, Shoes & Accessories",
                "Bags & Handbags",
                "Jewelry & Watches",
                "Trading Cards (Pokemon / MTG)",
                "Sports Trading Cards",
                "Collectibles",
                "Art",
                "Coins & Paper Money",
                "Video Games & Consoles",
                "Video Games",
                "Video Game Accessories",
                "Computers & Tablets",
                "Cell Phones & Accessories",
                "Cameras & Photo",
                "Toys & Hobbies",
                "Sporting Goods",
                "Home & Garden",
                "Health & Beauty",
                "Books"
              ]
            },
            "default": []
          },
          "categoryIdsCustom": {
            "title": "Custom category IDs — paste from the lookup tool",
            "type": "array",
            "description": "🔎 Find & copy any eBay category IDs at https://ebay-categories.pages.dev (search by product or brand, select multiple, copy), then paste them here — one per line.",
            "items": {
              "type": "string"
            }
          },
          "maxComps": {
            "title": "Max sold listings per keyword",
            "minimum": 5,
            "maximum": 250000,
            "type": "integer",
            "description": "How many sold listings to pull per keyword — enough to cover the entire sold history for a term. Results come newest-sold first.",
            "default": 1000
          },
          "days": {
            "title": "Only items sold in the last…",
            "enum": [
              "7",
              "14",
              "30",
              "60",
              "90",
              "180",
              "365"
            ],
            "type": "string",
            "description": "Filter to items sold within this window. Results always come newest-sold first.",
            "default": "90"
          },
          "enrichDetails": {
            "title": "Enrich with item details (condition · specifics · seller)",
            "type": "boolean",
            "description": "OFF (default) = fastest, core sold fields only. ON = adds condition, item specifics (size · storage · color) and seller + feedback score to the newest listings, shown in a separate “🔎 With details” output tab. This makes a few extra lookups per run (no browser/proxy) so runs take a little longer — turn it on only when you need the detail.",
            "default": false
          },
          "cardPriceGuide": {
            "title": "🃏 Card Price Guide (auto for graded cards)",
            "type": "boolean",
            "description": "ON (default) = when a keyword is a graded trading card, the run ALSO returns eBay’s per-grade Price Guide — PSA/BGS/CGC values with sold counts — plus a Card Price Guide report in Storage. Auto-detected and self-gating: it only appears when eBay actually has a grade guide for the item, so normal runs (e.g. “jordan 4”, “dyson v11”) are never touched. Examples that trigger it: “charizard ex 201/165”, “2020 pokemon pikachu vmax psa 10”, “michael jordan psa 9”, “black lotus bgs”. Turn OFF to skip card lookups entirely.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}