# Cars.com Scraper (`fastdataapi/cars-com-scraper`) Actor

Cars.com Scraper scrapes Cars.com listings in bulk from search URLs, vehicle URLs or make, model, ZIP, price and year filters: price, mileage, VIN, specs, features, photos, price history and dealer address, phones and emails. Export JSON, CSV or Excel, or use the API.

- **URL**: https://apify.com/fastdataapi/cars-com-scraper.md
- **Developed by:** [Fast Data API](https://apify.com/fastdataapi) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.67 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### Cars.com Scraper — Prices, Specs, VIN, Photos and Dealer Contacts

Cars.com Scraper extracts car listings from Cars.com: price, mileage, VIN, year, make, model and trim, full specs and feature lists, every photo, price history, vehicle history, and the dealer's address, phone numbers, emails, website and rating. Every response is structured JSON — ready to pass directly to an LLM, index into a vector store, or feed a **car pricing and dealer lead pipeline**. No Cars.com account or cookies needed. Start with one search in your ZIP code, then scale to every market you track.

![Cars.com Scraper - hero image: what it collects and the JSON output](https://api.apify.com/v2/key-value-stores/Lg9lp51Levfro6SrV/records/v-cars-com-hero.webp)

***

### What data can I extract with Cars.com Scraper?

Using this Cars.com car listing API, you will be able to extract the following Cars.com listing data:

| 🚗 Title, year, make, model, trim | 💲 Price and MSRP | 🛣️ Mileage | 🔢 VIN and stock number |
|---|---|---|---|
| ⚙️ Engine, transmission, drivetrain | ⛽ Fuel type and MPG (city, highway) | 🎨 Exterior and interior color | 🚪 Doors, seats, cylinders, cab type |
| 📉 Price history and total price change | 📅 Listing date and days on market | 🏷️ Price badge and predicted price | 💸 Discount vs MSRP (amount and %) |
| 🧾 Vehicle history (clean title, accidents, owners, recall) | ⭐ Consumer reviews (rating, count, % recommend) | 🧩 Feature lists by category | 📊 Fit scores (family, luxury, sporty, off-road) |
| 🏢 Dealer name, address, city, state | 📍 Dealer map position (latitude, longitude) | ☎️ Dealer phones and call-tracking number (optional) | 📧 Dealer emails and website |
| 🌟 Dealer rating and review count | 🖼️ Full photo gallery and photo count | 🔋 EV range, MPGe and battery report (optional) | 🔗 Listing URL and dealer's own vehicle page |

***

### How to use Cars.com Scraper

Car dealers, analysts and lead-generation teams get a full, typed record for every car in a Cars.com search from one run.

**Copy to your AI assistant:**

```text
`fastdataapi/cars-com-scraper` is an Apify Actor that returns Cars.com car listings as structured JSON: price, mileage, VIN, year/make/model/trim, specs and features, photos, price history, vehicle history, and the dealer's address, phones, emails and rating. Use it whenever someone needs Cars.com listings without cookies, a login, or a browser - price tracking across a market, building dealer lead lists, or feeding car inventory into an AI agent. Run it with curl: curl -X POST "https://api.apify.com/v2/actors/fastdataapi~cars-com-scraper/run-sync-get-dataset-items?token=APIFY_TOKEN" -H "Content-Type: application/json" -d '{"startUrls":[{"url":"https://www.cars.com/shopping/results/?zip=60606&maximum_distance=50&sort=best_match_desc"}],"maxItems":20}'. Or in Python: ApifyClient("APIFY_TOKEN").actor("fastdataapi/cars-com-scraper").call(run_input={"zip": "60606", "makes": ["toyota"], "models": ["toyota-camry"], "maxItems": 20}) then client.dataset(run["defaultDatasetId"]).list_items().items. Inputs: startUrls (array, Cars.com search-results or vehicle page URLs), maxItems (integer, max cars for each input - each start URL and the search fields, 0 = all, default 20), fetchDetails (boolean, full specs, gallery, history and dealer contacts, default true), sort (string, "" | "BEST_MATCH_DESC" | "LIST_PRICE" | "LIST_PRICE_DESC" | "MILEAGE" | "MILEAGE_DESC" | "YEAR_DESC" | "YEAR" | "LISTED_AT_DESC" | "LISTED_AT" | "DISTANCE" | "BEST_DEAL", default "" = keep each URL's sort), keyword (string, free-text search), zip (string, 5-digit US ZIP), maximumDistance (integer, miles around the ZIP, default 50), makes (array of make slugs), models (array of "<make>-<model>" slugs), trims (array of "<make>-<model>-<trim>" slugs), stockType (string, "" | "new" | "used" | "cpo"), yearMin and yearMax (integer), priceMin and priceMax (integer, USD), getContacts (boolean, dealer call-tracking phone number, default false), fetchBatteryReport (boolean, EV battery report, default false), maxPages (integer, result pages per search, default 0 = none), maxConcurrency (integer, default 5), pageDelaySeconds (number, default 1), maxRetries (integer, default 3), proxyConfiguration (object, optional). Each stored car is one row and one `row_result` event. A single Cars.com search returns at most 10,000 cars (500 pages of 20). Full input schema, every enum and default, and the complete output field list: GET https://api.apify.com/v2/actors/fastdataapi~cars-com-scraper/builds/default
```

#### Cars.com Scraper MCP Server: use these Actors from ChatGPT, Claude or Cursor

Point your AI assistant at this actor and it can read Cars.com on its own: car listings with prices, specs, photos, history and dealer contacts. No glue code, no scraping logic in your prompts.

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=fastdataapi/cars-com-scraper"
```

#### Step by step

1. [Create a free Apify account](https://console.apify.com/sign-up).
2. Open [Cars.com Scraper](https://apify.com/fastdataapi/cars-com-scraper) in the Apify Store.
3. Paste a Cars.com search-results or vehicle page URL, or fill in the search fields (ZIP code, make, model, price, year).
4. Click **Start** (or send your API request).
5. Download or stream your results in JSON, CSV or Excel.

#### How to scale Cars.com Scraper to bulk

Put as many search and vehicle URLs as you like in `startUrls` and add the search fields for one more search; all of them run in one actor run. **Max cars per input** applies to each URL and to the search on its own: 3 search URLs with Max cars 100 give up to 300 cars, and one input never uses up another's cars. Search results are paged automatically up to the 10,000 cars Cars.com shows for one search. Split a large market into several searches (by make, price band or ZIP code) to go past that, or schedule the run daily to track price changes. Each stored car is one `row_result` event.

***

### ✨ Features

Cars.com Scraper fetches clean, structured car listings from Cars.com. It's ideal for used-car price tracking, dealer lead lists, inventory research and market reports. It extracts, per car:

- **Price** – list price, MSRP, discount vs MSRP and the full price history
- **Vehicle** – year, make, model, trim, VIN, mileage, engine, transmission, drivetrain, colors and MPG
- **Dealer** – name, street address, city, state, map position, phone numbers, emails, website, rating and review count
- **Vehicle history** – clean title, accident, one-owner, open-recall and personal-use flags with the report link
- **Photos** – the full gallery with photo count
- **Features** – feature lists grouped as convenience, entertainment, exterior, safety and seating
- **EV data** – range score, expected and EPA range, MPGe, and battery capacity and charge rate from the battery report

⚡ Full details, dealer phone numbers and EV battery reports are separate switches, so a run fetches only what you need.

***

### Use cases 💡

- **Used-car dealer** — track competitor prices and days on market in your ZIP code.
- **Lead-generation agency** — build dealer lists with phones, emails, websites and ratings.
- **Market analyst** — compare MSRP discounts by make, model and trim across regions.
- **Car buyer service** — screen cars by clean title, accidents and one-owner history.
- **AI agent builder** — give an agent live car inventory as JSON context for buyer questions.

Building an AI agent? [Connect Cars.com Scraper over MCP](#mcp-integration-for-ai-agents) and let it call the actor on its own.

***

### Why choose this actor?

- **Every car of a search, with details.** A recorded run returned 200 cars with full details from one Chicago-area search (10 result pages) in 20 seconds.
- **The full record behind each listing.** A recorded 2026 Lexus RX 500h came back with 30 photos, its price history, MSRP discount, 4.7-star dealer rating from 1,479 reviews, 8 dealer phone lines by department and a dealer email.
- **11 sort orders and 11 search fields, one actor.** Search by keyword, ZIP code and radius, make, model, trim, new/used/certified, year range and price range, or paste any Cars.com search or vehicle URL.

***

### ⬇️ Input

![Cars.com Scraper input form with example values](https://api.apify.com/v2/key-value-stores/Lg9lp51Levfro6SrV/records/v-cars-com-input.webp)

The actor accepts Cars.com search-results URLs and vehicle page URLs (a list), and/or search fields that build one more search. No field is required on its own, but each run needs at least one URL or one search field.

Accepted URL formats:

- `https://www.cars.com/shopping/results/?zip=60606&maximum_distance=50&makes[]=toyota` (search results, any filters)
- `https://www.cars.com/vehicledetail/13c5f3a0-5dc9-4215-acf8-f1dbe3b5d52c/` (one car)

| Parameter | Required | Type | Description | Example value |
|---|---|---|---|---|
| `startUrls` | No\* | array | Cars.com search-results and/or vehicle page URLs. | `[{"url": "https://www.cars.com/shopping/results/?zip=60606&maximum_distance=50&sort=best_match_desc"}]` |
| `maxItems` | No | integer | Max cars for each input (each URL and the search fields). 0 = all available. Default 20. | `100` |
| `fetchDetails` | No | boolean | Full specs, features, gallery, price history, vehicle history, reviews, EV range and dealer address/phones/emails/rating. Default true. | `true` |
| `sort` | No | string | Order for every search: `""` (keep each URL's sort), `BEST_MATCH_DESC`, `LIST_PRICE`, `LIST_PRICE_DESC`, `MILEAGE`, `MILEAGE_DESC`, `YEAR_DESC`, `YEAR`, `LISTED_AT_DESC`, `LISTED_AT`, `DISTANCE`, `BEST_DEAL`. Default `""`. | `"LIST_PRICE"` |
| `keyword` | No | string | Free-text search. | `"Honda Civic"` |
| `zip` | No | string | 5-digit US ZIP code the search is centred on. | `"60606"` |
| `maximumDistance` | No | integer | Radius in miles around the ZIP code. Default 50. | `50` |
| `makes` | No | array | Make slugs. | `["toyota"]` |
| `models` | No | array | Model slugs `<make>-<model>`. | `["toyota-camry"]` |
| `trims` | No | array | Trim slugs `<make>-<model>-<trim>`. | `["toyota-camry-le"]` |
| `stockType` | No | string | `""` (new and used), `new`, `used`, `cpo`. Default `""`. | `"used"` |
| `yearMin` | No | integer | Oldest model year. | `2018` |
| `yearMax` | No | integer | Newest model year. | `2020` |
| `priceMin` | No | integer | Lowest list price, USD. | `10000` |
| `priceMax` | No | integer | Highest list price, USD. | `20000` |
| `getContacts` | No | boolean | Adds the dealer's call-tracking phone number. Default false. | `true` |
| `fetchBatteryReport` | No | boolean | EV battery capacity, peak charge rate, battery warranty and verified odometer. Default false. | `true` |
| `maxPages` | No | integer | Result pages per search (20 cars each). 0 = none. Default 0. | `5` |
| `maxConcurrency` | No | integer | Cars processed in parallel. Default 5. | `5` |
| `pageDelaySeconds` | No | number | Pause between result pages. Default 1. | `1` |
| `maxRetries` | No | integer | Attempts per request. Default 3. | `3` |
| `proxyConfiguration` | No | object | Optional own proxy. Default: no proxy, switches to one by itself when blocked. | `{"useApifyProxy": false}` |

\* At least one URL or one search field.

#### Free plan limits

Users on the Apify free plan can fetch up to 20 cars per run (all URLs and searches together)
and 200 cars per month. When the limit is reached the run finishes successfully with a
status message explaining the limit. Upgrade to any paid Apify plan to remove these limits.

#### Example input

```json
{
  "startUrls": [
    { "url": "https://www.cars.com/shopping/results/?zip=60606&maximum_distance=50&sort=best_match_desc" },
    { "url": "https://www.cars.com/vehicledetail/13c5f3a0-5dc9-4215-acf8-f1dbe3b5d52c/" }
  ],
  "maxItems": 100,
  "fetchDetails": true,
  "sort": "",
  "keyword": "",
  "zip": "60606",
  "maximumDistance": 50,
  "makes": ["toyota"],
  "models": ["toyota-camry"],
  "trims": [],
  "stockType": "used",
  "yearMin": 2018,
  "yearMax": 2022,
  "priceMin": 10000,
  "priceMax": 25000,
  "getContacts": true,
  "fetchBatteryReport": false,
  "maxPages": 0,
  "maxConcurrency": 5,
  "pageDelaySeconds": 1,
  "maxRetries": 3,
  "proxyConfiguration": { "useApifyProxy": false }
}
```

***

### ⬆️ Output

![Cars.com Scraper output fields with example values](https://api.apify.com/v2/key-value-stores/Lg9lp51Levfro6SrV/records/v-cars-com-output.webp)

Every car is one typed, normalized JSON item with the same schema on every run, grouped into listing, vehicle, pricing, seller and media blocks plus features, history, reviews and EV data when the source has them. Export as JSON (default), CSV or Excel; the Output tab shows Overview, Vehicle, Pricing, Dealer, Features & history, Media and Listing views.

#### Example output

```json
{
  "id": "fb5c6ffe-7e68-4866-a424-6f84b368dbe5",
  "title": "New 2026 Lexus RX 500h F SPORT Performance",
  "listing": {
    "id": "fb5c6ffe-7e68-4866-a424-6f84b368dbe5",
    "url": "https://www.cars.com/vehicledetail/fb5c6ffe-7e68-4866-a424-6f84b368dbe5/",
    "location": "Middletown, NY",
    "sponsored_type": "STANDARD",
    "is_saved": false,
    "new_vdp_eligible": true,
    "hot_car": false
  },
  "vehicle": {
    "title": "New 2026 Lexus RX 500h F SPORT Performance",
    "stock_type": "New",
    "year": 2026,
    "make": "Lexus",
    "model": "RX 500h",
    "trim": "F SPORT Performance",
    "vin": "2T2BCMEA5TC027208",
    "mileage": "3",
    "mileage_numeric": 3,
    "body_style": "SUV",
    "fuel_type": "Gasoline",
    "drivetrain": "All-wheel Drive",
    "exterior_color": "Incognito",
    "certified_pre_owned": false,
    "stock_number": "TC027208",
    "transmission": "6-Speed A/T",
    "cylinders": 4,
    "doors": 4,
    "interior_color": "Rioja Red",
    "mpg_city": 27,
    "mpg_highway": 28,
    "vehicle_class": "SUV",
    "vehicle_size": "Midsize",
    "vin_country": "Canada"
  },
  "pricing": {
    "price": "77040",
    "price_numeric": 77040,
    "currency": "USD",
    "display_price": "$77,040",
    "msrp": 76865,
    "msrp_numeric": 76865,
    "listed_at": "2026-09-29T19:56:16",
    "days_listed": 43,
    "price_history": [{ "date": "2026-09-29T19:56:12", "price": 77040, "change": "Listed" }],
    "total_price_change": "$0",
    "discount_vs_msrp": -175,
    "discount_pct_vs_msrp": -0.2
  },
  "seller": {
    "name": "Lexus of Orange County",
    "zip": "10940",
    "seller_type": "dealership",
    "dealer_number": "5371601",
    "address": "3496 Route 6",
    "city": "Middletown",
    "state": "NY",
    "country": "USA",
    "latitude": 41.4198,
    "longitude": -74.42844,
    "website": "https://www.lexusorangecounty.com/",
    "rating": 4.7,
    "review_count": 1479,
    "phones": [{ "number": "(833) 283-5525", "type": "NEW" }, { "number": "(833) 283-5525", "type": "USED" }],
    "emails": ["NYMDDLEX_leads@lithia.com"],
    "phone_number": "18882317865",
    "phone_type": "DYNAMIC"
  },
  "media": {
    "primary_image_url": "https://platform.cstatic-images.com/large/in/v2/97642a66-cf2f-5684-b3e7-28f90d302dd9/b4f73bb7-f386-43dd-a782-3cc0c19f530c/Rv92hlM6v3cWX68dH010B3f4JlM.jpg",
    "image_count": 30,
    "images": [{ "url": "https://platform.cstatic-images.com/in/v2/97642a66-cf2f-5684-b3e7-28f90d302dd9/b4f73bb7-f386-43dd-a782-3cc0c19f530c/Gpqmo96bXiCqwv8wtY_GxSP0f_w.jpg", "alt_text": "Incognito 2026 Lexus RX 500h F SPORT Performance" }]
  },
  "rank_scores": { "enthusiast": 4.0, "family_friendly": 7.0, "luxury": 8.0, "off_road": 3.0, "sporty": 5.0 },
  "features": {
    "convenience": ["Adaptive Cruise Control", "Automatic Parking"],
    "safety": ["Automatic Emergency Braking", "Backup Camera"],
    "seating": ["Leather Seats", "Memory Seat"]
  },
  "scraped_at": "2026-11-11T12:32:21.242694+00:00"
}
```

***

### How does it work?

You give the actor Cars.com searches or car pages, and it reads the same public listing data any visitor sees on Cars.com, without logging in. It walks through every result page of a search, then adds each car's details — specs, photos, history and the dealer's contact data — and saves each page of cars to your dataset as soon as it is ready, so results appear while the run is going. It uses plain web requests, not a browser. It starts with a direct connection and, if Cars.com blocks it, retries through a proxy and switches to a residential proxy when needed, all on its own. Failed requests are retried. The output schema is normalized, so your code keeps working with the same field names on every run.

***

### How do you integrate Cars.com Scraper into your stack?

It works with what you already use: the REST API from any language, MCP for AI agents, and no-code tools.

#### Using Cars.com Scraper with the Apify API

```python
import requests

resp = requests.post(
    "https://api.apify.com/v2/actors/fastdataapi~cars-com-scraper/run-sync-get-dataset-items",
    params={"token": "APIFY_TOKEN"},
    json={"zip": "60606", "makes": ["toyota"], "models": ["toyota-camry"], "stockType": "used", "maxItems": 20},
)
for car in resp.json():
    print(car["title"], car["pricing"]["display_price"])
```

*Works in Go, Ruby, Node.js, cURL — any language that can make an HTTP request.*

#### MCP integration for AI agents

Register the actor with one command and your agent can search Cars.com listings when a conversation needs them:

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=fastdataapi/cars-com-scraper"
```

This registers Cars.com Scraper as a tool your agent can call directly. It works in Claude Code, Cursor, Windsurf and other MCP clients.

#### No-code tools (n8n, Make, LangChain)

- **n8n** — add the Apify node with "Run an Actor", pick `fastdataapi/cars-com-scraper` and pass your input JSON; or use the HTTP Request node pointed at the run-sync endpoint with your token.
- **Make** — use the Apify app's "Run an Actor" module, then "Get Dataset Items" to map cars into your sheet or CRM.
- **LangChain** — install `langchain-apify` and load `ApifyActorsTool("fastdataapi/cars-com-scraper")` as an agent tool.

***

### Is it legal to scrape Cars.com data?

Scraping publicly available Cars.com listings is generally legal when you collect only data any visitor can see. Cars.com Scraper returns only public listing data — what anyone sees on Cars.com without logging in. Dealer phone numbers and emails are business contact data published on the listings; under GDPR and similar laws, scraping public data is generally permissible, but storing and using it must comply with local data-protection and anti-spam law. Consult legal counsel if your use case involves bulk storage of personal data.

***

### Frequently asked questions

#### What fields does Cars.com Scraper return?

It returns the price, mileage, VIN, year/make/model/trim and the dealer's contact details for every car, plus specs, photos and history when full details are on. See [the data fields section](#what-data-can-i-extract-with-carscom-scraper) for the full list.

#### Does Cars.com Scraper require a Cars.com account or login?

No. Only public listing data is extracted, and no credentials are needed.

#### How fast does Cars.com Scraper run?

A recorded run returned 200 cars with full details in 20 seconds, and 5 cars with details in about 4 seconds. Data is live, not cached.

#### What happens if a car listing doesn't exist or was sold?

A vehicle URL that is no longer available is skipped with a warning in the log and adds no row, and the run goes on with the next input. A search with no matching cars finishes with 0 rows and a log line saying so.

#### Can I scrape multiple Cars.com searches at once?

Yes. Put any number of search and vehicle URLs in `startUrls` (and fill the search fields for one more search); **Max cars per input** applies to each of them on its own.

#### Does Cars.com Scraper work with Claude, ChatGPT, and other AI agent tools?

Yes — Cars.com Scraper is available as an MCP tool. Register it with `claude mcp add --transport http apify "https://mcp.apify.com?tools=fastdataapi/cars-com-scraper"` in Claude Code, Cursor or Windsurf. Any agent that can call an HTTP endpoint can use the REST API directly.

#### Does Cars.com Scraper return data in a format LLMs can use directly?

Yes. It returns typed, normalized JSON with consistent field names — no HTML parsing, no selectors. Pass it straight to an LLM, index it into a vector store, or feed it to an agent tool with no transformation step.

#### What happens when Cars.com changes its layout or updates its anti-bot system?

The actor is maintained and updated when Cars.com changes, so your calls keep returning the same JSON schema with no changes on your end.

#### Can I use Cars.com Scraper without managing proxies or browser infrastructure?

Yes. The actor switches to a proxy by itself when Cars.com blocks a request, and it needs no browser. You send one request and get structured JSON back.

#### Which Cars.com fields work best for AI training data and RAG indexing?

For RAG: the dealer's vehicle description, the feature lists and the title. For training data: price, MSRP, mileage, model year, days on market, MPG, dealer rating and the vehicle-history flags. Fields are typed strings, numbers, booleans and lists.

***

### Your feedback

Found a bug or missing a field? Let us know on the actor's Issues tab. Every report is read, and fixes ship as new versions of this actor.

# Actor input Schema

## `startUrls` (type: `array`):

Cars.com search-results URLs (https://www.cars.com/shopping/results/?...) and/or single vehicle pages (https://www.cars.com/vehicledetail/<id>/). Set the filters on Cars.com, copy the address and paste it here; add as many URLs as you like. Optional when the search fields below are used.

## `maxItems` (type: `integer`):

Maximum cars for each input: each start URL and the search fields each return up to this many (a vehicle URL gives 1). 3 search URLs x 100 = up to 300 cars. 0 = all available (one search returns at most 10,000 cars). Free plan: up to 20 cars per run (all URLs and searches together) and 200 per month; paid plans have no limit.

## `fetchDetails` (type: `boolean`):

Adds each car's full details: specs (engine, transmission, MPG, colors, seats), feature lists, the whole photo gallery, price history, vehicle history, consumer reviews, EV range and the dealer's address, map position, phones, emails, website and rating. Off = only the fields shown on the search card (faster).

## `getContacts` (type: `boolean`):

Adds the dealer's call-tracking phone number shown on the listing (seller.phone_number and phone_type). One extra request per car.

## `fetchBatteryReport` (type: `boolean`):

For electric cars that link a public battery report: adds battery capacity (kWh), peak charge rate (kW), battery warranty (months) and the verified odometer. Needs Full details.

## `sort` (type: `string`):

Order of the results for every search. Leave it on 'Keep the sort of each URL' to use the sort already in each URL (searches from the fields below then use Cars.com's best match).

## `keyword` (type: `string`):

Free-text search, e.g. 'Honda Civic' or 'red pickup with tow package'. It steers the results like the search box on Cars.com. Filling any search field runs one extra search next to the URLs.

## `zip` (type: `string`):

5-digit US ZIP code the search is centred on, e.g. 60606. Leave empty for a nationwide search.

## `maximumDistance` (type: `integer`):

Search radius around the ZIP code in miles. Used only together with a ZIP code.

## `makes` (type: `array`):

Make slugs as they appear in Cars.com URLs, lowercase, e.g. toyota, honda, land_rover.

## `models` (type: `array`):

Model slugs '<make>-<model>' as in Cars.com URLs, e.g. toyota-camry, audi-a6_e_tron. Add the make to Makes too.

## `trims` (type: `array`):

Full trim slugs '<make>-<model>-<trim>', e.g. toyota-camry-le. A trim name alone (le) is ignored by the site.

## `stockType` (type: `string`):

Only new, used or certified pre-owned cars.

## `yearMin` (type: `integer`):

Oldest model year, e.g. 2018.

## `yearMax` (type: `integer`):

Newest model year, e.g. 2022.

## `priceMin` (type: `integer`):

Lowest list price in US dollars.

## `priceMax` (type: `integer`):

Highest list price in US dollars.

## `maxPages` (type: `integer`):

Stop each search after this many result pages (20 cars per page); 0 = no cap.

## `maxConcurrency` (type: `integer`):

How many cars are processed in parallel (details, battery reports, phone numbers).

## `pageDelaySeconds` (type: `number`):

Pause between two result pages of the same search.

## `maxRetries` (type: `integer`):

Attempts per request before a page or car is given up.

## `proxyConfiguration` (type: `object`):

Optional. By default the actor connects directly and switches to a proxy by itself when the site blocks it.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.cars.com/shopping/results/?zip=60606&maximum_distance=50&sort=best_match_desc"
  ],
  "maxItems": 20,
  "fetchDetails": true,
  "getContacts": false,
  "fetchBatteryReport": false,
  "sort": "",
  "maximumDistance": 50,
  "stockType": "",
  "maxPages": 0,
  "maxConcurrency": 5,
  "pageDelaySeconds": 1,
  "maxRetries": 3,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `vehicle` (type: `string`):

No description

## `pricing` (type: `string`):

No description

## `dealer` (type: `string`):

No description

## `features` (type: `string`):

No description

## `media` (type: `string`):

No description

## `listing` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        "https://www.cars.com/shopping/results/?zip=60606&maximum_distance=50&sort=best_match_desc"
    ],
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("fastdataapi/cars-com-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "startUrls": ["https://www.cars.com/shopping/results/?zip=60606&maximum_distance=50&sort=best_match_desc"],
    "maxItems": 20,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("fastdataapi/cars-com-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    "https://www.cars.com/shopping/results/?zip=60606&maximum_distance=50&sort=best_match_desc"
  ],
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call fastdataapi/cars-com-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fastdataapi/cars-com-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/xVdl6eTxjcVaI4VFs/builds/1oLAFf2APWxheK5Eh/openapi.json
