# CarMax API: Search used cars

> Searches CarMax used cars by make and model with optional ZIP, distance, year, price and mileage filters, keeping CarMax's order. Pages expose only the first 48 cars; distance is CarMax's distance from the selected local store, and larger limits or narrow distance filters may return fewer matches.

Unofficial. Not affiliated with or endorsed by CarMax.

- Page: https://fous.com/methods/carmax.com/search-cars
- Method: `carmax.com/search_cars`, version 1
- Website: carmax.com
- Returns: year, make, model, trim, price, mileage, colour, store, distance, transfer fee, highlighted features, fuel economy, photo, link, stock number, VIN
- Effect: read (it gets data and changes nothing)
- Sign-in: none needed
- Cost: 1 credit per completed run (1¢ with pay as you go); failed runs are free
- Verified: Nov 2, 2026

## Inputs

| Field | Type | Required | In the run below | Description |
|---|---|---|---|---|
| `car` | string | yes | `"Honda Civic"` | Make and model to search, for example Toyota RAV4. |
| `max_year` | integer | no | `2024` | Latest model year, for example 2024. |
| `min_year` | integer | no | `2021` | Earliest model year, for example 2020. |
| `zip_code` | string | no | `"90210"` | US ZIP code for local car ordering, for example 10001. |
| `max_price` | number | no | `25000` | Maximum price in USD, for example 30000. |
| `max_mileage` | integer | no | `50000` | Maximum odometer mileage, for example 50000. |
| `max_results` | integer | no | `8` | Maximum number of cars, for example 24. Public pages show at most 48 cars. Default 24. |
| `radius_miles` | integer | no | `500` | Maximum listed distance in miles from your ZIP, for example 75; 0 means nationwide. Default 0. |

## Output

From a run on Oct 31, 2026, shortened. Its input:

```json
{
  "car": "Honda Civic",
  "max_year": 2024,
  "min_year": 2021,
  "zip_code": "90210",
  "max_price": 25000,
  "max_mileage": 50000,
  "max_results": 8,
  "radius_miles": 500
}
```

Its output:

```json
{
  "cars": [
    {
      "vin": "2HGFE2F24PH553046",
      "make": "Honda",
      "trim": "LX",
      "year": 2023,
      "model": "Civic",
      "price": 24998,
      "mileage": 16963,
      "car_link": "https://www.carmax.com/car/29048140",
      "photo_link": "https://img2.carmax.com/assets/29048140/hero.jpg?width=400",
      "store_name": "Burbank",
      "store_state": "California",
      "fuel_economy": "30 city / 37 highway MPG",
      "stock_number": "29048140",
      "transfer_fee": null,
      "currency_code": "USD",
      "distance_miles": 0,
      "exterior_colour": "White",
      "highlighted_features": [
        "Rear View Camera",
        "Auxiliary Audio Input",
        "Overhead Airbags"
      ]
    },
    {
      "vin": "19XFL2H51RE041593",
      "make": "Honda",
      "trim": "LX",
      "year": 2024,
      "model": "Civic",
      "price": 21998,
      "mileage": 37208,
      "car_link": "https://www.carmax.com/car/29098442",
      "photo_link": "https://img2.carmax.com/assets/29098442/hero.jpg?width=400",
      "store_name": "Torrance",
      "store_state": "California",
      "fuel_economy": "30 city / 38 highway MPG",
      "stock_number": "29098442",
      "transfer_fee": null,
      "currency_code": "USD",
      "distance_miles": 21.3,
      "exterior_colour": "White",
      "highlighted_features": [
        "Rear View Camera",
        "Auxiliary Audio Input",
        "Alloy Wheels"
      ]
    },
    {
      "vin": "2HGFE2F54NH558111",
      "make": "Honda",
      "trim": "Sport",
      "year": 2022,
      "model": "Civic",
      "price": 24998,
      "mileage": 43914,
      "car_link": "https://www.carmax.com/car/70229480",
      "photo_link": "https://img2.carmax.com/assets/70229480/hero.jpg?width=400",
      "store_name": "Canoga Park",
      "store_state": "California",
      "fuel_economy": "30 city / 37 highway MPG",
      "stock_number": "70229480",
      "transfer_fee": null,
      "currency_code": "USD",
      "distance_miles": 17.1,
      "exterior_colour": "Blue",
      "highlighted_features": [
        "Rear View Camera",
        "Auxiliary Audio Input",
        "Alloy Wheels"
      ]
    }
  ]
}
```

## Run it

From code, with a Fous API key in `FOUS_API_KEY`; the answer's `data` holds the output:

```bash
curl https://api.fous.com/v1/runs \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"method":"carmax.com/search_cars","input":{"car":"Honda Civic","max_year":2024,"min_year":2021,"zip_code":"90210","max_price":25000,"max_mileage":50000,"max_results":8,"radius_miles":500}}'
```

From an AI agent connected to the Fous MCP server: its `run` with the same method and input. To connect one, give it `set up https://fous.com/SKILL.md`.

## Ask your agent

- Find used Honda CR-V listings from 2019 to 2022 under $27,000 with less than 45,000 miles near ZIP 30318
- Show me Ford F-150 trucks on CarMax within 50 miles of 75201, priced at most $35,000
- I'm looking for a used Subaru Outback, 2020 or newer, under 60k miles — list about 20 options near 98103 with VINs and transfer fees
- What used Tesla Model 3 cars are available nationwide for under $30,000? Include mileage, color, and store location
- Pull up to 40 CarMax Toyota Camry listings from 2018–2021 near ZIP 60614 within 100 miles, with price, trim, and stock numbers

## Input schema

```json
{
  "type": "object",
  "required": [
    "car"
  ],
  "properties": {
    "car": {
      "type": "string",
      "description": "Make and model to search, for example Toyota RAV4."
    },
    "max_year": {
      "type": "integer",
      "maximum": 2100,
      "minimum": 1900,
      "description": "Latest model year, for example 2024."
    },
    "min_year": {
      "type": "integer",
      "maximum": 2100,
      "minimum": 1900,
      "description": "Earliest model year, for example 2020."
    },
    "zip_code": {
      "type": "string",
      "maxLength": 5,
      "minLength": 5,
      "description": "US ZIP code for local car ordering, for example 10001."
    },
    "max_price": {
      "type": "number",
      "minimum": 0,
      "description": "Maximum price in USD, for example 30000."
    },
    "max_mileage": {
      "type": "integer",
      "minimum": 0,
      "description": "Maximum odometer mileage, for example 50000."
    },
    "max_results": {
      "type": "integer",
      "default": 24,
      "maximum": 100,
      "minimum": 1,
      "description": "Maximum number of cars, for example 24. Public pages show at most 48 cars."
    },
    "radius_miles": {
      "type": "integer",
      "default": 0,
      "minimum": 0,
      "description": "Maximum listed distance in miles from your ZIP, for example 75; 0 means nationwide."
    }
  }
}
```

## Output schema

```json
{
  "type": "object",
  "required": [
    "cars"
  ],
  "properties": {
    "cars": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "year",
          "make",
          "model",
          "trim",
          "price",
          "currency_code",
          "mileage",
          "exterior_colour",
          "store_name",
          "store_state",
          "distance_miles",
          "transfer_fee",
          "highlighted_features",
          "fuel_economy",
          "photo_link",
          "car_link",
          "stock_number",
          "vin"
        ],
        "properties": {
          "vin": {
            "type": [
              "string",
              "null"
            ]
          },
          "make": {
            "type": [
              "string",
              "null"
            ]
          },
          "trim": {
            "type": [
              "string",
              "null"
            ]
          },
          "year": {
            "type": [
              "integer",
              "null"
            ]
          },
          "model": {
            "type": [
              "string",
              "null"
            ]
          },
          "price": {
            "type": [
              "number",
              "null"
            ],
            "description": "Price in US dollars."
          },
          "mileage": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Miles."
          },
          "car_link": {
            "type": "string"
          },
          "photo_link": {
            "type": [
              "string",
              "null"
            ]
          },
          "store_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "store_state": {
            "type": [
              "string",
              "null"
            ]
          },
          "fuel_economy": {
            "type": [
              "string",
              "null"
            ]
          },
          "stock_number": {
            "type": [
              "string",
              "null"
            ]
          },
          "transfer_fee": {
            "type": [
              "string",
              "null"
            ],
            "description": "Shipping or transfer fee text when shown."
          },
          "currency_code": {
            "type": "string",
            "description": "USD."
          },
          "distance_miles": {
            "type": [
              "number",
              "null"
            ],
            "description": "CarMax listing distance from its selected local store, if a ZIP is given."
          },
          "exterior_colour": {
            "type": [
              "string",
              "null"
            ]
          },
          "highlighted_features": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      }
    }
  },
  "additionalProperties": false
}
```

## See more

- [CARFAX API: Search used cars](https://fous.com/methods/carfax.com/search-cars.md): Searches CARFAX used-car listings for a make and model near a US ZIP code, in CARFAX order, with listing details and free vehicle-history highlights. Paid full history reports are not included.
- [Cars.com API: Search listings](https://fous.com/methods/cars.com/search-cars.md): Searches Cars.com car listings for a make and model around a US ZIP code within a radius, optionally by condition (new, used or certified pre-owned) and maximum price, in Cars.com search order.
- [Carvana API: Search used cars](https://fous.com/methods/carvana.com/search-cars.md): Searches Carvana's used-car inventory by make and model, with optional price, year, mileage and ZIP filters, and returns each car's price, estimated monthly payment, mileage and delivery or pickup estimate for the ZIP.
- [CarGurus API: Search cars for sale](https://fous.com/methods/cargurus.com/search-cars.md): Searches new and used cars for sale near a US ZIP code for a make and model, with prices, dealer details and CarGurus deal ratings. Used cars come first, then new cars, each in CarGurus order; market difference is positive below market and negative above.
- [Autotrader API: Search cars](https://fous.com/methods/autotrader.com/search-cars.md): Searches Autotrader car listings near a US ZIP code by make and model, with condition, price, year and distance filters. Returns up to 100 listings in site order.
- [mobile.de API: Search cars](https://fous.com/methods/mobile.de/search-cars.md): Searches mobile.de car listings by make and model, with optional registration year, price, mileage, fuel, condition and sorting. Returns up to 50 listings in marketplace order; fields not shown on a listing are null.
- [AutoZone API: Search parts for a vehicle](https://fous.com/methods/autozone.com/search-parts.md): Finds AutoZone parts listed for a vehicle (year, make, model, optional engine), with prices, warranties and fit notes. Listings are filtered by year, make and model; engine fit often needs further confirmation.
- [CarGurus API: Get used car market value](https://fous.com/methods/cargurus.com/get-market-value.md): Gets the current average used asking price, the CarGurus price range and the 12-month price history for a model year (all trims), from CarGurus price trends.
