---
title: "CarMax API: used-car search, vehicle media, stores as JSON"
description: "CarMax API for used-car search, vehicle media, stores, filters and taxonomy as JSON. Five endpoints, 1 credit per successful call."
url: https://perceptlayer.com/apis/carmax
---

[APIs](https://perceptlayer.com/apis) / [Cars](https://perceptlayer.com/verticals/cars) / CarMax

1 credit per call 5 endpoints 46 datapoints 

# CarMax API

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

[Get a free API key](https://perceptlayer.com/signup) Run it below

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 OK JSON X-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\_number integer | vin string | year integer | make string | model string | body string | trim string | base\_price integer | price\_currency string | has\_price\_drop boolean | mileage integer | mileage\_unit string | store\_id integer | store\_name string | store\_city string | state string | state\_abbreviation string | average\_rating number | number\_of\_reviews integer | is\_new\_arrival boolean | is\_transferable boolean | features string\[\] | highlighted\_features string | highlights string\[\] | last\_made\_saleable\_date string | transfer\_tags string\[\] | transfer\_text string | transfer\_type string | exterior\_color string | interior\_color string | transmission string | mpg\_city integer | mpg\_highway integer | cylinders integer | drive\_train string | engine\_type string | engine\_size string | horsepower integer | engine\_torque integer | is\_saleable boolean | is\_coming\_soon boolean | is\_reserved boolean | feature\_score integer | vehicle\_size string | vehicle\_types string\[\] | hero\_image\_url url |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 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 |

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

46 datapoints

### Identity

-   store\_id integer
-   store\_name string
-   transfer\_type string
-   engine\_type string
-   vehicle\_types string\[\]

### Contact

-   hero\_image\_url url

### Location

-   store\_city string
-   state string
-   state\_abbreviation string
-   mpg\_city integer

### Reputation

-   average\_rating number
-   number\_of\_reviews integer
-   feature\_score integer

### Price

-   base\_price integer
-   price\_currency string
-   has\_price\_drop boolean

### Other

-   stock\_number integer
-   vin string
-   year integer
-   make string
-   model string
-   body string
-   trim string
-   mileage integer
-   mileage\_unit string
-   is\_new\_arrival boolean
-   is\_transferable boolean
-   features string\[\]
-   highlighted\_features string
-   highlights string\[\]
-   last\_made\_saleable\_date string
-   transfer\_tags string\[\]
-   transfer\_text string
-   exterior\_color string
-   interior\_color string
-   transmission string
-   mpg\_highway integer
-   cylinders integer
-   drive\_train string
-   engine\_size string
-   horsepower integer
-   engine\_torque integer
-   is\_saleable boolean
-   is\_coming\_soon boolean
-   is\_reserved boolean
-   vehicle\_size string

Playground

## Run this API

cURL shell 

```
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`](https://perceptlayer.com/apis/carmax/filters) | none | JSON | 1 credit |
| [GET `/v1/carmax/media`](https://perceptlayer.com/apis/carmax/media) | `stockNumber` | JSON | 1 credit |
| [GET `/v1/carmax/search`](https://perceptlayer.com/apis/carmax/search) | none +7 optional | `stock_number` `vin` `year` `make` `model` `body` +40 more | 1 credit |
| [GET `/v1/carmax/store`](https://perceptlayer.com/apis/carmax/store) | `storeId` | JSON | 1 credit |
| [GET `/v1/carmax/taxonomy`](https://perceptlayer.com/apis/carmax/taxonomy) | none | `name` `count` `models` | 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.

Cars JSON REST MCP

### More cars APIs

[Agriaffaires](https://perceptlayer.com/apis/agriaffaires) [Aramisauto](https://perceptlayer.com/apis/aramisauto) [Autohero](https://perceptlayer.com/apis/autohero) [Autoline](https://perceptlayer.com/apis/autoline) [AutoScout24](https://perceptlayer.com/apis/autoscout24) [AutoTempest](https://perceptlayer.com/apis/autotempest) [AutoTrack.nl](https://perceptlayer.com/apis/autotrack-nl) [Autotrader](https://perceptlayer.com/apis/autotrader) [AutoTrader UK](https://perceptlayer.com/apis/autotrader-uk) [AutoTrader.ca](https://perceptlayer.com/apis/autotrader-ca) [AutoUncle](https://perceptlayer.com/apis/autouncle) [Autovit](https://perceptlayer.com/apis/autovit)

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.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
