{
  "openapi": "3.0.1",
  "info": {
    "title": "eBay Scraper",
    "description": "eBay scraper API and price tracker for listings on 15 eBay sites. Search words or links in; price, condition, auction or Buy It Now, bids, shipping, watchers and sold count out. Filter by condition, price or seller, sort by price, add seller feedback and item specifics. $0.46 per 1,000 listings.",
    "version": "0.1",
    "x-build-id": "22ABpdnmq6BXvkUE3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dami_studio~ebay-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dami_studio-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/dami_studio~ebay-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dami_studio-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/dami_studio~ebay-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dami_studio-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": {
          "searchQueries": {
            "title": "Search words",
            "type": "array",
            "description": "What you would type into eBay's search box, one search per line, for example `lego star wars` or `nintendo switch oled`. Each search runs on the site picked in Marketplace and returns up to Max results per search.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "eBay links",
            "type": "array",
            "description": "eBay search links (the address has /sch/ in it) or item links (/itm/), copied from your browser. A search link keeps the filters you set on eBay. An item link returns that listing with its details. The link has to be on one of the sites in the Marketplace list.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "marketplace": {
            "title": "Marketplace",
            "enum": [
              "ebay.com",
              "ebay.co.uk",
              "ebay.de",
              "ebay.fr",
              "ebay.it",
              "ebay.es",
              "ebay.ie",
              "ebay.nl",
              "ebay.pl",
              "ebay.ca",
              "cafr.ebay.ca",
              "ebay.com.au",
              "ebay.com.sg",
              "ebay.com.my",
              "ebay.com.hk"
            ],
            "type": "string",
            "description": "The eBay site your search words run on. Prices come back in that site's currency. Links in eBay links carry their own site.",
            "default": "ebay.com"
          },
          "maxItems": {
            "title": "Max results per search",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The most listings to return for each search or search link. eBay shows up to 240 listings on a page; the actor turns the pages until it has this many or the search runs out.",
            "default": 100
          },
          "includeDetails": {
            "title": "Add seller and item details",
            "type": "boolean",
            "description": "Also open each listing's own page for the seller's name, feedback score and positive percentage, item specifics, brand, MPN, GTIN, product rating, stock left and sold, returns and all photos. A listing with details is billed at the details price instead of the plain one, and the run takes longer.",
            "default": false
          },
          "condition": {
            "title": "Condition",
            "type": "array",
            "description": "Keep only these conditions. Leave empty for any condition.",
            "items": {
              "type": "string",
              "enum": [
                "new",
                "openBox",
                "refurbished",
                "used",
                "forParts"
              ],
              "enumTitles": [
                "New",
                "Open box",
                "Refurbished",
                "Used",
                "For parts or not working"
              ]
            }
          },
          "listingType": {
            "title": "Listing type",
            "enum": [
              "all",
              "auction",
              "buyItNow"
            ],
            "type": "string",
            "description": "All listings, auctions only, or Buy It Now only.",
            "default": "all"
          },
          "bestOfferOnly": {
            "title": "Best Offer only",
            "type": "boolean",
            "description": "Keep only listings where the seller takes offers.",
            "default": false
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "number",
            "description": "Lowest item price, in the marketplace's currency, shipping not included."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "number",
            "description": "Highest item price, in the marketplace's currency, shipping not included."
          },
          "sortBy": {
            "title": "Sort",
            "enum": [
              "bestMatch",
              "endingSoonest",
              "newlyListed",
              "priceLowest",
              "priceHighest"
            ],
            "type": "string",
            "description": "The order eBay lists the results in.",
            "default": "bestMatch"
          },
          "freeShippingOnly": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "Keep only listings with free shipping to the marketplace's country.",
            "default": false
          },
          "returnsAcceptedOnly": {
            "title": "Returns accepted only",
            "type": "boolean",
            "description": "Keep only listings whose seller accepts returns.",
            "default": false
          },
          "categoryId": {
            "title": "Category id",
            "pattern": "^\\d{1,9}$",
            "type": "string",
            "description": "eBay's number for a category, digits only, for example 19006. It is the number after /sch/ or /b/ in a category page's address. Leave empty for all categories."
          },
          "sellers": {
            "title": "Sellers",
            "type": "array",
            "description": "Keep only listings from these eBay sellers, by their user name as eBay shows it. Up to 10.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Words to leave out",
            "type": "array",
            "description": "Drop listings whose title has any of these words, for example `case` or `broken`. Up to 20.",
            "items": {
              "type": "string"
            }
          },
          "searchInDescription": {
            "title": "Search descriptions too",
            "type": "boolean",
            "description": "Match the search words in listing descriptions as well as titles. Brings more, looser results.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy (not needed)",
            "type": "object",
            "description": "Optional. Runs work without it. If you set your own proxy addresses, every request goes through them."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}