πŸš— Cars.com Scraper avatar
πŸš— Cars.com Scraper

Pricing

Pay per usage

Go to Apify Store
πŸš— Cars.com Scraper

πŸš— Cars.com Scraper

Extract detailed vehicle listings, specs, pricing, and dealer information directly from Cars.com. Perfect for automotive market analysis and inventory tracking. To ensure seamless data extraction and avoid strict anti-bot blocking, the use of residential proxies is strongly recommended.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Shahid Irfan

Shahid Irfan

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Share

Cars.com Scraper

Extract comprehensive vehicle listings from Cars.com with powerful search filters and structured data output.


Overview

Cars.com Scraper extracts vehicle listings from Cars.com, one of the largest online automotive marketplaces. Get structured data for new, used, and certified pre-owned vehicles including prices, mileage, dealer information, images, and direct listing links.

Key Features

  • Flexible Search - Filter by make, model, year, price, mileage, and location
  • Location-Based - Search by ZIP code with customizable radius
  • Complete Data - Vehicle details, pricing, dealer info, ratings, and images
  • Multiple Export Formats - JSON, CSV, Excel, and more
  • Automatic Pagination - Scrape all matching listings across pages
  • Anti-Bot Bypass - Reliable data extraction with advanced evasion

Quick Start

  1. Click Start in Apify Console
  2. Enter your search parameters (ZIP code, make, model, etc.)
  3. Set maximum listings to scrape
  4. Click Run and download your data

Example Input

{
"zipCode": "90210",
"stockType": "new",
"make": "Toyota",
"model": "Camry",
"maxDistance": 50,
"maxListings": 100
}

Input Parameters

ParameterTypeDescription
searchUrlStringDirect Cars.com search URL (overrides other filters)
zipCodeStringUS ZIP code for location search (default: 60606)
stockTypeEnumVehicle condition: all, new, used, cpo
makeStringVehicle manufacturer (Toyota, Honda, Ford, etc.)
modelStringVehicle model (Camry, Civic, F-150, etc.)
maxDistanceIntegerSearch radius in miles (10-9999)
priceMinIntegerMinimum price filter
priceMaxIntegerMaximum price filter
yearMinIntegerMinimum model year
yearMaxIntegerMaximum model year
mileageMaxIntegerMaximum mileage filter
maxListingsIntegerMaximum vehicles to scrape (default: 20)
sortByEnumSort order (best match, price, mileage, year)
proxyConfigurationObjectProxy settings for reliable scraping

Output Data

Each vehicle listing includes:

{
"title": "2024 Toyota Camry SE",
"price": "$28,500",
"msrp": "MSRP $29,995",
"stockType": "New",
"mileage": "15 mi",
"dealer": "AutoNation Toyota",
"dealerRating": "4.8 (245 reviews)",
"location": "Chicago, IL (5 mi away)",
"imageUrl": "https://...",
"url": "https://www.cars.com/vehicledetail/...",
"scrapedAt": "2024-01-15T10:30:00.000Z"
}

Output Fields

FieldDescription
titleYear, make, model, and trim
priceListed price
msrpManufacturer suggested retail price
stockTypeNew, Used, or Certified Pre-Owned
mileageOdometer reading
dealerDealership name
dealerRatingDealer rating and review count
locationCity, state, and distance
imageUrlPrimary vehicle image URL
urlDirect link to vehicle detail page
scrapedAtISO timestamp of extraction

Use Cases

Automotive Market Research

Track vehicle pricing trends, compare dealer inventory, and analyze market conditions across regions.

Price Comparison Tools

Build vehicle price comparison applications with real-time market data.

Inventory Monitoring

Monitor competitor dealer inventory and receive alerts when specific vehicles become available.

Car Buying Assistance

Help buyers find the best deals by aggregating listings across dealers and locations.

Data Analysis

Export vehicle data for statistical analysis of pricing, mileage, and market trends.


Usage Examples

Search New Toyota Vehicles

{
"zipCode": "10001",
"stockType": "new",
"make": "Toyota",
"maxDistance": 100,
"maxListings": 50
}

Find Used Cars Under $20,000

{
"zipCode": "60606",
"stockType": "used",
"priceMax": 20000,
"yearMin": 2020,
"maxListings": 100
}

Certified Pre-Owned Honda Civic

{
"zipCode": "90210",
"stockType": "cpo",
"make": "Honda",
"model": "Civic",
"maxDistance": 50,
"maxListings": 30
}

Direct URL Scraping

{
"searchUrl": "https://www.cars.com/shopping/results/?stock_type=new&makes[]=bmw&zip=33101",
"maxListings": 100
}

Integration

API Access

$curl "https://api.apify.com/v2/acts/YOUR_ACTOR_ID/runs/last/dataset/items?token=YOUR_TOKEN"

JavaScript

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('YOUR_ACTOR_ID').call({
zipCode: '90210',
stockType: 'new',
make: 'Tesla',
maxListings: 50
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

Python

from apify_client import ApifyClient
client = ApifyClient('YOUR_TOKEN')
run = client.actor('YOUR_ACTOR_ID').call(run_input={
'zipCode': '90210',
'stockType': 'new',
'make': 'Tesla',
'maxListings': 50
})
items = client.dataset(run['defaultDatasetId']).list_items().items
print(items)

Scheduling

Automate data collection by scheduling regular runs:

  1. Navigate to Schedules in Apify Console
  2. Create a schedule (hourly, daily, weekly)
  3. Configure your search parameters
  4. Enable notifications for run completion

Integration Options

  • Webhooks - Trigger actions on completion
  • Zapier/Make - Connect to thousands of apps
  • Google Sheets - Auto-export to spreadsheets
  • Slack/Discord - Get notifications with results

Performance

Run SizeApproximate Time
20 vehicles1-2 minutes
100 vehicles3-5 minutes
500 vehicles10-15 minutes

FAQ

How many vehicles can I scrape?

Set maxListings to 0 for unlimited scraping. Large runs may take longer to complete.

Do I need proxies?

Proxies are recommended for reliable scraping. The actor includes built-in proxy support via Apify.

Can I scrape multiple locations?

Each run targets one ZIP code. Schedule multiple runs for different locations.

How often is the data updated?

Data is extracted in real-time from Cars.com. Schedule regular runs to keep data fresh.

What if a vehicle has no price listed?

The scraper returns "Contact for price" when pricing information is not displayed.


Support

  • Documentation: Apify Docs
  • Community: Discord
  • Issues: Report via Apify Console feedback

License

Apache License 2.0