CarMax API endpoint
Use Crawlora's CarMax vehicle listing search API to extract supported public CarMax data as structured JSON. This page includes request parameters, cURL examples, response schema, error behavior, credit cost, and a Playground link for testing before integration.
/carmax/searchSearches CarMax for used car listings, returning normalized vehicle summaries (make, model, trim, year, mileage, colors, engine, fuel economy, pricing, store, images), available search facets with live counts, and the total matching count. Credential-free public data sourced from CarMax's own mobile-app search API. Developers commonly use this endpoint for data enrichment, monitoring, research dashboards, internal automation, and agent-native workflows that need repeatable structured public web data. Authentication uses the documented Crawlora headers, and usage is metered with the credit cost shown on this page.
Request parameters are generated from the active endpoint catalog. Required values must be sent before Crawlora can call the upstream public web data source.
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| make | string | No | CarMax make, e.g. honda, Toyota, BMW (case-insensitive) | ||
| model | string | No | CarMax model, e.g. civic (case-insensitive). Does not require make | ||
| zip | string | No | 5-digit US ZIP code to bias results toward CarMax's nearest store | ||
| sort | string | No | bestmatch | Sort order: bestmatch, distance-asc, price-asc, price-desc, mileage-asc, mileage-desc, year-desc, year-asc, newarrival. Defaults to bestmatch | |
| min_year | integer | No | Minimum model year | ||
| max_year | integer | No | Maximum model year | ||
| min_price | integer | No | Minimum price in US dollars | ||
| max_price | integer | No | Maximum price in US dollars | ||
| max_mileage | integer | No | Maximum odometer mileage | ||
| page | integer | No | 1 | 1-indexed result page, defaults to 1. CarMax returns 48 results per page | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/carmax/search?page=1" \ -H "x-api-key: $CRAWLORA_API_KEY"
Send your scraping API key in the x-api-key header. Use the console API Keys page to rotate or select the active key.
Endpoint usage is metered in credits. The plan prices, included credits, limits, and overage rates below match the active backend billing configuration.
| Plan | Price | Included credits | Daily cap | Rate limit | Overage |
|---|---|---|---|---|---|
| Free | $0/mo | 2,000 | 500 daily credits | 5/min | No overage |
| Starter | $9/mo | 20,000 | 5,000 daily credits | 15/min | $0.75/1,000 overage credits when enabled |
| Growth | $29/mo | 100,000 | 25,000 daily credits | 45/min | $0.45/1,000 overage credits when enabled |
| Pro | $79/mo | 400,000 | No daily cap | 120/min | $0.30/1,000 overage credits |
| Business | $199/mo | 1,200,000 | No daily cap | 300/min | $0.20/1,000 overage credits |
| Enterprise | $499/mo | 5,000,000 | No daily cap | 1,000/min | $0.12/1,000 overage credits |
This endpoint is executed through Crawlora's managed scraping infrastructure.
- `total_count` reflects CarMax's full matching-result count for the applied filters, not just `len(vehicles)`. - `price_info.is_price_reduced` and `price_info.previous_price` are set when CarMax shows a recent price drop on the listing. - Vehicle summaries carry exact numeric engine/performance fields (`engine_torque_lb_ft`, `engine_torque_rpm`, `horsepower`, `horsepower_rpm`, `cylinders`, `towing_capacity_lbs`, `passenger_count`) and listing metadata (`image_count`, `description`, `prior_uses`) that a page-scrape transport never carried — the mobile search API returns full per-vehicle detail inline, not just a summary. - `filters` lists CarMax's own search facets for the applied filters, with live counts/bounds — the same data CarMax's own filter UI is built from. Each entry's `type` is either `Value` (a discrete list of options with per-value counts, e.g. make, model, body type, exterior color, feature — populates `values`) or `Range` (numeric bounds plus a count histogram, e.g. price, year, mileage — populates `range`). Example response: ```json { "code": 200, "msg": "OK", "data": { "total_count": 91136, "page": 1, "page_size": 48, "vehicles": [ { "stock_number": 28187774, "vin": "1FMJK1K89REA27006", "year": 2024, "make": "Ford", "model": "Expedition Max", "trim": "Limited", "body": "4D Sport Utility", "mileage": 41406, "exterior_color": "Black", "interior_color": "Tan", "engine": "3.5L", "transmission": {"type": "Automatic", "display": "Automatic"}, "drive_train_type": "Rear Wheel Drive", "fuel": {"type": "Gas"}, "efficiency": {"mpg_city": 17, "mpg_highway": 23}, "price_info": {"price": 45998, "is_price_reduced": true, "previous_price": 46998}, "store": {"id": 7124, "name": "Canoga Park"}, "hero_image_url": "https://img2.carmax.com/assets/28187774/hero.jpg?width=400", "highlighted_features": ["Turbo Charged Engine", "Leather Seats", "Panoramic Sunroof"], "engine_torque_lb_ft": 480, "engine_torque_rpm": 2250, "horsepower": 400, "horsepower_rpm": 5000, "cylinders": 6, "towing_capacity_lbs": 6300, "passenger_count": 7, "prior_uses": ["Leased Vehicle", "Rental"], "image_count": 31, "description": "2024 Ford Expedition Max Limited", "url": "https://www.carmax.com/car/28187774" } ], "filters": [ { "name": "Make", "display_name": "Make", "type": "Value", "values": [ {"value": "Toyota", "count": 12453}, {"value": "Ford", "count": 9821} ] }, { "name": "BasePrice", "display_name": "Price range", "type": "Range", "range": { "minimum": 8000, "maximum": 138999, "increment": 1000, "histogram": [ {"minimum": 8000, "maximum": 8999, "count": 4}, {"minimum": 9000, "maximum": 9999, "count": 36} ] } } ], "source_url": "https://mobileapps-afd-prod-endpoint-drgsgffchcfkbmg4.z01.azurefd.net/api/search" } } ```
Crawlora does not silently return bad data when the upstream page cannot be used.
| Status | Common failure case |
|---|---|
| 400 | Invalid input or missing required parameter |
| 429 | Plan or endpoint rate limit exceeded |
| 500 | Internal execution error |
| 502 | Upstream platform failed, returned unusable HTML, or served a challenge page that could not be resolved |
When possible, Crawlora returns structured error context so your integration can retry, back off, or inspect the request.
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 500 | Internal Server Error | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
{
"code": 200,
"msg": "OK",
"data": {
"total_count": 91136,
"page": 1,
"page_size": 48,
"vehicles": [
{
"stock_number": 28187774,
"vin": "1FMJK1K89REA27006",
"year": 2024,
"make": "Ford",
"model": "Expedition Max",
"trim": "Limited",
"body": "4D Sport Utility",
"mileage": 41406,
"exterior_color": "Black",
"interior_color": "Tan",
"engine": "3.5L",
"transmission": {
"type": "Automatic",
"display": "Automatic"
},
"drive_train_type": "Rear Wheel Drive",
"fuel": {
"type": "Gas"
},
"efficiency": {
"mpg_city": 17,
"mpg_highway": 23
},
"price_info": {
"price": 45998,
"is_price_reduced": true,
"previous_price": 46998
},
"store": {
"id": 7124,
"name": "Canoga Park"
},
"hero_image_url": "https://img2.carmax.com/assets/28187774/hero.jpg?width=400",
"highlighted_features": [
"Turbo Charged Engine",
"Leather Seats",
"Panoramic Sunroof"
],
"engine_torque_lb_ft": 480,
"engine_torque_rpm": 2250,
"horsepower": 400,
"horsepower_rpm": 5000,
"cylinders": 6,
"towing_capacity_lbs": 6300,
"passenger_count": 7,
"prior_uses": [
"Leased Vehicle",
"Rental"
],
"image_count": 31,
"description": "2024 Ford Expedition Max Limited",
"url": "https://www.carmax.com/car/28187774"
}
],
"filters": [
{
"name": "Make",
"display_name": "Make",
"type": "Value",
"values": [
{
"value": "Toyota",
"count": 12453
},
{
"value": "Ford",
"count": 9821
}
]
},
{
"name": "BasePrice",
"display_name": "Price range",
"type": "Range",
"range": {
"minimum": 8000,
"maximum": 138999,
"increment": 1000,
"histogram": [
{
"minimum": 8000,
"maximum": 8999,
"count": 4
},
{
"minimum": 9000,
"maximum": 9999,
"count": 36
}
]
}
}
],
"source_url": "https://mobileapps-afd-prod-endpoint-drgsgffchcfkbmg4.z01.azurefd.net/api/search"
}
}Request schema
No body schema
Response schema
#/definitions/carmax.searchResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | carmax.SearchResponse | No | ||||
| data.filters | array | No | ||||
| data.filters[].display_name | string | No | Make | |||
| data.filters[].name | string | No | Make | |||
| data.filters[].range | carmax.FilterRange | No | ||||
| data.filters[].range.histogram | array | No | ||||
| data.filters[].range.histogram[].count | integer | No | 193 | |||
| data.filters[].range.histogram[].maximum | number | No | 20999 | |||
| data.filters[].range.histogram[].minimum | number | No | 20000 | |||
| data.filters[].range.increment | number | No | 1000 | |||
| data.filters[].range.maximum | number | No | 138999 | |||
| data.filters[].range.minimum | number | No | 8000 | |||
| data.filters[].type | string | No | Value | |||
| data.filters[].values | array | No | ||||
| data.filters[].values[].count | integer | No | 12453 | |||
| data.filters[].values[].selected | boolean | No | ||||
| data.filters[].values[].url_segment | string | No | toyota | |||
| data.filters[].values[].value | string | No | Toyota | |||
| data.page | integer | No | 1 | |||
| data.page_size | integer | No | 48 | |||
| data.source_url | string | No | ||||
| data.total_count | integer | No | 91136 | |||
| data.vehicles | array | No | ||||
| data.vehicles[].body | string | No | 4D Sport Utility | |||
| data.vehicles[].cylinders | integer | No | 6 | |||
| data.vehicles[].description | string | No | 2024 Ford Expedition Max Limited | |||
| data.vehicles[].drive_train_type | string | No | Rear Wheel Drive | |||
| data.vehicles[].efficiency | carmax.Efficiency | No | ||||
| data.vehicles[].efficiency.battery_range_miles | number | No | ||||
| data.vehicles[].efficiency.is_mpg_equivalent | boolean | No | ||||
| data.vehicles[].efficiency.mpg_city | integer | No | 17 | |||
| data.vehicles[].efficiency.mpg_combined | integer | No | ||||
| data.vehicles[].efficiency.mpg_highway | integer | No | 23 | |||
| data.vehicles[].engine | string | No | 6-cyl, Turbo Gas, 3.5L | |||
| data.vehicles[].engine_torque_lb_ft | integer | No | 480 | The fields below are only populated on the mobile-API-backed search path (Search) -- exact engine/performance numbers and listing metadata the website scrape never carried. All omitempty and additive; existing consumers reading only the fields above see no change. See notes/carmax-maintenance.md's "Search and vehicle detail migrated onto the mobile API" section. | ||
| data.vehicles[].engine_torque_rpm | integer | No | 2250 | |||
| data.vehicles[].exterior_color | string | No | Black | |||
| data.vehicles[].features | array | No | ||||
| data.vehicles[].fuel | carmax.Fuel | No | ||||
| data.vehicles[].fuel.capacity_gallons | number | No | 28.3 | |||
| data.vehicles[].fuel.type | string | No | Gas | |||
| data.vehicles[].hero_image_url | string | No | ||||
| data.vehicles[].highlighted_features | array | No | ||||
| data.vehicles[].horsepower | integer | No | 400 | |||
| data.vehicles[].horsepower_rpm | integer | No | 5000 | |||
| data.vehicles[].image_count | integer | No | 31 | |||
| data.vehicles[].interior_color | string | No | Tan | |||
| data.vehicles[].is_new_arrival | boolean | No | ||||
| data.vehicles[].is_transferable | boolean | No | ||||
| data.vehicles[].make | string | No | Ford | |||
| data.vehicles[].mileage | integer | No | 41406 | |||
| data.vehicles[].model | string | No | Expedition Max | |||
| data.vehicles[].passenger_count | integer | No | 7 | |||
| data.vehicles[].price_info | carmax.PriceInfo | No | ||||
| data.vehicles[].price_info.fees | number | No | ||||
| data.vehicles[].price_info.fees_included_in_price | boolean | No | ||||
| data.vehicles[].price_info.is_price_reduced | boolean | No | ||||
| data.vehicles[].price_info.previous_price | number | No | 46998 | |||
| data.vehicles[].price_info.price | number | No | 45998 | |||
| data.vehicles[].prior_uses | array | No | Leased Vehicle,Rental | |||
| data.vehicles[].stock_number | integer | No | 28187774 | |||
| data.vehicles[].store | carmax.Store | No | ||||
| data.vehicles[].store.city | string | No | ||||
| data.vehicles[].store.distance_miles | number | No | 22.2 | |||
| data.vehicles[].store.id | integer | No | 7124 | |||
| data.vehicles[].store.latitude | number | No | ||||
| data.vehicles[].store.longitude | number | No | ||||
| data.vehicles[].store.name | string | No | Canoga Park | |||
| data.vehicles[].store.state | string | No | CA | |||
| data.vehicles[].towing_capacity_lbs | integer | No | 6300 | |||
| data.vehicles[].transmission | carmax.Transmission | No | ||||
| data.vehicles[].transmission.display | string | No | Automatic | |||
| data.vehicles[].transmission.type | string | No | Automatic | |||
| data.vehicles[].trim | string | No | Limited | |||
| data.vehicles[].url | string | No | https://www.carmax.com/car/28187774 | |||
| data.vehicles[].vin | string | No | 1FMJK1K89REA27006 | |||
| data.vehicles[].year | integer | No | 2024 | |||
| msg | string | No | OK |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/carmax/search?page=1" \
-H "x-api-key: $CRAWLORA_API_KEY"Crawlora is designed for responsible structured public web data workflows. Customers are responsible for using Crawlora in compliance with applicable laws, third-party rights, target-platform rules, and Crawlora terms.
Read Crawlora terms