API documentation
Everything you need to pull live lots, bids, photos and sale history from every supported auction. REST over HTTPS, JSON responses, bearer-token auth.
Quickstart
Make your first request in three steps.
Get an API key
Request access and we send a key plus sample data for the sources you need.
Store it as an environment variable
Never ship your key to the browser. Call the API from your server.
List lots
Call GET /api/auctions/copart and you’ll get the first page of active lots.
export WESTAUCTIONS_API_KEY="wa_live_xxxxxxxxxxxxxxxx" curl "https://api.westauctions.online/api/auctions/copart?per_page=5" \ -H "Authorization: Bearer $WESTAUCTIONS_API_KEY"
Authentication
Send your key in the Authorization header as a bearer token. The x-api-token header is also accepted for clients that cannot set Authorization.
Authorization: Bearer wa_live_xxxxxxxxxxxxxxxx Accept: application/json
Sources
Every source returns the same field names. Pick one with the path segment.
| Path | Source | Region | Details |
|---|---|---|---|
| /api/auctions/copart | Copart | 🇺🇸 USA | Fields |
| /api/auctions/iaai/us | IAAI | 🇺🇸 USA | Fields |
| /api/auctions/manheim/us | Manheim | 🇺🇸 USA | Fields |
| /api/auctions/copart/canada | Copart Canada | 🇨🇦 Canada | Fields |
| /api/auctions/iaai/canada | IAA Canada (Impact) | 🇨🇦 Canada | Fields |
| /api/auctions/openlane/bulk | OPENLANE | 🇨🇦 🇺🇸 North America | Fields |
| /api/auctions/korea | Korea Auto Auctions | 🇰🇷 South Korea | Fields |
Incremental sync
Keep a local copy of lots without re-downloading everything. Store the time of your last successful run and pass it as from_date. Snapshot sources (OPENLANE, Korea) return the full live stock on every call — remove listings that are no longer present.
// Incremental sync: fetch only lots changed since the last run let cursor = await db.getCursor("copart") ?? "2026-12-01T00:00:00Z"; let page = 1, lastPage = 1; do { const res = await fetch( `https://api.westauctions.online/api/auctions/copart?from_date=${cursor}&page=${page}&per_page=500`, { headers: { Authorization: `Bearer ${process.env.WESTAUCTIONS_API_KEY}` } }, ); const body = await res.json(); await db.upsertLots(body.data); // key on uniqueID lastPage = body.last_page; page++; } while (page <= lastPage); await db.setCursor("copart", new Date().toISOString());
/api/auctions/{source}List auction lots
Page through active lots for one source. Pass from_date to receive only lots created or changed since your last sync.
| Parameter | Type | Description | Example |
|---|---|---|---|
| source* | path | copart, copart/canada, iaai/us, iaai/canada, manheim/us, openlane/bulk, korea | copart |
| page | integer | Page number, starting at 1 | 1 |
| per_page | integer | Results per page (max 500) | 100 |
| from_date | ISO 8601 | Only lots updated after this moment | 2026-12-01T00:00:00Z |
| make | string | Filter by make | BMW |
| year_from / year_to | integer | Model-year range | 2019 |
curl -X GET "https://api.westauctions.online/api/auctions/copart?page=1&per_page=100&from_date=2026-12-01T00%3A00%3A00Z&make=BMW" \ -H "Authorization: Bearer $WESTAUCTIONS_API_KEY" \ -H "Accept: application/json"
{
"current_page": 1,
"per_page": 100,
"total": 1842,
"last_page": 19,
"data": [
{
"uniqueID": "copart-78423915",
"auction": "copart",
"lotNumber": "78423915",
"vin": "WBSJF0C5XKB284113",
"year": 2023,
"make": "BMW",
"model": "M5",
"trim": "Competition",
"bodyType": "Sedan",
"fuelType": "Gasoline",
"transmission": "Automatic",
"driveTrain": "AWD",
"engine": "4.4L V8",
"color": "Black",
"odometer": 18420,
"odometerUnitOfMeasure": "mi",
"damage": "Front End",
"secondaryDamage": "Minor Dent/Scratches",
"titleType": "Salvage",
"vehicleStatus": "Run and Drive",
"keysAvailable": true,
"location": "Dallas, TX",
"startAuctionUTCDate": "2026-12-04T15:00:00Z",
"currentBid": 18400,
"price": null,
"currency": "USD",
"images": [
"https://img.westauctions.online/copart/78423915/1.jpg",
"…"
]
}
]
}/api/vin/{vin}VIN lookup & sale history
Find every lot that a VIN has appeared in across all supported auctions, including past sale results and photos.
| Parameter | Type | Description | Example |
|---|---|---|---|
| vin* | path | 17-character VIN | WBSJF0C5XKB284113 |
| include | string | Comma-separated extras: images, history | history,images |
curl -X GET "https://api.westauctions.online/api/vin/WBSJF0C5XKB284113?include=history%2Cimages" \ -H "Authorization: Bearer $WESTAUCTIONS_API_KEY" \ -H "Accept: application/json"
{
"vin": "WBSJF0C5XKB284113",
"decoded": {
"year": 2023,
"make": "BMW",
"model": "M5",
"engine": "4.4L V8",
"driveTrain": "AWD"
},
"lots": [
{
"auction": "copart",
"lotNumber": "78423915",
"saleDate": "2026-12-04T15:00:00Z",
"status": "upcoming",
"damage": "Front End",
"odometer": 18420
},
{
"auction": "iaai",
"stockNumber": "39921004",
"saleDate": "2025-06-17T16:00:00Z",
"status": "sold",
"finalBid": 31250,
"odometer": 9870
}
]
}/api/current-bidsCurrent bid
Read the latest bid and auction status for a lot. Ideal for bid trackers and customer notifications.
| Parameter | Type | Description | Example |
|---|---|---|---|
| stock_id* | string | Lot or stock number | 78423915 |
| auction | string | Source of the lot | copart |
curl -X GET "https://api.westauctions.online/api/current-bids?stock_id=78423915&auction=copart" \ -H "Authorization: Bearer $WESTAUCTIONS_API_KEY" \ -H "Accept: application/json"
{
"stock_id": "78423915",
"auction": "copart",
"status": "live",
"current_bid": 18400,
"currency": "USD",
"bids_count": 23,
"updated_at": "2026-12-01T21:58:00Z"
}/api/buy-now-stocksBuy-now inventory
Vehicles you can purchase immediately at a fixed price, across sources.
| Parameter | Type | Description | Example |
|---|---|---|---|
| auction | string | Optional source filter | iaai |
| max_price | integer | Maximum buy-now price | 25000 |
| per_page | integer | Results per page | 25 |
curl -X GET "https://api.westauctions.online/api/buy-now-stocks?auction=iaai&max_price=25000&per_page=25" \ -H "Authorization: Bearer $WESTAUCTIONS_API_KEY" \ -H "Accept: application/json"
{
"current_page": 1,
"total": 386,
"data": [
{
"stock_id": "88452104",
"auction": "iaai",
"year": 2021,
"make": "TOYOTA",
"model": "CAMRY",
"buy_now_price": 21400,
"currency": "USD",
"location": "Newark, NJ",
"run_and_drive": true
}
]
}/api/sales/historySold prices
Historical final bids for comparable vehicles — the basis for valuation and bid-limit tools.
| Parameter | Type | Description | Example |
|---|---|---|---|
| make / model* | string | Vehicle to compare | TOYOTA / RAV4 |
| year_from / year_to | integer | Model-year range | 2020 |
| damage | string | Primary damage type | Front End |
| months | integer | Look-back window | 6 |
curl -X GET "https://api.westauctions.online/api/sales/history?make=TOYOTA&model=RAV4&year_from=2020&damage=Front+End&months=6" \ -H "Authorization: Bearer $WESTAUCTIONS_API_KEY" \ -H "Accept: application/json"
{
"sample_size": 214,
"currency": "USD",
"median_final_bid": 9850,
"p25": 7400,
"p75": 12600,
"by_month": [
{
"month": "2026-11",
"median": 9900,
"count": 41
}
]
}Webhooks
Subscribe to events instead of polling. We send a signed POST to your URL when new lots match a saved search (lot.created), a lot changes (lot.updated) or a watched lot’s bid moves (bid.changed). Respond with 2xx within 10 seconds; failed deliveries are retried with back-off.
| Parameter | Type | Description | Example |
|---|---|---|---|
| url* | string | Your HTTPS endpoint | — |
| event* | string | lot.created, lot.updated or bid.changed | — |
| filters | object | Saved-search filters (source, make, model, year, damage…) | — |
curl -X POST "https://api.westauctions.online/api/webhooks" \ -H "Authorization: Bearer $WESTAUCTIONS_API_KEY" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{"url":"https://your-app.com/hooks/auctions","event":"lot.created","filters":{"source":["copart","iaai"],"make":"LEXUS","year_from":2020,"damage":["Hail","Minor Dent/Scratches"]}}'
{
"id": "wh_8f2a1c",
"event": "lot.created",
"status": "active",
"created_at": "2026-12-01T10:15:00Z"
}Event payload
{
"id": "evt_01JE2X8Q4M",
"type": "lot.created",
"created_at": "2026-12-01T10:16:04Z",
"subscription": "wh_8f2a1c",
"data": {
"uniqueID": "iaai-45623924",
"auction": "iaai",
"vin": "2T2BZMCA5MC123456",
"year": 2021, "make": "LEXUS", "model": "RX 350",
"damage": "Hail",
"saleDate": "2026-12-05T16:00:00Z"
}
}Sync API for multi-site archives
White-label partners can run their own SEO archive site — VIN history, sold prices and photos on their own domain — kept in sync with our central database. Instead of re-downloading everything, a site follows a change feed: every material change to a vehicle bumps its monotonic seq, and the site asks for everything after the last seq it stored.
- • Authenticate with a site token (bearer) issued per partner site with the sync scope.
- • cursor=0 performs a full backfill; afterwards pass the stored next_cursor and loop while has_more is true.
- • Removed records arrive as tombstones — { id, vin, seq, removed: true } — delete them locally. Removal requests are handled centrally, so a record removed once disappears from every partner site at the next sync.
- • Records keep a stable id (source:lot) and move from live to sold or archived — archived lots stay available for history pages. Render cdn_url ?? url for images.
| Endpoint | Description |
|---|---|
| GET/api/v1/sync/vehicles | Change feed. Returns records with seq greater than cursor, oldest first. Params: cursor (0 = full backfill), limit (default 500, max 1000), sources, status (live, sold, archived). Response: data, next_cursor, has_more, server_time. |
| GET/api/v1/vehicles/{id} | One record by its stable id, e.g. copart:12345678. |
| GET/api/v1/vin/{vin} | Every record for a VIN across sources, newest first. Removed records are excluded. |
| GET/api/v1/sync/stats | Counts per status and source plus the current max seq — use it for health checks and to show how far behind a site is. |
Change-feed page
GET https://api.westauctions.online/api/v1/sync/vehicles?cursor=1048000&limit=500&sources=copart,iaai&status=live,sold,archived Authorization: Bearer <site token> { "data": [ { "id": "copart:12345678", "seq": 1048576, "vin": "1HGCM82633A004352", "status": "sold", … }, { "id": "iaai:39921004", "vin": "WBSJF0C5XKB284113", "seq": 1048577, "removed": true } ], "next_cursor": "1048577", "has_more": true, "server_time": "2026-12-01T10:15:00Z" }
Vehicle document
{
"id": "copart:12345678",
"seq": 1048576,
"vin": "1HGCM82633A004352",
"source": "copart",
"lot": "12345678",
"status": "sold",
"removed": false,
"year": 2019, "make": "Toyota", "model": "Camry", "trim": "SE",
"body": "Sedan", "color": "White", "engine": "2.5L I4",
"transmission": "Automatic", "drive": "FWD", "fuel": "Gasoline",
"odometer": 45210, "odometer_unit": "mi", "odometer_status": "Actual",
"primary_damage": "Front End", "secondary_damage": null,
"title": "Salvage Certificate", "keys": true, "run_and_drive": true,
"location": { "city": "Dallas", "state": "TX", "country": "US" },
"sale_date": "2026-11-28T15:00:00Z",
"currency": "USD",
"current_bid": 4200, "buy_now_price": null, "final_bid": 5100,
"images": [{ "url": "https://…/1.jpg", "cdn_url": null, "kind": "hd" }],
"created_at": "2026-11-20T08:12:00Z",
"updated_at": "2026-11-28T16:02:11Z",
"archived_at": null
}Sync loop
// Keep an archive site in sync: run every ~15 minutes let cursor = (await db.getCursor()) ?? "0"; // "0" = full backfill let hasMore = true; while (hasMore) { const res = await fetch( `https://api.westauctions.online/api/v1/sync/vehicles?cursor=${cursor}&limit=500`, { headers: { Authorization: `Bearer ${process.env.WA_SYNC_TOKEN}` } }, ); const page = await res.json(); for (const doc of page.data) { if (doc.removed) await db.deleteVehicle(doc.id); // tombstone: remove everywhere else await db.upsertVehicle(doc); // key on doc.id } cursor = page.next_cursor; hasMore = page.has_more; await db.setCursor(cursor); // save after every page }
Running a Laravel site? We provide a ready-made sync package with a scheduled delta sync and archive pages. Ask about a white-label partnership.
Rate limits & pagination
- • Monthly request volume depends on your plan; burst limits protect shared capacity.
- • Every response includes X-RateLimit-Remaining. A 429 includes Retry-After.
- • List endpoints return current_page, last_page, per_page and total. Use per_page up to 500 for bulk sync.
- • Cache images on your side or hot-link the returned URLs — they don’t count towards your limit.
Errors
| Status | Meaning | What to do |
|---|---|---|
| 200 | OK | Request succeeded. |
| 400 | Bad request | A parameter is missing or invalid — the response explains which one. |
| 401 | Unauthorised | Missing or invalid API key. |
| 403 | Forbidden | Your plan does not include this source or endpoint. |
| 404 | Not found | The lot, VIN or route does not exist. |
| 429 | Too many requests | Rate limit reached. Retry after the number of seconds in Retry-After. |
| 5xx | Server error | Temporary problem on our side. Retry with exponential back-off. |
{
"error": "invalid_parameter",
"message": "from_date must be an ISO 8601 date",
"status": 400
}Ready for a key?
Tell us which sources you need and we’ll send credentials and sample data.