# Copart API: US Auction Lots with VIN and Damage (`apiauto_space/copart-api`) Actor

US used-car auction lots from Copart as clean JSON: make, model, year, mileage, VIN, damage, bid, sale date. From the apiauto.space team, not affiliated with Copart. Does not scrape: reads the apiauto.space API with your own key.

- **URL**: https://apify.com/apiauto_space/copart-api.md
- **Developed by:** [Apiauto Space](https://apify.com/apiauto_space) (community)
- **Categories:** Developer tools, E-commerce
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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 API: US Auction Lots with VIN and Damage

Get used-car listings from Copart auctions in the USA as clean JSON: make, model, trim, year, mileage, price, VIN, damage, current bid, sale date, location and photos.
This Actor is made and maintained by the apiauto.space team. It is not affiliated with Copart. It does not scrape the Copart site: it reads a ready catalog through the apiauto.space API.
You need your own apiauto.space API key to run it. Apify does not sell that key.

### What data you get

Each car is one record in the dataset.

| Field | What it holds |
| --- | --- |
| `title`, `brand`, `model`, `trim` | Year, make, model and full version name, in Latin script |
| `year`, `mileage_km` | Model year and mileage in kilometres |
| `price`, `price_usd` | Price in USD, as decimal strings |
| `fuel`, `transmission`, `engine_cc`, `body_type`, `color` | Specifications |
| `location` | Country, region and city |
| `photos`, `photo_count` | Signed photo links, valid for about a day, and their number |
| `listing_url` | The listing at the source |
| `is_active`, `first_seen_at`, `last_seen_at`, `disappeared_at` | Whether the car is on sale, and when it was seen |
| `vin` | Vehicle identification number |
| `raw.damage_main`, `raw.damage_second`, `raw.title_doc` | Damage and title document |
| `raw.bid`, `raw.final_bid`, `raw.buy_now`, `raw.sale_date` | Current bid, final bid, buy-now price and auction date |
| `raw.lot_number`, `raw.odometer_mi`, `raw.drive`, `raw.cylinders` | Lot number, odometer in miles, drive and cylinders |

Values the source does not give are `null`. Mileage is in kilometres, converted from miles; `raw.odometer_mi` keeps the original. `price` is often `null` on a live auction: the running bid is in `raw.bid`, and `raw.buy_now` holds a buy-now price if there is one. Some lots have no body type, and `listing_url` can be `null`. A price filter leaves out lots without a price.

### How to use it

1. Enter your API key.
2. Set filters, or leave them empty to get the newest listings.
3. Set **Maximum records**: 20 by default, up to 1000 per run.
4. Run the Actor, then export the dataset as JSON, CSV or Excel, or read it through the Apify API.

#### Input example

```json
{
  "apiKey": "YOUR_API_KEY",
  "brand": "Ford",
  "model": "F-150",
  "yearMin": 2021,
  "mileageMaxKm": 100000,
  "sort": "price",
  "maxRecords": 20
}
```

#### Output example

```json
{
  "id": "copart:70254486",
  "market": "us",
  "source": "copart",
  "source_id": "70254486",
  "title": "2017 Nissan Rogue Sport",
  "brand": "Nissan",
  "model": "Rogue Sport",
  "generation": null,
  "trim": null,
  "year": 2017,
  "mileage_km": 216527,
  "fuel": "gasoline",
  "transmission": "automatic",
  "engine_cc": 2000,
  "body_type": "wagon",
  "color": "Red",
  "vin": "JN1BJ1CP4HW******",
  "price": {
    "amount": null,
    "currency": "USD"
  },
  "price_usd": null,
  "location": {
    "country": "US",
    "region": "CA",
    "city": "Palmdale"
  },
  "photos": [
    "https://api.apiauto.space/img/copart:70254486/1.jpg?exp=<expiry>&sig=<signature>",
    "https://api.apiauto.space/img/copart:70254486/2.jpg?exp=<expiry>&sig=<signature>"
  ],
  "photo_count": 13,
  "listing_url": null,
  "is_active": true,
  "first_seen_at": "2026-11-04T20:48:14.538181Z",
  "last_seen_at": "2026-11-04T20:48:14.538181Z",
  "disappeared_at": null,
  "updated_at": "2026-11-04T20:48:14.538181Z",
  "raw": {
    "fx": {
      "date": "2026-11-03",
      "source": "ECB",
      "currency": "USD",
      "usd_per_unit": "1"
    },
    "bid": null,
    "drive": "fwd",
    "seller": "unknown",
    "status": 3,
    "airbags": null,
    "buy_now": null,
    "condition": null,
    "cylinders": 4,
    "final_bid": null,
    "sale_date": "2026-11-10T20:00:00+00:00",
    "title_doc": "salvage",
    "lot_number": "70254486",
    "damage_main": "front",
    "odometer_mi": 134544,
    "seller_type": null,
    "damage_second": null,
    "source_values": {
      "fuel": "4",
      "trim": null,
      "brand": "NISSAN",
      "drive": "2",
      "model": "ROGUE SPORT",
      "engine": "2.0L 4",
      "body_type": "Wagon",
      "title_doc": "SALVAGE CERTIFICATE",
      "damage_main": "Front end",
      "transmission": "1",
      "damage_second": null
    }
  }
}
```

#### Change feed

Set **What to fetch** to the change feed to get events since a moment instead of cars: `added`, `disappeared`, `price_drop` and `price_up`. Use it on a schedule to track new cars and price changes. The feed needs a key on the Pro plan or higher; with a lower plan the run stops with a message that says so. Car filters do not apply to the feed.

### What it costs

| Who charges | For what |
| --- | --- |
| This Actor | No Actor fee |
| Apify | Your usual platform usage for the run |
| The key provider | The key itself, paid separately, outside Apify |

Every car or event the API returns spends one record of your key's quota.

Copart and IAAI share one US catalog in the API. The API can return lots of both auctions, and **each lot it returns spends a record of your quota, also when it belongs to IAAI**. The Actor saves only Copart lots, so a run can spend up to four times as many records as it saves. It stops reading at four times **Maximum records**, and the final message of the run says how many IAAI lots were counted.

**Maximum records** ends the run once that many records are saved. The Actor does not repeat a request after a network failure or a timeout, because the API may already have counted it. It repeats a request up to two times after an answer of 429, 500, 502 or 503. A response lost on the way, or a server error, may still be counted without any records reaching you.

### How your API key is handled

- The field is an Apify secret input. Apify keeps your input, with the key encrypted, in the `INPUT` record of the run's key-value store, and only the Actor can decrypt it.
- If you run the Actor on your own computer with `apify run`, the input stays in plain text in the local `storage/` folder. Delete that folder afterwards.
- The key is sent only to `api.apiauto.space`, over HTTPS, in a request header.
- The Actor does not write it to the log or the dataset, adds no other copies to the key-value store, and does not quote it in error messages.
- Requests go to one fixed address: the input cannot change it, and redirects are refused.

### Errors

| Message | What to do |
| --- | --- |
| The API key was refused | Check the key. It may be wrong or revoked, or its subscription may have ended |
| The quota of this key is spent | Wait until the date in the message or change the plan. Records saved before this stay in the dataset |
| This key's plan does not include the USA market | Use a key whose plan includes the `us` market |
| The change feed is available on the Pro plan and higher | Use search mode or change the plan |
| Too many requests | The Actor already retried. Wait and run again |
| The API is temporarily unavailable | Run again later. Records already saved stay in the dataset |
| Could not get an answer from the API | Run again later. This request was not repeated, and it may have been counted |
| The run limit of 10 minutes was reached | Lower **Maximum records** or run again later |

### FAQ

#### Is this an official Copart API?

No. It comes from the apiauto.space team, an independent service that is not affiliated with, sponsored by or endorsed by Copart.

#### Does this Actor scrape Copart?

No. It only calls the apiauto.space API. How that catalog is kept up to date is the provider's side of the service.

#### Where do I get a key?

The key comes from apiauto.space, an independent service that is not part of Apify. Apify does not sell the key and does not handle its payment.

#### How fresh is the data?

The catalog is a copy of the source, so it can be behind it. A car can sell before it disappears from the catalog.

#### Is there a "sold" status?

No. A car taken off sale gets `is_active: false` and `disappeared_at`, and stays readable for 14 days through the API. Check prices and lot details at the source.

#### Can I use the data for anything?

You are responsible for using the data lawfully and in line with the rules that apply to you.

### Support

Open an issue in the **Issues** tab of this Actor.

# Actor input Schema

## `apiKey` (type: `string`):

Your apiauto.space API key. It is stored encrypted, sent only to api.apiauto.space in a request header, and never written to the log or the results.

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

Search returns cars that match the filters. The change feed returns events since a moment and is available on the Pro plan and higher.

## `maxRecords` (type: `integer`):

The run stops after this many cars or events, up to 1000 per run. Each one spends a record of your quota. A response lost to a network failure or a server error may still be counted.

## `brand` (type: `string`):

Make in Latin script, for example Ford or Toyota. Case, spaces and hyphens are ignored.

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

Model in Latin script, for example F-150 or Camry. Case, spaces and hyphens are ignored.

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

Earliest model year.

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

Latest model year.

## `priceMinUsd` (type: `integer`):

Lowest price in US dollars. Lots without a price are left out when this is set.

## `priceMaxUsd` (type: `integer`):

Highest price in US dollars. Lots without a price are left out when this is set.

## `mileageMaxKm` (type: `integer`):

Highest mileage in kilometres.

## `sort` (type: `string`):

Order of the cars.

## `changesSince` (type: `string`):

ISO 8601 date and time with a time zone, for example 2026-11-01T00:00:00Z. If empty, the last 24 hours.

## `changeTypes` (type: `array`):

If empty, every type.

## Actor input object example

```json
{
  "mode": "search",
  "maxRecords": 20,
  "sort": "-first_seen"
}
```

# Actor output Schema

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

Cars in search mode, events in change-feed mode, as JSON

# 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": "search",
    "maxRecords": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("apiauto_space/copart-api").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": "search",
    "maxRecords": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("apiauto_space/copart-api").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": "search",
  "maxRecords": 20
}' |
apify call apiauto_space/copart-api --silent --output-dataset

```

## MCP server setup

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

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/Mhy9vRJEaQC970PWX/builds/B291839gU4C9uhN05/openapi.json
