# AutoTrader.com Search Scraper (`caffein.dev/autotrader-com-actor`) Actor

Search AutoTrader.com by keyword and ZIP code. Returns sell price, KBB fair market price, deal ratings, vehicle history flags, and 40+ fields per listing. Filter by year, price, mileage, body style, drivetrain, fuel, color, seller type, and more.

- **URL**: https://apify.com/caffein.dev/autotrader-com-actor.md
- **Developed by:** [Caffein Dev](https://apify.com/caffein.dev) (community)
- **Categories:** Automation, E-commerce, Developer tools
- **Features:** Limited permissions
- **Stats:** 119 total users, 32 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $2.00 / 1,000 results

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

## AutoTrader.com Search Scraper

**Search by keyword and ZIP code — no URLs needed.** Just type a keyword like `Toyota Camry` or `electric SUV`, set a ZIP code, and get structured results. Filter by year, price, mileage, body style, drivetrain, fuel, color, deal rating, vehicle history, and more — all the same filters as AutoTrader's advanced search. Returns 40+ fields per listing including sale price, KBB fair purchase price, deal ratings, vehicle history flags, specs, dealer info, and images.

> Built for dealers, resellers, and market researchers who need clean, structured data across thousands of listings — without scraping URLs one by one.

Output exports to **JSON, CSV, Excel, or Google Sheets** via Apify's built-in integrations.

***

### 🎛️ Input

#### Quick start

```json
{
    "keyword": "Lexus NX",
    "zip": "94103"
}
```

#### With filters

```json
{
    "keyword": "Toyota RAV4 Hybrid",
    "zip": "10001",
    "searchRadius": "100",
    "startYear": 2020,
    "endYear": 2024,
    "maxPrice": 35000,
    "mileage": "50000",
    "listingType": "CERTIFIED",
    "dealType": "goodprice",
    "vehicleHistoryType": ["NO_ACCIDENTS", "ONE_OWNER"],
    "sortBy": "relevance",
    "maxItems": 200
}
```

#### Common parameters

| Parameter               | Type    | Default     | Description                                                                                                             |
| ----------------------- | ------- | ----------- | ----------------------------------------------------------------------------------------------------------------------- |
| `keyword`               | string  | —           | Make, model, trim, or any keywords (`Lexus NX`, `electric SUV`, `truck leather seats`)                                  |
| `zip`                   | string  | `94103`     | US ZIP code for location-based search                                                                                   |
| `searchRadius`          | string  | `0`         | `10` / `25` / `50` / `100` / `200` / `500` miles, or `0` for nationwide                                                 |
| `startYear` / `endYear` | integer | —           | Model year range                                                                                                        |
| `minPrice` / `maxPrice` | integer | —           | Sale price range (USD)                                                                                                  |
| `mileage`               | string  | —           | Maximum mileage tier (`20000`, `50000`, `100000`, etc.)                                                                 |
| `listingType`           | string  | —           | `USED` · `NEW` · `CERTIFIED` · `3P_CERT`                                                                                |
| `vehicleStyleCode`      | string  | —           | `SEDAN` · `SUV` · `TRUCK` · `COUPE` · `CONVERT` · `HATCH` · `WAGON` · `VAN` · `MINIVAN`                                 |
| `driveGroup`            | string  | —           | `AWD4WD` · `RWD` · `FWD`                                                                                                |
| `fuelTypeGroup`         | string  | —           | `GSL` · `DSL` · `ELC` · `HYB`                                                                                           |
| `transmissionCode`      | string  | —           | `AUT` · `MAN`                                                                                                           |
| `extColorSimple`        | string  | —           | `BLACK` · `WHITE` · `SILVER` · `GRAY` · `BLUE` · `RED` · `GREEN` · `BROWN` · …                                          |
| `sellerType`            | string  | —           | `d` (Dealer) · `p` (Private Seller)                                                                                     |
| `dealType`              | string  | —           | KBB deal rating filter: `goodprice` · `greatprice`                                                                      |
| `vehicleHistoryType`    | array   | —           | Multi-select: `NO_ACCIDENTS`, `ONE_OWNER`, `CLEAN_TITLE`, `NO_FRAME_DAMAGE`                                             |
| `featureCode`           | array   | —           | Multi-select feature codes (heated seats, sunroof, CarPlay, etc.)                                                       |
| `maxItems`              | integer | `200`       | Maximum listings to return — actor auto-paginates                                                                       |
| `sortBy`                | string  | `relevance` | Sort order: `relevance`, `derivedpriceASC/DESC`, `distanceASC`, `datelistedASC/DESC`, `mileageASC/DESC`, `yearASC/DESC` |

All filters mirror AutoTrader's advanced search page. See the **Input** tab in Apify Console for the full dropdown UI.

***

### 📦 Output data

Each listing returns a structured record. Most useful fields:

| Field                                                | Description                                                                                                                                             |
| ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `listingId`                                          | Unique AutoTrader listing ID                                                                                                                            |
| `url`                                                | Direct link to the listing                                                                                                                              |
| `title`                                              | Full listing title (e.g. `2020 Lexus IS 250 F Sport`)                                                                                                   |
| `year`                                               | Model year                                                                                                                                              |
| `make` / `model` / `trim`                            | Vehicle make, model, and trim level                                                                                                                     |
| `displayPrice`                                       | Price shown on AutoTrader (USD), including dealer fees. AutoTrader's price sort uses this number                                                        |
| `salePrice`                                          | Sale price entered by the seller (USD). Some dealers include their fees in it and some don't. Use `displayPrice` for the price shown on AutoTrader      |
| `dealerFees`                                         | Total dealer fees (USD), such as documentation and registration fees. `null` when the listing shows no fees (always for private sellers)                |
| `dealerFeeItems`                                     | Itemized dealer fees as `[{ "name", "amount" }]`. Each dealer names its own fees, so the same fee can appear as `Doc Fee` or `Documentation Fee`        |
| `msrp`                                               | Manufacturer Suggested Retail Price                                                                                                                     |
| `kbbFairPurchasePrice`                               | KBB fair purchase price reference                                                                                                                       |
| `dealIndicator`                                      | KBB deal rating (`Great`, `Good`, `Fair`)                                                                                                               |
| `mileage`                                            | Mileage in miles                                                                                                                                        |
| `engine` / `transmission` / `driveType` / `fuelType` | Drivetrain & powertrain                                                                                                                                 |
| `exteriorColor` / `interiorColor`                    | Color (as listed + normalized group)                                                                                                                    |
| `listingType`                                        | `USED`, `NEW`, `CERTIFIED`, etc.                                                                                                                        |
| `listingDate`                                        | **Approximate** date listed (`YYYY-MM-DD`), computed from `daysOnSite` — AutoTrader doesn't expose an exact listing date, so this is accurate to ±1 day |
| `vin`                                                | Vehicle Identification Number                                                                                                                           |
| `sellerName`                                         | Dealer or private seller                                                                                                                                |
| `sellerCity` / `sellerState` / `sellerDistance`      | Seller location + miles from search ZIP                                                                                                                 |
| `sellerRating`                                       | Average seller rating (0–5)                                                                                                                             |
| `images`                                             | Array of full-size image URLs                                                                                                                           |
| `vehicleHistory`                                     | Flags like `NO_ACCIDENTS`, `ONE_OWNER`, `CLEAN_TITLE`                                                                                                   |
| `scrapedAt`                                          | Timestamp of data collection                                                                                                                            |

40+ fields total — see the Output tab for the complete schema.

***

### 🧪 Sample output

```json
{
    "listingId": "777103715",
    "vin": "4T1G11AK7RU217175",
    "url": "https://www.autotrader.com/cars-for-sale/vehicledetails.xhtml?listingId=777103715",
    "stockId": "P20025",
    "title": "Certified 2024 Toyota Camry SE",
    "year": 2024,
    "make": "Toyota",
    "model": "Camry",
    "trim": "SE",
    "bodyStyle": "Sedan",
    "displayPrice": 24522,
    "salePrice": 24400,
    "dealerFees": 122,
    "dealerFeeItems": [
        { "name": "Doc Fee", "amount": 85 },
        { "name": "Electronic Filing Fee", "amount": 37 }
    ],
    "kbbFairPurchasePrice": 23675,
    "dealIndicator": "Good",
    "mileage": 74580,
    "engine": "4-Cylinder",
    "transmission": "8-Speed Automatic",
    "driveType": "FWD",
    "fuelType": "Gasoline",
    "mpgCity": 28,
    "mpgHighway": 39,
    "exteriorColor": "Ice",
    "interiorColor": "Black",
    "listingType": "CERTIFIED",
    "daysOnSite": 47,
    "listingDate": "2026-04-09",
    "sellerName": "North Hollywood Toyota",
    "sellerRating": 4.6,
    "sellerReviewCount": 5031,
    "sellerCity": "North Hollywood",
    "sellerState": "CA",
    "sellerDistance": 4.76,
    "imageCount": 1,
    "images": ["https://images.autotrader.com/hn/c/b980d557475f499aa2457862fd829ed9.jpg"],
    "vehicleHistory": [
        "NO_SALVAGE_TITLE",
        "NO_FRAME_DAMAGE",
        "NO_FLOOD_WATER_DAMAGE",
        "NO_ACCIDENTS_REPORTED",
        "ONE_OWNER"
    ],
    "scrapedAt": "2026-05-25T17:26:58.183Z"
}
```

***

### 👥 Who uses this

**🚗 Used-car Dealers**
Pull live competitor inventory in your market. See what dealers nearby are listing the same year/make/model for.

**💰 Resellers & Flippers**
Find underpriced cars on AutoTrader. Filter by KBB "Good Price" / "Great Price" deal rating and one-owner / clean-title history.

**📊 Market Researchers**
Track pricing trends, mileage curves, and inventory depth by region. Compare segments across ZIPs and time.

**⚙️ Tool Builders**
Power valuation models, comp engines, or lead-gen tools with fresh structured data from one of the largest US car marketplaces.

***

### 💰 Pricing

This Actor uses **Pay per result** billing at **$3.00 per 1,000 results**. No monthly subscription. You only pay for successful results.

Apify platform usage (compute and proxy) is billed separately by Apify.

***

### ❓ FAQ

**Do I need to pass URLs?**
No. Just enter a keyword and ZIP code (or use defaults). The Actor builds the search URL with your filters and paginates automatically.

**Does it cover all of the US?**
Yes — set `searchRadius` to `0` for nationwide. Or narrow to a metro by ZIP + a smaller radius.

**Can I filter by KBB deal rating?**
Yes — use `dealType: "goodprice"` or `"greatprice"` to surface only deals AutoTrader flags as a good or great price vs. KBB's fair purchase price.

**Why doesn't `salePrice` always match the price on AutoTrader?**
AutoTrader shows prices with dealer fees included (documentation, registration, and similar). That number is in `displayPrice`, and the fees are in `dealerFees` and `dealerFeeItems`. `salePrice` is the price the seller entered: some dealers include their fees in it and some don't. When you sort by price, AutoTrader orders results by `displayPrice`.

**Can I filter by accident-free or one-owner cars?**
Yes — pass `vehicleHistoryType: ["NO_ACCIDENTS", "ONE_OWNER"]` (or any combination including `CLEAN_TITLE`, `NO_FRAME_DAMAGE`).

**Can I export to Google Sheets or CSV?**
Yes — Apify supports JSON, CSV, Excel, and Google Sheets export out of the box.

**Can I sort by newest listed?**
Yes — use `sortBy: "datelistedDESC"`. Each result also includes an approximate `listingDate`, computed from `daysOnSite` (AutoTrader doesn't expose an exact listing date, even on individual listing pages).

**How fresh is the data?**
Each run pulls live results directly from AutoTrader's search index. Schedule the Actor (every hour, daily, etc.) to keep your dataset current.

***

### 🛠️ Support

Found a bug or a field that stopped parsing? Open an issue on the Actor's page or contact the developer through Apify.

When reporting an issue, please include:

- The keyword, ZIP, and filters you used
- The listing URL if a specific record looks wrong
- The Apify run url if possible

# Changelog

This Actor's version history is a separate document: https://apify.com/caffein.dev/autotrader-com-actor/changelog.md

# Actor input Schema

## `keyword` (type: `string`):

What car are you looking for? Type naturally — make, model, trim, or any keywords. Examples: 'Lexus NX', 'Toyota Camry SE', 'BMW 3 Series', 'electric SUV', 'truck leather seats'.

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

US ZIP code for location-based search. Default: 94103 (San Francisco, CA).

## `searchRadius` (type: `string`):

Search radius in miles from the ZIP code. Use 0 for nationwide.

## `minPrice` (type: `integer`):

Minimum listing price in USD.

## `maxPrice` (type: `integer`):

Maximum listing price in USD.

## `startYear` (type: `integer`):

Minimum model year (e.g. 2015).

## `endYear` (type: `integer`):

Maximum model year (e.g. 2024).

## `mileage` (type: `string`):

Maximum mileage filter.

## `vehicleStyleCode` (type: `string`):

Vehicle body style.

## `driveGroup` (type: `string`):

Drivetrain filter.

## `transmissionCode` (type: `string`):

Transmission type.

## `fuelTypeGroup` (type: `string`):

Fuel type filter.

## `engineCode` (type: `string`):

Engine type.

## `extColorSimple` (type: `string`):

Exterior color filter.

## `intColorSimple` (type: `string`):

Interior color filter.

## `featureCode` (type: `array`):

Desired vehicle features (select multiple).

## `listingType` (type: `string`):

Filter by listing type.

## `sellerType` (type: `string`):

Filter by dealer or private seller.

## `dealType` (type: `string`):

Filter by KBB deal rating.

## `vehicleHistoryType` (type: `array`):

Vehicle history filters (select multiple).

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

Maximum number of listings to return. The actor auto-paginates until this limit is reached.

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

Sort order for search results.

## Actor input object example

```json
{
  "keyword": "Lexus NX",
  "zip": "94103",
  "searchRadius": "0",
  "mileage": "",
  "vehicleStyleCode": "",
  "driveGroup": "",
  "transmissionCode": "",
  "fuelTypeGroup": "",
  "engineCode": "",
  "extColorSimple": "",
  "intColorSimple": "",
  "listingType": "",
  "sellerType": "",
  "dealType": "",
  "maxItems": 200,
  "sortBy": "relevance"
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `overview` (type: `string`):

No description

# 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 = {
    "keyword": "Lexus NX"
};

// Run the Actor and wait for it to finish
const run = await client.actor("caffein.dev/autotrader-com-actor").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 = { "keyword": "Lexus NX" }

# Run the Actor and wait for it to finish
run = client.actor("caffein.dev/autotrader-com-actor").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 '{
  "keyword": "Lexus NX"
}' |
apify call caffein.dev/autotrader-com-actor --silent --output-dataset

```

## MCP server setup

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

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/KNVfgExw8scGr9DGH/builds/PRIPGTZvMaBQxIE9W/openapi.json
