contract 2026-10-05
Endpoints

Auctions & history

Retrieve source-aware listing detail, galleries, price changes, and VIN history. A running openlane auction has its bid read from the auction house at the moment you request the detail — nothing needs to be passed to enable it. Every other listing is served at its cycle price, refreshed by the scheduled ingestion pipeline.

GET

/api/v1/vehicles/{site}/{id}

One vehicle: specification, condition, prices and the full photo gallery.

Requires the auctions scope.

Unversioned path, original response shape: /api/auction/{site_slug}/{auction_id}

Parameters

includestring · query string

Comma-separated extras folded into this response, saving a request each. price_history adds a top-level price_history array, exactly the history of /api/v1/vehicles/{site}/{id}/price-history (the key must be allowed that endpoint, else 403). With it, max-age is at most 60. Unknown values are a 400. Omit it and the response is unchanged.

Example price_history·Where the value comes from Listing values or your application settings.

sitestring · in the URL pathrequired

Source name returned by /api/v1/sites.

Example encar·Where the value comes from /api/v1/vehicles -> data.items[].site_name

idinteger · in the URL pathrequired

Integer auction database id.

Example 38112900·Where the value comes from /api/v1/vehicles -> data.items[].auction_id

currencystring · query string

Express every entry of prices in this currency at the ECB reference rate. The rate used is returned as fx. prices.native is never converted. Default EUR.

Example USD·Where the value comes from An ISO 4217 code.

Example requests

Request
GET https://api.thecarapi.com/api/v1/vehicles/encar/38112900
GET https://api.thecarapi.com/api/v1/vehicles/openlane/11125938
Sends the first example with the sandbox key. Sample data only.

Example response

json
{
  "success": true,
  "data": {
    "vehicle": {
      "id": "11409652",
      "site": "openlane",
      "clean_make": "BMW",
      "clean_model": "320d",
      "model_display": "320d M Sport",
      "registration_year": 2020,
      "mileage": 45000,
      "auction_end_at": "2026-08-20T10:00:00Z",
      "images": [],
      "vault_gallery": {
        "images": [
          {
            "served_url": "/image-vault/ab/cd/openlane_11409652_00_deadbeef.avif",
            "remote_url": "https://cdn.example/photo_1.jpg",
            "image_status": "ready"
          }
        ],
        "count": 28,
        "pending": 0
      },
      "vehicle_details": {},
      "car_identification": {},
      "live_price": {
        "price": 25900,
        "currency": "EUR",
        "source": "openlane",
        "fetched_at": "2026-08-13T22:22:30Z"
      },
      "prices": {
        "start": null,
        "current": {
          "amount": 25900,
          "currency": "EUR"
        },
        "buy_now": null,
        "final": null,
        "public": {
          "amount": 33926,
          "currency": "EUR"
        },
        "landed_current": {
          "amount": 33566,
          "currency": "EUR"
        },
        "landed_buy_now": null,
        "current_tax": null,
        "current_tax_delivery": null,
        "buy_now_tax": null,
        "buy_now_tax_delivery": null,
        "estimated_value": null,
        "native": null
      }
    }
  }
}

What you get back

data.vehicleobject

The vehicle, with every card field plus the detail-only ones.

data.vehicle.id / sitestring

The address you asked for, echoed back. id is always a string.

data.vehicle.pricesobject

The card prices plus current_tax, current_tax_delivery, buy_now_tax, buy_now_tax_delivery and estimated_value. Each is {amount, currency} or null.

data.vehicle.vehicle_detailsobject

Cross-source normalized condition and paperwork: documents, inspection_reports, option_reports, car_reports, service_history, technical_inspection, paperwork, condition and equipment. Absent while details_pending is true.

data.vehicle.vault_galleryobject

The full gallery — images, count and pending — the same body /api/v1/vehicles/{site}/{id}/images returns, so a detail page is one request.

data.vehicle.live_priceobject

Present on a running auction whose bid was read from the source while this request was served: { price, currency, source, fetched_at }, with fetched_at an ISO-8601 time.

data.vehicle.details_pending / live_price_pendingboolean

True while the detail payload or a bid refresh is still being fetched. The response then carries poll_after_seconds and a Retry-After header: read again after that long.

data.price_historyobject[]

Only with include=price_history.

GET

/api/v1/vehicles/changes

Live lots that are new or changed since a moment — for keeping your own copy of the inventory in step.

Requires the changes scope.

Unversioned path, original response shape: /api/changes

Parameters

sincestring · query string

ISO-8601 time to list changes from. Required unless cursor is sent.

Example 2026-10-05T09:00:00Z·Where the value comes from The next_since of your previous sync.

cursorstring · query string

Read the next page. Send it on its own, without since.

Example eyJ0IjoiMjAyNi0xMC0wNVQwOToxMjowMCIsImkiOjkxMjM0fQ·Where the value comes from next_cursor of the previous page.

limitinteger · query string

Rows per page. Default 100, capped at the key’s page-size limit.

Example 100·Where the value comes from Page size chosen by your application.

site / site_excludestring · query string

Only, or all but, these sources. Comma-separated.

Example openlane,bca·Where the value comes from /api/v1/sites -> data.items[].name

fieldsstring · query string

Comma-separated fields to keep on each item. id and site are always kept. Trims a page to what you use.

Example clean_make,clean_model,prices·Where the value comes from Your choice.

formatenum · query string

csv or ndjson returns the items as a file instead of JSON. The next cursor is in the X-Next-Cursor header and the total in X-Total-Count.

Example csv·Where the value comes from json, csv or ndjson.

currencystring · query string

Express every entry of prices in this currency at the ECB reference rate. The rate used is returned as fx. prices.native is never converted. Default EUR.

Example USD·Where the value comes from An ISO 4217 code.

Example requests

Request
GET https://api.thecarapi.com/api/v1/vehicles/changes?since=2026-10-05T09:00:00Z
GET https://api.thecarapi.com/api/v1/vehicles/changes?since=2026-10-05T09:00:00Z&site=openlane&limit=100
Sends the first example with the sandbox key. Sample data only.

Example response

json
{
  "success": true,
  "data": {
    "count": 1,
    "next_since": "2026-10-05T09:12:00Z",
    "items": [
      {
        "id": "11409652",
        "site": "openlane",
        "clean_make": "BMW",
        "clean_model": "320d",
        "change": "updated",
        "changed_at": "2026-10-05T09:12:00Z",
        "prices": {
          "start": null,
          "current": {
            "amount": 26400,
            "currency": "EUR"
          },
          "buy_now": null,
          "final": null,
          "public": {
            "amount": 34480,
            "currency": "EUR"
          },
          "landed_current": null,
          "landed_buy_now": null,
          "native": null
        }
      }
    ]
  },
  "pagination": {
    "total": null,
    "limit": null,
    "offset": null,
    "page": null,
    "page_size": null,
    "total_pages": null,
    "max_page": null,
    "next_cursor": null
  },
  "contract_version": "2026-10-05"
}

What you get back

data.items[]object[]

Vehicles, oldest change first, each with change and changed_at.

data.items[].changeenum

new when the lot was first seen in the window, otherwise updated.

pagination.next_cursorstring | null

Send back as cursor for the next page; null when you have read every change.

data.next_sincestring

Once pagination.next_cursor is null: store this and pass it as since on your next sync.

GET | POST

/api/v1/vehicles/batch

Up to 100 vehicles in one request. POST takes the same ids in a JSON body ({"ids": ["site:id", ...]}) when the list is too long for a URL.

Requires the auctions scope.

Unversioned path, original response shape: /api/auction/batch

Parameters

idsstring · query string or JSON bodyrequired

Comma-separated site:id pairs, at most 100. Duplicates are ignored. A malformed pair, or more than 100, is a 400.

Example openlane:11409652,encar:38112900·Where the value comes from site and id of cars you already hold

fieldsstring · query string or JSON body

Comma-separated fields to keep on each item. id and site are always kept. Trims a page to what you use.

Example clean_make,clean_model,prices·Where the value comes from Your choice.

formatenum · query string or JSON body

csv or ndjson returns the items as a file instead of JSON. The next cursor is in the X-Next-Cursor header and the total in X-Total-Count.

Example csv·Where the value comes from json, csv or ndjson.

currencystring · query string or JSON body

Express every entry of prices in this currency at the ECB reference rate. The rate used is returned as fx. prices.native is never converted. Default EUR.

Example USD·Where the value comes from An ISO 4217 code.

Example requests

Request
GET | POST https://api.thecarapi.com/api/v1/vehicles/batch?ids=openlane:11409652,encar:38112900
GET | POST https://api.thecarapi.com/api/v1/vehicles/batch?ids=copart:50590868,auto1:10765001,bca:1234567
Sends the first example with the sandbox key. Sample data only.

Example response

json
{
  "success": true,
  "data": {
    "requested": 2,
    "found": 1,
    "missing": [
      {
        "id": "encar:38112900",
        "reason": "not_found"
      }
    ],
    "items": [
      {
        "id": "11409652",
        "site": "openlane",
        "clean_make": "BMW",
        "clean_model": "320d",
        "vault_gallery": {
          "images": [],
          "count": 28,
          "pending": 0
        },
        "prices": {
          "start": null,
          "current": {
            "amount": 25900,
            "currency": "EUR"
          },
          "buy_now": null,
          "final": null,
          "public": {
            "amount": 33926,
            "currency": "EUR"
          },
          "landed_current": null,
          "landed_buy_now": null,
          "current_tax": null,
          "current_tax_delivery": null,
          "buy_now_tax": null,
          "buy_now_tax_delivery": null,
          "estimated_value": null,
          "native": null
        }
      }
    ]
  }
}

What you get back

data.items[]object[]

Each entry is exactly the data.vehicle object /api/v1/vehicles/{site}/{id} returns, in the order of ids.

data.missing{id, reason}[]

Ids that could not be served, with reason not_found or site_not_allowed. One bad id never fails the request.

data.requested / foundinteger

How many distinct ids were asked for and how many came back.

GET

/api/v1/vehicles/{site}/{id}/price-history

Every recorded price movement for one listing, oldest first.

Requires the auctions scope.

Unversioned path, original response shape: /api/auction/{site_slug}/{auction_id}/price-history

Parameters

sitestring · in the URL pathrequired

Auction source slug.

Example encar·Where the value comes from /api/v1/vehicles -> data.items[].site_name

idinteger · in the URL pathrequired

Auction database id.

Example 38112900·Where the value comes from /api/v1/vehicles -> data.items[].auction_id

fieldsstring · query string

Comma-separated fields to keep on each item. id and site are always kept. Trims a page to what you use.

Example clean_make,clean_model,prices·Where the value comes from Your choice.

formatenum · query string

csv or ndjson returns the items as a file instead of JSON. The next cursor is in the X-Next-Cursor header and the total in X-Total-Count.

Example csv·Where the value comes from json, csv or ndjson.

Example requests

Request
GET https://api.thecarapi.com/api/v1/vehicles/encar/38112900/price-history
GET https://api.thecarapi.com/api/v1/vehicles/openlane/11125938/price-history
Sends the first example with the sandbox key. Sample data only.

Example response

json
{
  "success": true,
  "data": {
    "site": "encar",
    "source_auction_id": "38112900",
    "items": [
      {
        "event_type": "initial",
        "source_auction_id": "38112900",
        "changed_fields": [
          "current",
          "public"
        ],
        "observed_at": "2026-07-10T08:00:00",
        "created_at": "2026-07-10T08:00:05",
        "prices": {
          "start": null,
          "current": {
            "amount": 21500,
            "currency": "EUR"
          },
          "buy_now": null,
          "final": null,
          "public": {
            "amount": 21500,
            "currency": "EUR"
          },
          "landed_current": null,
          "landed_buy_now": null
        }
      }
    ],
    "id": "38112900"
  }
}

What you get back

data.items[].event_typeenum

Exactly three values: initial (the first prices we ever recorded for this lot), baseline (the state before the first observed change, written once so a series never starts mid-move), and change (a subsequent movement). There is no price_change value — a client matching on that has been discarding every event.

data.items[].changed_fieldsstring[]

Which price fields moved in this event. Always an array, empty on a baseline row.

data.items[].prices.current / data.items[].prices.buy_now / data.items[].prices.start / data.items[].prices.final / data.items[].prices.landed_current / data.items[].prices.landed_buy_now / data.items[].prices.publicnumber | null

The full price snapshot as of observed_at. JSON numbers or null.

data.items[].observed_attimestamp

When the change was observed. The field to plot against.

data.items[].created_attimestamp

When the row was written. Within seconds of observed_at; not a second data point.

GET

/api/v1/vehicles/{site}/{id}/images

Ordered gallery metadata backed by the image vault. Usually unnecessary — the same body rides on the auction detail response as vault_gallery.

Requires the auctions scope.

Unversioned path, original response shape: /api/auction-images/{site_slug}/{auction_id}

Parameters

sitestring · in the URL pathrequired

Auction source slug.

Example encar·Where the value comes from /api/v1/vehicles -> data.items[].site_name

idinteger · in the URL pathrequired

Auction database id.

Example 38112900·Where the value comes from /api/v1/vehicles -> data.items[].auction_id

fieldsstring · query string

Comma-separated fields to keep on each item. id and site are always kept. Trims a page to what you use.

Example clean_make,clean_model,prices·Where the value comes from Your choice.

formatenum · query string

csv or ndjson returns the items as a file instead of JSON. The next cursor is in the X-Next-Cursor header and the total in X-Total-Count.

Example csv·Where the value comes from json, csv or ndjson.

Example requests

Request
GET https://api.thecarapi.com/api/v1/vehicles/encar/38112900/images
GET https://api.thecarapi.com/api/v1/vehicles/openlane/11125938/images
Sends the first example with the sandbox key. Sample data only.

Example response

json
{
  "success": true,
  "data": {
    "count": 1,
    "pending": 12,
    "items": [
      {
        "url": "https://cdn.example/photo_1.jpg",
        "remote_url": "https://cdn.example/photo_1.jpg",
        "served_url": "/image-vault/ab/cd/openlane_11125938_00_deadbeef.avif",
        "thumbnail": "/image-vault/ab/cd/openlane_11125938_00_deadbeef.avif",
        "image_status": "ready",
        "image_source": "downloaded",
        "index": 0,
        "is_primary": true,
        "source_section": "exterior",
        "width": 1024,
        "height": 768
      }
    ]
  }
}

What you get back

data.countinteger

How many photos this response carries.

data.pendinginteger

How many photos the auction still owes. Show placeholders for these instead of a silently short gallery.

data.items[].urlstring

The best URL available right now — served_url once vaulted, remote_url until then.

data.items[].served_urlstring

A path, not an absolute URL. It begins /image-vault/… and is relative to the API base, so join it: https://api.thecarapi.com + served_url. Load this directly once the photo is stored.

data.items[].remote_urlstring

Always absolute — the source’s own URL. Load this through an image proxy until the photo is vaulted.

data.items[].image_statusenum

ready, pending, downloading, failed, blocked, or not_downloaded — but on this endpoint it is always ready, because only stored photos are listed at all. The other values appear on the image annotations attached to search cards, where a photo can still be in flight. failed and blocked mean the photo exhausted its retries and is not counted in pending, so a gallery can settle with pending: 0 and still be shorter than picture_count.

data.items[].image_sourceenum

downloaded (in the vault) or proxied (still served from the source).

data.items[].index / data.items[].is_primaryinteger / boolean

Gallery order and which photo is the thumbnail.

data.items[].source_sectionstring

Section the source filed the photo under, e.g. exterior, interior, damage.

data.items[].width / data.items[].heightinteger

Pixel dimensions of the stored photo.

data.items[].servedUrl / data.items[].thumbnailUrl / data.items[].image_indexstring | integer

camelCase and legacy twins of served_url, thumbnail and index, kept for older clients and always equal to their counterparts. Prefer the snake_case names — the twins may be retired.

data.items[].local_status / data.items[].local_rel_pathstring

local_status is the same value as image_status; local_rel_path is the vault path served_url is built from.

GET

/api/v1/vin/{vin}/history

Look up a full VIN across current and archived auction records.

Requires the auctions scope.

Unversioned path, original response shape: /api/vin/{vin}/history

Parameters

vinstring · in the URL pathrequired

Valid 17-character VIN. Matching ignores punctuation and case in the stored VIN, so a source that wrote it with separators still matches.

Example WBA8E9G50GNU12345·Where the value comes from /api/v1/vehicles/{site}/{id} -> data.vehicle.chassis_number

fieldsstring · query string

Comma-separated fields to keep on each item. id and site are always kept. Trims a page to what you use.

Example clean_make,clean_model,prices·Where the value comes from Your choice.

formatenum · query string

csv or ndjson returns the items as a file instead of JSON. The next cursor is in the X-Next-Cursor header and the total in X-Total-Count.

Example csv·Where the value comes from json, csv or ndjson.

currencystring · query string

Express every entry of prices in this currency at the ECB reference rate. The rate used is returned as fx. prices.native is never converted. Default EUR.

Example USD·Where the value comes from An ISO 4217 code.

Example requests

Request
GET https://api.thecarapi.com/api/v1/vin/WBA8E9G50GNU12345/history
GET https://api.thecarapi.com/api/v1/vin/KNAB3811ALT123456/history
Sends the first example with the sandbox key. Sample data only.

Example response

json
{
  "success": true,
  "data": {
    "vin": "WBA8E9G50GNU12345",
    "match_count": 2,
    "items": [
      {
        "id": "38112900",
        "site": "encar",
        "clean_make": "BMW",
        "clean_model": "320d",
        "mileage": 45000,
        "first_seen_at": "2026-06-01T00:00:00",
        "last_seen_at": "2026-07-10T00:00:00",
        "archived": false,
        "source_auction_id": "38112900",
        "prices": {
          "start": null,
          "current": null,
          "buy_now": null,
          "final": null,
          "public": {
            "amount": 21500,
            "currency": "EUR"
          },
          "landed_current": null,
          "landed_buy_now": null,
          "native": null
        }
      }
    ]
  }
}

What you get back

data.items[].decoded.specsobject

What the VIN decodes to, whether or not we ever listed it: make, model, model_year, body, fuel, engine_cc, power_kw, power_hp, transmission, drivetrain, doors, seats, steering, colour, co2_g_km, emission_standard, derivative (trim), equipment and more. A field that could not be decoded is absent. decoded is null when the decoder could not answer; the matches are unaffected.

data.items[].decoded.uncertainobject

A notice for each field in decoded.specs that is an estimate from cars with a similar VIN and was right less than 9 times in 10 in our tests. Confirm those against the vehicle documents.

data.items[].decoded.estimatedstring[]

The fields in decoded.specs read from cars with a similar VIN, the make or the model catalogue rather than from this VIN or a record of this car.

data.items[].decoded.possible_versionsobject[]

The versions the car may be, none confirmed for it: name, engine_cc, power_kw, power_hp, fuel, transmission, body and year as stated. cars counts the listed cars with a VIN like this one that have that engine (absent on catalogue versions). Most European VINs do not encode the engine, so this is where engine and power come from when specs has none. Those agreeing with every decoded figure come first (match).

data.items[].site / data.items[].id / data.items[].source_auction_idstring | integer

Which source and lot. source_auction_id is the Auto1 batch id where one exists, otherwise the auction id as text.

data.items[].chassis_numberstring

The VIN as the source published it (punctuation and case as stored).

data.items[].clean_make / data.items[].clean_model / data.items[].model_displaystring

Normalized identity.

data.items[].date_first_registration / data.items[].mileagestring | integer

Registration date and the mileage recorded on that appearance.

data.items[].prices.current / data.items[].prices.buy_now / data.items[].prices.start / data.items[].prices.final / data.items[].prices.landed_current / data.items[].prices.landed_buy_now / data.items[].prices.publicnumber | null

The whole price block. JSON numbers or null.

data.items[].currency_code_idstring

Currency of the source-side figures.

data.items[].first_seen_at / data.items[].last_seen_at / data.items[].last_available_at / data.items[].created_at / data.items[].updated_at / data.items[].archived_attimestamp | null

Lifecycle. archived_at is null on a live row.

data.items[].is_active / data.items[].offer_linkboolean | string

Whether the lot is still open, and its listing URL.

data.items[].archivedboolean

True when this appearance comes from the archive rather than live inventory.