API v1
The /api/v1 surface: one envelope, one vehicle shape, one resource per car, and the parameters that exist only there.
Every endpoint is served twice. The unprefixed paths (/api/search) answer exactly as they always have and will keep doing so. The /api/v1 paths return the same data in one consistent shape, and are what a new integration should use. Nothing in this section applies to the unprefixed paths.
One envelope
{
"success": true,
"data": { "items": [ /* … */ ] },
"pagination": { "total": 18342, "limit": 100, "offset": 0, "next_cursor": "eyJvIjoxMDAsImwiOjEwMH0" },
"contract_version": "2026-10-05",
"request_id": "0f2c1b9e-4a77-4c31-9a0b-6d2f0a1c8e55",
"server_time": "2026-10-05T09:41:02Z",
"data_updated_at": "2026-10-05T09:40:00Z"
}dataholds everything the endpoint says about its subject. A list is alwaysdata.items, whatever the unprefixed path calls it (results,listings,brands,watches…). A single car isdata.vehicle.- Facets are counted lists.
/api/v1/fuels,/gearboxes,/years,/production-yearsand/countriesreturndata.itemsof{value, count}— one list, where the unprefixed paths send a list of values and a second list of counts. - A car looks the same everywhere. Price history, VIN history and the vehicle inside a watch match use the same
id,siteandpricesas a search result. paginationholdstotal,limit,offset,page,page_size,total_pages,max_pageandnext_cursor, on the endpoints that page.- Errors are unchanged:
{success: false, error, code, errors?}with the same metadata. See Errors & limits. /api/v1/load-modelsand the business tools are wrapped the same way, but without the metadata fields, and a business tool’s error keeps the tool’s own body.
One vehicle shape
{
"id": "11409652",
"site": "openlane",
"clean_make": "BMW",
"clean_model": "320d",
"registration_year": 2020,
"mileage": 45000,
"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,
"native": null
}
}| On /api/v1 | Replaces | Why |
|---|---|---|
id (always a string) | auction_id, auction_id_str | One id, safe in every language. Japanese ids do not fit a JSON number. |
site | site_name | site + id address a vehicle everywhere. |
prices.current, prices.buy_now, prices.start, prices.final | current_price, buy_now_price, start_price, final_price | What the source asks or the bidding stands at. |
prices.public | public_price_eur | The public price of the listing. |
prices.landed_current, prices.landed_buy_now | current_final, buynow_final | The price plus fees and taxes. |
prices.current_tax, prices.current_tax_delivery, prices.buy_now_tax, prices.buy_now_tax_delivery, prices.estimated_value | current_tax, current_tax_delivery, buynow_tax, buynow_tax_delivery, estimated_value_eur | On a detail read only. |
prices.native | native_prices | What the source itself quoted, in its own currency. |
| — | current_bgn, buynow_bgn | Retired: Bulgaria’s currency has been the euro since 2026. Use currency= for any other currency. |
| — | thumbnailUrl, servedThumbnailUrl, secret_mode | Duplicate spellings and a dead field. |
Each price is {amount, currency} or null. Every documented card field is present on every vehicle: null means the source does not state it or your key is not granted it, so a client never has to test whether a key exists. Timestamps are ISO-8601 throughout, including live_price.fetched_at.
One resource for a car
| /api/v1 | Unprefixed path it is served by |
|---|---|
GET /api/v1/vehicles | /api/search |
GET /api/v1/vehicles/{site}/{id} | /api/auction/{site_slug}/{auction_id} |
GET | POST /api/v1/vehicles/batch | /api/auction/batch |
GET /api/v1/vehicles/{site}/{id}/price-history | /api/auction/{site_slug}/{auction_id}/price-history |
GET /api/v1/vehicles/{site}/{id}/images | /api/auction-images/{site_slug}/{auction_id} |
GET /api/v1/vehicles/changes | /api/changes |
GET /api/v1/archive/vehicles | /api/archive/search |
GET /api/v1/archive/vehicles/{site}/{id} | /api/archive/auction/{site_slug}/{auction_id} |
Every other endpoint is its unprefixed path with /api/v1 in front: /api/v1/brands, /api/v1/top-offers, /api/v1/watches. include=price_history on a vehicle folds the history into the same response.
Parameters that exist only on /api/v1
| Parameter | Where | What it does |
|---|---|---|
fields | Any list endpoint | Comma-separated fields to keep on each item, e.g. fields=clean_make,clean_model,prices. id and site are always kept. A search page shrinks to a fraction of its size. |
format | Any list endpoint | 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. In CSV each price is its own column (prices.current) with one prices.currency column. |
currency | Vehicle endpoints | An ISO 4217 code, e.g. currency=USD. Every entry in prices is converted at the ECB reference rate and the rate used is returned as fx. prices.native is never converted. |
curl -H "X-API-Key: lc_test_sandbox" \
"https://api.thecarapi.com/api/v1/vehicles?brand=bmw&fields=clean_model,registration_year,prices¤cy=USD&format=csv"Stricter by design
- Unknown query parameters are a
400naming every one of them, instead of being ignored. - Watch and shipment ids carry their type:
wat_7,shp_12. Either form is accepted back. - The OpenAPI document for this surface is at
/api/v1/openapi.json; the client libraries are generated from it.