Skip to content

CarMax API: Search used cars

Searches CarMax used cars by make and model with optional ZIP, distance, year, price and mileage filters, keeping CarMax's order. Pages expose only the first 48 cars; distance is CarMax's distance from the selected local store, and larger limits or narrow distance filters may return fewer matches.

carmax.com (opens in a new tab)Version 1ReadNo sign-inVerified Nov 2, 2026

Unofficial. Not affiliated with or endorsed by CarMax.

Inputs

Values from the run on Oct 31, 2026, shown under Output.

Car, requiredcar

Make and model to search, for example Toyota RAV4.

Honda Civic

Max Year optionalmax_year

Latest model year, for example 2024.

2024

Whole number from 1900 to 2100.

Min Year optionalmin_year

Earliest model year, for example 2020.

2021

Whole number from 1900 to 2100.

Zip Code optionalzip_code

US ZIP code for local car ordering, for example 10001.

90210

Exactly 5 characters.

Max Price optionalmax_price

Maximum price in USD, for example 30000.

25000

Number 0 or more.

Max Mileage optionalmax_mileage

Maximum odometer mileage, for example 50000.

50000

Whole number 0 or more.

Max Results optionalmax_results

Maximum number of cars, for example 24. Public pages show at most 48 cars.

8

Whole number from 1 to 100. Default 24.

Radius (miles) optionalradius_miles

Maximum listed distance in miles from your ZIP, for example 75; 0 means nationwide.

500

Whole number 0 or more. Default 0.

Output

From a run on Oct 31, 2026, shortened for this page.
{  "cars": [    {      "vin": "2HGFE2F24PH553046",      "make": "Honda",      "trim": "LX",      "year": 2023,      "model": "Civic",      "price": 24998,      "mileage": 16963,      "car_link": "https://www.carmax.com/car/29048140",      "photo_link": "https://img2.carmax.com/assets/29048140/hero.jpg?width=400",      "store_name": "Burbank",      "store_state": "California",      "fuel_economy": "30 city / 37 highway MPG",      "stock_number": "29048140",      "transfer_fee": null,      "currency_code": "USD",      "distance_miles": 0,      "exterior_colour": "White",      "highlighted_features": [        "Rear View Camera",        "Auxiliary Audio Input",        "Overhead Airbags"      ]    },    {      "vin": "19XFL2H51RE041593",      "make": "Honda",      "trim": "LX",      "year": 2024,      "model": "Civic",      "price": 21998,      "mileage": 37208,      "car_link": "https://www.carmax.com/car/29098442",      "photo_link": "https://img2.carmax.com/assets/29098442/hero.jpg?width=400",      "store_name": "Torrance",      "store_state": "California",      "fuel_economy": "30 city / 38 highway MPG",      "stock_number": "29098442",      "transfer_fee": null,      "currency_code": "USD",      "distance_miles": 21.3,      "exterior_colour": "White",      "highlighted_features": [        "Rear View Camera",        "Auxiliary Audio Input",        "Alloy Wheels"      ]    },    {      "vin": "2HGFE2F54NH558111",      "make": "Honda",      "trim": "Sport",      "year": 2022,      "model": "Civic",      "price": 24998,      "mileage": 43914,      "car_link": "https://www.carmax.com/car/70229480",      "photo_link": "https://img2.carmax.com/assets/70229480/hero.jpg?width=400",      "store_name": "Canoga Park",      "store_state": "California",      "fuel_economy": "30 city / 37 highway MPG",      "stock_number": "70229480",      "transfer_fee": null,      "currency_code": "USD",      "distance_miles": 17.1,      "exterior_colour": "Blue",      "highlighted_features": [        "Rear View Camera",        "Auxiliary Audio Input",        "Alloy Wheels"      ]    }  ]}
Price
1 credit per completed run (1¢ with pay as you go); failed runs are free.
Method
carmax.com/search_cars
Returns
year, make, model, trim, price, mileage, colour, store, distance, transfer fee, highlighted features, fuel economy, photo, link, stock number, VIN

Use it from your agent

Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method carmax.com/search_cars with the inputs above.

Ask your agent

  • Find used Honda CR-V listings from 2019 to 2022 under $27,000 with less than 45,000 miles near ZIP 30318
  • Show me Ford F-150 trucks on CarMax within 50 miles of 75201, priced at most $35,000
  • I'm looking for a used Subaru Outback, 2020 or newer, under 60k miles — list about 20 options near 98103 with VINs and transfer fees
  • What used Tesla Model 3 cars are available nationwide for under $30,000? Include mileage, color, and store location
  • Pull up to 40 CarMax Toyota Camry listings from 2018–2021 near ZIP 60614 within 100 miles, with price, trim, and stock numbers

See more

  • Searches CARFAX used-car listings for a make and model near a US ZIP code, in CARFAX order, with listing details and free vehicle-history highlights. Paid full history reports are not included.

    carfax.com/search_cars
  • Searches Cars.com car listings for a make and model around a US ZIP code within a radius, optionally by condition (new, used or certified pre-owned) and maximum price, in Cars.com search order.

    cars.com/search_cars
  • Searches Carvana's used-car inventory by make and model, with optional price, year, mileage and ZIP filters, and returns each car's price, estimated monthly payment, mileage and delivery or pickup estimate for the ZIP.

    carvana.com/search_cars
  • Searches new and used cars for sale near a US ZIP code for a make and model, with prices, dealer details and CarGurus deal ratings. Used cars come first, then new cars, each in CarGurus order; market difference is positive below market and negative above.

    cargurus.com/search_cars
  • Searches Autotrader car listings near a US ZIP code by make and model, with condition, price, year and distance filters. Returns up to 100 listings in site order.

    autotrader.com/search_cars
  • Searches mobile.de car listings by make and model, with optional registration year, price, mileage, fuel, condition and sorting. Returns up to 50 listings in marketplace order; fields not shown on a listing are null.

    mobile.de/search_cars
  • Finds AutoZone parts listed for a vehicle (year, make, model, optional engine), with prices, warranties and fit notes. Listings are filtered by year, make and model; engine fit often needs further confirmation.

    autozone.com/search_parts
  • Gets the current average used asking price, the CarGurus price range and the 12-month price history for a model year (all trims), from CarGurus price trends.

    cargurus.com/get_market_value