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

cargurus-listings

Skill1 starsChanged 10 days agoMITView on GitHub

Scrape used and new car listings from CarGurus (cargurus.com), the biggest US car marketplace: price, CarGurus deal rating and Instant Market Value, mileage, VIN, specs and dealer phone. Search by ZIP, make, model, year, price, mileage. Newest first. Add-ons: full details, price history. Runs the Apify Actor carabain-digital/cargurus-listings. Use for tasks like: Used Toyota Camry near New York with CarGurus deal ratings; Used electric cars in Los Angeles: CarGurus price history.

  • Installs packages
  • Sends data out

The file

Files
SKILL.md

CarGurus Car Listings Scraper

Scrape used and new car listings from CarGurus (cargurus.com), the biggest US car marketplace: price, CarGurus deal rating and Instant Market Value, mileage, VIN, specs and dealer phone. Search by ZIP, make, model, year, price, mileage. Newest first. Add-ons: full details, price history.

Runs on Apify as the Actor carabain-digital/cargurus-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 6,666 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~cargurus-listings/runs and read the dataset afterwards):

curl -X POST 'https://api.apify.com/v2/acts/carabain-digital~cargurus-listings/run-sync-get-dataset-items' \
  -H "Authorization: Bearer $APIFY_TOKEN" -H 'Content-Type: application/json' \
  -d '{"location": "10001", "make": "Toyota", "model": "Camry", "condition": "used", "limit": 100}'

Python (pip install apify-client):

import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("carabain-digital/cargurus-listings").call(run_input={"location": "10001", "make": "Toyota", "model": "Camry", "condition": "used", "limit": 100})
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/cargurus-listings.

Input

FieldTypeDescription
locationstringUS ZIP code to search around (5 digits), as on CarGurus. Example: 10001 (New York), 90210, 60601. Leave empty to search all of the US. Ignored when you give search URLs.
radius_kmintegerDistance from the ZIP code in kilometres (converted to miles for CarGurus: 80 km = 50 mi). Default 50 miles. Example: 160 for 100 miles.
makestringCar make as CarGurus writes it. Example: Toyota, Ford, Mercedes-Benz, Land Rover.
modelstringModel of that make (needs Make). Example: Camry, F-150, Model 3, CR-V.
conditionstringused (CarGurus' default), new, or any (used cars first, then new cars). Example: used. Values: used, new, any. Default: "used".
min_yearintegerOldest model year. Example: 2018.
max_yearintegerNewest model year. Example: 2023.
min_priceintegerLowest price in US dollars. Example: 10000.
max_priceintegerHighest price in US dollars (CarGurus filters on the price before dealer fees). Example: 25000.
max_mileageintegerHighest odometer reading in miles. Example: 60000.
fuel_typestringFuel type. Example: electric. Values: any, petrol, diesel, electric, hybrid, plugin_hybrid, ethanol, cng, hydrogen. Default: "any".
transmissionstringTransmission. Example: manual. Values: any, automatic, manual. Default: "any".
body_typestringBody style. Example: suv. Values: any, sedan, suv, pickup, hatchback, coupe, convertible, wagon, minivan, van. Default: "any".
seller_typestringKeep only dealer or only private-seller listings. CarGurus search results are almost all dealers. Example: dealer. Values: any, dealer, private. Default: "any".
start_urlsarraySearch result pages copied from cargurus.com; they replace the filters above. Example: https://www.cargurus.com/Cars/l-Used-Toyota-Camry-d292?zip=10001&distance=50. Filters in the URL (ZIP, distance, price, year, mileage, body type ...) are kept; results always come newest first. Format: [{"url": "https://..."}].
limitintegerStop after this many listings (newest first). Example: 100. Default: 100.
includeDetailsbooleanAlso open each listing: dealer description, all photos, full equipment list per category, accident and owner count from the vehicle history report, dealer fees and price before fees, dealer street address, coordinates, website and rating. Adds $1.00 per 1,000 listings on top of the base price. One extra request per listing (about 4 s per 10 listings). 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 to each item. 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. Use another name to keep a separate series per search, e.g. camry-nyc. Default: "cars-history".

Examples

Used Toyota Camry near New York with CarGurus deal ratings: Scrape the newest used Toyota Camry listings within 50 miles of New York (ZIP 10001) from CarGurus: price, deal rating, Instant Market Value, mileage, VIN, dealer and phone. Export to JSON, CSV or Excel.

{
  "location": "10001",
  "make": "Toyota",
  "model": "Camry",
  "condition": "used",
  "limit": 100
}

Used electric cars in Los Angeles: CarGurus price history: Scrape used electric cars under $40,000 around Los Angeles (ZIP 90012) from CarGurus and track their price over time: price drops, deal rating, market value, mileage and dealer. Run it daily to catch the best EV deals.

{
  "location": "90012",
  "radius_km": 80,
  "fuel_type": "electric",
  "max_price": 40000,
  "limit": 200,
  "trackHistory": true
}

Output

One dataset item per result. Main fields: listed_at, title, price, imv_price, deal_rating, mileage, city, region, seller_name, url.

FieldTypeDescription
idstringStable listing ID, cargurus:<listing id>
sourcestringShort site name (cargurus)
urlstringPublic listing page on cargurus.com
titlestringListing title, e.g. 2019 Honda CR-V LX AWD
makestringMake, e.g. Toyota
modelstringModel, e.g. Camry
variantstringTrim, e.g. LX AWD
conditionstringused or new
pricenumberListed price in USD (includes dealer fees where the state requires it). Null when the dealer shows no price
price_currencystringUSD
price_typestringfixed, or on_request when there is no price
mileageintegerOdometer reading
mileage_unitstringmi (miles)
yearintegerModel year
first_registrationstringAlways null: US listings only have the model year
fuel_typestringpetrol, diesel, electric, hybrid, plugin_hybrid, ethanol (flex fuel), cng, hydrogen or other
transmissionstringmanual or automatic
body_typestringsedan, hatchback, wagon, suv, coupe, convertible, van, pickup, minivan or other
power_kwintegerEngine power in kW (from hp)
power_hpintegerEngine power in hp, when CarGurus knows it
engine_ccintegerEngine displacement in cc
colorstringExterior colour as the dealer names it
doorsintegerNumber of doors
seatsintegerAlways null: not published
vinstringVehicle identification number (17 characters)
seller_typestringdealer or private
seller_namestringDealer name
seller_phonestringDealer phone number
seller_urlstringDetails add-on: dealer website
addressstringDealer address (city and state; full street address with the details add-on)
citystringDealer city
postcodestringDealer ZIP code
regionstringDealer state, e.g. NJ
countrystringUS
latnumberDetails add-on: dealer latitude
lonnumberDetails add-on: dealer longitude
listed_atstringDate the car was listed on CarGurus (YYYY-MM-DD, from days on market)
image_urlsarrayPhoto URLs (one without details, all with the details add-on)
descriptionstringDetails add-on: the dealer's description
deal_ratingstringCarGurus deal rating: great_price, good_price, fair_price, poor_price (shown as High Price), overpriced, na (no rating), outlier; null for new cars
imv_pricenumberCarGurus Instant Market Value (IMV): what similar cars sell for, USD
imv_differencenumberIMV minus price: positive = below market value, negative = above
deal_scorenumberCarGurus deal score behind the rating
days_on_marketintegerDays the car has been listed on CarGurus
total_pricenumberCarGurus total price incl. fees where shown
msrpnumberOriginal MSRP
certified_pre_ownedbooleanTrue for certified pre-owned (CPO) cars
drivetrainstringe.g. All-Wheel Drive
enginestringEngine as CarGurus shows it, e.g. 184 hp 2.4L I4
transmission_textstringTransmission as CarGurus shows it, e.g. 8-Speed Automatic
fuel_type_textstringFuel type as CarGurus shows it, e.g. Gasoline
interior_colorstringInterior colour
mpg_citynumberCity fuel economy (MPG)
mpg_highwaynumberHighway fuel economy (MPG)
mpg_combinednumberCombined fuel economy (MPG)
optionsarrayTop options from the search card, e.g. Backup Camera
stock_numberstringDealer stock number
distance_minumberDistance from the searched ZIP code in miles
store_transferbooleanTrue when a dealer group ships the car from a far store (shown in every radius search, like on the site)
featuredbooleanTrue for featured (sponsored) listings
dealer_idintegerCarGurus dealer ID
franchise_dealerbooleanTrue for franchise (brand) dealers
seller_ratingnumberDetails add-on: dealer rating on CarGurus (0-5)
seller_review_countintegerDetails add-on: number of dealer reviews
equipmentobjectDetails add-on: full equipment per category, e.g. {Safety: [ABS Brakes, ...], Technology: [...]}
accident_countintegerDetails add-on: accidents in the vehicle history report
owner_countintegerDetails add-on: previous owners in the vehicle history report
dealer_feesarrayDetails add-on: dealer fees [{name, amount}], e.g. Documentation Fee
base_pricenumberDetails add-on: price before dealer fees
details_fetchedbooleanTrue when the details add-on enriched this item
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 (null on the first 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: always false for CarGurus (no status field)
price_historyarrayPrice history add-on: price points over your runs, [{at, price, status}], last 20

Price

Pay per result: $0.75 per 1,000 car listings on the Apify Free plan, less on paid plans. No subscription; Apify bills the run to the user's account.

  • Full details: $1.00 per 1,000. One listing enriched with its detail page: dealer description, all photos, full equipment list, accident and owner count, dealer fees and price before fees, dealer street address, coordinates, website and rating.
  • Price history: $1.00 per 1,000. One listing that already had history in your named history store, enriched with first_seen_at, previous_price, price_change, price_change_pct and price_history. The first run of a listing is free.

Store page, reviews and full documentation: CarGurus 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.