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

carmax-listings

Skill1 starsChanged 10 days agoMITView on GitHub

Scrape used car listings from CarMax (carmax.com), the biggest US used-car retailer: price, mileage, VIN, specs, features, store, rating and shipping fee. Search nationwide or by ZIP; filter by make, model, year, price, mileage, fuel, body. Newest first. Add-ons: full details, price history. Runs the Apify Actor carabain-digital/carmax-listings. Use for tasks like: Newest used Honda Civic at CarMax, all US stores; Used hybrid SUVs near Miami at CarMax: price history.

  • Installs packages
  • Sends data out

The file

Files
SKILL.md

CarMax Car Listings Scraper

Scrape used car listings from CarMax (carmax.com), the biggest US used-car retailer: price, mileage, VIN, specs, features, store, rating and shipping fee. Search nationwide or by ZIP; filter by make, model, year, price, mileage, fuel, body. Newest first. Add-ons: full details, price history.

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

curl -X POST 'https://api.apify.com/v2/acts/carabain-digital~carmax-listings/run-sync-get-dataset-items' \
  -H "Authorization: Bearer $APIFY_TOKEN" -H 'Content-Type: application/json' \
  -d '{"make": "Honda", "model": "Civic", "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/carmax-listings").call(run_input={"make": "Honda", "model": "Civic", "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/carmax-listings.

Input

FieldTypeDescription
locationstringUS ZIP code to search around (5 digits). Example: 90210 (Beverly Hills), 10001, 60601. Leave empty to search all CarMax stores in the US. Ignored for the distance when you give search URLs that carry their own zip.
radius_kmintegerDistance from the ZIP code in kilometres. CarMax offers 5, 25, 50, 75, 100, 250 and 500 miles: your value is rounded up to the next one (default 50 miles; above 500 miles = nationwide). Cars at far stores that CarMax ships are included only inside the radius. Example: 160 for 100 miles.
makestringCar make as CarMax writes it. Example: Toyota, Ford, Mercedes-Benz, Land Rover. CarMax sells 36 makes (Acura to Volvo).
modelstringModel of that make (needs Make), as the site writes it. Example: Camry, F-150, Model 3, CR-V. An unknown model fails with an error.
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. Example: 25000.
max_mileageintegerHighest odometer reading in miles. Example: 60000.
fuel_typestringFuel type. Example: electric. Values: any, petrol, diesel, electric, hybrid, plugin_hybrid. 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".
start_urlsarraySearch result pages copied from carmax.com; they replace the filters above. Example: https://www.carmax.com/cars/honda/civic or https://www.carmax.com/cars/suvs/hybrid?year=2021-2024&price=-35000&zip=33101&distance=50. Filters in the URL (make, model, body, fuel, transmission, year, price, mileage, ZIP and distance) are kept; results come newest first unless the URL sets its own sort. Format: [{"url": "https://..."}].
limitintegerStop after this many listings (newest first). Example: 100. Default: 100.
includeDetailsbooleanAlso open each car page: accident and owner count from the vehicle history, store coordinates, prior use (rental, personal ...), the full feature list, warranty and model generation. Adds $1.00 per 1,000 listings on top of the base price. One extra request per listing (about 1 s per listing). 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

Newest used Honda Civic at CarMax, all US stores: Scrape the newest used Honda Civic listings from every CarMax store in the US: price, mileage, VIN, year, trim, features, store and shipping fee. Export to JSON, CSV or Excel.

{
  "make": "Honda",
  "model": "Civic",
  "limit": 100
}

Used hybrid SUVs near Miami at CarMax: price history: Scrape used hybrid SUVs from 2021 on under $35,000 within 50 miles of Miami (ZIP 33101) from CarMax and track their price over time: price drops, mileage, VIN and store. Run it daily to catch price drops.

{
  "location": "33101",
  "radius_km": 80,
  "body_type": "suv",
  "fuel_type": "hybrid",
  "min_year": 2021,
  "max_price": 35000,
  "limit": 200,
  "trackHistory": true
}

Output

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

FieldTypeDescription
idstringStable listing ID, carmax:<stock number>
sourcestringShort site name (carmax)
urlstringPublic car page on carmax.com
titlestringYear, make, model and trim, e.g. 2017 Honda Civic EX
makestringMake, e.g. Toyota
modelstringModel, e.g. Camry
variantstringTrim, e.g. EX
conditionstringAlways used: CarMax sells used cars only
pricenumberCarMax's no-haggle price in USD (excludes tax, title and registration)
price_currencystringUSD
price_typestringfixed
mileageintegerOdometer reading
mileage_unitstringmi (miles)
yearintegerModel year
first_registrationstringAlways null: US listings only have the model year
fuel_typestringpetrol, diesel, electric, hybrid or plugin_hybrid
transmissionstringmanual or automatic
body_typestringsedan, hatchback, wagon, suv, coupe, convertible, van, pickup or minivan (CarMax's body type group)
power_kwintegerEngine power in kW (from hp)
power_hpintegerEngine power in hp, when CarMax knows it
engine_ccintegerEngine displacement in cc
colorstringExterior colour
doorsintegerNumber of doors (from the body style, e.g. 4D Sedan)
seatsintegerAlways null: not published
vinstringVehicle identification number (17 characters)
seller_typestringdealer (CarMax stores)
seller_namestringCarMax store, e.g. CarMax Murrieta
seller_phonestringAlways null: not published on the listing
seller_urlstringAlways null
addressstringStore city and state (the street address is not published)
citystringStore city
postcodestringAlways null: not published
regionstringStore state, e.g. CA
countrystringUS
latnumberDetails add-on: store latitude
lonnumberDetails add-on: store longitude
listed_atstringDate the car went on sale at CarMax (YYYY-MM-DD)
image_urlsarrayHero photo URL (add ?width=800 for a size)
descriptionstringAlways null: CarMax shows no free-text description
original_pricenumberPrice before the latest price drop, when the car had one
price_dropbooleanTrue when the price was recently lowered
new_arrivalbooleanTrue for a car that just arrived on the lot
body_stylestringBody style as CarMax shows it, e.g. 4D Sedan
highlightsarrayCarMax highlight tags, e.g. singleOwner, lowMilesPerYear, fuelEfficient
store_idintegerCarMax store number
shipping_feenumberShipping fee in USD when the car is at a far store (0 = free); null when it is at the searched store
shipping_textstringShipping/test-drive text, e.g. $349 Shipping
reservedbooleanTrue when the car is reserved by another customer
prior_usearrayDetails add-on: earlier uses from the history, e.g. Leased Vehicle, Rental
warrantyarrayDetails add-on: warranties [{type, years, miles}]
generationstringDetails add-on: model generation, e.g. Ninth generation
drivetrainstringe.g. Front Wheel Drive
enginestringe.g. 4-cyl, Gas, 1.8L
fuel_type_textstringEngine type as CarMax shows it: Gas, Diesel, Electric, Hybrid, Plug-In Hybrid
interior_colorstringInterior colour
mpg_citynumberCity fuel economy (MPG)
mpg_highwaynumberHighway fuel economy (MPG)
optionsarrayFeatures from the search card, e.g. Bluetooth Technology
stock_numberstringCarMax stock number (the number in the car page URL)
distance_minumberDistance from the searched ZIP in miles (without a ZIP: from the proxy exit, not meaningful)
seller_ratingnumberCarMax store rating (0-5)
seller_review_countintegerNumber of reviews of the store
equipmentobjectDetails add-on: {Features: [...], "Standard equipment": [...]}
accident_countintegerDetails add-on: accidents in the vehicle history report
owner_countintegerDetails add-on: previous owners in the vehicle history report
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 CarMax (no status field)
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: $1.00 per 1,000. One listing enriched with its car page: accident and owner count, store coordinates, prior use (rental, personal), full feature list, warranty and model generation.
  • 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: CarMax 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.