{
  "openapi": "3.0.1",
  "info": {
    "title": "eBay Scraper API: eBay Listings, Prices, Sellers, Ended Sales",
    "description": "eBay scraper API with no login: active eBay listings on 8 eBay sites by keyword, search link or seller, with price, shipping, condition, bids, watchers, seller and sold count. Ended sales by item link, a seller's sold items with the price paid, item details, an AI junk filter. Misses free.",
    "version": "0.1",
    "x-build-id": "NPxm7OfnikRsVTI1q"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hyperbach~ebay-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hyperbach-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/hyperbach~ebay-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hyperbach-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/hyperbach~ebay-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hyperbach-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": {
          "keywords": {
            "title": "Search words",
            "maxItems": 1000,
            "type": "array",
            "description": "Words as you would type them in eBay's search box, one search per line (for example rtx 4080). Each search is read on the eBay site you pick below, newest listings first unless you pick a sort, page by page to the end of the list or your limits.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "eBay links or item ids",
            "maxItems": 5000,
            "type": "array",
            "description": "Links copied from eBay: a search with its filters (www.ebay.com/sch/i.html?_nkw=...), an item page (/itm/<id>) or a bare item id, a seller's page (/usr/<name>) or a seller's feedback page (/fdbk/feedback_profile/<name>). A link is read on its own site. An ended listing's item link gives the sale's time to the second and its final price. A sold or completed search link (LH_Sold, LH_Complete) is answered with a free row: eBay shows it only to a signed-in reader. A pasted search keeps its own filters: the filters below are not applied to it, and its row says so.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sellers": {
            "title": "Sellers",
            "maxItems": 1000,
            "type": "array",
            "description": "eBay sellers' user names (or their /usr/ links): every active listing of the seller on the eBay site you pick, with the filters below.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "ebaySite": {
            "title": "eBay site",
            "enum": [
              "ebay.com",
              "ebay.co.uk",
              "ebay.de",
              "ebay.fr",
              "ebay.it",
              "ebay.es",
              "ebay.ca",
              "ebay.com.au"
            ],
            "type": "string",
            "description": "The eBay site the search words and sellers are read on; prices come in its own currency. Pasted links are read on their own site.",
            "default": "ebay.com"
          },
          "sortOrder": {
            "title": "Sort",
            "enum": [
              "newlyListed",
              "endingSoonest",
              "pricePlusShippingLowest",
              "pricePlusShippingHighest",
              "bestMatch",
              "timeNewlyListed",
              "endedRecently",
              "pricePlusPostageLowest",
              "pricePlusPostageHighest",
              "distanceNearest"
            ],
            "type": "string",
            "description": "The order eBay lists the results in. Newly listed (the default) walks the list without repeats; Best Match reshuffles from one page to the next, so a long Best Match walk can repeat or miss listings (repeats are dropped).",
            "default": "newlyListed"
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings from this price, in the site's own currency (eBay's own price filter)."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings up to this price, in the site's own currency (eBay's own price filter)."
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "any",
              "new",
              "used",
              "refurbished",
              "openBox",
              "forParts"
            ],
            "type": "string",
            "description": "Only new, used, refurbished, open-box or for-parts listings, as eBay's own condition filter applies it.",
            "default": "any"
          },
          "buyingFormat": {
            "title": "Buying format",
            "enum": [
              "all",
              "auction",
              "buyItNow",
              "acceptsOffers"
            ],
            "type": "string",
            "description": "Only auctions, Buy It Now listings or listings that accept offers.",
            "default": "all"
          },
          "itemLocation": {
            "title": "Item location",
            "enum": [
              "default",
              "domestic",
              "worldwide"
            ],
            "type": "string",
            "description": "Only items located in the site's own country, or worldwide. Default: eBay's own default for the site.",
            "default": "default"
          },
          "categoryId": {
            "title": "Category id",
            "type": "string",
            "description": "eBay's numeric category id (the number in a category or search link, for example 27386 for graphics cards). Empty or 0 = all categories."
          },
          "aspectFilter": {
            "title": "Item specifics filter",
            "type": "object",
            "description": "eBay's item specifics filters as name and value, for example {\"Brand\": \"ASUS\"} or {\"Memory Size\": [\"16 GB\", \"24 GB\"]}. The names are eBay's own, as the filter panel of a search shows them."
          },
          "excludeWords": {
            "title": "Exclude words",
            "maxItems": 100,
            "type": "array",
            "description": "Words a listing's title must not contain, sent to eBay as -word (for example for parts, box only).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "returnsAccepted": {
            "title": "Returns accepted only",
            "type": "boolean",
            "description": "Only listings whose seller accepts returns (eBay's own filter).",
            "default": false
          },
          "postalCode": {
            "title": "Ship-to postal code",
            "type": "string",
            "description": "A postal code the shipping costs are quoted for, as on the site (a US ZIP code on ebay.com, for example 10001)."
          },
          "includeDetails": {
            "title": "Item details",
            "type": "boolean",
            "description": "Off by default. On: each listing's item page and the seller's description are read too: the item specifics, brand, MPN, GTIN where the seller filled it, the category path, every image, the location, the returns line, the listing's start and end time and the description text (details_status, description_status). One more page and one more call a listing, so a run takes longer.",
            "default": false
          },
          "classifyListings": {
            "title": "Junk filter (AI)",
            "type": "boolean",
            "description": "Off by default. On: each listing is classified from its title and your search words: listing_kind (the item itself, for parts, an accessory or part, a bundle or lot, a whole device with the item, box or manual only, another product) and graded (a graded collectible in a slab), with the classifier's confidence.",
            "default": false
          },
          "keepKinds": {
            "title": "Keep only these kinds",
            "maxItems": 7,
            "type": "array",
            "description": "With the junk filter: deliver only listings of these kinds (the_item, for_parts, accessory_or_part, bundle_or_lot, system_with_item, box_or_manual_only, another_product). The others come as free rows with status filtered and are not charged. Empty = keep every kind.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeSellerFeedback": {
            "title": "Seller feedback (recent sales)",
            "type": "boolean",
            "description": "Off by default. On: for each seller above, the feedback the seller received as a seller is read too, one row per entry: the item's title and id, the price paid, the rating, the comment and the period (eBay masks the buyer and shows the item only for the last 90 days).",
            "default": false
          },
          "maxFeedbackPerSeller": {
            "title": "Max feedback entries per seller",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "The most feedback rows per seller (25 a page).",
            "default": 25
          },
          "maxItemsPerSearch": {
            "title": "Max results per search",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The most listing rows each search, link or seller gives; 0 = to the end of the list (eBay itself shows about 10,000 results a search).",
            "default": 100
          },
          "maxItems": {
            "title": "Max results (whole run)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The most charged rows of the whole run (listings and feedback entries); 0 = no cap beyond your charge limit.",
            "default": 0
          },
          "feedback": {
            "title": "Feedback to the maintainers",
            "maxLength": 2000,
            "type": "string",
            "description": "A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}