# Cars Scraper (`voyn/cars-scraper`) Actor

Cars.com scraper, great tool for car dealers! Scrape cars from Cars.com to retrieve data such as year, make, model, trim, specs, and price. Additionaly, it'll calculate profit if average price of car given by website.

- **URL**: https://apify.com/voyn/cars-scraper.md
- **Developed by:** [Voyn Software](https://apify.com/voyn) (community)
- **Categories:** E-commerce, Automation
- **Stats:** 91 total users, 2 monthly users, 100.0% runs succeeded, 9 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

##### Cars.com Scraper

Easily extract car listings from [Cars.com](https://cars.com) into structured datasets.\
This **Cars.com Scraper** lets you automatically collect vehicle data with all available details.\
Simply open [Cars.com](https://cars.com), apply any filters (make, model, year, price, mileage, seller type, etc.), copy the search URL, and paste it into the scraper — results are ready in minutes.

Note: It supports both Cars.com search URLs and individual Cars.com vehicle URLs now. Example:
https://www.cars.com/vehicledetail/910d58bd-f609-4cbe-8a53-72384e9c6242/
https://www.cars.com/shopping/results/?deal\_ratings\[]=great\&dealer\_id=\&keyword=\&list\_price\_max=\&list\_price\_min=\&makes\[]=\&maximum\_distance=all\&mileage\_max=\&page\_size=20\&sort=listed\_at\_desc\&stock\_type=used\&year\_max=\&year\_min=\&zip=

##### Who Is This For?

- **Car dealers & flippers** → Find undervalued cars before competitors.
- **Market analysts** → Track pricing trends by region, make, and model.
- **Competitor research** → Monitor dealer stock and pricing strategies.
- **Data scientists** → Build car valuation models with clean structured data.

##### Scraped Car Data Will Include:

- Ad Link
- Title of Ad Page
- Full Description
- Year
- Make
- Model
- Trim
- Price
- Mileage
- Average Price (if provided)
- Profit Estimate (if available)
- Profit Estimate Percentage (if available)
- Body Type
- Fuel Type
- Doors
- Cylinders
- Drive-train
- VIN
- Color (Interior / Exterior)
- Transmission
- Engine
- Stock Number
- Features & Options
- Images

##### Output Formats

You can download your results in:

- **CSV / Excel** → for quick analysis
- **JSON / NDJSON** → for developers
- **API** → integrate into Google Sheets, Zapier, Make.com, or BI dashboards

### Sample Data

The scraper returns an array of car data objects. Example:

```json
{
  "list_url": [
    "https://www.cars.com/shopping/results/?deal_ratings[]=great&dealer_id=&keyword=&list_price_max=&list_price_min=&makes[]=&maximum_distance=all&mileage_max=&page_size=20&sort=listed_at_desc&stock_type=used&year_max=&year_min=&zip="
  ],
  "record_url": "https://www.cars.com/vehicledetail/910d58bd-f609-4cbe-8a53-72384e9c6242/",
  "name": "2015 Hyundai Sonata Limited",
  "description": "",
  "mileage": "116883",
  "price": "12995",
  "make": "Hyundai",
  "model": "Sonata",
  "trim": "Limited",
  "type": "Used",
  "year": "2015",
  "vin": "5NPE34AF1FH195268",
  "body": "Sedan",
  "cylinders": "4",
  "doors": "4",
  "drivetrain": "Front-wheel Drive",
  "exterior_color": "BLUE",
  "interior_color": "Gray",
  "fuel": "Gasoline",
  "transmission": "6-SPEED A/T",
  "features": [
    "Backup Camera",
    "Blind Spot Monitor",
    "Bluetooth",
    "Brake Assist",
    "Stability Control",
    "Leather Seats",
    "Heated Seats",
    "Heated Steering Wheel",
    "HomeLink",
    "Keyless Start",
    "Lane Departure Warning",
    "Navigation System",
    "Sunroof/Moonroof",
    "Premium Sound System",
    "Rear Cross Traffic Alert",
    "USB Port"
  ],
  "stock_number": "1069",
  "engine": "der Engine",
  "images": [
    null,
    "https://platform.cstatic-images.com/xlarge/in/v2/b25160d0-b562-4cca-a2c8-1e7c94dd7dd6/82918e26-6c50-4cdf-86f9-fd5670041a19/zeKVAitzIclgVX5di4pZSLpRnnE.jpg",
    "https://platform.cstatic-images.com/xlarge/in/v2/b25160d0-b562-4cca-a2c8-1e7c94dd7dd6/82918e26-6c50-4cdf-86f9-fd5670041a19/vvUqPE8oy3IyP8MDMkvdbP5b3wg.jpg",
    "https://platform.cstatic-images.com/xlarge/in/v2/b25160d0-b562-4cca-a2c8-1e7c94dd7dd6/82918e26-6c50-4cdf-86f9-fd5670041a19/meN6OGaQBIEuM9c1uXPCAiJrgwY.jpg",
    "https://platform.cstatic-images.com/xlarge/in/v2/b25160d0-b562-4cca-a2c8-1e7c94dd7dd6/82918e26-6c50-4cdf-86f9-fd5670041a19/iwzKnIDlPUTZB795dFurgS3Ek8o.jpg",
    "https://platform.cstatic-images.com/xlarge/in/v2/b25160d0-b562-4cca-a2c8-1e7c94dd7dd6/82918e26-6c50-4cdf-86f9-fd5670041a19/hIWrCqWPSutncjr_qcbcwePtwzc.jpg",
    "https://platform.cstatic-images.com/xlarge/in/v2/b25160d0-b562-4cca-a2c8-1e7c94dd7dd6/82918e26-6c50-4cdf-86f9-fd5670041a19/GeEfrBgrZj0AivFy2-SkLHlxbwY.jpg",
    "https://platform.cstatic-images.com/xlarge/in/v2/b25160d0-b562-4cca-a2c8-1e7c94dd7dd6/82918e26-6c50-4cdf-86f9-fd5670041a19/e7Z_uBH89eZgrSqWIvre1C-c6es.jpg",
    "https://platform.cstatic-images.com/xlarge/in/v2/b25160d0-b562-4cca-a2c8-1e7c94dd7dd6/82918e26-6c50-4cdf-86f9-fd5670041a19/Y3b8jcctw-bCZSnYcgwm2HDUcAw.jpg",
    "https://platform.cstatic-images.com/xlarge/in/v2/b25160d0-b562-4cca-a2c8-1e7c94dd7dd6/82918e26-6c50-4cdf-86f9-fd5670041a19/i80LJgGgYp5tK6LV6WrzmxwGc3o.jpg",
    "https://platform.cstatic-images.com/xlarge/in/v2/b25160d0-b562-4cca-a2c8-1e7c94dd7dd6/82918e26-6c50-4cdf-86f9-fd5670041a19/dKCWLOCZ1zN0BGc_o7qkigfym6k.jpg",
    "https://platform.cstatic-images.com/xlarge/in/v2/b25160d0-b562-4cca-a2c8-1e7c94dd7dd6/82918e26-6c50-4cdf-86f9-fd5670041a19/5Z1J2FidAPk6Fm4Ef5AiIV3nA8Y.jpg",
    "https://platform.cstatic-images.com/xlarge/in/v2/b25160d0-b562-4cca-a2c8-1e7c94dd7dd6/82918e26-6c50-4cdf-86f9-fd5670041a19/9yXl3EyBBgwVaKcRfxBqvusQmbM.jpg",
    "https://platform.cstatic-images.com/xlarge/in/v2/b25160d0-b562-4cca-a2c8-1e7c94dd7dd6/82918e26-6c50-4cdf-86f9-fd5670041a19/Qo2-PksPNe4kvqHD5e-Es3hz9gc.jpg",
    "https://platform.cstatic-images.com/xlarge/in/v2/b25160d0-b562-4cca-a2c8-1e7c94dd7dd6/82918e26-6c50-4cdf-86f9-fd5670041a19/upS7UxLO09tGH-T9ddSBVBbrlW8.jpg",
    "https://platform.cstatic-images.com/xlarge/in/v2/b25160d0-b562-4cca-a2c8-1e7c94dd7dd6/82918e26-6c50-4cdf-86f9-fd5670041a19/Phe1XGKb4YEw4EPcztE34y2Ye_0.jpg",
    "https://platform.cstatic-images.com/xlarge/in/v2/b25160d0-b562-4cca-a2c8-1e7c94dd7dd6/82918e26-6c50-4cdf-86f9-fd5670041a19/CJfU2N808gN1hNTvWEYdS6im1ZM.jpg",
    "https://platform.cstatic-images.com/xlarge/in/v2/b25160d0-b562-4cca-a2c8-1e7c94dd7dd6/82918e26-6c50-4cdf-86f9-fd5670041a19/MDofEyb_Wzp8g8pgrVQsny7-OaA.jpg",
    "https://platform.cstatic-images.com/xlarge/in/v2/b25160d0-b562-4cca-a2c8-1e7c94dd7dd6/82918e26-6c50-4cdf-86f9-fd5670041a19/kTAMR2b4RqeDps7YdJEmQR4A6k4.jpg",
    "https://platform.cstatic-images.com/xlarge/in/v2/b25160d0-b562-4cca-a2c8-1e7c94dd7dd6/82918e26-6c50-4cdf-86f9-fd5670041a19/_PLMB89RNXkPDbSOv5BgGybmTl0.jpg",
    "https://platform.cstatic-images.com/xlarge/in/v2/b25160d0-b562-4cca-a2c8-1e7c94dd7dd6/82918e26-6c50-4cdf-86f9-fd5670041a19/G5XKWrsq5AHKmMmtvNIV9sBhHSY.jpg"
  ],
  "profit_estimate": 605,
  "average_price": 13600,
  "profit_estimate_percentage": 4.655636783378222
}
```

# Actor input Schema

## `carscom_link` (type: `array`):

Cars.com search page links that contains cars you want to be scraped.

## `max_results` (type: `integer`):

Maximum number of results

## Actor input object example

```json
{
  "carscom_link": [
    "https://www.cars.com/shopping/results/?zip=27701&maximum_distance=30&sort=best_match_desc"
  ],
  "max_results": 2
}
```

# 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 = {
    "carscom_link": [
        "https://www.cars.com/shopping/results/?zip=27701&maximum_distance=30&sort=best_match_desc"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("voyn/cars-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 = { "carscom_link": ["https://www.cars.com/shopping/results/?zip=27701&maximum_distance=30&sort=best_match_desc"] }

# Run the Actor and wait for it to finish
run = client.actor("voyn/cars-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 '{
  "carscom_link": [
    "https://www.cars.com/shopping/results/?zip=27701&maximum_distance=30&sort=best_match_desc"
  ]
}' |
apify call voyn/cars-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,voyn/cars-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/TI6A0VHnyRVjHXjP4/builds/5tOdzQujDaT61tUuo/openapi.json
