# Bring a Trailer Scraper (`silentflow/bringatrailer-scraper`) Actor

Extract auction data from Bring a Trailer (BaT). Get sold prices, vehicle specs, VIN, mileage, seller info, and photos from 230,000+ completed vehicle auctions. Perfect for car market analysis, dealer intelligence, insurance valuations, and investment research.

- **URL**: https://apify.com/silentflow/bringatrailer-scraper.md
- **Developed by:** [SilentFlow](https://apify.com/silentflow) (community)
- **Categories:** E-commerce
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.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/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

## Bring a Trailer Scraper

Extract auction data from [Bring a Trailer](https://bringatrailer.com) — the largest online auction platform for collector and enthusiast vehicles.

### ✨ Why use this scraper?

- 🚗 Access 230,000+ completed vehicle auction results with sold prices
- 🔍 Search by any keyword — make, model, year, or any term
- 📋 Full vehicle specs including VIN, mileage, engine, transmission, and colors
- 💰 Sold prices, bid counts, and auction dates for market analysis
- 📸 Gallery photos from each listing
- 👤 Seller info and location data

### 🎯 Use cases

- **Car market analysis** — Track sold prices by make, model, and year to understand collector car valuations
- **Investment research** — Identify undervalued vehicles and market trends using historical auction data
- **Dealer intelligence** — Monitor competitor pricing and inventory on the most active enthusiast auction platform
- **Insurance valuation** — Get accurate market values for specialty and collector vehicles
- **Data journalism** — Analyze automotive market trends with structured, exportable data

### 📥 Input parameters

| Parameter | Description |
|-----------|-------------|
| **Search keywords** | Keywords to search (e.g. "Porsche 911", "BMW M3 E30") |
| **Start URLs** | Direct BaT listing or browse page URLs |
| **Maximum results** | How many results to return (default: 50) |
| **Enrich with detail pages** | Fetch full specs, VIN, photos from each listing (default: on) |

### 📊 Output data

Each result includes vehicle and auction data in JSON, CSV, or Excel format.

### 🗂️ Data fields

| Field | Description |
|-------|-------------|
| `title` | Full vehicle title |
| `price` | Sold price (numeric) |
| `priceFormatted` | Formatted price (e.g. "USD $35,000") |
| `currency` | Currency code |
| `status` | Auction status (sold/active) |
| `auctionEndDate` | When the auction ended |
| `totalBids` | Number of bids |
| `noReserve` | Whether it was a no-reserve auction |
| `vin` | Vehicle Identification Number |
| `mileage` | Odometer reading |
| `engine` | Engine specs |
| `transmission` | Transmission type |
| `exteriorColor` | Exterior color/paint |
| `interiorColor` | Interior color/upholstery |
| `essentials` | All listed vehicle essentials |
| `seller` | Seller username |
| `location` | Vehicle location |
| `imageUrl` | Main thumbnail |
| `imageUrls` | All gallery photos |
| `excerpt` | Listing description excerpt |
| `url` | Direct link to the BaT listing |

### 🚀 Examples

**Search for Porsche 911 auctions:**
```json
{
    "searches": ["Porsche 911"],
    "maxItems": 100
}
````

**Get data from specific listings:**

```json
{
    "startUrls": [
        {"url": "https://bringatrailer.com/listing/2007-porsche-boxster-s-24/"}
    ]
}
```

**Browse a model page:**

```json
{
    "startUrls": [
        {"url": "https://bringatrailer.com/bmw/e30-m3/"}
    ],
    "maxItems": 50
}
```

### 💻 Integrations

Use the [Apify API](https://docs.apify.com/api/v2) to integrate BaT auction data into your workflow — connect with Google Sheets, Airtable, Zapier, Make, and more.

### 📈 Performance & limits

- \~24 results per search from BaT browse pages
- Detail enrichment adds ~2-3 seconds per item
- Disable "Enrich with detail pages" for faster basic data collection

### 💡 Tips for best results

- Use specific keywords: "BMW E30 M3" works better than just "BMW"
- Browse page URLs (e.g. `/porsche/911/`) return the most recent completed auctions for that model
- Direct listing URLs give you full data for a specific auction

### ❓ FAQ

**Can I get active/ongoing auctions?**
Active auctions require a BaT account. This scraper focuses on completed auctions which are publicly accessible.

**How far back does the data go?**
BaT has auction results going back to their early years. Browse pages show the most recent results first.

### 📬 Support

For questions or issues, reach out via the Apify console.

# Actor input Schema

## `searches` (type: `array`):

Keywords to search for. Each keyword finds matching completed auctions.

## `startUrls` (type: `array`):

BaT listing URLs (e.g. https://bringatrailer.com/listing/2007-porsche-boxster-s-24/) or browse pages (e.g. https://bringatrailer.com/porsche/911/).

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

Maximum number of auction results to return.

## `includeDetails` (type: `boolean`):

Fetch each listing page for full specs (VIN, mileage, colors, engine, seller, photos). Disable for faster results with basic data only.

## Actor input object example

```json
{
  "searches": [
    "Porsche 911"
  ],
  "startUrls": [
    {
      "url": "https://bringatrailer.com/porsche/911/"
    }
  ],
  "maxItems": 50,
  "includeDetails": true
}
```

# Actor output Schema

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

Complete auction data in JSON format.

## `resultsCSV` (type: `string`):

CSV format for spreadsheet analysis.

## `resultsExcel` (type: `string`):

Excel format export.

# 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 = {
    "searches": [
        "Porsche 911"
    ],
    "startUrls": [
        {
            "url": "https://bringatrailer.com/porsche/911/"
        }
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("silentflow/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 = {
    "searches": ["Porsche 911"],
    "startUrls": [{ "url": "https://bringatrailer.com/porsche/911/" }],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("silentflow/bringatrailer-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 '{
  "searches": [
    "Porsche 911"
  ],
  "startUrls": [
    {
      "url": "https://bringatrailer.com/porsche/911/"
    }
  ],
  "maxItems": 50
}' |
apify call silentflow/bringatrailer-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Bring a Trailer Scraper",
        "description": "Extract auction data from Bring a Trailer (BaT). Get sold prices, vehicle specs, VIN, mileage, seller info, and photos from 230,000+ completed vehicle auctions. Perfect for car market analysis, dealer intelligence, insurance valuations, and investment research.",
        "version": "1.0",
        "x-build-id": "5xOg40Rg9M2T0tzLc"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/silentflow~bringatrailer-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-silentflow-bringatrailer-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/silentflow~bringatrailer-scraper/runs": {
            "post": {
                "operationId": "runs-sync-silentflow-bringatrailer-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/silentflow~bringatrailer-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-silentflow-bringatrailer-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",
                "properties": {
                    "searches": {
                        "title": "Search keywords",
                        "type": "array",
                        "description": "Keywords to search for. Each keyword finds matching completed auctions.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "startUrls": {
                        "title": "Start URLs",
                        "type": "array",
                        "description": "BaT listing URLs (e.g. https://bringatrailer.com/listing/2007-porsche-boxster-s-24/) or browse pages (e.g. https://bringatrailer.com/porsche/911/).",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "maxItems": {
                        "title": "Maximum results",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Maximum number of auction results to return.",
                        "default": 50
                    },
                    "includeDetails": {
                        "title": "Enrich with detail pages",
                        "type": "boolean",
                        "description": "Fetch each listing page for full specs (VIN, mileage, colors, engine, seller, photos). Disable for faster results with basic data only.",
                        "default": true
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
