{
  "openapi": "3.0.1",
  "info": {
    "title": "eBay Sold Prices & Sales Comps Finder",
    "description": "Collect completed eBay sales for price research: sold price, sale age, seller, condition, shipping and item specifics by keyword, seller or item link across eight marketplaces. Includes a percentile price summary per query.",
    "version": "1.0",
    "x-build-id": "ToZUfahAApPX3l8fG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xyrelith-data~ebay-sold-listings-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xyrelith-data-ebay-sold-listings-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/xyrelith-data~ebay-sold-listings-scraper/runs": {
      "post": {
        "operationId": "runs-sync-xyrelith-data-ebay-sold-listings-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/xyrelith-data~ebay-sold-listings-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-xyrelith-data-ebay-sold-listings-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",
              "sellers",
              "items",
              "urls"
            ],
            "type": "string",
            "description": "Search by keyword, read named sellers, look up item links, or route pasted eBay URLs.",
            "default": "search"
          },
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "One keyword search per line, exactly as you would type it on eBay. Each query finds sellers listing the keyword today, then reads their recent completed sales.",
            "items": {
              "type": "string"
            }
          },
          "sellerUsernames": {
            "title": "Seller usernames",
            "type": "array",
            "description": "eBay usernames or feedback-profile links. Reads each seller's recent sales; combine with a keyword to keep only matching sales.",
            "items": {
              "type": "string"
            }
          },
          "itemIds": {
            "title": "Item IDs or links",
            "type": "array",
            "description": "eBay item numbers or item links. Reads the listing page and the seller's sales for that item.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Paste eBay URLs",
            "type": "array",
            "description": "Search, category, sold-search, seller or item links. Sold-search links are read through seller discovery because eBay now asks signed-out visitors to sign in.",
            "items": {
              "type": "string"
            }
          },
          "marketplace": {
            "title": "Marketplace",
            "enum": [
              "US",
              "GB",
              "DE",
              "AU",
              "CA",
              "FR",
              "IT",
              "ES"
            ],
            "type": "string",
            "description": "eBay site to read. Prices are returned in the site's currency.",
            "default": "US"
          },
          "categoryIds": {
            "title": "Category IDs",
            "type": "array",
            "description": "Optional eBay category numbers, for example 9355 for cell phones. Applies to keyword seller discovery.",
            "items": {
              "type": "string"
            }
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "any",
              "new",
              "openBox",
              "used",
              "refurbished",
              "forParts"
            ],
            "type": "string",
            "description": "Keep only sales whose listing shows this condition. Requires a listing-page detail read for the matching rows.",
            "default": "any"
          },
          "buyingFormat": {
            "title": "Buying format",
            "enum": [
              "all",
              "auction",
              "bin",
              "bestOffer"
            ],
            "type": "string",
            "description": "Keep only auction, Buy It Now or Best Offer sales. Read from the listing page when available.",
            "default": "all"
          },
          "minPrice": {
            "title": "Minimum sold price",
            "minimum": 0,
            "type": "number",
            "description": "Lowest sold price to keep, in the marketplace currency. Leave empty for no minimum."
          },
          "maxPrice": {
            "title": "Maximum sold price",
            "minimum": 0,
            "type": "number",
            "description": "Highest sold price to keep, in the marketplace currency. Leave empty for no maximum."
          },
          "soldWithinDays": {
            "title": "Sold within (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Keep sales within this window. eBay publishes the sale age in buckets, so the actor keeps every bucket that fits the window.",
            "default": 90
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop sales whose title contains any of these words, for example case, lot or broken.",
            "items": {
              "type": "string"
            }
          },
          "freeShippingOnly": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "Keep only sales whose listing offers free shipping. Requires a listing-page detail read.",
            "default": false
          },
          "returnsAccepted": {
            "title": "Returns accepted only",
            "type": "boolean",
            "description": "Keep only sales whose listing accepts returns. Requires a listing-page detail read.",
            "default": false
          },
          "itemLocation": {
            "title": "Item location",
            "enum": [
              "any",
              "domestic",
              "worldwide"
            ],
            "type": "string",
            "description": "Domestic keeps items located in the marketplace country; worldwide keeps every location.",
            "default": "any"
          },
          "sortBy": {
            "title": "Sort sales",
            "enum": [
              "recent",
              "priceLow",
              "priceHigh"
            ],
            "type": "string",
            "description": "Order of the sale rows in the dataset. Price sorts use the sold price.",
            "default": "recent"
          },
          "includeItemDetails": {
            "title": "Read listing pages for details",
            "type": "boolean",
            "description": "Add condition, shipping, returns, location, brand, MPN, GTIN and item specifics from each listing page. Slower but richer rows.",
            "default": false
          },
          "maxItemDetails": {
            "title": "Maximum listing pages",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "Safety cap on listing-page reads per run when details or detail filters are on.",
            "default": 100
          },
          "maxItems": {
            "title": "Maximum sales",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop after this many sale rows across the whole run.",
            "default": 200
          },
          "maxSearchPages": {
            "title": "Maximum seller-search pages",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many pages of live keyword results to scan for sellers, 60 listings per page.",
            "default": 2
          },
          "maxSellers": {
            "title": "Maximum sellers per keyword",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many sellers found for a keyword are read. More sellers means more coverage and more requests.",
            "default": 25
          },
          "feedbackPages": {
            "title": "Feedback pages per seller",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many pages of a seller's matching feedback to read, 25 sales per page.",
            "default": 2
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}