# Copart Auction Scraper (`gio21/copart-scraper`) Actor

Scrape Copart vehicle auction data via direct API calls: lot number, make, model, year, damage, odometer, estimated retail value, repair cost, current bid, buy-it-now price and auction date. Search by keyword or lot URL.

- **URL**: https://apify.com/gio21/copart-scraper.md
- **Developed by:** [Gio](https://apify.com/gio21) (community)
- **Categories:** E-commerce, Business, Lead generation
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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 web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

## Copart Auction Scraper

Extract vehicle auction data from [Copart](https://www.copart.com), the world's largest online vehicle auction platform, using direct API calls (no browser, fast and reliable).

Each lot includes make, model, year, damage, odometer, estimated retail value, repair cost, current bid, buy-it-now price, title info, location and auction date.

Built for car dealers, dismantlers, exporters, vehicle-history products and salvage-market analysis.

### Features

- **Keyword search** - same as the Copart search bar ("tesla model 3", "ford f-150", "harley")
- **Search URLs and lot URLs** - paste a Copart search URL or individual lot links
- Direct API access: 100 lots per request, relevance-ranked results
- Rich fields: damage (primary/secondary), odometer with brand, est. retail value, repair cost, bids, buy-it-now, transmission, engine, color, title state and code, keys, location, auction date/time and image
- Automatic pagination and de-duplication

### Input

| Field | Type | Description |
|-------|------|-------------|
| `searchQuery` | string | Search keyword (e.g. "tesla"). |
| `startUrls` | array | Copart search URLs or lot URLs (https://www.copart.com/lot/12345678). Overrides `searchQuery`. |
| `maxItems` | integer | Max lots. `0` = no limit. Default `100`. |
| `proxyConfiguration` | object | Residential proxy recommended (default). |

#### Example input

```json
{
  "searchQuery": "tesla model 3",
  "maxItems": 100
}
```

### Output

```json
{
  "lotNumber": "41609716",
  "year": 2022,
  "make": "TESLA",
  "model": "MODEL 3",
  "title": "2022 TESLA MODEL 3",
  "vin": "5YJ3E1EA8NF******",
  "primaryDamage": "FRONT END",
  "secondaryDamage": null,
  "odometer": 40352,
  "estimatedRetailValue": 23635,
  "repairCost": 9814,
  "currentBid": 8250,
  "buyItNowPrice": null,
  "color": "WHITE",
  "titleState": "CA",
  "location": "CA - SAN JOSE",
  "auctionDate": "2026-07-08T00:00:00.000Z",
  "url": "https://www.copart.com/lot/41609716"
}
```

### Common use cases

- Source salvage and clean-title inventory by make, model and damage type
- Price arbitrage: estimated retail value vs current bid
- Export-market sourcing and fleet rebuilding
- Feed vehicle-history and valuation databases
- Track auction dates for lots you follow

### Pricing

Pay per result: a small fee to start the run plus a per-lot fee. Errors and duplicates are never charged.

### FAQ

**Are VINs complete?** Copart masks the last VIN characters for non-members; the scraper returns what Copart exposes publicly.

**Can I filter by damage, year or location?** Perform the search on copart.com with your filters, copy the URL and pass it via `startUrls`. Keyword-based filtering also works well ("2020 tesla rear end").

**Is this affiliated with Copart?** No. This is an independent tool for extracting publicly available data. Please respect Copart's terms of service.

# Actor input Schema

## `searchQuery` (type: `string`):

What to search on Copart (e.g. "tesla", "ford f-150", "harley"). Same as typing in the Copart search bar.

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

Copart search URLs (https://www.copart.com/lotSearchResults/?free=true\&query=...) or single lot URLs (https://www.copart.com/lot/12345678). Overrides the search keyword.

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

Maximum number of lots to return. Set 0 for no limit.

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

Proxy used for requests. Residential proxy is recommended, Copart may block datacenter IPs.

## Actor input object example

```json
{
  "searchQuery": "tesla",
  "startUrls": [
    "https://www.copart.com/lotSearchResults/?free=true&query=tesla"
  ],
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "searchQuery": "tesla"
};

// Run the Actor and wait for it to finish
const run = await client.actor("gio21/copart-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 = { "searchQuery": "tesla" }

# Run the Actor and wait for it to finish
run = client.actor("gio21/copart-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 '{
  "searchQuery": "tesla"
}' |
apify call gio21/copart-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/gishCpt22BOcURLoe/builds/2xgtJZGouLN8cMFYn/openapi.json
