# Bring a Trailer Scraper — Collector Car Auctions & Sold Prices (`haketa/bringatrailer-scraper`) Actor

Scrape live collector car auctions and historical sold hammer prices from Bring a Trailer (BaT). Extract current bids, sold vs reserve-not-met outcomes, vehicle years, mileage, no-reserve flags, auction end dates, descriptions, and photos for classic and exotic car valuation.

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

## Pricing

from $2.80 / 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

## Bring a Trailer Scraper — Collector Car Auctions & Sold Prices

[![Apify Actor](https://img.shields.io/badge/Apify%20Actor-Ready-orange?logo=apify)](https://apify.com/haketa/bringatrailer-scraper)
[![Maintenance](https://img.shields.io/badge/Maintained-Active-brightgreen.svg)](https://apify.com/haketa/bringatrailer-scraper)
[![Data Format](https://img.shields.io/badge/Output-JSON%20%7C%20CSV%20%7C%20Excel-blue.svg)](https://apify.com/haketa/bringatrailer-scraper)
[![Coverage](https://img.shields.io/badge/Archive-274%2C000%2B%20Auctions-informational.svg)](https://apify.com/haketa/bringatrailer-scraper)
[![Target](https://img.shields.io/badge/Target-Bring%20a%20Trailer-black.svg)](https://bringatrailer.com)

**Extract live collector car auctions and historical sold hammer prices from Bring a Trailer (BaT) into structured JSON, CSV, or Excel.** This **Bring a Trailer Scraper** captures both real-time active bidding lots (~1,100–1,400 live vehicles at any moment) and over **274,000+ completed historical auctions** with verified sold prices, reserve-not-met high bids, model years, odometer mileage, no-reserve flags, marque origins, descriptions, and full-resolution photography.

Built for classic and exotic car dealerships, automotive appraisers, consignment specialists, hedge funds, and enthusiast valuation platforms seeking clean, normalized auction comps without manual browsing.

***

### ⚡ At a glance

| Capability | Details |
|---|---|
| **Target Marketplace** | Bring a Trailer ([bringatrailer.com](https://bringatrailer.com)) |
| **Auction Modes** | `completed` (274,000+ historical archive), `live` (~1,100–1,400 active lots), or `all` (combined) |
| **Outcome Filtering** | All Completed, **Sold Only** (realized hammer prices), or **Reserve Not Met Only** (unsold high bids) |
| **Extracted Fields** | Hammer Price, High Bid, Sold Status, Closed Date, Year, Make, Model, Mileage, VIN (when listed), No-Reserve Flag, Era, Origin, Country, Summary Excerpt, Full-Res Photo |
| **Smart Spec Parsing** | Automatically extracts model year, odometer mileage (`miles` / `km`), marque, and decade even when structured archive metadata is sparse |
| **Filtering Controls** | Multi-keyword search, Year range, Price range, Origin (German, Italian, Japanese, American, British, etc.), Era, Category, Seller Country, Recency window |
| **Proxy Support** | Standard Apify Proxy datacenter rotation enabled by default (low compute & bandwidth footprint) |
| **Export Destinations** | Apify Dataset (JSON, CSV, Excel, XML, Parquet), Key-Value Store (`OUTPUT`), REST API & Webhooks |

***

### 🏎️ Why scrape Bring a Trailer?

[Bring a Trailer](https://bringatrailer.com) is the benchmark online auction marketplace for vintage, classic, exotic, and enthusiast vehicles across North America, Europe, and Japan. Because collector car values depend heavily on chassis generation, transmission type, odometer mileage, no-reserve status, and recent comparable sales, structured historical hammer prices and live bid velocity are essential for accurate pricing.

#### High-Value Automotive Use Cases

- **Classic & Exotic Car Appraisal Comps**: Build instant valuation tables for insurance underwriting, estate appraisals, diminishing-value claims, and pre-purchase advisory using verified sold hammer prices (`outcomeFilter: "sold"`).
- **Dealer Acquisition & Wholesale Arbitrage**: Monitor live bidding activity (`mode: "live"`) across target marques to spot under-bid no-reserve vehicles closing soon below wholesale book value.
- **Reserve-Not-Met (RNM) Consignment & Acquisition Leads**: Filter specifically for `outcomeFilter: "rnm"` to identify motivated sellers whose vehicles recently failed to meet reserve, complete with the exact high bid achieved on auction day.
- **Porsche, Ferrari, BMW M & JDM Price Index Tracking**: Track multi-year appreciation, seasonal price curves, and mileage-adjusted depreciation across iconic collector segments (`Porsche 911`, `BMW M3`, `Ferrari 360`, `Nissan Skyline GT-R`, `Toyota Land Cruiser`).
- **Auction Market Sell-Through & Liquidity Analytics**: Measure sell-through conversion rates, No-Reserve vs. Reserve price premiums, and volume trends across 7-day, 30-day, and 1-year windows.

***

### ✨ Key Capabilities

- **Dual-Mode Extraction (`completed`, `live`, `all`)**: Pull historical comps dating back to 2014, snapshot every active auction currently on the block in seconds, or combine both in one unified dataset.
- **Clean Sold vs. Reserve-Not-Met Separation**: Distinguishes realized sales (`auctionStatus: "sold"`, `isSold: true`, numeric `hammerPrice`) from unsold high bids (`auctionStatus: "reserve_not_met"`, `isSold: false`, `hammerPrice: null`, numeric `currentBid`) so unsold bids never distort your average sold price calculations.
- **Normalized Vehicle Year & Mileage Enrichment**: Parses 4-digit model years and numeric odometer readings (converting `"18k-Mile"` → `18000`, `"1,600-Mile"` → `1600`, and distinguishing `miles` vs. `km`) from titles and descriptions.
- **Multi-Query Batching & Zero Duplicates**: Run dozens of chassis codes or models in a single run (`["Porsche 993", "Porsche 964", "Porsche 997 GT3"]`); every auction is deduplicated by unique listing ID.
- **Full-Resolution Featured Photography**: Automatically strips thumbnail crop constraints to deliver crisp, full-resolution vehicle image URLs ready for valuation reports and dashboards.

***

### 📥 Input Parameters

All input fields are optional. Running with an empty `{}` input automatically extracts 100 recently closed auctions across all marques.

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | Select | `"completed"` | `"completed"` (Completed Auctions & Sold Prices), `"live"` (Live Active Auctions), or `"all"` (Live + Completed). |
| `searchTerms` | Array | `["Porsche 911"]` | Make, model, chassis code, or keyword list (e.g. `["Porsche 911", "BMW M3"]`). Leave empty to browse all auctions. |
| `outcomeFilter` | Select | `"all"` | Completed auction outcome filter: `"all"` (Sold + RNM), `"sold"` (Sold Only), or `"rnm"` (Reserve Not Met Only). |
| `noReserveOnly` | Boolean | `false` | Return only No-Reserve auctions. |
| `premiumOnly` | Boolean | `false` | Return only Bring a Trailer Premium and White Glove listings. |
| `yearMin` | Integer | — | Minimum vehicle model year (e.g. `1965`). |
| `yearMax` | Integer | — | Maximum vehicle model year (e.g. `1998`). |
| `priceMin` | Integer | — | Minimum bid or sold hammer price in USD (e.g. `25000`). |
| `priceMax` | Integer | — | Maximum bid or sold hammer price in USD (e.g. `200000`). |
| `origin` | Select | `""` | Filter by vehicle marque origin (American, German, Italian, Japanese, British, French, Swedish, etc.). |
| `era` | Select | `""` | Filter by production decade (`2020s`, `2010s`, `2000s`, `1990s`, `1980s`, `1970s`, `1960s`, `1950s`, etc.). |
| `category` | Select | `""` | Filter by vehicle category (Convertibles, Truck & 4x4, Race Cars, Motorcycles, Hot Rods, Wagons, Projects, etc.). |
| `country` | Select | `""` | Filter by seller / vehicle location country (`US`, `CA`, `GB`, `DE`, `IT`, `FR`, `NL`, `BE`, `JP`, etc.). |
| `recency` | Select | `""` | Completed closing time window: `""` (All Time), `"7D"`, `"30D"`, `"1Y"`, `"2Y"`, `"5Y"`. |
| `excludeKeywords` | String | `""` | Space-separated words to exclude from matching results (e.g. `"wheels seats literature"`). |
| `sortBy` | Select | `"td"` | `"td"` (Recently Closed / Ending Soonest), `"bd"` (Highest Bid / Price), `"vd"` (Most Popular), `"ta"` (Oldest / Ending Latest). |
| `maxItems` | Integer | `100` | Maximum total auctions to return (`50` prefilled for quick runs; set `0` for unlimited pagination). |
| `proxyConfiguration` | Object | `{ "useApifyProxy": true }` | Apify Proxy configuration. Datacenter proxies are fast and cost-effective. |

***

### 📤 Output Data Fields

Each dataset item represents one Bring a Trailer auction listing with standardized field names and clean native JSON types.

#### 🏁 Auction Outcome & Pricing

| Field | Type | Coverage | Description |
|---|---|---|---|
| `id` | Number | 🟢 High | Unique Bring a Trailer listing identifier |
| `auctionStatus` | String | 🟢 High | Normalized state: `"sold"`, `"reserve_not_met"`, `"live"`, or `"withdrawn"` |
| `isSold` | Boolean | 🟢 High | `true` strictly when the vehicle sold at auction |
| `hammerPrice` | Number / Null | 🟡 Conditional | Realized final sale price when `isSold` is `true` (`null` on live or reserve-not-met lots) |
| `currentBid` | Number | 🟢 High | Current high bid (live mode) or final high bid achieved (completed mode) |
| `priceFormatted` | String | 🟢 High | Display currency and price string (e.g. `"USD $232,000"`) |
| `currency` | String | 🟢 High | ISO currency code (`"USD"`, `"CAD"`, `"EUR"`, `"GBP"`) |
| `soldDate` | String | 🟡 Conditional | ISO `YYYY-MM-DD` closing date on completed auctions (e.g. `"2026-11-12"`) |
| `soldTextClean` | String | 🟡 Conditional | Clean HTML-stripped outcome line (e.g. `"Sold for USD $29,500 on 11/12/2026"`) |
| `endDate` | String | 🟢 High | Exact ISO 8601 auction closing timestamp |

#### 🚗 Vehicle Identity & Specifications

| Field | Type | Coverage | Description |
|---|---|---|---|
| `title` | String | 🟢 High | Full Bring a Trailer listing title |
| `year` | Number / Null | 🟢 High | 4-digit vehicle model year extracted from metadata, title, or summary |
| `make` | String | 🟢 High | Standardized vehicle marque / manufacturer (e.g. `"Porsche"`, `"BMW"`, `"Ferrari"`) |
| `model` | String | 🟢 High | Model, chassis designation, trim, and transmission notes from title |
| `era` | String | 🟢 High | Normalized production decade (e.g. `"1990s"`, `"2010s"`, `"2020s"`) |
| `mileage` | Number / Null | 🟢 High | Numeric odometer reading parsed from title or vehicle summary (e.g. `18000`) |
| `mileageUnit` | String / Null | 🟢 High | Odometer unit (`"miles"` or `"km"`) when mileage is stated |
| `vin` | String | 🟡 Conditional | 17-character chassis VIN when exposed in listing search metadata (primarily live lots) |
| `origin` | String | 🟢 High | Marque country of origin (e.g. `"German"`, `"Italian"`, `"Japanese"`, `"American"`) |
| `categories` | Array | 🟡 Conditional | Specialty category tags when assigned (e.g. `["Convertibles"]`, `["Truck & 4x4"]`) |

#### 🏷️ Listing Flags, Location & Engagement

| Field | Type | Coverage | Description |
|---|---|---|---|
| `noReserve` | Boolean | 🟢 High | `true` if offered at No Reserve |
| `isPremium` | Boolean | 🟢 High | `true` for curated BaT Plus / White Glove listings |
| `isRepeat` | Boolean | 🟢 High | `true` if the vehicle is a BaT Alumni repeat auction |
| `countryCode` | String | 🟢 High | Two-letter seller location country code (e.g. `"US"`, `"CA"`, `"GB"`) |
| `country` | String | 🟢 High | Full country name where the vehicle is located |
| `commentsCount` | Number / Null | 🟡 Conditional | Total comments and bid entries when reported in listing summary |
| `viewsCount` | Number / Null | 🟡 Conditional | Total listing views when reported |
| `watchersCount` | Number / Null | 🟡 Conditional | Total active watchers when reported |

#### 📸 Content, Imagery & Metadata

| Field | Type | Coverage | Description |
|---|---|---|---|
| `excerpt` | String | 🟢 High | Clean HTML-stripped vehicle summary covering drivetrain, colors, options, and history |
| `thumbnailUrl` | String | 🟢 High | Clean full-resolution featured photograph URL |
| `url` | String | 🟢 High | Canonical Bring a Trailer listing URL |
| `scrapedAt` | String | 🟢 High | ISO 8601 timestamp when the record was extracted |

***

### 💻 Sample Output (JSON)

#### Example 1: Completed Sold Auction (`mode: "completed"`)

```json
{
  "id": 126421616,
  "title": "18k-Mile 2004 Volvo S60R",
  "auctionStatus": "sold",
  "isSold": true,
  "hammerPrice": 29500,
  "currentBid": 29500,
  "priceFormatted": "USD $29,500",
  "currency": "USD",
  "soldDate": "2026-11-12",
  "soldTextClean": "Sold for USD $29,500 on 11/12/2026",
  "year": 2004,
  "make": "Volvo",
  "model": "S60R",
  "era": "2000s",
  "mileage": 18000,
  "mileageUnit": "miles",
  "vin": "",
  "noReserve": true,
  "isPremium": false,
  "isRepeat": false,
  "origin": "Swedish",
  "categories": [],
  "countryCode": "US",
  "country": "United States",
  "endDate": "2026-11-12T22:14:05.000Z",
  "commentsCount": null,
  "viewsCount": null,
  "watchersCount": null,
  "excerpt": "This 2004 Volvo S60R 2.5T has been driven 18k miles by its two owners, the second of whom kept it for a total of 18 years. It was configured with over $7k in options including the Sport, Premium, Climate, and Touring packages.",
  "thumbnailUrl": "https://bringatrailer.com/wp-content/uploads/2026/11/DSC08621-HDR-scaled-copy-2026-11-04-v0z-e25adc9b103ec35aada0ad8732313a88.jpg",
  "url": "https://bringatrailer.com/listing/2004-volvo-s60r-13/",
  "scrapedAt": "2026-11-13T11:35:00.000Z"
}
```

#### Example 2: Live Active Auction (`mode: "live"`)

```json
{
  "id": 124412741,
  "title": "1,600-Mile 2018 Porsche 911 GT2 RS Weissach",
  "auctionStatus": "live",
  "isSold": false,
  "hammerPrice": null,
  "currentBid": 600000,
  "priceFormatted": "USD $600,000",
  "currency": "USD",
  "soldDate": "",
  "soldTextClean": "",
  "year": 2018,
  "make": "Porsche",
  "model": "911 GT2 RS Weissach",
  "era": "2010s",
  "mileage": 1600,
  "mileageUnit": "miles",
  "vin": "WP0AE2A93JS186153",
  "noReserve": false,
  "isPremium": true,
  "isRepeat": false,
  "origin": "German",
  "categories": [],
  "countryCode": "US",
  "country": "United States",
  "endDate": "2026-11-13T18:00:00.000Z",
  "commentsCount": null,
  "viewsCount": null,
  "watchersCount": null,
  "excerpt": "This 2018 Porsche 911 GT2 RS has 1,600 miles and was ordered with the $18k Weissach Package in addition to the Extended Deviated Stitching Interior Package, which added yellow stitching to the carbon-fiber full bucket seats, dashboard, center armrest, and door panels.",
  "thumbnailUrl": "https://bringatrailer.com/wp-content/uploads/2026/10/DSC08977-scaled-copy-2026-10-14-lk1-e33acf1f96802e7d796a518f122937f6.jpg",
  "url": "https://bringatrailer.com/listing/2018-porsche-911-gt2-rs-103/",
  "scrapedAt": "2026-11-13T11:35:02.000Z"
}
```

***

### 🧪 Ready-to-Use Input Recipes

<details>
<summary><strong>1. Air-Cooled Porsche 911 Sold Valuation Comps (1974–1998)</strong></summary>

```json
{
  "mode": "completed",
  "searchTerms": ["Porsche 911"],
  "outcomeFilter": "sold",
  "yearMin": 1974,
  "yearMax": 1998,
  "excludeKeywords": "wheels seats literature",
  "sortBy": "td",
  "maxItems": 300
}
```

</details>

<details>
<summary><strong>2. Reserve-Not-Met Exotic Seller Leads (Last 30 Days)</strong></summary>

```json
{
  "mode": "completed",
  "outcomeFilter": "rnm",
  "priceMin": 75000,
  "recency": "30D",
  "sortBy": "bd",
  "maxItems": 200
}
```

</details>

<details>
<summary><strong>3. Snapshot All Live No-Reserve Auctions Closing Soonest</strong></summary>

```json
{
  "mode": "live",
  "searchTerms": [],
  "noReserveOnly": true,
  "sortBy": "td",
  "maxItems": 500
}
```

</details>

<details>
<summary><strong>4. Multi-Model 1990s JDM Collector Index</strong></summary>

```json
{
  "mode": "completed",
  "searchTerms": [
    "Nissan Skyline GT-R",
    "Toyota Supra Turbo",
    "Mazda RX-7",
    "Acura NSX"
  ],
  "era": "1990",
  "origin": "9",
  "outcomeFilter": "sold",
  "maxItems": 400
}
```

</details>

***

### 🚀 How to Run

#### Apify Console

1. Open **Bring a Trailer Scraper** in Apify Console.
2. Select **Auction Mode** (`Completed Auctions & Sold Prices` or `Live Active Auctions`).
3. Enter your target makes/models in **Search Keywords** and configure optional year, price, or outcome filters.
4. Click **Start** and download your results in **JSON, CSV, or Excel** from the Dataset tab.

#### cURL / REST API

```bash
curl --request POST \
  --url "https://api.apify.com/v2/acts/haketa~bringatrailer-scraper/runs?token=YOUR_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
    "mode": "completed",
    "searchTerms": ["Porsche 911", "BMW M3"],
    "outcomeFilter": "sold",
    "maxItems": 150
  }'
```

#### Python (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")

run = client.actor("haketa/bringatrailer-scraper").call(run_input={
    "mode": "completed",
    "searchTerms": ["Ferrari 360", "Ferrari F430"],
    "outcomeFilter": "sold",
    "maxItems": 200,
})

for lot in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(lot["soldDate"], lot["title"], lot["hammerPrice"], lot["mileage"])
```

#### Node.js (`apify-client`)

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

const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });

const run = await client.actor('haketa/bringatrailer-scraper').call({
    mode: 'live',
    searchTerms: ['Porsche'],
    noReserveOnly: true,
    maxItems: 100,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.table(items, ['title', 'currentBid', 'year', 'mileage', 'endDate']);
```

***

### 🔗 Integrations & Automation Workflows

- **Google Sheets Valuation Trackers**: Connect the **Run Succeeded** trigger via Apify's native Google Sheets integration, Zapier, or Make to append daily sold comps directly into pricing spreadsheets.
- **Slack / Email Deal Alerts**: Schedule `mode: "live"` runs every hour using **Apify Schedules** and fire a webhook whenever a No-Reserve target model is closing within hours below your target threshold.
- **Synchronous API Pipelines**: In addition to the full Apify Dataset, results are mirrored to the default Key-Value Store `OUTPUT` key so `run-sync` API calls receive immediate JSON payloads.

***

### ⚠️ Limitations & Practical Notes

- **Automobilia & Parts Exclusion**: Searches like `"Porsche 911"` can naturally match vintage wheels, seats, or factory manuals auctioned on Bring a Trailer. Use `excludeKeywords: "wheels seats literature manual sign"` or `priceMin: 10000` when building pure vehicle valuation datasets.
- **VIN Availability**: Bring a Trailer includes 17-character VINs inside search metadata on most modern live listings (`mode: "live"`), while historical completed archive summaries carry VINs only when explicitly mentioned in the excerpt text.
- **Mileage Statements**: Classic vehicles with 5-digit mechanical odometers (True Mileage Unknown / TMU) may not state a numeric total mileage in the title or opening summary; in those cases `mileage` safely returns `null` rather than guessing.

***

### ❓ Frequently Asked Questions

#### Does this scraper require a Bring a Trailer login or API key?

No. All live and completed auction data is extracted cleanly without user credentials, browser cookies, or third-party keys.

#### How is Reserve Not Met (RNM) handled vs. Sold auctions?

Every completed lot includes `auctionStatus` (`"sold"` vs. `"reserve_not_met"`), boolean `isSold`, `hammerPrice` (populated strictly when sold, `null` when unsold), and `currentBid` (populated on 100% of lots). You can also set `outcomeFilter: "sold"` or `outcomeFilter: "rnm"` upstream.

#### Do I need residential proxies?

No. Standard Apify datacenter proxies (`useApifyProxy: true`) work reliably and keep compute and bandwidth usage minimal.

#### How far back does completed auction history go?

Bring a Trailer's completed archive covers over 274,000+ closed auctions dating back to 2014. Combine `yearMin`/`yearMax`, `era`, `origin`, or `sortBy: "ta"` (Oldest first) to slice large historical segments systematically.

***

### 📋 Changelog

#### v0.1 (2026-11)

- Initial release supporting `completed` (274,000+ archive), `live` (~1,100–1,400 active lots), and `all` auction modes.
- Added clean parsing for `auctionStatus`, `isSold`, `hammerPrice`, `soldDate` (ISO `YYYY-MM-DD`), and HTML-stripped `soldTextClean`.
- Implemented multi-source fallback enrichment for 4-digit `year`, numeric `mileage` (`miles`/`km`), `make`, `model`, `era`, `origin`, and full-resolution `thumbnailUrl`.
- Added native filtering for `outcomeFilter`, `noReserveOnly`, `premiumOnly`, `yearMin`/`yearMax`, `priceMin`/`priceMax`, `origin`, `era`, `category`, `country`, `recency`, and `excludeKeywords`.

# Actor input Schema

## `mode` (type: `string`):

Choose whether to extract historical completed auction results with final hammer prices, currently active live auctions, or both.

## `searchTerms` (type: `array`):

Search by make, model, chassis code, or keyword (e.g. "Porsche 911", "BMW E30 M3", "Ferrari 360", "Land Cruiser"). Multiple terms run sequentially in one job. Leave empty to browse all auctions matching your filters.

## `outcomeFilter` (type: `string`):

Filter completed auctions by final outcome: all closed auctions, verified sold lots only, or reserve-not-met high bids only.

## `noReserveOnly` (type: `boolean`):

When enabled, returns only No-Reserve auctions where the vehicle sells to the highest bidder regardless of price.

## `premiumOnly` (type: `boolean`):

When enabled, returns only Bring a Trailer Premium and White Glove curated collector listings.

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

Earliest vehicle manufacturing year to include (e.g. 1965).

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

Latest vehicle manufacturing year to include (e.g. 1998).

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

Minimum current bid or realized hammer price in USD (e.g. 25000).

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

Maximum current bid or realized hammer price in USD (e.g. 150000).

## `origin` (type: `string`):

Filter vehicles by manufacturer country/heritage (e.g. German, Italian, Japanese, American, British).

## `era` (type: `string`):

Filter vehicles by production decade.

## `category` (type: `string`):

Filter by Bring a Trailer specialty vehicle or automobilia category.

## `country` (type: `string`):

Filter listings by the country where the vehicle is physically located.

## `recency` (type: `string`):

Restrict completed auction results to a recent closing window.

## `excludeKeywords` (type: `string`):

Optional words to exclude from auction results (e.g. "wheels project replica").

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

Order in which auction lots are returned.

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

Maximum total auctions to extract across the run. Default is 100; set to 0 for unlimited pagination.

## `proxyConfiguration` (type: `object`):

Apify Proxy settings. Standard datacenter proxies work reliably and keep run costs minimal.

## Actor input object example

```json
{
  "mode": "completed",
  "searchTerms": [
    "Porsche 911"
  ],
  "outcomeFilter": "all",
  "noReserveOnly": false,
  "premiumOnly": false,
  "origin": "",
  "era": "",
  "category": "",
  "country": "",
  "recency": "",
  "sortBy": "td",
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `id` (type: `string`):

Unique Bring a Trailer listing ID

## `title` (type: `string`):

Auction listing title

## `auctionStatus` (type: `string`):

live, sold, reserve_not_met, or withdrawn

## `isSold` (type: `string`):

Whether the vehicle sold at auction

## `hammerPrice` (type: `string`):

Realized sold price when sold

## `currentBid` (type: `string`):

Numeric current or final high bid

## `priceFormatted` (type: `string`):

Formatted currency and bid amount

## `currency` (type: `string`):

ISO currency code (USD, CAD, EUR, GBP)

## `soldDate` (type: `string`):

ISO YYYY-MM-DD auction closing date

## `soldTextClean` (type: `string`):

Clean HTML-stripped outcome text

## `year` (type: `string`):

Vehicle model year

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

Vehicle manufacturer / brand

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

Vehicle model & trim

## `era` (type: `string`):

Production decade (e.g. 1990s, 2010s)

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

Extracted odometer reading

## `mileageUnit` (type: `string`):

miles or km

## `vin` (type: `string`):

17-character VIN when present in metadata

## `noReserve` (type: `string`):

True if offered without reserve

## `isPremium` (type: `string`):

BaT Plus / White Glove curated listing

## `isRepeat` (type: `string`):

Previously auctioned on Bring a Trailer

## `origin` (type: `string`):

Vehicle marque country of origin

## `categories` (type: `string`):

Assigned vehicle categories

## `countryCode` (type: `string`):

ISO two-letter seller country code

## `country` (type: `string`):

Seller country name

## `endDate` (type: `string`):

Exact ISO 8601 auction end timestamp

## `commentsCount` (type: `string`):

Number of comments/bids in thread

## `viewsCount` (type: `string`):

Listing page views when reported

## `watchersCount` (type: `string`):

Active watchers count when reported

## `excerpt` (type: `string`):

Clean vehicle summary and equipment notes

## `thumbnailUrl` (type: `string`):

Full-resolution featured vehicle photograph

## `url` (type: `string`):

Canonical Bring a Trailer auction URL

## `scrapedAt` (type: `string`):

ISO 8601 extraction timestamp

# 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 = {
    "mode": "completed",
    "searchTerms": [
        "Porsche 911"
    ],
    "outcomeFilter": "all",
    "sortBy": "td",
    "maxItems": 50,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("haketa/bringatrailer-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 = {
    "mode": "completed",
    "searchTerms": ["Porsche 911"],
    "outcomeFilter": "all",
    "sortBy": "td",
    "maxItems": 50,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("haketa/bringatrailer-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 '{
  "mode": "completed",
  "searchTerms": [
    "Porsche 911"
  ],
  "outcomeFilter": "all",
  "sortBy": "td",
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call haketa/bringatrailer-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,haketa/bringatrailer-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/4FnPIheBqtpfkhCZl/builds/wwv1HtDcXp5qAYsCa/openapi.json
