APIs / Cars / CarMax

1 credit per call5 endpoints46 datapointsChecked working 6 Dec 2026

CarMax API

CarMax API for used-car search, vehicle media, stores, filters and taxonomy as JSON. Five endpoints, 1 credit per successful call.

CarMax
GET/v1/carmax/search
{
  "success": true,
  "data": {
    "total_count": 93755,
    "items": [
      {
        "stock_number": 29064611,
        "vin": "1C4RDJDG7PC631748",
        "year": 2023,
        "make": "Dodge",
        "model": "Durango",
        "body": "4D Sport Utility",
        "trim": "GT Plus",
        "base_price": 30998,
        "price_currency": "USD",
        "has_price_drop": false,
        "mileage": 41412,
        "mileage_unit": "mi",
        "store_id": 7173,
        "store_name": "Kansas City",
        "store_city": "Merriam",
        "state": "Kansas",
        "state_abbreviation": "KS",
        "average_rating": 4.5,
        "number_of_reviews": 10,
        "is_new_arrival": false,
        "is_transferable": false,
        "features": [
          "Tow Hitch",
          "Full Roof Rack",
          "Alloy Wheels"
        ],
        "highlighted_features": "4WD/AWD,Leather Seats,Satellite Radio Ready,Parking Sensors,Rear View Camera,Fold-Away Third Row",
        "highlights": [
          "singleOwner",
          "advancedFeatures"
        ],
        "last_made_saleable_date": "2026-10-06T06:38:27.064Z",
        "transfer_tags": [
          "SameLocation"
        ],
        "transfer_text": "Test drive today at",
        "transfer_type": "test-drive",
        "exterior_color": "White",
        "interior_color": "Black",
        "transmission": "Automatic",
        "mpg_city": 18,
        "mpg_highway": 25,
        "cylinders": 6,
        "drive_train": "All Wheel Drive",
        "engine_type": "Gas",
        "engine_size": "3.6L",
        "horsepower": 295,
        "engine_torque": 260,
        "is_saleable": true,
        "is_coming_soon": false,
        "is_reserved": false,
        "feature_score": 9,
        "vehicle_size": "Large",
        "vehicle_types": [
          "SUVs"
        ],
        "hero_image_url": "https://img2.carmax.com/assets/29064611/hero.jpg?width=800"
      },
      {
        "stock_number": 70052571,
        "vin": "5FNYF6H01KB021355",
        "year": 2019,
        "make": "Honda",
        "model": "Pilot",
        "body": "4D Sport Utility",
        "trim": "Elite",
        "base_price": 23998,
        "price_currency": "USD",
        "has_price_drop": false,
        "mileage": 107758,
        "mileage_unit": "mi",
        "store_id": 7173,
        "store_name": "Kansas City",
        "store_city": "Merriam",
        "state": "Kansas",
        "state_abbreviation": "KS",
        "average_rating": 4.764705882352941,
        "number_of_reviews": 17,
        "is_new_arrival": false,
        "is_transferable": false,
        "features": [
          "Apple CarPlay",
          "Memory Seat(s)",
          "Power Locks"
        ],
        "highlighted_features": "4WD/AWD,Leather Seats,Satellite Radio Ready,Parking Sensors,Rear View Camera,Fold-Away Third Row",
        "highlights": [
          "advancedFeatures"
        ],
        "last_made_saleable_date": "2026-09-10T22:43:36.068Z",
        "transfer_tags": [
          "SameLocation"
        ],
        "transfer_text": "Test drive today at",
        "transfer_type": "test-drive",
        "exterior_color": "White",
        "interior_color": "Black",
        "transmission": "Automatic",
        "mpg_city": 19,
        "mpg_highway": 26,
        "cylinders": 6,
        "drive_train": "All Wheel Drive",
        "engine_type": "Gas",
        "engine_size": "3.5L",
        "horsepower": 280,
        "engine_torque": 262,
        "is_saleable": true,
        "is_coming_soon": false,
        "is_reserved": false,
        "feature_score": 10,
        "vehicle_size": "Large",
        "vehicle_types": [
          "SUVs"
        ],
        "hero_image_url": "https://img2.carmax.com/assets/70052571/hero.jpg?width=800"
      },
      {
        "stock_number": 70266208,
        "vin": "1FATP8UH9P5113570",
        "year": 2023,
        "make": "Ford",
        "model": "Mustang",
        "body": "2D Convertible",
        "trim": "Ecoboost Premium",
        "base_price": 31998,
        "price_currency": "USD",
        "has_price_drop": false,
        "mileage": 11380,
        "mileage_unit": "mi",
        "store_id": 7173,
        "store_name": "Kansas City",
        "store_city": "Merriam",
        "state": "Kansas",
        "state_abbreviation": "KS",
        "average_rating": 4.9,
        "number_of_reviews": 10,
        "is_new_arrival": false,
        "is_transferable": false,
        "features": [
          "Power Windows",
          "Automated Cruise Control",
          "Power Locks"
        ],
        "highlighted_features": "Soft Top,Turbo Charged Engine,Leather Seats,Rear View Camera,Parking Sensors,Front Seat Heaters",
        "highlights": [
          "singleOwner",
          "lowMiles",
          "warranty"
        ],
        "last_made_saleable_date": "2026-09-24T13:29:18.233Z",
        "transfer_tags": [
          "SameLocation"
        ],
        "transfer_text": "Test drive today at",
        "transfer_type": "test-drive",
        "exterior_color": "White",
        "interior_color": "Black",
        "transmission": "Automatic",
        "mpg_city": 22,
        "mpg_highway": 32,
        "cylinders": 4,
        "drive_train": "Rear Wheel Drive",
        "engine_type": "Gas",
        "engine_size": "2.3L",
        "horsepower": 310,
        "engine_torque": 350,
        "is_saleable": true,
        "is_coming_soon": false,
        "is_reserved": false,
        "feature_score": 10,
        "vehicle_size": "Midsize",
        "vehicle_types": [
          "Convertibles",
          "Sports Cars"
        ],
        "hero_image_url": "https://img2.carmax.com/assets/70266208/hero.jpg?width=800"
      }
    ]
  },
  "meta": {
    "endpoint_family": "search",
    "duration_ms": 7294,
    "attempts": 2
  }
}
200 OKJSONX-Credits-Used: 1
Recorded 12 Nov 2026 and shortened.

Sample data

What one call returns

A recorded run of search: the fields and shapes you will get, shortened to 3 items.

#stock_numberintegervinstringyearintegermakestringmodelstringbodystringtrimstringbase_priceintegerprice_currencystringhas_price_dropbooleanmileageintegermileage_unitstringstore_idintegerstore_namestringstore_citystringstatestringstate_abbreviationstringaverage_ratingnumbernumber_of_reviewsintegeris_new_arrivalbooleanis_transferablebooleanfeaturesstring[]highlighted_featuresstringhighlightsstring[]last_made_saleable_datestringtransfer_tagsstring[]transfer_textstringtransfer_typestringexterior_colorstringinterior_colorstringtransmissionstringmpg_cityintegermpg_highwayintegercylindersintegerdrive_trainstringengine_typestringengine_sizestringhorsepowerintegerengine_torqueintegeris_saleablebooleanis_coming_soonbooleanis_reservedbooleanfeature_scoreintegervehicle_sizestringvehicle_typesstring[]hero_image_urlurl
1290646111C4RDJDG7PC6317482023DodgeDurango4D Sport UtilityGT Plus30998USDfalse41412mi7173Kansas CityMerriamKansasKS4.510falsefalse[3 items]4WD/AWD,Leather Seats,Satellite Radio Ready,Parking Sensors,Rear View Camera,Fold-Away Third Row[2 items]2026-10-06T06:38:27.064Z[1 item]Test drive today attest-driveWhiteBlackAutomatic18256All Wheel DriveGas3.6L295260truefalsefalse9Large[1 item]https://img2.carmax.com/assets/29064611/hero.jpg?width=800
2700525715FNYF6H01KB0213552019HondaPilot4D Sport UtilityElite23998USDfalse107758mi7173Kansas CityMerriamKansasKS4.76470588235294117falsefalse[3 items]4WD/AWD,Leather Seats,Satellite Radio Ready,Parking Sensors,Rear View Camera,Fold-Away Third Row[1 item]2026-09-10T22:43:36.068Z[1 item]Test drive today attest-driveWhiteBlackAutomatic19266All Wheel DriveGas3.5L280262truefalsefalse10Large[1 item]https://img2.carmax.com/assets/70052571/hero.jpg?width=800
3702662081FATP8UH9P51135702023FordMustang2D ConvertibleEcoboost Premium31998USDfalse11380mi7173Kansas CityMerriamKansasKS4.910falsefalse[3 items]Soft Top,Turbo Charged Engine,Leather Seats,Rear View Camera,Parking Sensors,Front Seat Heaters[3 items]2026-09-24T13:29:18.233Z[1 item]Test drive today attest-driveWhiteBlackAutomatic22324Rear Wheel DriveGas2.3L310350truefalsefalse10Midsize[2 items]https://img2.carmax.com/assets/70266208/hero.jpg?width=800

Recorded 12 Nov 2026 · 3 items shown · 46 datapoints per itemGET /v1/carmax/search

46 datapoints

Identity

  • store_idinteger
  • store_namestring
  • transfer_typestring
  • engine_typestring
  • vehicle_typesstring[]

Contact

  • hero_image_urlurl

Location

  • store_citystring
  • statestring
  • state_abbreviationstring
  • mpg_cityinteger

Reputation

  • average_ratingnumber
  • number_of_reviewsinteger
  • feature_scoreinteger

Price

  • base_priceinteger
  • price_currencystring
  • has_price_dropboolean

Other

  • stock_numberinteger
  • vinstring
  • yearinteger
  • makestring
  • modelstring
  • bodystring
  • trimstring
  • mileageinteger
  • mileage_unitstring
  • is_new_arrivalboolean
  • is_transferableboolean
  • featuresstring[]
  • highlighted_featuresstring
  • highlightsstring[]
  • last_made_saleable_datestring
  • transfer_tagsstring[]
  • transfer_textstring
  • exterior_colorstring
  • interior_colorstring
  • transmissionstring
  • mpg_highwayinteger
  • cylindersinteger
  • drive_trainstring
  • engine_sizestring
  • horsepowerinteger
  • engine_torqueinteger
  • is_saleableboolean
  • is_coming_soonboolean
  • is_reservedboolean
  • vehicle_sizestring

Playground

Run this API

cURLshell
curl "https://api.perceptlayer.com/v1/carmax/search" \
  -H "X-API-Key: $API_KEY"

CarMax · 5 endpoints

Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

EndpointRequired parametersReturnsCost
GET/v1/carmax/filters
none
JSON1 credit
GET/v1/carmax/media
stockNumber
JSON1 credit
GET/v1/carmax/search
none+7 optional
stock_numbervinyearmakemodelbody+40 more
1 credit
GET/v1/carmax/store
storeId
JSON1 credit
GET/v1/carmax/taxonomy
none
namecountmodels
1 credit

Overview

About the CarMax API

What you can get

The CarMax API returns CarMax used-car data as JSON through 5 endpoints.

  • Search: search takes make, model, year, mileage, price and zip, with sort.
  • Media: media takes a stockNumber.
  • Stores: store takes a storeId.
  • Filters: filters takes no parameters.
  • Taxonomy: taxonomy takes no parameters.

sort accepts bestmatch, distance-asc, price-asc, price-desc, mileage-asc, mileage-desc, year-desc, year-asc and newarrival.

How a call works

Search inventory: GET /v1/carmax/search?make=...&model=...&sort=price-asc with your key in the X-API-Key header. Use media with a stockNumber for a vehicle's media, and store with a storeId for one store. Every successful call costs 1 credit; failed calls cost nothing.

CarsJSONRESTMCP

More cars APIs

Use cases

List the lowest-priced cars for a make and model with `sort=price-asc`

Use the CarMax API to list the lowest-priced cars for a make and model with `sort=price-asc`

Watch for newly added cars with `sort=newarrival`

Use the CarMax API to watch for newly added cars with `sort=newarrival`

Search near a ZIP code and sort by distance-asc

Use the CarMax API to search near a ZIP code and sort by distance-asc

Compare inventory across model years with `year-desc` or `year-asc`

Use the CarMax API to compare inventory across model years with `year-desc` or `year-asc`

FAQ

Questions

Do I need a CarMax API key?

No. You call this CarMax API with your Perceptlayer key in the `X-API-Key` header, so there's no separate CarMax account to set up.

How much does the CarMax API cost?

Each successful call costs one credit. New accounts get free credits to start, and credit packs bring the price down as you scale.

What format are responses in?

Every endpoint returns JSON, with no HTML parsing on your side.

How do I sort CarMax search results?

`search` takes `sort` with nine values, from bestmatch and distance-asc to price, mileage and year in either direction, plus newarrival.

Is this the official CarMax API?

No. Perceptlayer is an independent service and is not affiliated with CarMax. It returns CarMax data as JSON with a Perceptlayer key, so there is no CarMax developer account, app review or partner approval to get first. It only reads data: if CarMax has an official API and you need to act on your own CarMax account, such as posting, managing orders or reading private data, use that one.

Should I build a CarMax scraper instead?

You can, but a CarMax scraper is code you maintain: page changes break it, requests get blocked, and CarMax's terms govern how you collect data. The CarMax API gives you 5 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

Try the CarMax API with 100 free credits

No credit card. Failed calls are never billed.