contract 2026-10-05
Endpoints

Search & discovery

Search live auction inventory, then resolve lightweight full-text matches. Only live lots are returned. include_ended=true also shows lots whose clock has run out but that have not been archived yet; finished auctions are searched with /api/v1/archive/vehicles.

GET

/api/v1/vehicles

Search live auction inventory. The primary way to find vehicles.

Requires the search scope.

Unversioned path, original response shape: /api/search

Parameters

auction_gradestring · query string

The Japanese auction house's grade, as a comma-separated list of the grades to keep: S, 6, 5, 4.5, 4, 3.5, 3, 2, 1, R and RA (repaired) and *** (ungraded). Matched exactly, not as a minimum, because the letters have no place on the numeric scale. Case and full-width digits are folded; any other value is a 400 on /api/v1/vehicles and /api/v1/archive/vehicles, and ignored by the facet endpoints. Only Japanese listings carry a grade, so any value keeps only them. The grade is the resellers' where they state one they agree on, else the one read off the lot's auction sheet. It is published on each result as auction_grade. Not in the precomputed search index, so a request that sends it is served by the live query and is slower.

Example 4,4.5,5·Where the value comes from Listing values or your application settings.

auction_housestring · query string

The Japanese auction house, as a comma-separated list of names in the slug form each result's auction_house carries (uss_tokyo, honda_tokyo). Spaces, case and punctuation are folded, so HONDA TOKYO works too. Matches whole words of the house name: uss finds every USS branch, tokyo every Tokyo house, uss_tokyo that one house; oky finds nothing. A value that is not a Latin-script name is a 400 on /api/v1/vehicles and /api/v1/archive/vehicles, and ignored by the facet endpoints. Only Japanese listings carry a house, so any value keeps only them. Not in the precomputed search index, so a request that sends it is served by the live query and is slower.

Example uss,honda_tokyo·Where the value comes from Listing values or your application settings.

lot_numberstring · query string

The Japanese auction house's lot number, as a comma-separated list. Leading zeros and full-width digits are folded (080041 finds 80041); a value that is not letters and digits is a 400 on /api/v1/vehicles and /api/v1/archive/vehicles, and ignored by the facet endpoints. Only Japanese listings carry a lot number, so any value keeps only them. A house numbers its lots per sale day, so one number can match several cars: tell them apart by auction_house and batch_end_date (the sale day) on each result. It is published on each result as lot_number. Not in the precomputed search index, so a request that sends it is served by the live query and is slower.

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

model_codestring · query string

A Japanese lot's chassis model code (e.g. USF40, ZC6), as a comma-separated list. Compared without case or punctuation, so u-30-5 finds U-30-5. A value with no letters or digits is a 400 on /api/v1/vehicles and /api/v1/archive/vehicles, and ignored by the facet endpoints. Only Japanese listings carry a model code, so any value keeps only them. Published on each result as model_code. Not in the precomputed search index, so a request that sends it is served by the live query and is slower.

Example USF40,ZC6·Where the value comes from Listing values or your application settings.

production_year_from / production_year_tointeger · query string

Production-year bounds. Falls back to registration year when the source provides no production year.

Example 2019 / 2024·Where the value comes from /api/v1/production-years

typestring · query string

Trim/type filter, distinct from vehicle_type and body_style. Accepts multiple comma-separated values; unclassified trims are retained.

Example Touring·Where the value comes from /api/v1/types?brand=bmw&model=320d

searchstring · query string

Free-text brand, model, or keyword query.

Example BMW 320d·Where the value comes from Free text entered by your user.

sitestring · query string

Comma-separated source slugs, OR within the parameter. Case-insensitive. An unknown slug is a 400 naming the offender — one bad member rejects the whole list.

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

site_excludestring · query string

Comma-separated source slugs to leave out. Sent alongside site, it narrows the include list; excluding everything you included is a 400, not an empty page.

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

brandstring | integer · query string

Brand display name, slug, or brand_id — all three select the same inventory. Matched on the brand identity rather than the published spelling, so sources that write it differently (openlane publishes "Volkswagen" where others write "VW") are all included.

Example bmw·Where the value comes from /api/v1/brands -> data.items[].slug (or id/name)

modelstring · query string

Model name or slug.

Example 320d·Where the value comes from /api/v1/models?brand=bmw -> data.items[].slug

year_from / year_tointeger · query string

Registration-year range.

Example 2018 / 2024·Where the value comes from /api/v1/years -> data.items[].value

fuelstring · query string

Canonical fuel group, matched whole. Hybrid, Mild Hybrid and Plug-in Hybrid are three separate groups — fuel=Hybrid returns full hybrids only. A lot with no recorded fuel matches every fuel filter rather than none, so it stays reachable.

Example Diesel·Where the value comes from /api/v1/fuels -> data.items[].value

gearboxstring · query string

Canonical gearbox group, matched whole. Same unknown-matches-all rule as fuel: a car with no recorded gearbox answers every gearbox filter.

Example Automatic·Where the value comes from /api/v1/gearboxes -> data.items[].value

countrystring · query string

ISO country code or europe.

Example DE·Where the value comes from /api/v1/countries -> data.items[].value

vehicle_typestring · query string

cars or suvs & trucks.

Example cars·Where the value comes from Choose from the documented vehicle_type enum.

body_stylestring · query string

Body-style filter.

Example sedan·Where the value comes from Your application's normalized body-style value.

steeringenum · query string

Left- or right-hand drive. The parameter takes two values, each with four equivalent spellings. Every listing resolves to one side or the other, so the two values partition the inventory and their counts sum to the unfiltered total.

Example left·Where the value comes from left | lhd | left-hand | left_hand, or right | rhd | right-hand | right_hand — any other value is a 400.

kilometers_from / kilometers_tointeger · query string

Mileage range.

Example 0 / 80000·Where the value comes from Mileage range chosen by your user.

horsepower_from / horsepower_tointeger · query string

Horsepower range.

Example 150 / 300·Where the value comes from Horsepower range chosen by your user.

price_from / price_tointeger · query string

Public EUR price range.

Example 10000 / 30000·Where the value comes from EUR budget chosen by your user.

damagedboolean · query string

Return damaged or broken vehicles only.

Example true·Where the value comes from Your filter choice.

buy_nowboolean · query string

Return Buy-Now listings only.

Example true·Where the value comes from Your filter choice.

ending_soonboolean · query string

Return auctions ending within about two hours.

Example true·Where the value comes from Your filter choice.

smart_filterenum · query string

top_offers, low_mileage, or best_value.

Example best_value·Where the value comes from Choose from the documented smart_filter enum.

is_activeboolean · query string

Only true, the default, is accepted. false is a 400: this endpoint returns live lots only. For finished auctions use /api/v1/archive/vehicles.

Example true·Where the value comes from Your filter choice.

include_endedboolean · query string

Default false. true also shows lots whose clock has run out but that have not been archived yet. Also accepts 1/0/yes/no.

Example true·Where the value comes from Your filter choice.

sortenum · query string

Sort value from the data dictionary. Default default — photo-first, then newest. The retired random value is still accepted and is served as default.

Example price_low·Where the value comes from Choose from the documented Sort enum.

limit / page_sizeinteger · query string

Page size. Default 100, maximum pagination.max_limit from /api/v1/contract — 100, or up to 500 on a key granted bulk pages. Larger values are clamped down.

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

offset / pageinteger · query string

Offset-based or page-based pagination.

Example 24 / 2·Where the value comes from Current page state in your application.

include_totalboolean · query string

Set false to skip the count. Default true.

Example false·Where the value comes from Your performance/display choice.

count_onlyboolean · query string

Return counts without result rows.

Example true·Where the value comes from Your response-mode choice.

cursorstring · query string

Read the page after the one that returned this value. Send it on its own: it already carries the position and the page size, so combining it with limit, page_size, offset or page is a 400. Keep every filter and sort unchanged between pages.

Example eyJvIjoxMDAsImwiOjEwMH0·Where the value comes from next_cursor of the previous response.

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?brand=bmw&fuel=Diesel&year_from=2018&sort=price_low&limit=24
GET https://api.thecarapi.com/api/v1/vehicles?site=encar&country=KR&buy_now=true&page=2&page_size=20
Sends the first example with the sandbox key. Sample data only.

Example response

json
{
  "success": true,
  "data": {
    "count_only": false,
    "items": [
      {
        "id": "38112900",
        "site": "encar",
        "clean_make": "BMW",
        "clean_model": "320d",
        "registration_year": 2020,
        "mileage": 45000,
        "thumbnail_url": "https://cdn.example/photo.webp",
        "prices": {
          "start": null,
          "current": null,
          "buy_now": null,
          "final": null,
          "public": {
            "amount": 21500,
            "currency": "EUR"
          },
          "landed_current": null,
          "landed_buy_now": null,
          "native": null
        }
      }
    ]
  },
  "pagination": {
    "total": 18342,
    "limit": 24,
    "offset": 0,
    "page": 1,
    "page_size": 24,
    "total_pages": 764,
    "max_page": 764,
    "next_cursor": "eyJvIjoyNCwibCI6MjR9"
  },
  "contract_version": "2026-10-05"
}

What you get back

data.items[]object[]

Vehicles. Every documented card field is present on every item; null means the source does not state it or your key is not granted it.

data.items[].id / sitestring

The address of the vehicle. id is always a string — japan ids do not fit a JSON number — and site + id is the pair to persist and to pass to /api/v1/vehicles/{site}/{id}.

data.items[].pricesobject

start, current, buy_now, final, public, landed_current and landed_buy_now, each {amount, currency} or null, in EUR unless you send currency=. native holds what the source itself quoted, in its own currency.

data.items[].imagesobject[]

At most the first 8 gallery entries, primary first — a card preview. For the full gallery read data.vehicle.vault_gallery on the detail response or /api/v1/vehicles/{site}/{id}/images.

pagination.totalinteger | null

Total matching vehicles. Null when include_total=false.

pagination.next_cursorstring | null

Send this back as cursor to read the next page; null when there is none. Opaque — pass it unchanged, on its own, with the same filters.

pagination.limit / offset / page / page_size / total_pages / max_pageinteger | null

The window that was applied, in both spellings. All null on a count_only response.

data.count_onlyboolean

Echoes the parameter. On true, items is empty and only pagination.total is meaningful.

GET

/api/v1/search/auction-ids

Resolve a free-text query to matching auction ids only.

Requires the search scope.

Unversioned path, original response shape: /api/search/auction-ids

Parameters

qstring · query string

Free-text query. An empty or missing query returns an empty list, not a 400.

Example bmw 320d touring·Where the value comes from Free text entered by your user.

Example requests

Request
GET https://api.thecarapi.com/api/v1/search/auction-ids?q=bmw%20320d
GET https://api.thecarapi.com/api/v1/search/auction-ids?q=kia%20ev6
Sends the first example with the sandbox key. Sample data only.

Example response

json
{
  "success": true,
  "data": {
    "found": 2,
    "items": [
      "38112900",
      "11409652"
    ]
  }
}

What you get back

data.itemsinteger[]

Bare id values with no source attached. An id is only unambiguous if it happens to be unique across sources — which is exactly what /api/v1/vehicles/{site}/{id} needs a site for. Use this as a filter, not as an addressing scheme; hydrate through /api/v1/vehicles?search= instead, which returns whole cards carrying site and id.

data.foundinteger

Length of data.items. The whole match set is returned, capped at 10,000 ids — there is no paging.