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.
{
"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
}
}Sample data
What one call returns
A recorded run of search: the fields and shapes you will get, shortened to 3 items.
| # | stock_numberinteger | vinstring | yearinteger | makestring | modelstring | bodystring | trimstring | base_priceinteger | price_currencystring | has_price_dropboolean | mileageinteger | mileage_unitstring | store_idinteger | store_namestring | store_citystring | statestring | state_abbreviationstring | average_ratingnumber | number_of_reviewsinteger | is_new_arrivalboolean | is_transferableboolean | featuresstring[] | highlighted_featuresstring | highlightsstring[] | last_made_saleable_datestring | transfer_tagsstring[] | transfer_textstring | transfer_typestring | exterior_colorstring | interior_colorstring | transmissionstring | mpg_cityinteger | mpg_highwayinteger | cylindersinteger | drive_trainstring | engine_typestring | engine_sizestring | horsepowerinteger | engine_torqueinteger | is_saleableboolean | is_coming_soonboolean | is_reservedboolean | feature_scoreinteger | vehicle_sizestring | vehicle_typesstring[] | hero_image_urlurl |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 29064611 | 1C4RDJDG7PC631748 | 2023 | Dodge | Durango | 4D Sport Utility | GT Plus | 30998 | USD | false | 41412 | mi | 7173 | Kansas City | Merriam | Kansas | KS | 4.5 | 10 | false | false | [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 at | test-drive | White | Black | Automatic | 18 | 25 | 6 | All Wheel Drive | Gas | 3.6L | 295 | 260 | true | false | false | 9 | Large | [1 item] | https://img2.carmax.com/assets/29064611/hero.jpg?width=800 |
| 2 | 70052571 | 5FNYF6H01KB021355 | 2019 | Honda | Pilot | 4D Sport Utility | Elite | 23998 | USD | false | 107758 | mi | 7173 | Kansas City | Merriam | Kansas | KS | 4.764705882352941 | 17 | false | false | [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 at | test-drive | White | Black | Automatic | 19 | 26 | 6 | All Wheel Drive | Gas | 3.5L | 280 | 262 | true | false | false | 10 | Large | [1 item] | https://img2.carmax.com/assets/70052571/hero.jpg?width=800 |
| 3 | 70266208 | 1FATP8UH9P5113570 | 2023 | Ford | Mustang | 2D Convertible | Ecoboost Premium | 31998 | USD | false | 11380 | mi | 7173 | Kansas City | Merriam | Kansas | KS | 4.9 | 10 | false | false | [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 at | test-drive | White | Black | Automatic | 22 | 32 | 4 | Rear Wheel Drive | Gas | 2.3L | 310 | 350 | true | false | false | 10 | Midsize | [2 items] | https://img2.carmax.com/assets/70266208/hero.jpg?width=800 |
[
{
"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"
}
]stock_number,vin,year,make,model,body,trim,base_price,price_currency,has_price_drop,mileage,mileage_unit,store_id,store_name,store_city,state,state_abbreviation,average_rating,number_of_reviews,is_new_arrival,is_transferable,features,highlighted_features,highlights,last_made_saleable_date,transfer_tags,transfer_text,transfer_type,exterior_color,interior_color,transmission,mpg_city,mpg_highway,cylinders,drive_train,engine_type,engine_size,horsepower,engine_torque,is_saleable,is_coming_soon,is_reserved,feature_score,vehicle_size,vehicle_types,hero_image_url 29064611,1C4RDJDG7PC631748,2023,Dodge,Durango,4D Sport Utility,GT Plus,30998,USD,false,41412,mi,7173,Kansas City,Merriam,Kansas,KS,4.5,10,false,false,"[""Tow Hitch"",""Full Roof Rack"",""Alloy Wheels""]","4WD/AWD,Leather Seats,Satellite Radio Ready,Parking Sensors,Rear View Camera,Fold-Away Third Row","[""singleOwner"",""advancedFeatures""]",2026-10-06T06:38:27.064Z,"[""SameLocation""]",Test drive today at,test-drive,White,Black,Automatic,18,25,6,All Wheel Drive,Gas,3.6L,295,260,true,false,false,9,Large,"[""SUVs""]",https://img2.carmax.com/assets/29064611/hero.jpg?width=800 70052571,5FNYF6H01KB021355,2019,Honda,Pilot,4D Sport Utility,Elite,23998,USD,false,107758,mi,7173,Kansas City,Merriam,Kansas,KS,4.764705882352941,17,false,false,"[""Apple CarPlay"",""Memory Seat(s)"",""Power Locks""]","4WD/AWD,Leather Seats,Satellite Radio Ready,Parking Sensors,Rear View Camera,Fold-Away Third Row","[""advancedFeatures""]",2026-09-10T22:43:36.068Z,"[""SameLocation""]",Test drive today at,test-drive,White,Black,Automatic,19,26,6,All Wheel Drive,Gas,3.5L,280,262,true,false,false,10,Large,"[""SUVs""]",https://img2.carmax.com/assets/70052571/hero.jpg?width=800 70266208,1FATP8UH9P5113570,2023,Ford,Mustang,2D Convertible,Ecoboost Premium,31998,USD,false,11380,mi,7173,Kansas City,Merriam,Kansas,KS,4.9,10,false,false,"[""Power Windows"",""Automated Cruise Control"",""Power Locks""]","Soft Top,Turbo Charged Engine,Leather Seats,Rear View Camera,Parking Sensors,Front Seat Heaters","[""singleOwner"",""lowMiles"",""warranty""]",2026-09-24T13:29:18.233Z,"[""SameLocation""]",Test drive today at,test-drive,White,Black,Automatic,22,32,4,Rear Wheel Drive,Gas,2.3L,310,350,true,false,false,10,Midsize,"[""Convertibles"",""Sports Cars""]",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
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.
| Endpoint | Required parameters | Returns | Cost |
|---|---|---|---|
GET/v1/carmax/filters | none | JSON | 1 credit |
GET/v1/carmax/media | stockNumber | JSON | 1 credit |
GET/v1/carmax/search | none+7 optional | stock_numbervinyearmakemodelbody+40 more | 1 credit |
GET/v1/carmax/store | storeId | JSON | 1 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:
searchtakesmake,model,year,mileage,priceandzip, withsort. - Media:
mediatakes astockNumber. - Stores:
storetakes astoreId. - Filters:
filterstakes no parameters. - Taxonomy:
taxonomytakes 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.
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-ascCompare 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.