Skip to content
Scrappa Get API key
CarMax API 1 credit/request

CarMax Vehicle Search

GET https://scrappa.co/api/carmax/v1/search

Search CarMax's national used-car inventory. Filter by make and model path segments, year range, mileage range, price range, sort order, and ZIP code. Returns 48 listing cards per page with stock number, VIN, price, mileage, store, rating, features, colors, transmission, engine specs, MPG, and the hero image URL. Page 1 only; deep pagination is not available.

CarMax Vehicle Search 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/carmax/v1/search
Auth header
x-api-key
Cost
1 credit/request
Response preview
200 OK
Example JSON appears below when a response schema is available for this endpoint.

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

This endpoint has no required query parameters.

7 optional filters available.

make string Optional

Make filter as a path segment, e.g. toyota.

Example value example
model string Optional

Model filter as a path segment, e.g. camry.

Example value example
year string Optional

Model year range, e.g. 2020-2022.

Example value example
mileage string Optional

Mileage range in miles, e.g. 0-50000.

Example value example
price string Optional

Price range in USD, e.g. 10000-20000.

Example value example
sort string Optional

bestmatch, distance-asc, price-asc, price-desc, mileage-asc, mileage-desc, year-desc, year-asc, newarrival.

Example value relevance
zip string Optional

US ZIP code for distance sorting, e.g. 10001.

Example value example

Errors

Handle these documented responses before retrying or showing customer-facing failures.

422

HTTP 422

A public parameter is invalid. This response is not billable.

503

HTTP 503

CarMax did not return usable data for this request. This response is not billable.

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.