agentleFS
carabain-digitalcarabain-digital/apify-agent-skills/skills/cars-com-listings/SKILL.md

cars-com-listings

Skill1 starsChanged 10 days agoMITView on GitHub

Scrape new and used car listings from Cars.com, a top US car marketplace: price, mileage, year, VIN, deal rating, dealer or private seller, city and photos. Filter by make, model, year, price, mileage, fuel and ZIP radius. Add-ons: full details, price history. Runs the Apify Actor carabain-digital/cars-com-listings. Use for tasks like: Used Toyota RAV4 under $30,000 near Chicago on Cars.com; Used electric cars near Los Angeles with price history.

  • Installs packages
  • Sends data out

The file

Files
SKILL.md

Cars.com Car Listings Scraper

Scrape new and used car listings from Cars.com, a top US car marketplace: price, mileage, year, VIN, deal rating, dealer or private seller, city and photos. Filter by make, model, year, price, mileage, fuel and ZIP radius. Add-ons: full details, price history.

Runs on Apify as the Actor carabain-digital/cars-com-listings, billed per result to the user's own Apify account.

Setup

The user needs an Apify API token in APIFY_TOKEN (console.apify.com/settings/integrations). No Apify account yet? Sign up free: no credit card needed, and the Free plan includes $5 of credit every month, enough for about 5,000 car listings with this Actor.

Run it

Apify API, waits for the run and returns the items (up to 5 minutes; for bigger runs start it with POST /v2/acts/carabain-digital~cars-com-listings/runs and read the dataset afterwards):

curl -X POST 'https://api.apify.com/v2/acts/carabain-digital~cars-com-listings/run-sync-get-dataset-items' \
  -H "Authorization: Bearer $APIFY_TOKEN" -H 'Content-Type: application/json' \
  -d '{"make": "Toyota", "model": "RAV4", "condition": "used", "max_price": 30000, "location": "60601", "radius_miles": 50, "limit": 200}'

Python (pip install apify-client):

import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("carabain-digital/cars-com-listings").call(run_input={"make": "Toyota", "model": "RAV4", "condition": "used", "max_price": 30000, "location": "60601", "radius_miles": 50, "limit": 200})
items = client.dataset(run["defaultDatasetId"]).list_items().items

MCP: add the Apify MCP server with this Actor as a tool: https://mcp.apify.com/?actors=carabain-digital/cars-com-listings.

Input

FieldTypeDescription
makestringCar make as Cars.com writes it. Example: Toyota, Ford, Mercedes-Benz, Land Rover. Leave empty for all makes. An unknown make stops the run with an error instead of returning unrelated cars.
modelstringModel of that make as Cars.com writes it. Example: Camry, F-150, C-Class, Range Rover Sport. Needs a make. If a model is not found, run the search on cars.com and paste its URL into Search URLs.
min_yearintegerEarliest model year. Example: 2018.
max_yearintegerLatest model year. Example: 2022.
min_priceintegerLowest asking price in US dollars. Example: 10000.
max_priceintegerHighest asking price in US dollars. Example: 30000.
max_mileageintegerHighest odometer reading in miles. Example: 60000.
fuel_typestringFuel type. Example: electric. Values: petrol, diesel, electric, hybrid, plugin_hybrid, ethanol, hydrogen, cng.
transmissionstringGearbox. Example: automatic. Values: automatic, manual.
body_typestringBody type. Example: pickup. Values: sedan, hatchback, wagon, suv, coupe, convertible, minivan, van, pickup.
conditionstringNew or used cars. Example: used. Values: any, used, new. Default: "any".
seller_typestringDealer or private seller. Example: private. Values: any, dealer, private. Default: "any".
locationstringSearch around a 5-digit US ZIP code. Example: 60601 (Chicago), 90001 (Los Angeles). Leave empty to search the whole US.
radius_milesintegerDistance around the ZIP code in miles, the unit Cars.com uses. Example: 50. Rounded up to the site's options (10, 20, 30, 40, 50, 75, 100, 150, 200, 250, 500, 750, 1000; more = nationwide). Wins over Radius (km). Default 50 miles.
radius_kmintegerThe same distance in km, for tools that pass the shared car-scraper field: converted to miles (80 km = 50 mi). Example: 80. Ignored when Radius (miles) is set.
start_urlsarraySearch result pages copied from cars.com; they replace the filters above. Example: https://www.cars.com/shopping/results/?stock_type=used&makes[]=toyota&models[]=toyota-rav4&zip=60601&maximum_distance=50. All filters and the sort order in the URL are kept (newest first when the URL has none); the page number is ignored. Only /shopping/results/ pages work. Format: [{"url": "https://..."}].
limitintegerStop after this many listings (newest first). Example: 500. Cars.com shows at most 10,000 cars per search: split bigger searches by make, price or ZIP. Default: 100.
includeDetailsbooleanAlso open each listing: seller's notes, all photos, transmission, engine, horsepower, MPG, interior colour, all features by category, VIN and stock number, listing date and the site's price changes, dealer address, website and cars.com page, title/accident/owner flags. Adds $3.00 per 1,000 listings. About 1 s extra per listing, up to 30 s when Cloudflare re-checks the pages: use it with a modest Max listings (a run stops adding details after 45 minutes). Default: false.
trackHistorybooleanKeep the price of every listing in a named store in your own Apify account and add first_seen_at, previous_price, price_change, price_change_pct and price_history. Run it on a schedule: the first run only starts the series. Adds $1.00 per 1,000 listings that already had history. Do not run two runs on the same store at once. Default: false.
historyStoreNamestringName of the key-value store that holds the history (letters a-z, digits, dashes). All our car Actors use cars-history by default, so history is shared between them. Example: golf-watch. Default: "cars-history".

Examples

Used Toyota RAV4 under $30,000 near Chicago on Cars.com: Scrape the newest used Toyota RAV4 listings under $30,000 within 50 miles of Chicago from cars.com: price, deal rating, mileage, year, VIN, dealer and city. Export to JSON, CSV or Excel.

{
  "make": "Toyota",
  "model": "RAV4",
  "condition": "used",
  "max_price": 30000,
  "location": "60601",
  "radius_miles": 50,
  "limit": 200
}

Used electric cars near Los Angeles with price history: Track used electric cars within 100 miles of Los Angeles on cars.com over time: asking price, price drops, deal rating, mileage, year and dealer. Run it daily to catch price cuts.

{
  "fuel_type": "electric",
  "condition": "used",
  "location": "90001",
  "radius_miles": 100,
  "limit": 500,
  "trackHistory": true
}

Output

One dataset item per result. Main fields: title, year, mileage, fuel_type, price, deal_rating, city, region, seller_type, url.

FieldTypeDescription
idstringStable listing ID, carscom:<cars.com listing uuid>
sourcestringShort site name: carscom
urlstringPublic listing URL on cars.com
titlestringMake, model and trim, e.g. Volkswagen Golf 1.5 TSI Life
makestringMake, e.g. BMW
modelstringModel, e.g. X1
variantstringTrim / version as the seller wrote it, e.g. xDrive28i M Sport
conditionstringused or new (certified pre-owned cars are used: see certified_pre_owned)
priceintegerAsking price in US dollars (with dealer fees where the state requires them)
price_currencystringEUR
price_typestringfixed, negotiable (details add-on) or on_request
mileageintegerOdometer in miles
mileage_unitstringAlways mi
yearintegerModel year
first_registrationstringNot published by cars.com (null)
fuel_typestringpetrol, diesel, electric, hybrid, plugin_hybrid, ethanol (flex fuel), hydrogen, cng or other
transmissionstringDetails add-on: automatic (incl. CVT) or manual
body_typestringsedan, hatchback, wagon, suv, coupe, convertible, van, pickup, minivan or other
power_kwintegerDetails add-on: power in kW (from the horsepower, when the seller gives it)
power_hpintegerDetails add-on: horsepower, when the seller gives it
engine_ccintegerDetails add-on: engine displacement in cc (from the litres, e.g. 2.5L = 2500)
colorstringExterior colour (search: generic colour; details add-on: the maker's colour name)
doorsintegerDetails add-on: number of doors
seatsintegerDetails add-on: number of seats
vinstringVehicle identification number: AutoScout24 does not publish it, always null
seller_typestringdealer or private
seller_namestringDealer name, or the private seller's first name
seller_phonestringNot in the page (cars.com shows a call-tracking number by script): null
seller_urlstringDetails add-on: dealer page on cars.com
addressstringDetails add-on: dealer street address
citystringCity of the dealer or private seller
postcodestringZIP code of the seller
regionstringUS state code, e.g. TX
countrystringAlways US
latnumberNot published (null)
lonnumberNot published (null)
listed_atstringDetails add-on: date the car was listed (YYYY-MM-DD, from the site's price history)
image_urlsarrayPhoto URLs: up to 6 from the search card, all photos with the details add-on
descriptionstringDetails add-on: seller's notes
certified_pre_ownedbooleanCertified pre-owned (CPO) car
deal_ratingstringCars.com deal rating vs the market: great, good or fair (null when not rated)
badgesarrayBadges on the card, e.g. Great Deal, Price Drop, Certified Pre-Owned, award finalist
msrpnumberManufacturer's suggested retail price (new cars)
monthly_payment_estimatenumberCars.com's estimated monthly payment in USD (72 months, 7% APR, $0 down)
drivetrainstringDrivetrain, e.g. All-wheel Drive
distance_minumberDistance from the searched ZIP code in miles
seller_ratingnumberDealer's average review stars (1-5)
photo_countnumberNumber of photos of the listing
details_fetchedbooleanTrue when the Full details add-on enriched this item
interior_colorstringDetails add-on: interior colour
enginestringDetails add-on: engine as the seller describes it, e.g. 2.5L I-4 DOHC
transmission_textstringDetails add-on: transmission as the seller describes it, e.g. 8-Speed Automatic
mpgstringDetails add-on: fuel economy, e.g. 25-33 mpg
stock_numberstringDetails add-on: dealer stock number
equipmentobjectDetails add-on: features by category (Convenience, Entertainment, Exterior, Safety, Seating)
vehicle_reportsobjectDetails add-on: dealer-verified report facts (e.g. CPO inspection, warranty, roadside assistance)
clean_titlebooleanDetails add-on: clean title (when the site knows it)
no_accidentsbooleanDetails add-on: no reported accidents (when the site knows it)
single_ownerbooleanDetails add-on: one previous owner (when the site knows it)
personal_use_onlybooleanDetails add-on: personal use only (when the site knows it)
site_price_historyarrayDetails add-on: the listing's price changes on cars.com, [{date, change, price}]
seller_idstringDetails add-on: cars.com dealer id
seller_websitestringDetails add-on: dealer's own website
scraped_atstringWhen this item was scraped, UTC ISO 8601
first_seen_atstringPrice history add-on: when this listing was first seen by your runs
previous_pricenumberPrice history add-on: the price at the previous run
price_changenumberPrice history add-on: price minus previous price
price_change_pctnumberPrice history add-on: price change in percent
status_changedbooleanPrice history add-on: true when the status changed
price_historyarrayPrice history add-on: price points over your runs, [{at, price, status}], last 20

Price

Pay per result: $1.00 per 1,000 car listings on the Apify Free plan, less on paid plans, plus $0.025 per run start per GB of memory. No subscription; Apify bills the run to the user's account.

  • Full details: $3.00 per 1,000. One car listing enriched with its cars.com listing page: seller's notes, all photos, transmission, engine, horsepower, MPG, interior colour, features by category, stock number, listing date and price changes on the site, dealer address, website and cars.com page, title/accident/owner flags.
  • Price history: $1.00 per 1,000. One car listing that already had history in your named history store, enriched with first_seen_at, previous_price, price_change, price_change_pct, status_changed and price_history. The first run of a listing is free.

Store page, reviews and full documentation: Cars.com Car Listings Scraper

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.