{
  "openapi": "3.0.1",
  "info": {
    "title": "eBay Vehicle Scraper — Cars & Vans with Full Specs",
    "description": "Scrape vehicle listings from eBay Motors. Extract prices, mileage, specs, seller details, images, and descriptions from car and van listings with automatic pagination and filtering.",
    "version": "0.1",
    "x-build-id": "iXg4H6FRCWWbyrcax"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapyspider~eBay-High-Mileage-Vehicle-Scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapyspider-eBay-High-Mileage-Vehicle-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/scrapyspider~eBay-High-Mileage-Vehicle-Scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapyspider-eBay-High-Mileage-Vehicle-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/scrapyspider~eBay-High-Mileage-Vehicle-Scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapyspider-eBay-High-Mileage-Vehicle-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": {
          "startUrls": {
            "title": "Start URLs (optional override)",
            "type": "array",
            "description": "Optional. Paste one or more custom eBay UK search URLs here to use them directly instead of the auto-built URL below. Useful if you have a specific saved search or want full control over filters.\n\nLeave empty to let the Actor build the URL automatically from the fields below (Years, Condition, Sort By, etc.).",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "category": {
            "title": "Category",
            "enum": [
              "bn_1839037",
              "bn_2314804",
              "bn_1839833",
              "bn_1528081",
              "bn_2315174",
              "bn_2317967",
              "bn_2317971",
              "bn_2317968",
              "bn_2315461",
              "bn_2315491"
            ],
            "type": "string",
            "description": "eBay UK Motors category to scrape. This sets the base URL for the search (e.g. Cars uses /b/bn_1839037). Ignored when Start URLs are provided.",
            "default": "bn_1839037"
          },
          "years": {
            "title": "Model Years",
            "type": "array",
            "description": "Vehicle model years to search for. Each selected year is combined in the eBay search URL (e.g. 2023|2024|2025|2026). Add or remove years as needed.",
            "default": [
              "2023",
              "2024",
              "2025",
              "2026"
            ],
            "items": {
              "type": "string"
            }
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "any",
              "4",
              "3"
            ],
            "type": "string",
            "description": "Condition filter for listings (mapped to LH_ItemCondition in the search URL). Choose 'Any Condition' to skip this filter.",
            "default": "any"
          },
          "statusCategory": {
            "title": "Listing Type",
            "enum": [
              "LH_All",
              "LH_Auction",
              "LH_BIN",
              "LH_BO"
            ],
            "type": "string",
            "description": "Filter by listing type — auction, Buy It Now, Best Offer, or all types.",
            "default": "LH_All"
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "12",
              "1",
              "44",
              "10",
              "15",
              "16",
              "7",
              "4",
              "5"
            ],
            "type": "string",
            "description": "Sort order for search results (mapped to _sop in the URL).",
            "default": "10"
          },
          "maxPages": {
            "title": "Max Search Result Pages",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of search result pages to paginate through per start URL. Set to 0 for unlimited.",
            "default": 5
          },
          "minMileage": {
            "title": "Minimum Mileage",
            "minimum": 0,
            "type": "integer",
            "description": "Lower bound for the mileage filter. Only listings with mileage AT OR ABOVE this value will be marked as qualifying.\n\nExamples:\n• minMileage=80000, maxMileage=0  → 80,000+ miles qualifies (no upper limit)\n• minMileage=0, maxMileage=50000  → up to 50,000 miles qualifies (no lower limit)\n• minMileage=20000, maxMileage=100000  → 20,000–100,000 miles qualifies\n\nSet to 0 for no lower limit.",
            "default": 80000
          },
          "maxMileage": {
            "title": "Maximum Mileage",
            "minimum": 0,
            "type": "integer",
            "description": "Upper bound for the mileage filter. Only listings with mileage AT OR BELOW this value will be marked as qualifying.\n\nExamples:\n• minMileage=80000, maxMileage=0  → any mileage ≥80,000 qualifies (no upper limit)\n• minMileage=0, maxMileage=100000  → any mileage ≤100,000 qualifies\n• minMileage=50000, maxMileage=150000  → 50,000–150,000 miles qualifies\n\nSet to 0 for no upper limit.",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Max Concurrency",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Number of browser pages to run in parallel. Higher values speed up scraping but increase memory usage and the risk of anti-bot detection.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy settings. Residential US proxies are strongly recommended to avoid eBay anti-bot detection and to get accurate US listings.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}