# Cars Scraper 🚗 | $2.99 / 1k | (`glasswing/cars-scraper`) Actor

Scrape Cars.com listings at scale. Get pricing, dealer info, specs, media and market data from any search or listing URL.

- **URL**: https://apify.com/glasswing/cars-scraper.md
- **Developed by:** [Raffy](https://apify.com/glasswing) (community)
- **Categories:** E-commerce, Automation, Lead generation
- **Stats:** 8 total users, 7 monthly users, 91.7% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

$2.99 / 1,000 vehicle listings

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

Extract structured vehicle data from **Cars.com** — the #1 US automotive marketplace — using search result URLs or direct listing URLs. This Cars.com scraper returns clean, organized records grouped by vehicle, pricing, dealer, media, features and listing metadata.

**Try it free:** Paste any Cars.com search URL and run - results ready in minutes.

---

### What This Scraper Extracts

Each scraped listing returns a clean, structured record with six data groups:

#### Vehicle Details
- Year, make, model, trim, body style
- Mileage, drivetrain, fuel type, transmission
- Engine specs, MPG, seating capacity
- EV-specific data (range, battery, charge type) for electric vehicles
- Condition (New / Used / Certified Pre-Owned)

#### Pricing & Market Data
- Listed price and monthly payment estimate
- Price vs. market average (great deal / good deal badges)
- CARFAX history link
- Deal rating flags

#### Dealer Information
- Dealer name, address, phone number
- Dealer type (franchised, independent, private seller)
- Dealer listing URL
- Private seller personal contact details are **masked** for privacy compliance

#### Listing Images
- All listing photo URLs
- Exterior and interior image sets

#### Features & Options
- Full equipment list: safety, comfort, tech, packages
- Structured feature categories

#### Listing Metadata
- Listing ID, stock number, listing URL
- Days on market
- Stock type (New / Used / CPO)

---

### How to Use Scraper

**Step 1 - Get your URL**
Open Cars.com and apply your filters (make, model, ZIP code, price range, mileage, body style, fuel type, etc.). Copy the search URL from your browser.

**Step 2 - Paste it in**
Add up to **20 URLs** in the `startUrls` input. You can mix search result URLs.

**Step 3 - Set limits**
- `maxItemsPerLink` - how many listings to pull from each URL (default: 5, max: 10,000)
- `maxItemsTotal` - total cap across all URLs (default: 20, max: 100,000)

**Step 4 - Run**
Results appear in the Apify dataset in real time.

---

### Example Input

```json
{
  "startUrls": [
    "https://www.cars.com/shopping/results/?zip=60606&maximum_distance=9999&sort=best_match_desc",
    "https://www.cars.com/vehicledetail/c1c9dff3-9eaf-4b75-b7d4-d5362fce38e1/"
  ],
  "maxItemsPerLink": 5,
  "maxItemsTotal": 20
}
````

You can also pass a single direct listing URL to extract full details for one specific vehicle.

***

### Scale Guidance

| Use Case | Recommended Setup |
|---|---|
| Quick market sample | 1 URL - maxItemsPerLink: 100 |
| Regional market analysis | 3-5 URLs by ZIP - maxItemsPerLink: 1,000 |
| National brand inventory | 10+ URLs by price band - maxItemsPerLink: 5,000 |

> To exceed 10,000 results in a single market, split into multiple search URLs.

***

### Use Cases

**Car dealers & flippers** - Monitor competitor inventory, track price drops, and identify undervalued vehicles using price-vs-market data and deal ratings.

**Automotive market researchers** - Build datasets across makes, models, ZIP codes, and time periods for pricing analysis, inventory studies, and trend reporting.

**Price comparison tools** - Power real-time vehicle pricing widgets and apps with structured data.

**EV market analysis** - Extract electric vehicle listings with battery range, charge type, and pricing in one structured feed - useful for EV market reports and aggregators.

**Lead generation for dealerships** - Pull dealer contact data from active listings across a region.

**Integration with n8n, Make, or Zapier** - Trigger this scraper on a schedule and pipe results directly into Google Sheets, Airtable, Supabase, or your CRM via Apify webhooks.

***

### Privacy

This actor is built with responsible data collection in mind.

- Private seller personal contact details (name, phone, email) are masked in all output records
- Dealer business contact data (name, phone, address) is retained only when publicly displayed
- No login, authentication, or account credentials are required or used
- Only publicly accessible listing pages are scraped — no private or gated content
- Data collected is intended for lawful business purposes such as market research, pricing analysis
- Users are solely responsible for how they use the extracted data in their jurisdiction

***

### FAQ

**Can I scrape a specific vehicle by its listing URL?**
Yes. Paste the direct listing URL (e.g. `https://www.cars.com/vehicledetail/...`) into `startUrls` to extract full details for that one vehicle.

**Can I scrape multiple cities or ZIP codes in one run?**
Yes. Set up one search URL per ZIP code or region and add them all to `startUrls` (up to 20). Each will be scraped independently up to its `maxItemsPerLink` limit.

**Does it work with Cars.com filter URLs?**
Yes. Apply any filters on Cars.com (make, model, year, price, mileage, body style, fuel type, etc.), copy the URL, and paste it in. The scraper respects your filters.

**How do I get more than 10,000 results from one market?**
Split your search into multiple URLs using different filter buckets - for example, price bands under $20k, $20k-$40k, over $40k - then combine the datasets.

# Actor input Schema

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

Add Cars.com search result URLs and/or direct listing URLs. Maximum 20 links per run.

## `maxItemsPerLink` (type: `integer`):

Maximum listings scraped from each input URL. Hard maximum is 10,000 per link. To scrape more, add multiple links.

## `maxItemsTotal` (type: `integer`):

Maximum listings scraped across the whole run.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.cars.com/shopping/results/?zip=60606&maximum_distance=9999&sort=best_match_desc"
  ],
  "maxItemsPerLink": 5,
  "maxItemsTotal": 20
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("glasswing/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 = {}

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

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

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

```

## CLI example

```bash
echo '{}' |
apify call glasswing/cars-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=glasswing/cars-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Cars Scraper 🚗 | $2.99 / 1k |",
        "description": "Scrape Cars.com listings at scale. Get pricing, dealer info, specs, media and market data from any search or listing URL.",
        "version": "2.0",
        "x-build-id": "HCT5RKeMg0SRWGwQV"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/glasswing~cars-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-glasswing-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/glasswing~cars-scraper/runs": {
            "post": {
                "operationId": "runs-sync-glasswing-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/glasswing~cars-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-glasswing-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",
                "required": [
                    "startUrls"
                ],
                "properties": {
                    "startUrls": {
                        "title": "Cars.com URLs",
                        "minItems": 1,
                        "maxItems": 20,
                        "type": "array",
                        "description": "Add Cars.com search result URLs and/or direct listing URLs. Maximum 20 links per run.",
                        "default": [
                            "https://www.cars.com/shopping/results/?zip=60606&maximum_distance=9999&sort=best_match_desc"
                        ],
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxItemsPerLink": {
                        "title": "Max Items Per Link",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Maximum listings scraped from each input URL. Hard maximum is 10,000 per link. To scrape more, add multiple links.",
                        "default": 5
                    },
                    "maxItemsTotal": {
                        "title": "Max Items Total",
                        "minimum": 1,
                        "maximum": 100000,
                        "type": "integer",
                        "description": "Maximum listings scraped across the whole run.",
                        "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
