{
  "openapi": "3.0.1",
  "info": {
    "title": "eBay Price Comps & Analytics",
    "description": "Live eBay listings with asking prices, units-sold counts and a price report (min, max, median, percentiles, quick-sale price). 8 marketplaces. Sold mode returns an honest message. MCP-ready.",
    "version": "0.3",
    "x-build-id": "D8XiYX0N22Uv37NVK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~ebay-sold-comps-analytics-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-ebay-sold-comps-analytics-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/khadinakbar~ebay-sold-comps-analytics-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-ebay-sold-comps-analytics-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/khadinakbar~ebay-sold-comps-analytics-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-ebay-sold-comps-analytics-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": {
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Keyword to price from live eBay listings (e.g. 'airpods pro 2'). Defaults to 'airpods pro 2'. Add more keywords in 'More search queries'. NOT a product URL; to start from an eBay search page, use startUrls."
          },
          "searchQueries": {
            "title": "More search queries (batch)",
            "type": "array",
            "description": "Extra keywords to price in the same run, e.g. 'switch oled' and 'steam deck 512gb'. Each keyword gets its own listings (up to maxItems rows) and its own price report. Merged with searchQuery; up to 20 keywords. Ignored when startUrls are set. Listings that match several keywords are saved once.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "eBay search URLs",
            "type": "array",
            "description": "Optional eBay search-result URLs (HTTPS, with a keyword). The keyword, marketplace and nothing else is read from each URL, and live listings are returned. URLs that ask for sold/completed listings are skipped, because sold prices are not available. Leave empty to use searchQuery. NOT for /itm/ item URLs.",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "title": "URL",
                  "type": "string",
                  "description": "An eBay search-results URL to scrape (forced to sold+completed mode)."
                }
              },
              "required": [
                "url"
              ]
            }
          },
          "marketplace": {
            "title": "Marketplace",
            "enum": [
              "ebay.com",
              "ebay.co.uk",
              "ebay.de",
              "ebay.fr",
              "ebay.it",
              "ebay.es",
              "ebay.ca",
              "ebay.com.au"
            ],
            "type": "string",
            "description": "Which eBay marketplace to read. Defaults to ebay.com (US). Ignored when startUrls are supplied (the URL's own domain wins).",
            "default": "ebay.com"
          },
          "dataMode": {
            "title": "Data mode",
            "enum": [
              "active",
              "sold"
            ],
            "type": "string",
            "description": "'active' (default) returns live listings with asking prices and units-sold counts. 'sold' returns an honest message and no rows or charges: since July 2026 eBay shows sold and completed listings only to signed-in members, and this Actor never logs in.",
            "default": "active"
          },
          "maxItems": {
            "title": "Max listings",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum live listings to save per keyword and use in that keyword's price report. Range 1-1000. More listings give a steadier report but cost more. Defaults to 50. A Free-plan account is capped at 25 listings per run. The run never charges for more than you set here or your run cost limit allows.",
            "default": 50
          },
          "condition": {
            "title": "Item condition",
            "enum": [
              "any",
              "new",
              "used",
              "refurbished",
              "open_box"
            ],
            "type": "string",
            "description": "Filter listings by item condition. 'any' returns all (default). Use 'new', 'used', 'refurbished' or 'open_box' to price one condition tier.",
            "default": "any"
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "integer",
            "description": "Optional lower price bound for listings, in the marketplace's local currency. Leave empty for no lower bound."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Optional upper price bound for listings, in the marketplace's local currency. Leave empty for no upper bound."
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "newest",
              "best_match",
              "ending_soon",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "Order of listings. 'best_match' (default) follows eBay's relevance and is the order that carries units-sold counts, 'newest' lists the newest first, 'price_asc' / 'price_desc' sort by price. Affects which listings fill the maxItems cap.",
            "default": "best_match"
          },
          "onlyNewItems": {
            "title": "Only new listings since last run",
            "type": "boolean",
            "description": "When true, listings already returned by an earlier run with the same keyword, marketplace, condition and price filters are skipped and not charged, so a scheduled run returns only what is new. The memory lives in your own account.",
            "default": false
          },
          "includeReport": {
            "title": "Include analytics report",
            "type": "boolean",
            "description": "When true (default), one price report is saved per keyword that has at least 3 priced listings: min, max, average, median, P10-P90, breakdown by condition and listing type, demand from units sold, and quick-sale / list-price guidance. All figures are asking prices. Set false to get rows only and skip the per-report fee.",
            "default": true
          },
          "daysBack": {
            "title": "Sold within last N days (not used)",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "Kept so older saved inputs still run. Live listings have no sold date, so this value is ignored and the run notes it in RUN_SUMMARY."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}