{
  "openapi": "3.0.1",
  "info": {
    "title": "ClassicCars.com Scraper",
    "description": "Scrape ClassicCars.com listings - collector, classic, and muscle car classifieds. Filter by make/model, year, price, vehicle type, seller type, or location; fetch a listing by ID; or pull a dealer's inventory. Full specs: VIN, mileage, engine, colors, photos, seller contact.",
    "version": "1.0",
    "x-build-id": "vlpz1jbwo09FiRbMo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~classiccars-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-classiccars-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/crawlerbros~classiccars-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-classiccars-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/crawlerbros~classiccars-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-classiccars-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "byIds",
              "byDealer"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "search"
          },
          "make": {
            "title": "Make (mode=search)",
            "type": "string",
            "description": "Filter to a specific vehicle make, using the site's URL slug, e.g. `chevrolet`, `ford`, `porsche`, `willys`, `ac`, `duesenberg`. ClassicCars.com lists 300+ makes, from mainstream to obscure coachbuilders, so this is free text rather than a fixed dropdown. Leave blank for all makes.",
            "default": ""
          },
          "model": {
            "title": "Model (mode=search)",
            "type": "string",
            "description": "Filter to a specific model, e.g. `camaro`, `corvette`, `mustang`. Requires `make`. Leave blank for all models."
          },
          "keyword": {
            "title": "Keyword (mode=search)",
            "type": "string",
            "description": "Free-text search across the listing description, e.g. `barn find`, `numbers matching`, `low miles`."
          },
          "listingIds": {
            "title": "Listing IDs (mode=byIds)",
            "type": "array",
            "description": "Numeric ClassicCars.com listing IDs, e.g. `2097138` (from a listing URL `/listings/view/2097138/...`).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "dealerUrl": {
            "title": "Dealer or auction-house URL or slug (mode=byDealer)",
            "type": "string",
            "description": "Dealer or auction-house listings page URL or `id/slug`, e.g. `https://classiccars.com/listings/dealer/921168/spud-s-garage`, `921168/spud-s-garage`, or an auction house like `https://classiccars.com/listings/auction/1385/carlisle-auctions`."
          },
          "yearFrom": {
            "title": "Year (min)",
            "minimum": 1900,
            "maximum": 2027,
            "type": "integer",
            "description": "Drop listings for model years before this year (mode=search)."
          },
          "yearTo": {
            "title": "Year (max)",
            "minimum": 1900,
            "maximum": 2027,
            "type": "integer",
            "description": "Drop listings for model years after this year (mode=search)."
          },
          "priceMin": {
            "title": "Price (min, USD)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Drop listings priced below this amount (mode=search)."
          },
          "priceMax": {
            "title": "Price (max, USD)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Drop listings priced above this amount (mode=search)."
          },
          "vehicleType": {
            "title": "Vehicle type (mode=search)",
            "enum": [
              "",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7"
            ],
            "type": "string",
            "description": "Restrict to a vehicle category. Leave blank for all types.",
            "default": ""
          },
          "includePrivateSellers": {
            "title": "Include private-seller listings",
            "type": "boolean",
            "description": "Include listings posted by private sellers (mode=search).",
            "default": true
          },
          "includeDealerListings": {
            "title": "Include dealer listings",
            "type": "boolean",
            "description": "Include listings posted by dealers (mode=search).",
            "default": true
          },
          "includeAuctionListings": {
            "title": "Include auction listings",
            "type": "boolean",
            "description": "Include listings posted as auctions (mode=search).",
            "default": true
          },
          "country": {
            "title": "Country (mode=search)",
            "enum": [
              "",
              "united-states",
              "canada"
            ],
            "type": "string",
            "description": "Restrict to listings located in this country.",
            "default": ""
          },
          "state": {
            "title": "State / province (mode=search)",
            "enum": [
              "",
              "alabama",
              "alaska",
              "arizona",
              "arkansas",
              "california",
              "colorado",
              "connecticut",
              "delaware",
              "district-of-columbia",
              "florida",
              "georgia",
              "hawaii",
              "idaho",
              "illinois",
              "indiana",
              "iowa",
              "kansas",
              "kentucky",
              "louisiana",
              "maine",
              "maryland",
              "massachusetts",
              "michigan",
              "minnesota",
              "mississippi",
              "missouri",
              "montana",
              "nebraska",
              "nevada",
              "new-hampshire",
              "new-jersey",
              "new-mexico",
              "new-york",
              "north-carolina",
              "north-dakota",
              "ohio",
              "oklahoma",
              "oregon",
              "pennsylvania",
              "rhode-island",
              "south-carolina",
              "south-dakota",
              "tennessee",
              "texas",
              "utah",
              "vermont",
              "virginia",
              "washington",
              "west-virginia",
              "wisconsin",
              "wyoming",
              "alberta",
              "british-columbia",
              "manitoba",
              "new-brunswick",
              "newfoundland",
              "nova-scotia",
              "nwt",
              "nunavut",
              "ontario",
              "prince-edward-island",
              "quebec",
              "saskatchewan",
              "yukon"
            ],
            "type": "string",
            "description": "Restrict to listings located in this US state or Canadian province. Pair with `country` (united-states/canada) to disambiguate if needed; a state/province with no current listings correctly returns zero records rather than an unfiltered result.",
            "default": ""
          },
          "zipCode": {
            "title": "ZIP code (mode=search)",
            "type": "string",
            "description": "US ZIP code to search around. Used together with `distanceMiles`."
          },
          "distanceMiles": {
            "title": "Distance from ZIP (miles)",
            "enum": [
              "",
              "25",
              "50",
              "100",
              "250",
              "500"
            ],
            "type": "string",
            "description": "Search radius around `zipCode`. Only applies when `zipCode` is set.",
            "default": ""
          },
          "sortBy": {
            "title": "Sort by (mode=search)",
            "enum": [
              "default",
              "datelisted",
              "year",
              "makemodel",
              "price"
            ],
            "type": "string",
            "description": "Sort order for search results.",
            "default": "default"
          },
          "sortAscending": {
            "title": "Sort ascending",
            "type": "boolean",
            "description": "Sort lowest-to-highest instead of highest-to-lowest.",
            "default": false
          },
          "fetchFullDetails": {
            "title": "Fetch full details per listing",
            "type": "boolean",
            "description": "Visit each listing's detail page to include VIN, mileage, engine, transmission, colors, full description, photos, and seller contact info. Slower but much richer. Turn off for a fast, lightweight pass.",
            "default": true
          },
          "includeSellerPhone": {
            "title": "Include seller phone number",
            "type": "boolean",
            "description": "Fetch the seller's contact phone number for each listing (one extra request per listing). Only applies when `fetchFullDetails` is on. Turn off to skip and save a request per listing.",
            "default": true
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}