{
  "openapi": "3.0.1",
  "info": {
    "title": "eBay Motors Scraper",
    "description": "Scrape eBay Motors vehicles and parts: price, year, make, model, trim, mileage, VIN, title status, seller, location, part numbers and fitment. Active or sold listings on ebay.com, .co.uk, .de, .com.au and .ca. No login. Export to JSON, CSV or Excel.",
    "version": "0.0",
    "x-build-id": "P2EnGYkbXZJdDDhQp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/epicscrapers~ebay-motors-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-epicscrapers-ebay-motors-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/epicscrapers~ebay-motors-scraper/runs": {
      "post": {
        "operationId": "runs-sync-epicscrapers-ebay-motors-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/epicscrapers~ebay-motors-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-epicscrapers-ebay-motors-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "vehicles",
              "parts"
            ],
            "type": "string",
            "description": "Vehicles (cars, trucks, motorcycles, boats...) or parts & accessories. Sets the default eBay category and the fields in each row. For search URLs from a known Motors category, the mode follows the URL's category.",
            "default": "vehicles"
          },
          "queries": {
            "title": "Search keywords",
            "type": "array",
            "description": "What a buyer would type in eBay's search box, one search per entry, for example `toyota tacoma` or `f150 headlight`. Leave empty to search by make and model only.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "eBay Motors search URLs",
            "type": "array",
            "description": "Search (`/sch/...`) or category (`/b/...`) URLs from ebay.com, ebay.co.uk, ebay.de, ebay.com.au or ebay.ca. Set filters on eBay, copy the URL and paste it here. A URL keeps its own marketplace and filters; the filter settings below apply only to keywords.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "marketplace": {
            "title": "eBay marketplace",
            "enum": [
              "ebay.com",
              "ebay.co.uk",
              "ebay.de",
              "ebay.com.au",
              "ebay.ca"
            ],
            "type": "string",
            "description": "eBay site for keyword searches. Prices are in the site's currency. ebay.com has the full eBay Motors catalog; other sites cover cars and parts only.",
            "default": "ebay.com"
          },
          "vehicleType": {
            "title": "Vehicle type",
            "enum": [
              "cars_trucks",
              "motorcycles",
              "powersports",
              "boats",
              "trailers",
              "other_vehicles"
            ],
            "type": "string",
            "description": "Vehicle category in vehicles mode. Motorcycles, powersports, boats, trailers and other vehicles are available on ebay.com only; other sites use cars.",
            "default": "cars_trucks"
          },
          "listingStatus": {
            "title": "Active or sold listings",
            "enum": [
              "active",
              "sold"
            ],
            "type": "string",
            "description": "Active listings for sale now, or sold listings from roughly the last 90 days (eBay's completed-sales filter). Sold rows add `soldAt` and `soldPrice`.",
            "default": "active"
          },
          "maxItems": {
            "title": "Max results per search",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum listings saved for each keyword or URL. eBay shows at most about 10,000 results per search.",
            "default": 50
          },
          "includeDetails": {
            "title": "Include listing details",
            "type": "boolean",
            "description": "Opens each listing for the full data: VIN, model, trim, engine, colors, title status, all photos, seller type, vehicle history, part numbers and fitment. One extra request per listing, charged as a separate event. Off: search-card data only (price, year, make, mileage, title status, transmission, drive type, seller, location).",
            "default": false
          },
          "make": {
            "title": "Make",
            "type": "string",
            "description": "Vehicle make, for example `Toyota`. Added to the search keywords, so it also works for parts (`brake pads` + `Toyota`)."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Vehicle model, for example `Tacoma`. Added to the search keywords."
          },
          "yearFrom": {
            "title": "Year from",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Oldest model year. Vehicles: eBay's model-year filter on ebay.com, ebay.co.uk and ebay.ca, and a check on the year in each listing everywhere. Parts: set Year from and Year to to the same year to add it to the keywords."
          },
          "yearTo": {
            "title": "Year to",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Newest model year."
          },
          "maxMileage": {
            "title": "Max mileage",
            "minimum": 0,
            "type": "integer",
            "description": "Vehicles only. Drops listings whose mileage is above this number (in the listing's unit: miles on ebay.com and ebay.co.uk, usually km elsewhere). Listings that don't state mileage are kept."
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "number",
            "description": "Minimum price in the marketplace's currency."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "number",
            "description": "Maximum price in the marketplace's currency."
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "any",
              "new",
              "used",
              "certified_refurbished",
              "for_parts"
            ],
            "type": "string",
            "description": "eBay's condition filter. Certified / refurbished means certified pre-owned for vehicles and remanufactured or seller-refurbished for parts.",
            "default": "any"
          },
          "listingType": {
            "title": "Buying format",
            "enum": [
              "any",
              "auction",
              "buy_it_now",
              "accepts_offers"
            ],
            "type": "string",
            "description": "Only auctions, only Buy It Now, or only listings that accept offers.",
            "default": "any"
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "best_match",
              "ending_soonest",
              "newly_listed",
              "price_low",
              "price_high",
              "distance_nearest",
              "year_newest",
              "year_oldest",
              "mileage_lowest"
            ],
            "type": "string",
            "description": "eBay's sort order. Year and mileage sorts work in vehicles mode only. Sold searches default to most recently ended.",
            "default": "best_match"
          },
          "postalCode": {
            "title": "ZIP / postal code",
            "type": "string",
            "description": "Search near this ZIP or postal code of the selected marketplace, for example `10001`. Combine with Max distance."
          },
          "maxDistance": {
            "title": "Max distance",
            "minimum": 1,
            "type": "integer",
            "description": "Only listings within this distance of the ZIP / postal code, in miles on ebay.com and ebay.co.uk and km elsewhere. eBay offers 10, 25, 50, 75, 100, 150, 200, 500 and more."
          },
          "categoryId": {
            "title": "eBay category ID",
            "type": "string",
            "description": "Overrides the default category, for example `6038` (Other Vehicles & Trailers) or `33637` (Headlights). The ID is the number after `_sacat=` in an eBay URL."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "eBay limits traffic from data centers. Residential proxies are recommended; the proxy country follows the marketplace unless you choose one.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}