# Carmax Zipcode Search Scraper (`e-commerce/carmax-zipcode-search-scraper`) Actor

Scraper to find all Carmax car listings for a given zipcode in the United States of America

- **URL**: https://apify.com/e-commerce/carmax-zipcode-search-scraper.md
- **Developed by:** [E Commerce](https://apify.com/e-commerce) (Apify)
- **Categories:** Other
- **Stats:** 47 total users, 0 monthly users, 100.0% runs succeeded, 3 bookmarks
- **User rating**: 4.40 out of 5 stars

## Pricing

from $0.20 / 1,000 cars

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

### What does Carmax Zipcode Search do?
Carmax Zipcode Search will enable you to extract and gather detailed car listing information from CarMax.com effortlessly. Enter one or multiple zip codes and get all the listings returned.

Carmax Zipcode Search can scrape:
- Descriptions 
- Images
- Prices
- Mileage
- Locations
- Vehicle specs
- Contact details
- And more


### Why scrape CarMax?
CarMax is a popular car dealership with a wide variety of car listings. It is a great source of data for car buyers, car enthusiasts, and researchers in the automotive industry.


Here are just some of the ways you could use that data:
- Researching car prices
- Comparing different car models
- Finding specific car features
- Analyzing market trends


If you would like more inspiration on how scraping CarMax could help your business or organization, check out our [industry pages](https://apify.com/industries).

### How to scrape CarMax
It's easy to scrape CarMax with Carmax Zipcode Search. Just follow these few steps and you'll get your data in a few minutes.

1. Click on Try for free.
2. Enter one or more zip codes you want to search for cars.
3. Optionally narrow the search with the filters below.
4. Click on Run.
5. When Carmax Zipcode Search has finished, preview or download your data from the Dataset tab.

### Input

| Field | Type | Description |
|-------|------|-------------|
| `zips` | array (required) | US ZIP codes to search from. |
| `makes` | array (optional) | Makes to filter by, e.g. `Ford`, `Toyota`, `BMW`, `Mercedes-Benz`. Case-insensitive; matched against CarMax's make slug. Leave empty for all makes. |
| `radius` | integer (optional) | Search radius in miles around each ZIP. CarMax supports 25, 50, 100, 250, and 500; other values round up to the nearest tier, and 0 searches nationwide. Defaults to 50. |
| `maxConcurrency` | integer (optional) | Maximum number of concurrent requests. Defaults to 10. |
| `maxRequestsPerCrawl` | integer (optional) | Cap on total search-page requests. Useful for test runs; leave empty to scrape every page. |

### How much will it cost to scrape CarMax?
Apify gives you with $5 free usage credits every month on the [Apify Free plan](https://apify.com/pricing). You can get 5,000 results per month from Carmax Zipcode Search for that, so those 5,000 results will be completely free!

But if you need to get more data regularly from CarMax, you should grab an Apify subscription. We recommend our [$49/month Starter plan](https://apify.com/pricing) - you can get up to 49,000 every month with the $49 monthly plan! 

Or get 490,000 results for $499 with the [Scale plan](https://apify.com/pricing) - wow!

### Results
Each listing is returned as a flat record:
```json
[{
  "stockNumber": "28346516",
  "vin": "1FADP3R48EL241837",
  "make": "Ford",
  "model": "Focus Electric",
  "year": 2014,
  "trim": null,
  "body": "4D Hatchback",
  "mileage": 63364,
  "transmission": "Automatic",
  "driveTrain": "Front Wheel Drive",
  "engineType": "Electric",
  "engineSize": "0.0L",
  "cylinders": 0,
  "fuelType": null,
  "mpgCity": null,
  "mpgHighway": null,
  "exteriorColor": "Blue",
  "interiorColor": "Gray",
  "features": ["Leather Seats", "Navigation System", "Rear View Camera"],
  "price": 9599,
  "originalPrice": null,
  "hasPriceDrop": false,
  "storeName": "LAX",
  "storeId": 7810,
  "storeCity": "Inglewood",
  "state": "California",
  "stateAbbreviation": "CA",
  "distance": 9,
  "isTransferable": true,
  "isNewArrival": true,
  "averageRating": 0,
  "numberOfReviews": 0,
  "heroImageUrl": "https://img2.carmax.com/assets/28346516/hero.jpg?width=400&height=300",
  "detailUrl": "https://www.carmax.com/car/28346516",
  "searchZip": "90210",
  "dateOfScrape": "2026-06-04T12:59:14.838Z"
}]
````

### Is it legal to scrape CarMax?

Note that personal data is protected by GDPR in the European Union and by other regulations around the world.\nYou should not scrape personal data unless you have a legitimate reason to do so.
If you're unsure whether your reason is legitimate, consult your lawyers.
We also recommend that you read our blog post: [is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/).

# Actor input Schema

## `zips` (type: `array`):

US ZIP codes to search from.

## `makes` (type: `array`):

Optional CarMax makes to filter by (e.g. Ford, Toyota, BMW, Mercedes-Benz). Case-insensitive; matched against CarMax's make slug. Leave empty for all makes.

## `radius` (type: `integer`):

Search radius in miles around each ZIP. CarMax supports 25, 50, 100, 250, and 500; any other value is rounded up to the nearest supported tier, and 0 (or empty) searches nationwide.

## `maxConcurrency` (type: `integer`):

Maximum number of concurrent requests.

## `maxRequestsPerCrawl` (type: `integer`):

Optional cap on total requests (search pages). Leave empty to scrape every page. Useful for test runs.

## Actor input object example

```json
{
  "zips": [
    "90210",
    "10001"
  ],
  "radius": 50,
  "maxConcurrency": 10
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "zips": [
        "90210",
        "10001"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("e-commerce/carmax-zipcode-search-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "zips": [
        "90210",
        "10001",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("e-commerce/carmax-zipcode-search-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "zips": [
    "90210",
    "10001"
  ]
}' |
apify call e-commerce/carmax-zipcode-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=e-commerce/carmax-zipcode-search-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Carmax Zipcode Search Scraper",
        "description": "Scraper to find all Carmax car listings for a given zipcode in the United States of America",
        "version": "0.0",
        "x-build-id": "ShNYjeIecEFKHLEu8"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/e-commerce~carmax-zipcode-search-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-e-commerce-carmax-zipcode-search-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/e-commerce~carmax-zipcode-search-scraper/runs": {
            "post": {
                "operationId": "runs-sync-e-commerce-carmax-zipcode-search-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/e-commerce~carmax-zipcode-search-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-e-commerce-carmax-zipcode-search-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "zips"
                ],
                "properties": {
                    "zips": {
                        "title": "Zip codes",
                        "type": "array",
                        "description": "US ZIP codes to search from.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "makes": {
                        "title": "Makes",
                        "type": "array",
                        "description": "Optional CarMax makes to filter by (e.g. Ford, Toyota, BMW, Mercedes-Benz). Case-insensitive; matched against CarMax's make slug. Leave empty for all makes.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "radius": {
                        "title": "Search radius (miles)",
                        "minimum": 0,
                        "maximum": 500,
                        "type": "integer",
                        "description": "Search radius in miles around each ZIP. CarMax supports 25, 50, 100, 250, and 500; any other value is rounded up to the nearest supported tier, and 0 (or empty) searches nationwide.",
                        "default": 50
                    },
                    "maxConcurrency": {
                        "title": "Max concurrency",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum number of concurrent requests.",
                        "default": 10
                    },
                    "maxRequestsPerCrawl": {
                        "title": "Max requests per crawl",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Optional cap on total requests (search pages). Leave empty to scrape every page. Useful for test runs."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
