{
  "openapi": "3.0.1",
  "info": {
    "title": "eBay Scraper — Listings, Product Details & Seller Feedback",
    "description": "Scrape eBay at scale: keyword search, category browse, deep product details with item specifics, and the only structured seller-feedback extractor on Apify. 4 operations, 20 marketplaces, one clean JSON dataset. Built for price monitoring, reseller research and seller due-diligence.",
    "version": "1.0",
    "x-build-id": "HGOZbxJObMkRSVnLb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sian.agency~ebay-data-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sian.agency-ebay-data-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/sian.agency~ebay-data-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sian.agency-ebay-data-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/sian.agency~ebay-data-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sian.agency-ebay-data-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",
        "required": [
          "operation"
        ],
        "properties": {
          "operation": {
            "title": "🎯 Operation — what do you want to scrape?",
            "enum": [
              "search",
              "productsByCategory",
              "productDetails",
              "sellerFeedback"
            ],
            "type": "string",
            "description": "🎯 **PICK ONE OPERATION PER RUN.** Each run produces one clean dataset matching the chosen mode.\n\n- **🔍 Product Search** — keyword search across eBay listings, paginated (60 results/page)\n- **🗂️ Products by Category** — listings in an eBay category ID, paginated (60 results/page — works best with a search query)\n- **📦 Product Details** — deep scrape of a single listing (item specifics, seller detailed ratings, breadcrumbs, images, return policy)\n- **🟢 Seller Feedback** — paginated feedback/reviews for an eBay seller (rating, comment, verified-purchase, item title) — *the only eBay seller-feedback extractor on Apify*\n\n💡 **TIP:** Use Product Search to discover listing IDs and seller names, then drill into Product Details per listing and Seller Feedback per seller.",
            "default": "search"
          },
          "query": {
            "title": "🔍 Search Query (for Product Search / Category)",
            "type": "string",
            "description": "🔍 **Required for `Product Search`. Strongly recommended for `Products by Category`.**\n\nAny eBay product search query.\n- `vintage rolex`\n- `iphone 15 pro max`\n- `lego star wars`\n\n💡 **TIP:** For `Products by Category`, always provide a query — without one, eBay serves a limited browse page (≤24 results). With a query you get full pages of 60.\n\n⚠️ **Ignored** for Product Details and Seller Feedback."
          },
          "categoryId": {
            "title": "🗂️ Category ID (for Products by Category)",
            "type": "string",
            "description": "🗂️ **Required for `Products by Category` operation.**\n\nThe eBay category ID (the `_sacat` value in an eBay category URL).\n- `175672` — Laptops & Netbooks\n- `9355` — Cell Phones & Smartphones\n- `11450` — Clothing, Shoes & Accessories\n\n💡 **TIP:** Find category IDs in eBay category URLs (`ebay.com/b/.../{categoryId}`) or in the `breadcrumbs[].url` of any Product Details result. Pair with a `query` for best results.\n\n⚠️ **Ignored** for all other operations."
          },
          "itemId": {
            "title": "📦 Item ID (for Product Details)",
            "type": "string",
            "description": "📦 **Required for `Product Details` operation.**\n\nThe eBay item ID — the numeric ID in any listing URL: `https://www.ebay.com/itm/{itemId}`.\n- `265038069230`\n\nIt appears as the `itemId` field in every Product Search or Products by Category result row.\n\n💡 **TIP:** Run `Product Search` first to discover item IDs, then loop through Product Details per listing.\n\n⚠️ **Ignored** for Search, Category, and Seller Feedback operations."
          },
          "sellerId": {
            "title": "🟢 Seller ID / Username (for Seller Feedback)",
            "type": "string",
            "description": "🟢 **Required for `Seller Feedback` operation.**\n\nThe eBay seller username — appears as `sellerName` in every Product Search result row, and as `sellerName` in Product Details.\n- `musicmagpie`\n- `discountcomputerdepot`\n\n💡 **TIP:** Run `Product Search` first to discover seller usernames, then pull their feedback history here. Returns 25 reviews per page.\n\n⚠️ **Ignored** for all other operations."
          },
          "domain": {
            "title": "🌍 Marketplace (eBay domain)",
            "enum": [
              "com",
              "co.uk",
              "com.au",
              "de",
              "ca",
              "fr",
              "it",
              "es",
              "at",
              "ch",
              "com.sg",
              "com.my",
              "ph",
              "ie",
              "pl",
              "nl",
              "be",
              "com.hk",
              "com.mx",
              "com.br"
            ],
            "type": "string",
            "description": "🌍 Which eBay marketplace to query. Default `com` = ebay.com (US). 20 markets supported.",
            "default": "com"
          },
          "sortBy": {
            "title": "↕️ Sort Order (Search / Category)",
            "enum": [
              "best_match",
              "ending_soonest",
              "newly_listed",
              "price_lowest",
              "price_highest"
            ],
            "type": "string",
            "description": "Sort order for `Product Search` and `Products by Category`.\n\n- `best_match` (default)\n- `ending_soonest` — auctions ending first\n- `newly_listed` — most recent first\n- `price_lowest` — lowest total price first\n- `price_highest` — highest total price first\n\nIgnored for Product Details and Seller Feedback.",
            "default": "best_match"
          },
          "condition": {
            "title": "🏷️ Condition Filter (Search / Category)",
            "enum": [
              "any",
              "new",
              "used",
              "open_box",
              "refurbished",
              "for_parts"
            ],
            "type": "string",
            "description": "Optional. Filter `Product Search` / `Products by Category` by item condition. Leave as `any` for all conditions.",
            "default": "any"
          },
          "buyingFormat": {
            "title": "🛒 Buying Format Filter (Search / Category)",
            "enum": [
              "any",
              "buy_it_now",
              "auction",
              "accepts_offers"
            ],
            "type": "string",
            "description": "Optional. Filter `Product Search` / `Products by Category` by buying format. Leave as `any` for all formats.",
            "default": "any"
          },
          "minPrice": {
            "title": "💲 Min Price",
            "minimum": 0,
            "type": "integer",
            "description": "Optional price filter for `Product Search` / `Products by Category`. Minimum item price (in the marketplace currency). Must be lower than Max Price if both are set."
          },
          "maxPrice": {
            "title": "💲 Max Price",
            "minimum": 0,
            "type": "integer",
            "description": "Optional price filter for `Product Search` / `Products by Category`. Maximum item price (in the marketplace currency). Must be higher than Min Price if both are set."
          },
          "maxPages": {
            "title": "📄 Max pages to fetch",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "📄 **Applies to paginated operations** (Search, Products by Category, Seller Feedback). Ignored for Product Details.\n\n- **Search / Category:** 60 listings per page\n- **Seller Feedback:** 25 reviews per page (eBay caps feedback at ~5 pages / 125 reviews)\n\n💡 **TIP:** Start small (1–3 pages) to preview results before scaling up. Pagination stops automatically when the data source reports the last page or returns an empty page.\n\n⚠️ Hard cap: 50 pages to prevent runaway runs.",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}