{
  "openapi": "3.0.1",
  "info": {
    "title": "eBay Listings Scraper · Active + sold prices · $1/1K",
    "description": "Search eBay listings by keyword or URL for price research, resale sourcing and competitor tracking. Active and sold listings on 17 marketplaces with price, condition, shipping, seller, images. Filters: condition, price, seller. $1/1K listings.",
    "version": "0.1",
    "x-build-id": "LTIZwQBd62FZ6DfY4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mlg14~ebay-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mlg14-ebay-search-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/mlg14~ebay-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-mlg14-ebay-search-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/mlg14~ebay-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-mlg14-ebay-search-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": "Keywords to search on eBay, e.g. mechanical keyboard or iphone 14 128gb. Use it for keyword searches; combine with marketplace, mode and the filters below. Leave empty if you only pass startUrls.",
            "default": "mechanical keyboard"
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "eBay search or item URLs as objects with a url key. Example: [{\"url\": \"https://www.ebay.com/sch/i.html?_nkw=mechanical+keyboard\"}]. Regional eBay domains work. Use it to reuse a search you already configured on eBay; leave empty to search by keyword.",
            "default": [
              {
                "url": "https://www.ebay.co.uk/sch/i.html?_nkw=mechanical+keyboard"
              }
            ],
            "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.ca",
              "ebay.com.au",
              "ebay.nl",
              "ebay.at",
              "ebay.ch",
              "ebay.ie",
              "ebay.pl",
              "ebay.com.hk",
              "ebay.com.my",
              "ebay.ph",
              "ebay.com.sg"
            ],
            "type": "string",
            "description": "Regional eBay site used for keyword searches. Allowed values: ebay.com, ebay.co.uk, ebay.de, ebay.fr, ebay.it, ebay.es, ebay.ca, ebay.com.au, ebay.nl, ebay.at, ebay.ch, ebay.ie, ebay.pl, ebay.com.hk, ebay.com.my, ebay.ph, ebay.com.sg. Example: ebay.de for German listings. Use it to target a country; a start URL keeps its own domain. Default ebay.co.uk; ebay.com (US) is intermittently blocked by eBay and may return an error after retries.",
            "default": "ebay.co.uk"
          },
          "mode": {
            "title": "Listing mode",
            "enum": [
              "active",
              "sold",
              "both"
            ],
            "type": "string",
            "description": "Which listings to collect. Allowed values: active (currently for sale), sold (recently sold, as eBay shows them), both. Example: sold for price research. Use sold or both to see real market prices.",
            "default": "active"
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "any",
              "new",
              "open_box",
              "refurbished",
              "used",
              "for_parts"
            ],
            "type": "string",
            "description": "Item condition filter for keyword searches. Allowed values: any, new, open_box, refurbished, used, for_parts. Example: used for second-hand prices. Use any for no filter; start URLs keep their own filters.",
            "default": "any"
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "number",
            "description": "Lowest price in the marketplace currency, for keyword searches. Example: 20. Use it with maxPrice to cut accessories and bundles; leave empty for no lower limit."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "number",
            "description": "Highest price in the marketplace currency, for keyword searches. Example: 100. Use it with minPrice to focus on one price band; leave empty for no upper limit."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "best_match",
              "ending_soon",
              "newest",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "Result order for keyword searches. Allowed values: best_match, ending_soon, newest, price_asc, price_desc. Example: price_asc for the cheapest offers first. Use newest to monitor new listings.",
            "default": "best_match"
          },
          "listingType": {
            "title": "Listing type",
            "enum": [
              "all",
              "auction",
              "bin",
              "best_offer"
            ],
            "type": "string",
            "description": "Buying format filter for keyword searches. Allowed values: all, auction, bin (Buy It Now), best_offer. Example: auction for bidding items. Use all for no filter.",
            "default": "all"
          },
          "freeShipping": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "If true, only listings with free shipping are requested in keyword searches. Example: true. Use it when comparing landed prices; leave false for all listings.",
            "default": false
          },
          "returnsAccepted": {
            "title": "Returns accepted only",
            "type": "boolean",
            "description": "If true, only listings that accept returns are requested in keyword searches. Example: true. Use it for buyer-protection research; leave false for all listings.",
            "default": false
          },
          "seller": {
            "title": "Seller",
            "type": "string",
            "description": "Restrict a keyword search to one public eBay seller username. Example: c-whitty. Use it to track a competitor's catalogue; leave empty for all sellers."
          },
          "category": {
            "title": "Category ID",
            "type": "string",
            "description": "Restrict a keyword search to one numeric eBay category ID. Example: 33963. Use it to avoid unrelated matches; leave empty to search all categories."
          },
          "detailedItems": {
            "title": "Fetch item page details",
            "type": "boolean",
            "description": "If true, visits each active item page to add brand, color, gallery images and listing status. Example: true. Use it when you need these extra fields; leave false for faster, cheaper runs.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum listings",
            "minimum": 0,
            "type": "integer",
            "description": "Total listing cap across all searches and modes (integer). Example: 50. Use a small value while testing; set 0 for no cap. Default 60 (one result page).",
            "default": 60
          },
          "maxPagesPerSearch": {
            "title": "Maximum pages per search",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum result pages to request per search source and listing mode (integer, 1 to 50). Example: 2. Use a low value for quick samples; raise it only with a higher maxItems.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}