Source API · Copart · USA

# Copart API for US auction lots — as JSON

Copart is the largest online auction of damaged and used cars in the USA. apiauto.space returns Copart lots with sales ahead in the same record as Encar and Che168: VIN, damage, title type, bid and buy-now price, sale date, yard and photos. Copart lots come in the US market together with IAAI — tell them by source=copart.

- **Source**: copart.com · market=us
- **Region**: USA
- **Data**: Lots, bids, damage, photos
- **Status**: Running · refreshed hourly

## What a Copart lot record holds

The same keys in every market; on the right, the values of a real Copart lot from the catalog. What the auction does not give comes as null, never a guess.

### Lot

- `title` Year, make and model in one line `"2024 Hyundai Elantra"`
- `vin` The lot's VIN `"KMHLM4DG9RU821664"`
- `year` Model year `2024`
- `mileage_km` Mileage in kilometres `84823`
- `raw.odometer_mi` Mileage in miles, as the auction gives it `52707`
- `raw.lot_number` Lot number `"74451256"`

### Sale and price

- `raw.sale_date` Sale date and time, UTC `"2026-11-04T17:00:00+00:00"`
- `raw.bid` Current bid, when the auction gave one `null`
- `raw.buy_now` Buy-now price `14000`
- `price` Buy-now, or the final bid once sold; otherwise null. A bid is not a price `14000.00 USD`

### Condition

- `raw.damage_main` Main damage `"front"`
- `raw.damage_second` Secondary damage `null`
- `raw.title_doc` Title type `"clean"`
- `raw.keys_available` Whether the keys are there `true`
- `raw.source_values.damage_main` The auction's own wording `"Front end"`

### Car

- `fuel` Fuel, a canonical value `"gasoline"`
- `transmission` Gearbox `"automatic"`
- `engine_cc` Engine size, cc `2000`
- `raw.source_values.engine` The auction's engine line `"2.0L 4"`
- `color` Colour `"Gray"`
- `raw.drive` Drive `"fwd"`

### Yard and photos

- `location.region` State `"IL"`
- `location.city` The yard's city `"Chicago Heights"`
- `raw.location_branch` The auction yard `"IL - CHICAGO SOUTH"`
- `photo_count` Photos of the lot `11`
- `photos.0` A signed link, valid for about a day `"api.apiauto.space/img/copart:744…`

### Not from the auction

- `listing_url` No link to the lot `null`
- `raw.final_bid` No final price: only sales ahead `null`
- `raw.estimate_repair_price` A repair estimate only when the auction gave one `null`

copart:74451256 2024 Hyundai Elantra · 84,823 km

The raw fields, the makes, the use cases, live search, the change feed and the limits of the data are the same for Copart and IAAI — see [Copart and IAAI API](https://apiauto.space/en/copart-iaai-api/#about).

## Request and response

The four requests people usually start with. The key goes in the X-API-Key header; the answer is JSON.

A page of cars by filters and the next page's cursor

GET

`https://api.apiauto.space/v1/cars?market=us&limit=2`

cURL:

```bash
curl -s "https://api.apiauto.space/v1/cars?market=us&limit=2" \
  -H "X-API-Key: $APIAUTO_KEY"
```

JavaScript:

```js
const response = await fetch(
  "https://api.apiauto.space/v1/cars?market=us&limit=2",
  { headers: { "X-API-Key": process.env.APIAUTO_KEY } },
);
if (!response.ok) throw new Error(`${response.status}: ${await response.text()}`);
const data = await response.json();
```

Python:

```python
import os
import httpx

data = httpx.get(
    "https://api.apiauto.space/v1/cars?market=us&limit=2",
    headers={"X-API-Key": os.environ["APIAUTO_KEY"]},
    timeout=30,
).raise_for_status().json()
```

PHP:

```php
<?php
$ch = curl_init("https://api.apiauto.space/v1/cars?market=us&limit=2");
curl_setopt_array($ch, [
    CURLOPT_HTTPHEADER => ["X-API-Key: " . getenv("APIAUTO_KEY")],
    CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);
```

200 OK · sample response:

```json
{
  "items": [
    {
      "id": "copart:74451256",
      "market": "us",
      "source": "copart",
      "source_id": "74451256",
      "title": "2024 Hyundai Elantra",
      "brand": "Hyundai",
      "model": "Elantra",
      "generation": null,
      "trim": null,
      "year": 2024,
      "mileage_km": 84823,
      "fuel": "gasoline",
      "transmission": "automatic",
      "engine_cc": 2000,
      "body_type": "sedan",
      "color": "Gray",
      "vin": "KMHLM4DG9RU821664",
      "price": {
        "amount": "14000.00",
        "currency": "USD"
      },
      "price_usd": "14000.00",
      "location": {
        "country": "US",
        "region": "IL",
        "city": "Chicago Heights"
      },
      "photos": [
        "https://api.apiauto.space/img/copart:74451256/1.jpg?exp=…&sig=…",
        "https://api.apiauto.space/img/copart:74451256/2.jpg?exp=…&sig=…"
      ],
      "photo_count": 11,
      "listing_url": null,
      "is_active": true,
      "first_seen_at": "2026-11-03T00:15:49.819982Z",
      "last_seen_at": "2026-11-03T00:15:49.819982Z",
      "disappeared_at": null,
      "updated_at": "2026-11-03T00:15:49.819982Z",
      "raw": {
        "fx": {
          "date": "2026-11-02",
          "source": "ECB",
          "currency": "USD",
          "usd_per_unit": "1"
        },
        "bid": null,
        "drive": "fwd",
        "status": 3,
        "airbags": null,
        "buy_now": 14000,
        "latitude": 41.5070957,
        "condition": null,
        "cylinders": 4,
        "final_bid": null,
        "longitude": -87.6159798,
        "sale_date": "2026-11-04T17:00:00+00:00",
        "title_doc": "clean",
        "video_url": null,
        "grade_iaai": null,
        "lot_number": "74451256",
        "damage_main": "front",
        "odometer_mi": 52707,
        "damage_second": null,
        "source_values": {
          "fuel": "4",
          "trim": null,
          "brand": "HYUNDAI",
          "drive": "2",
          "model": "ELANTRA",
          "engine": "2.0L 4",
          "body_type": "Sedan",
          "title_doc": "CERTIFICATE OF TITLE",
          "damage_main": "Front end",
          "transmission": "1",
          "damage_second": null
        },
        "keys_available": true,
        "location_branch": "IL - CHICAGO SOUTH",
        "odometer_status": null,
        "pre_accident_price": null,
        "clean_wholesale_price": null,
        "estimate_repair_price": null
      },
      "source_mode": "replica"
    },
    {
      "id": "copart:74365886",
      "market": "us",
      "source": "copart",
      "source_id": "74365886",
      "title": "2024 BMW X5",
      "brand": "BMW",
      "model": "X5",
      "generation": null,
      "trim": null,
      "year": 2024,
      "mileage_km": 176981,
      "fuel": "gasoline",
      "transmission": "automatic",
      "engine_cc": 3000,
      "body_type": "suv",
      "color": "Blue",
      "vin": "5UX23EU05R9V61681",
      "price": {
        "amount": "39500.00",
        "currency": "USD"
      },
      "price_usd": "39500.00",
      "location": {
        "country": "US",
        "region": "FL",
        "city": "Orlando North"
      },
      "photos": [
        "https://api.apiauto.space/img/copart:74365886/1.jpg?exp=…&sig=…",
        "https://api.apiauto.space/img/copart:74365886/2.jpg?exp=…&sig=…"
      ],
      "photo_count": 12,
      "listing_url": null,
      "is_active": true,
      "first_seen_at": "2026-11-03T00:15:40.143787Z",
      "last_seen_at": "2026-11-03T00:15:40.143787Z",
      "disappeared_at": null,
      "updated_at": "2026-11-03T00:15:40.143787Z",
      "raw": {
        "fx": {
          "date": "2026-11-02",
          "source": "ECB",
          "currency": "USD",
          "usd_per_unit": "1"
        },
        "bid": null,
        "drive": "awd",
        "status": 3,
        "airbags": null,
        "buy_now": 39500,
        "latitude": 28.69786,
        "condition": null,
        "cylinders": 6,
        "final_bid": null,
        "longitude": -81.56696,
        "sale_date": "2026-11-04T15:00:00+00:00",
        "title_doc": "clean",
        "video_url": null,
        "grade_iaai": null,
        "lot_number": "74365886",
        "damage_main": "minor_dents",
        "odometer_mi": 109971,
        "damage_second": null,
        "source_values": {
          "fuel": "4",
          "trim": null,
          "brand": "BMW",
          "drive": "3",
          "model": "X5",
          "engine": "3.0L 6",
          "body_type": "Sport utility vehicle",
          "title_doc": "CERTIFICATE OF TITLE",
          "damage_main": "Minor dent/scratches",
          "transmission": "1",
          "damage_second": null
        },
        "keys_available": true,
        "location_branch": "FL - ORLANDO NORTH",
        "odometer_status": null,
        "pre_accident_price": null,
        "clean_wholesale_price": null,
        "estimate_repair_price": null
      },
      "source_mode": "replica"
    }
  ],
  "next_cursor": "…",
  "count": null
}
```

The cars in the responses are real, from the catalog when the site was built; photos are cut to two and event ids are made up.

## Build a request

Pick filters and the address and code build themselves. The market is fixed: market=us returns Copart and IAAI lots together; the auction is in the source field.

GET

`https://api.apiauto.space/v1/cars?market=us&brand=Toyota&limit=20`

cURL:

```bash
curl -s "https://api.apiauto.space/v1/cars?market=us&brand=Toyota&limit=20" \
  -H "X-API-Key: $APIAUTO_KEY"
```

JavaScript:

```js
const response = await fetch(
  "https://api.apiauto.space/v1/cars?market=us&brand=Toyota&limit=20",
  { headers: { "X-API-Key": process.env.APIAUTO_KEY } },
);
if (!response.ok) throw new Error(`${response.status}: ${await response.text()}`);
const data = await response.json();
```

Python:

```python
import os
import httpx

data = httpx.get(
    "https://api.apiauto.space/v1/cars?market=us&brand=Toyota&limit=20",
    headers={"X-API-Key": os.environ["APIAUTO_KEY"]},
    timeout=30,
).raise_for_status().json()
```

PHP:

```php
<?php
$ch = curl_init("https://api.apiauto.space/v1/cars?market=us&brand=Toyota&limit=20");
curl_setopt_array($ch, [
    CURLOPT_HTTPHEADER => ["X-API-Key: " . getenv("APIAUTO_KEY")],
    CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);
```

## Frequently asked questions

### 01Is this an official Copart API?

No. apiauto.space is not affiliated with Copart. We serve a copy of lots with auctions ahead in our own single format — the same as IAAI, Encar and Che168.

### 02How do I get Copart lots only?

Copart and IAAI come as one market, market=us. Every lot has a source field (copart or iaai) and an id like copart:…; pick the ones you need on your side. /v1/cars has no filter by auction.

### 03Is there Copart sales history or final prices?

No. The copy holds only lots with auctions ahead; after the auction a lot turns inactive and leaves 14 days later. We do not sell a sales archive.

### 04Can I bid on Copart through the API?

No, the API is read-only. Bids are placed on Copart, through a member or broker account.

### 05How much does the Copart API cost?

Start is $59 a month for one market; the US market is Copart and IAAI lots together, 100,000 cars a month. Live search comes with Pro ($149, 2,000 requests) and Max ($299, 10,000). The demo is one day and 100 requests, free.

## Other APIs and guides

- [Source API **IAAI API**](https://apiauto.space/en/iaai-api/)
- [Source API **Copart and IAAI API**](https://apiauto.space/en/copart-iaai-api/)
- [Source API **Encar API**](https://apiauto.space/en/encar-api/)
- [Source API **Che168 API**](https://apiauto.space/en/che168-api/)
- [Guide **A used-car catalog for an importer's site**](https://apiauto.space/en/importers/)
- [Developers **Documentation**](https://apiauto.space/en/docs/)

## Get a Copart test key

- One day and 100 requests free, no card
- All three markets and the change feed: compare the USA with Korea and China
- The key arrives in Telegram within a minute — no forms, no calls

---

Page: https://apiauto.space/en/copart-api/
