# CarMax Vehicle Listings Scraper (`parseforge/carmax-scraper`) Actor

Scrapes CarMax used car listings with full vehicle details, pricing, mileage, and specs from the CarMax inventory.

- **URL**: https://apify.com/parseforge/carmax-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** E-commerce, Lead generation
- **Features:** Limited permissions
- **Stats:** 35 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $11.99 / 1,000 result items

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

[![ParseForge](https://raw.githubusercontent.com/ParseForge/apify-assets/main/banner-v4.webp)](https://apify.com/parseforge?fpr=vmoqkp)

### CarMax Vehicle Listings Scraper

**Scrape CarMax vehicle listings by ZIP code, make, model, year, price, and mileage, up to a million per run.** Every vehicle comes with its price, mileage, year, make, model, and location. No login or API key. Export to CSV, JSON, Excel, or XML.

CarMax's website shows thousands of used cars, but there is no public API and manual browsing is slow. This Actor reads the public search results directly, applies your filters as it goes, and returns each matching vehicle in one fixed schema. You can pull a few cars for a quick check or run a full inventory sweep.

| Who uses it | What they scrape CarMax for |
|---|---|
| Used car dealers | Monitor CarMax pricing in their region to stay competitive |
| Market researchers | Track inventory levels and model availability over time |
| Data analysts | Build datasets of used car prices for valuation models |
| Car buyers | Get a full list of matching vehicles without clicking through pages |

### What it does

This Actor collects CarMax vehicle listings by ZIP code and optional filters, and returns each one as a flat row.

- 📍 **Location-based search:** enter a ZIP code and get vehicles available near that area.
- 🔍 **Attribute filters:** narrow by make, model, year range, price range, and maximum mileage.
- 📊 **Sorting options:** order results by best match, price, year, or mileage.
- ⚡ **Concurrency control:** adjust parallel requests to avoid rate limits.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

### What you can do with CarMax data

**📈 Monitor regional pricing.**

A used car dealer runs the Actor daily with their ZIP code and a price range to see what CarMax is charging for comparable vehicles.

**🔎 Find specific models.**

A car buyer sets make and model filters to get a complete list of matching vehicles in their area, sorted by price.

**📊 Build a valuation dataset.**

A data analyst collects thousands of listings with year, mileage, and price to train a used car price prediction model.

**🗺️ Track inventory by region.**

A market researcher runs the Actor for multiple ZIP codes to compare CarMax inventory across different markets.

### Why choose this scraper

|  | What you get |
|---|---|
| **No API key** | Scrape CarMax without registering an app or dealing with OAuth |
| **Flexible filters** | Get exactly the vehicles you need with make, model, year, price, and mileage |
| **Scalable** | Collect up to a million vehicles per run |
| **Structured output** | Every vehicle is a flat row ready for CSV, JSON, Excel, or XML |

### How it compares

No other Store actor targets CarMax the same way, so the honest comparison is with the alternatives teams actually weigh.

| | CarMax Vehicle Listings Scraper | Build it in-house | By hand |
|---|---|---|---|
| Setup | Run it now, zero config | Days of engineering | None, but hours per pull |
| When CarMax changes | Maintained for you | You fix it | You re-learn the page |
| Proxies, retries, anti-bot | Built in | Your problem | Browser only |
| Output | Fixed JSON schema, CSV/Excel export | Whatever you build | Copy-paste |
| Cost | Pay per result | Engineering time | Analyst hours |

### Configure the run

Drive the Actor from a ZIP code and optional filters for make, model, year, price, and mileage, and filters run as each vehicle is read so only matches reach your dataset. The Input tab lists every parameter.

A first run with the defaults:

```json
{
  "zip": "90210",
  "maxItems": 10
}
```

A larger pull:

```json
{
  "zip": "90210",
  "maxItems": 200
}
```

### Pricing

Pay-per-result: **$0.01599 per result** collected. You pay only for the results written to your dataset.

| Results collected | Approximate cost |
|---|---|
| 100 results | $1.60 |
| 1,000 results | $15.99 |
| 10,000 results | $159.90 |

New Apify accounts start with $5 in free credit.

### Free users

Free-plan runs return up to 10 results as a preview. [Upgrade your Apify plan](https://console.apify.com/sign-up?fpr=vmoqkp) to collect up to 1,000,000 results per run.

### Run it

1. [Create a free Apify account with $5 in credit](https://console.apify.com/sign-up?fpr=vmoqkp).
2. Open the [CarMax Vehicle Listings Scraper](https://apify.com/parseforge/carmax-scraper?fpr=vmoqkp).
3. Set your inputs and any filters, then click **Start**.
4. Export the results as CSV, Excel, JSON, or XML from the **Dataset** tab.

Run it programmatically through the [Apify API](https://docs.apify.com/api/v2) (`run-sync-get-dataset-items`) or the [ApifyClient](https://docs.apify.com/api/client/js) for JavaScript and Python.

### Use with AI agents (MCP)

Give an AI agent live access to CarMax through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=parseforge/carmax-scraper"
```

Then prompt it in plain language to run the scraper and read back the results.

### Troubleshooting

**Why am I getting no results?**

Check your filters. If you set a make but no model, that is fine, but if you set a model without a make, the Actor may not find anything. Also try a different ZIP code or broaden your price and year ranges.

**Why is the run slow?**

Increase maxConcurrency up to 20 to speed up the run, but be aware that higher concurrency may trigger rate limiting. If you get blocked, lower it back down.

**Why did I get fewer results than maxItems?**

The Actor stops when there are no more vehicles matching your filters. Try removing some filters or using a different ZIP code.

**Why are some fields empty?**

CarMax may not provide every field for every vehicle. For example, some listings may not have a mileage value. That is normal.

**Can I scrape a specific CarMax store?**

The Actor uses ZIP code to determine the search area. To target a specific store, use the ZIP code of that store's location.

### FAQ

| Question | Answer |
|---|---|
| Do I need a CarMax account or API key? | No. The Actor reads the public CarMax search pages directly. You only need an Apify account to run it. |
| Can I scrape all CarMax listings nationwide? | CarMax search is location-based, so you need to provide a ZIP code. To cover the whole country, run the Actor multiple times with different ZIP codes. |
| What filters can I use? | You can filter by make, model, minimum and maximum year, minimum and maximum price, and maximum mileage. All filters are optional. |
| How many vehicles can I get in one run? | You can set maxItems up to 1,000,000. The actual number depends on how many vehicles match your filters. |
| What output formats are supported? | You can export the results to CSV, JSON, Excel, or XML from the Apify dataset. |
| Can I sort the results? | Yes, you can sort by best match, price low to high, price high to low, year newest first, year oldest first, or mileage lowest first. |
| Does the Actor handle pagination? | Yes, it automatically goes through all result pages until it reaches maxItems or there are no more vehicles. |
| What if I get rate-limited? | Lower the maxConcurrency setting to reduce parallel requests. The default is 5, which is safe for most runs. |
| Can I schedule this Actor to run regularly? | Yes, you can set up a schedule in Apify to run it daily, weekly, or at any interval you need. |
| Is the data updated in real time? | The Actor scrapes the live CarMax website, so you get the current listings at the time of the run. |

### Related actors

Browse the full [ParseForge collection](https://apify.com/parseforge?fpr=vmoqkp) for more scrapers.

🆘 **Need help?** Email parseforge@protonmail.com with your run ID, your input, and what you expected.

⚠️ **Disclaimer.** This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by CarMax, Inc. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

# Actor input Schema

## `zip` (type: `string`):

ZIP code for location-based search. Determines which stores and vehicles are shown nearby.

## `maxItems` (type: `integer`):

How many vehicles to collect per run.

## `make` (type: `string`):

Filter by vehicle make (e.g. Toyota, Honda, Ford). Leave blank for all makes.

## `model` (type: `string`):

Filter by vehicle model (e.g. Camry, Civic). Requires Make to be set.

## `yearMin` (type: `integer`):

Filter vehicles from this model year onwards.

## `yearMax` (type: `integer`):

Filter vehicles up to this model year.

## `priceMin` (type: `integer`):

Minimum listing price in USD.

## `priceMax` (type: `integer`):

Maximum listing price in USD.

## `mileageMax` (type: `integer`):

Maximum odometer reading in miles.

## `sortBy` (type: `string`):

How to sort results.

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

Maximum number of parallel page requests. Lower this if you get rate-limited.

## Actor input object example

```json
{
  "zip": "90210",
  "maxItems": 10,
  "sortBy": "bestmatch",
  "maxConcurrency": 5
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset with all scraped items

# 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 = {
    "zip": "90210",
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/carmax-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 = {
    "zip": "90210",
    "maxItems": 10,
}

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

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

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

```

## CLI example

```bash
echo '{
  "zip": "90210",
  "maxItems": 10
}' |
apify call parseforge/carmax-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parseforge/carmax-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/sQQK6Uhh1LGe6iRYl/builds/KLgHGd3OZddOXpwWx/openapi.json
