# Copart US Salvage Auction Scraper (`xerneas_ftw/copart-us`) Actor

Fast, low-cost Copart US (copart.com) salvage auction lots: current bid, damage, odometer, title type and state, run and drive, keys, engine, sale date, yard, photos. Excludes non-repairable lots by default.

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

## Pricing

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

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

## Copart US Scraper: salvage car auction data, fast and cheap

Scrape vehicle lots from **Copart** (copart.com), the largest salvage car auction in the United States. You get clean JSON with make, model, year, current bid, odometer, damage, run-and-drive status, title type and state, keys, engine, transmission, sale date, yard location and photos. Use it as an unofficial Copart API for salvage, clean-title and repairable car data. Export to JSON, CSV or Excel, or call it from your own code.

- **Cheap:** $0.60 per 1,000 lots, plus $0.0005 per run.
- **Fast:** 100 lots per request, with no browser.
- **Filtered at the source:** make, model, year, mileage and maximum bid are filtered by Copart itself.
- **Non-repairable lots excluded by default:** certificate-of-destruction, junk and parts-only lots are dropped on Copart's side, so you don't pay for cars that can't go back on the road.

### What can you use it for?

- **Bidding research:** watch current bids on the makes and models you rebuild or export.
- **Repairable car sourcing:** find clean-title and salvage-title cars under your budget before the auction day.
- **Auction alerts:** schedule runs and get new lots that match your filters.
- **Market data:** build salvage price, damage and title statistics in a spreadsheet or database.

### How to scrape Copart

1. Search on [copart.com](https://www.copart.com/) with the filters you want and copy the results URL, or just type a make into `searchQuery`.
2. Paste it into `startUrls`, and set `maxItems` and `maxBid`.
3. Click **Start**. Download the lots as JSON, CSV or Excel, or read them through the API.

### Input

Paste any Copart search URL, or build one with filters:

```json
{
  "startUrls": ["https://www.copart.com/lotSearchResults?free=true&query=bmw"],
  "maxItems": 100,
  "maxBid": 5000,
  "excludeUnrepairable": true
}
```

| Field | Description |
|---|---|
| `startUrls` | Copart `lotSearchResults` URLs: a simple `?query=…` search, or a `?searchCriteria={…}` URL with filters such as `lot_make_desc`, `lot_year` or `odometer_reading_received`. |
| `searchQuery` | Free-text search, e.g. `toyota camry` (every word must match); overrides the URL's query. |
| `maxItems` | How many lots to return (default 20). |
| `maxBid` | Only lots whose current bid is at or below this, in the lot's currency (USD; CAD for the few Canadian-yard lots). |
| `excludeUnrepairable` | Drop lots in Copart's NON-REPAIRABLE title group (default `true`). |
| `useCache` / `cacheTtlMinutes` | Repeating the same search within 15 minutes returns the stored results instantly. Bids move, so keep this short, or set `useCache: false`. |

Lots come in Copart's order: soonest auction first.

#### Filtered search URL example

```
https://www.copart.com/lotSearchResults?searchCriteria={"query":["*"],"filter":{"MAKE":["lot_make_desc:\"BMW\""],"YEAR":["lot_year:[2018 TO 2020]"],"ODM":["odometer_reading_received:[0 TO 60000]"]}}
```

### Output

```json
{
  "lotNumber": "60985316",
  "title": "2021 BMW X1 XDRIVE28I",
  "lotMakeDesc": "BMW",
  "lotModelDesc": "X1",
  "trim": "XDRIVE28I",
  "lotYear": 2021,
  "currentBid": 3550,
  "buyNowPrice": null,
  "currency": "USD",
  "estimatedRetailValue": 21658,
  "repairCost": 10002,
  "odometer": 57127,
  "odometerUnit": "miles",
  "odometerStatus": "ACTUAL",
  "primaryDamage": "REAR END",
  "secondaryDamage": "FRONT END",
  "runAndDrive": "RUNS AND DRIVES",
  "category": "SALVAGE TITLE",
  "titleType": "CERT OF TITLE-SALVAGE",
  "titleState": "NH",
  "vin": null,
  "vinMasked": "WBXJG9C07M5******",
  "saleDate": "2026-11-12T15:00:00.000Z",
  "saleStatus": "Minimum Bid",
  "fuelType": "GAS",
  "color": "WHITE",
  "engine": "2.0L 4",
  "cylinders": 4,
  "transmission": "AUTOMATIC",
  "driveTrain": "ALL WHEEL DRIVE",
  "bodyStyle": "SPORT UTILITY VEHICLE",
  "hasKeys": true,
  "location": "NH - CANDIA",
  "yardCity": "CANDIA",
  "yardState": "NH",
  "yardCountry": "USA",
  "url": "https://www.copart.com/lot/60985316/salvage-2021-bmw-x1-xdrive28i-nh-candia",
  "images": ["https://cs.copart.com/…_ful.jpg", "https://cs.copart.com/…_thb.jpg"]
}
```

- `category` is Copart's title group: `CLEAN TITLE`, `SALVAGE TITLE` or `NON-REPAIRABLE`. `titleType` is the title document itself and `titleState` the state that issued it.
- `odometer` is in miles and is `null` when Copart recorded no reading, rather than a false 0. `odometerStatus` is `ACTUAL`, `NOT ACTUAL` or `EXEMPT`.
- `vin` is `null` when Copart masks it, which it does for visitors who are not logged in. `vinMasked` then holds the part Copart shows: the first 11 characters, enough to decode make, model, engine and model year.
- `estimatedRetailValue` and `repairCost` are Copart's own figures in USD and are `null` when Copart gives none.
- copart.com also lists lots at Copart's Canadian yards. Those have `yardCountry: "CAN"`, `currency: "CAD"` and `odometerUnit: "km"`.
- `hasKeys` is `true`, `false`, or `null` when Copart doesn't say.
- `images` holds the full-size photo first, then the thumbnail.

The first 18 fields of the [Copart UK Scraper](https://apify.com/xerneas_ftw/copart-uk) have the same names here, so one integration covers both.

### Pricing

Pay per event: **$0.0005 per run + $0.0006 per lot**.

| Lots | Cost |
|---|---|
| 100 | $0.06 |
| 1,000 | $0.60 |
| 10,000 | $6.00 |

The actor respects your run's maximum charge. It stops fetching once that limit is reached.

### Use it from your code

Call the scraper through the Apify API, here with the Python client (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("xerneas_ftw/copart-us").call(run_input={
    "searchQuery": "toyota camry",
    "maxItems": 200,
    "maxBid": 3000,
})
for lot in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(lot["title"], lot["currentBid"], lot["category"], lot["titleState"])
```

It also works with JavaScript, plain HTTP, Make, Zapier, n8n and Google Sheets through Apify integrations.

### FAQ

**Is there an official Copart API?** Not a public one. This actor gives you the lot data as structured JSON.

**Do I need a Copart membership?** No. It reads public lot listings, the same ones anyone can browse without logging in.

**Does it cover Copart UK or other countries?** Not this actor. For copart.co.uk use [Copart UK Scraper](https://apify.com/xerneas_ftw/copart-uk).

**Can I get the full VIN?** No. Copart shows the full VIN only to logged-in members, and this actor doesn't log in.

**What is a non-repairable lot?** A vehicle sold with a certificate of destruction, junk or parts-only title. It can never be registered for road use again, which is why these lots are excluded by default.

### Legal

This actor collects only publicly available auction listing data and no personal data. You are responsible for using it in line with Copart's terms and applicable law.

# Actor input Schema

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

copart.com /lotSearchResults URLs, either ?searchCriteria={JSON with query + Solr filter} or ?query=bmw. Empty = all lots.

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

Overrides the query of every start URL (filters are kept).

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

Total lots across all start URLs.

## `maxBid` (type: `integer`):

Filtered server-side and re-checked on the live bid. Applies in the lot's own currency (CAD for Canadian-yard lots).

## `excludeUnrepairable` (type: `boolean`):

Drops lots in Copart's NON-REPAIRABLE title group (certificates of destruction, junk and parts-only titles). Filtered server-side, so these lots are never downloaded.

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

Default: Apify datacenter proxy (not billed per GB). After 2 consecutive blocks the run switches to the fallback proxy.

## `fallbackProxyConfiguration` (type: `object`):

Used for the rest of the run once the primary proxy is blocked. Default: Apify Unblocker.

## `useCache` (type: `boolean`):

Serve repeat searches from a named key-value store within the TTL.

## `cacheTtlMinutes` (type: `integer`):

Bids change constantly; keep this short.

## `cacheStoreName` (type: `string`):

Named key-value store holding the cache.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.copart.com/lotSearchResults?free=true&query=bmw"
  ],
  "maxItems": 20,
  "excludeUnrepairable": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "fallbackProxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "UNBLOCKER"
    ]
  },
  "useCache": true,
  "cacheTtlMinutes": 15,
  "cacheStoreName": "copart-us-cache"
}
```

# Actor output Schema

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

Scraped listings in the default dataset.

## `stats` (type: `string`):

Requests made, bytes transferred, cache use and duration.

# 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 = {
    "startUrls": [
        "https://www.copart.com/lotSearchResults?free=true&query=bmw"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    },
    "fallbackProxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "UNBLOCKER"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("xerneas_ftw/copart-us").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 = {
    "startUrls": ["https://www.copart.com/lotSearchResults?free=true&query=bmw"],
    "proxyConfiguration": { "useApifyProxy": True },
    "fallbackProxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["UNBLOCKER"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("xerneas_ftw/copart-us").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 '{
  "startUrls": [
    "https://www.copart.com/lotSearchResults?free=true&query=bmw"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "fallbackProxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "UNBLOCKER"
    ]
  }
}' |
apify call xerneas_ftw/copart-us --silent --output-dataset

```

## MCP server setup

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

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/Jd3QQnN70WZ3pJjuP/builds/eGKenF0ckfkhWg9Jr/openapi.json
