{
  "openapi": "3.0.1",
  "info": {
    "title": "🚗 Cars.com Scraper: VIN, Price History, Dealer Data, Specs",
    "description": "Scrape Cars.com listings with VIN, price and price history, mileage, specs, photo gallery, EV battery health and dealer phones by department. Or switch to dealer list mode: every US Cars.com dealership with emails, phones, website, address, hours and rating, filtered by state, ZIP or brand.",
    "version": "0.0",
    "x-build-id": "I41GTXOJVzX6mcIr8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~cars-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-cars-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/memo23~cars-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-cars-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/memo23~cars-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-cars-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": "Cars.com search or vehicle URLs",
            "type": "array",
            "description": "Cars.com search-results URLs (e.g. https://www.cars.com/shopping/results/?zip=60606&maximum_distance=50&sort=best_match_desc) or individual vehicle URLs (e.g. https://www.cars.com/vehicledetail/<id>/).",
            "items": {
              "type": "string"
            }
          },
          "make": {
            "title": "Make",
            "type": "string",
            "description": "Vehicle make(s), e.g. Toyota or Toyota, Honda."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Vehicle model(s), e.g. Camry or F-150 (pair with Make for exact model matching, or pass make-model slug like toyota-camry)."
          },
          "stockType": {
            "title": "Condition / Stock type",
            "enum": [
              "",
              "all",
              "new",
              "used",
              "cpo",
              "new_cpo"
            ],
            "type": "string",
            "description": "Filter by new, used, or certified pre-owned inventory.",
            "default": ""
          },
          "zip": {
            "title": "ZIP code",
            "type": "string",
            "description": "5-digit US ZIP code for location-based search, e.g. 60606. Leave empty for nationwide search."
          },
          "radiusMiles": {
            "title": "Search radius (miles)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Distance around ZIP / location in miles (e.g. 25, 50, 100, 200). Cars.com defaults to 30 miles when ZIP is set without a radius."
          },
          "priceMin": {
            "title": "Minimum price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum listing price in USD."
          },
          "priceMax": {
            "title": "Maximum price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum listing price in USD."
          },
          "yearMin": {
            "title": "Minimum model year",
            "minimum": 1900,
            "maximum": 2035,
            "type": "integer",
            "description": "Earliest model year, e.g. 2018."
          },
          "yearMax": {
            "title": "Maximum model year",
            "minimum": 1900,
            "maximum": 2035,
            "type": "integer",
            "description": "Latest model year, e.g. 2026."
          },
          "mileageMax": {
            "title": "Maximum mileage",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum odometer reading in miles, e.g. 60000."
          },
          "bodyType": {
            "title": "Body style",
            "enum": [
              "",
              "suv",
              "sedan",
              "truck",
              "coupe",
              "convertible",
              "hatchback",
              "minivan",
              "wagon",
              "van"
            ],
            "type": "string",
            "description": "Filter by Cars.com body style.",
            "default": ""
          },
          "fuelType": {
            "title": "Fuel type",
            "enum": [
              "",
              "gasoline",
              "hybrid",
              "plug_in_hybrid",
              "electric",
              "diesel",
              "e85_flex_fuel"
            ],
            "type": "string",
            "description": "Filter by powertrain / fuel type.",
            "default": ""
          },
          "transmission": {
            "title": "Transmission",
            "enum": [
              "",
              "automatic",
              "manual",
              "cvt",
              "automanual"
            ],
            "type": "string",
            "description": "Filter by transmission type.",
            "default": ""
          },
          "drivetrain": {
            "title": "Drivetrain",
            "enum": [
              "",
              "all_wheel_drive",
              "four_wheel_drive",
              "front_wheel_drive",
              "rear_wheel_drive"
            ],
            "type": "string",
            "description": "Filter by drivetrain configuration.",
            "default": ""
          },
          "exteriorColor": {
            "title": "Exterior color",
            "enum": [
              "",
              "black",
              "white",
              "silver",
              "gray",
              "blue",
              "red",
              "green",
              "brown",
              "gold",
              "orange",
              "purple",
              "yellow",
              "beige"
            ],
            "type": "string",
            "description": "Filter by exterior color.",
            "default": ""
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Free-text keyword search on Cars.com listings, e.g. sunroof, leather, tow package."
          },
          "cleanTitle": {
            "title": "Clean title only",
            "type": "boolean",
            "description": "Only include vehicles with a clean title.",
            "default": false
          },
          "noAccidents": {
            "title": "No accidents reported",
            "type": "boolean",
            "description": "Only include vehicles with no reported accidents.",
            "default": false
          },
          "oneOwner": {
            "title": "Single owner only",
            "type": "boolean",
            "description": "Only include one-owner vehicles.",
            "default": false
          },
          "dealerId": {
            "title": "Dealer UUID (Cars.com dealer_id)",
            "type": "string",
            "description": "Filter listings to a single Cars.com dealership UUID (matches `dealerUuid` in listing output)."
          },
          "fetchDetails": {
            "title": "Fetch full details",
            "type": "boolean",
            "description": "When enabled (default), each listing's detail view is fetched for the complete photo gallery, full specs & features, seller notes description, dealer info, price history, and vehicle-history flags. Disable for a faster, cheaper run that returns search-card fields + a few preview photos only.",
            "default": true
          },
          "sort": {
            "title": "Sort override",
            "enum": [
              "",
              "BEST_MATCH_DESC",
              "LIST_PRICE",
              "LIST_PRICE_DESC",
              "MILEAGE",
              "MILEAGE_DESC",
              "YEAR_DESC",
              "YEAR",
              "LISTED_AT_DESC",
              "LISTED_AT",
              "DISTANCE",
              "BEST_DEAL"
            ],
            "type": "string",
            "description": "Sort order applied to every search. Leave as 'Use sort from URL' to keep whatever sort is already in each start URL.",
            "default": ""
          },
          "compact": {
            "title": "Compact output (LLM-friendly)",
            "type": "boolean",
            "description": "Omit verbose arrays/maps (photos, features, specs, priceHistory, emailEnrichment, openingHours, salesTeam, emails) to shrink payload size while keeping primaryThumbnail, photoCount, pricing, VIN, vehicle specs, dealer info, and description.",
            "default": false
          },
          "excludeEmptyFields": {
            "title": "Exclude empty fields",
            "type": "boolean",
            "description": "Recursively strip null, undefined, empty strings, and empty arrays/objects from output items while strictly preserving numeric 0 and boolean false.",
            "default": false
          },
          "descriptionMaxLength": {
            "title": "Max description length",
            "minimum": 0,
            "type": "integer",
            "description": "Truncate seller/dealer description to at most this many Unicode characters (surrogate-pair safe). Omit or set 0 for unlimited."
          },
          "fetchBatteryReport": {
            "title": "Fetch EV battery report",
            "type": "boolean",
            "description": "For electric and plug-in vehicles, fetches the full public battery report for the VIN: usable capacity (kWh), connector type, peak charge rate (kW), battery warranty (months + miles), verified odometer, range score, and expected vs. original EPA range. Adds a batteryReport object. Paid add-on: billed once per report found (see the Pricing tab). Gas cars and EVs without a report cost nothing.",
            "default": false
          },
          "enrichEmails": {
            "title": "Enrich with contact emails (experimental)",
            "type": "boolean",
            "description": "If enabled, finds a contact email for each result from its own website (or by discovering it from the name). Adds contactEmail + contactWebsite columns plus a detailed emailEnrichment object. Best-effort.",
            "default": false
          },
          "fetchDealerPhone": {
            "title": "Resolve real dealer phone numbers",
            "type": "boolean",
            "description": "Cars.com listings carry no dealer phone number. Enable this to read the dealer's published number off the dealership's own website. Looked up once per dealer, not per listing. Fills dealerPhone and adds dealerPhones + dealerPhoneSource. Paid add-on: billed once per dealer per run, and only when a number is found (see the Pricing tab).",
            "default": false
          },
          "fetchDealerProfile": {
            "title": "Fetch dealer profiles (phones by department, address, geo)",
            "type": "boolean",
            "description": "Adds a dealerProfile object per listing with every phone number Cars.com publishes for the dealer — labelled by department (New, Used, Service, Main, CPO) and kept as separate entries, nothing merged — plus the dealer's full street address, latitude/longitude, and own website. Fetched once per dealer (deduplicated by Cars.com customer id). Independent of the dealer-website phone lookup above; enable either or both. Paid add-on: billed once per dealer per run (see the Pricing tab).",
            "default": false
          },
          "dealerList": {
            "title": "Return dealers instead of cars",
            "type": "boolean",
            "description": "Turn on to get a list of Cars.com dealerships matching the filters below. Leave every filter empty to get all US dealers, up to Maximum items.",
            "default": false
          },
          "dealerStates": {
            "title": "States",
            "type": "array",
            "description": "Two-letter US state codes, e.g. TX, CA. Empty means every state.",
            "items": {
              "type": "string"
            }
          },
          "dealerCity": {
            "title": "City",
            "type": "string",
            "description": "Only dealers in this city, e.g. Houston. Combine with States to avoid same-name cities."
          },
          "dealerZip": {
            "title": "Near ZIP code",
            "type": "string",
            "description": "A 5-digit US ZIP code. Returns dealers within the distance below, nearest first, with distanceMiles on each row."
          },
          "dealerRadiusMiles": {
            "title": "Distance from ZIP (miles)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Used with Near ZIP code.",
            "default": 25
          },
          "dealerMakes": {
            "title": "Brands sold new",
            "type": "array",
            "description": "Only franchise dealers selling new cars of these brands, e.g. Ford, Toyota, BMW.",
            "items": {
              "type": "string"
            }
          },
          "dealerType": {
            "title": "Dealer type",
            "enum": [
              "",
              "franchise",
              "independent"
            ],
            "type": "string",
            "description": "Franchise (new-car) dealers, independent (used-car) dealers, or both.",
            "default": ""
          },
          "dealerRequireEmail": {
            "title": "Only dealers with a contact email",
            "type": "boolean",
            "description": "Skip dealers that have no contact email.",
            "default": false
          },
          "dealerMinRating": {
            "title": "Minimum rating",
            "enum": [
              "",
              "3",
              "3.5",
              "4",
              "4.5"
            ],
            "type": "string",
            "description": "Only dealers whose average customer rating is at least this.",
            "default": ""
          },
          "maxItems": {
            "title": "Maximum items to scrape",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on the number of listings collected across all start URLs (or on the number of dealers in dealer list mode).",
            "default": 1000
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of detail requests processed in parallel.",
            "default": 5
          },
          "proxy": {
            "title": "Proxy configuration (optional override)",
            "type": "object",
            "description": "Residential proxies recommended. The default works out of the box, so you can leave this empty."
          },
          "searchUrls": {
            "title": "Search URLs (alias for startUrls)",
            "type": "array",
            "description": "Alias for startUrls.",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "URLs (alias for startUrls)",
            "type": "array",
            "description": "Alias for startUrls.",
            "items": {
              "type": "string"
            }
          },
          "condition": {
            "title": "Condition (alias for stockType)",
            "type": "string",
            "description": "Alias for stockType (all, new, used, cpo, new_cpo)."
          },
          "location": {
            "title": "Location (alias for zip)",
            "type": "string",
            "description": "Alias for zip: 5-digit US ZIP code (e.g. 60606) or City, ST (e.g. Chicago, IL)."
          },
          "priceFrom": {
            "title": "Price from (alias for priceMin)",
            "minimum": 0,
            "type": "integer",
            "description": "Alias for priceMin."
          },
          "priceTo": {
            "title": "Price to (alias for priceMax)",
            "minimum": 0,
            "type": "integer",
            "description": "Alias for priceMax."
          },
          "yearFrom": {
            "title": "Year from (alias for yearMin)",
            "minimum": 1900,
            "maximum": 2035,
            "type": "integer",
            "description": "Alias for yearMin."
          },
          "yearTo": {
            "title": "Year to (alias for yearMax)",
            "minimum": 1900,
            "maximum": 2035,
            "type": "integer",
            "description": "Alias for yearMax."
          },
          "mileageTo": {
            "title": "Mileage to (alias for mileageMax)",
            "minimum": 0,
            "type": "integer",
            "description": "Alias for mileageMax."
          },
          "query": {
            "title": "Query (alias for keyword)",
            "type": "string",
            "description": "Alias for keyword."
          },
          "searchTerm": {
            "title": "Search term (alias for keyword)",
            "type": "string",
            "description": "Alias for keyword."
          },
          "sellerId": {
            "title": "Seller ID (alias for dealerId)",
            "type": "string",
            "description": "Alias for dealerId."
          },
          "includeDetails": {
            "title": "Include details (alias for fetchDetails)",
            "type": "boolean",
            "description": "Alias for fetchDetails."
          },
          "sortBy": {
            "title": "Sort by (alias for sort)",
            "type": "string",
            "description": "Alias for sort."
          },
          "maxResults": {
            "title": "Max results (alias for maxItems)",
            "minimum": 1,
            "type": "integer",
            "description": "Alias for maxItems."
          },
          "limit": {
            "title": "Limit (alias for maxItems)",
            "minimum": 1,
            "type": "integer",
            "description": "Alias for maxItems."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration (alias for proxy)",
            "type": "object",
            "description": "Alias for proxy."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}