contract 2026-10-05
Endpoints

Filter facets

Discover live filter values and counts. Every facet endpoint accepts the search filters, so a facet describes whatever slice of inventory you are looking at rather than the whole of it — each dimension ignoring only its own filter, so a user can switch brands without the option disappearing. Counts and the totals /api/v1/vehicles reports for the same filters cannot disagree. Facet responses cache for about 600 seconds, and a filter sidebar can read every flat dimension in one call with /api/v1/facets.

GET

/api/v1/types

Trim filter values for one brand and model

Requires the search scope.

Unversioned path, original response shape: /api/types

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.

damagedboolean · query string

true restricts to damaged/broken vehicles, false to undamaged ones. Also accepts 1/0/yes/no.

Example true·Where the value comes from Current API reference

buy_nowboolean · query string

true restricts to Buy-Now listings. Also accepts 1/0/yes/no.

Example true·Where the value comes from Current API reference

countrystring · query string

ISO country code from /api/v1/countries, or the pseudo-country europe. Accepted and ignored by /api/v1/sites and /api/v1/load-models.

Example DE·Where the value comes from Current API reference

brandstring · query stringrequired

Brand display name, slug (from /api/v1/brands), or numeric brand_id.

Example bmw·Where the value comes from Current API reference

modelstring · query stringrequired

Model name from /api/v1/models. Comma-separated values select several.

Example 5-Series·Where the value comes from Current API reference

year_frominteger · query string

Lower bound on registration year, inclusive.

Example 2018·Where the value comes from Current API reference

year_tointeger · query string

Upper bound on registration year, inclusive.

Example 2024·Where the value comes from Current API reference

production_year_frominteger · query string

Lower bound on production year, inclusive. production_year falls back to the registration year where the source publishes no build year, so missing build-year evidence falls back to the registration-year dimension.

Example 2018·Where the value comes from Current API reference

production_year_tointeger · query string

Upper bound on production year, inclusive.

Example 2024·Where the value comes from Current API reference

fuelstring · query string

Canonical fuel group from /api/v1/fuels.

Example Diesel·Where the value comes from Current API reference

gearboxstring · query string

Canonical gearbox group from /api/v1/gearboxes.

Example Automatic·Where the value comes from Current API reference

kilometers_frominteger · query string

Lower bound on mileage in kilometres.

Example 0·Where the value comes from Current API reference

kilometers_tointeger · query string

Upper bound on mileage in kilometres.

Example 150000·Where the value comes from Current API reference

horsepower_frominteger · query string

Example ·Where the value comes from Current API reference

horsepower_tointeger · query string

Example ·Where the value comes from Current API reference

price_frominteger · query string

Lower bound on the public EUR price.

Example 1000·Where the value comes from Current API reference

price_tointeger · query string

Upper bound on the public EUR price.

Example 30000·Where the value comes from Current API reference

typestring · query string

Trim / version, as listed by `/api/v1/types`. Comma-separated values select several. Cars with no trim recorded are kept, so a trim filter narrows the list without hiding unclassified stock.

Example 520d·Where the value comes from Current API reference

vehicle_typestring · query string

Example ·Where the value comes from Current API reference

body_stylestring · query string

Example ·Where the value comes from Current API reference

ending_soonboolean · query string

true restricts to auctions ending within roughly two hours.

Example true·Where the value comes from Current API reference

sitestring · query string

Comma-separated source slugs from /api/v1/sites, OR within the parameter. Case-insensitive; padding and empty members are ignored. An unknown slug is a 400 naming the offender.

Example openlane,auto1·Where the value comes from Current API reference

site_excludestring · query string

Comma-separated source slugs to leave out. Same rules as site.

Example copart·Where the value comes from Current API reference

searchstring · query string

Substring filter on the facet value name.

Example ·Where the value comes from Current API reference

orderingstring · query string

Example ·Where the value comes from Current API reference

limitinteger · query string

Maximum facet values to return.

Example 20·Where the value comes from Current API reference

steeringstring · query string

Which side the steering wheel is on. The parameter takes two values, left and right; lhd/left-hand/left_hand and rhd/right-hand/right_hand are equivalent spellings of them. Any other value is a 400. Derived rather than stored. The side is taken from the car's registration market, so a car from an ISO country that drives on the left (GB, IE, JP, CY, MT, AU, NZ, ZA, IN, TH, HK, SG) is right and everything else is left. Every listing resolves to one side or the other, so the two values partition the inventory and their totals sum to the unfiltered total. The same value is published on each result as steering. Accepted by /api/v1/vehicles, /api/v1/list-vehicles, /api/v1/top-offers and every facet endpoint, which narrow their option lists by it. Sending it to a facet endpoint takes that request off the precomputed facet table and onto a live aggregate, so it is slower than an unfiltered facet call.

Example left·Where the value comes from Current API reference

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 request

Request
GET https://api.thecarapi.com/api/v1/types?brand=bmw&model=320d
Sends the first example with the sandbox key. Sample data only.

Example response

json
{
  "success": true,
  "data": {
    "grouped": {
      "320d": [
        {
          "name": "Touring",
          "count": 12
        }
      ]
    },
    "items": [
      {
        "name": "Touring",
        "count": 12
      }
    ]
  }
}
GET

/api/v1/production-years

Available production years

Requires the search scope.

Unversioned path, original response shape: /api/production-years

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.

damagedboolean · query string

true restricts to damaged/broken vehicles, false to undamaged ones. Also accepts 1/0/yes/no.

Example true·Where the value comes from Current API reference

buy_nowboolean · query string

true restricts to Buy-Now listings. Also accepts 1/0/yes/no.

Example true·Where the value comes from Current API reference

countrystring · query string

ISO country code from /api/v1/countries, or the pseudo-country europe. Accepted and ignored by /api/v1/sites and /api/v1/load-models.

Example DE·Where the value comes from Current API reference

brandstring · query string

Brand display name, slug (from /api/v1/brands), or numeric brand_id.

Example bmw·Where the value comes from Current API reference

modelstring · query string

Model name or slug.

Example 320d·Where the value comes from Current API reference

year_frominteger · query string

Lower bound on registration year, inclusive.

Example 2018·Where the value comes from Current API reference

year_tointeger · query string

Upper bound on registration year, inclusive.

Example 2024·Where the value comes from Current API reference

production_year_frominteger · query string

Lower bound on production year, inclusive. production_year falls back to the registration year where the source publishes no build year, so missing build-year evidence falls back to the registration-year dimension.

Example 2018·Where the value comes from Current API reference

production_year_tointeger · query string

Upper bound on production year, inclusive.

Example 2024·Where the value comes from Current API reference

fuelstring · query string

Canonical fuel group from /api/v1/fuels.

Example Diesel·Where the value comes from Current API reference

gearboxstring · query string

Canonical gearbox group from /api/v1/gearboxes.

Example Automatic·Where the value comes from Current API reference

kilometers_frominteger · query string

Lower bound on mileage in kilometres.

Example 0·Where the value comes from Current API reference

kilometers_tointeger · query string

Upper bound on mileage in kilometres.

Example 150000·Where the value comes from Current API reference

horsepower_frominteger · query string

Example ·Where the value comes from Current API reference

horsepower_tointeger · query string

Example ·Where the value comes from Current API reference

price_frominteger · query string

Lower bound on the public EUR price.

Example 1000·Where the value comes from Current API reference

price_tointeger · query string

Upper bound on the public EUR price.

Example 30000·Where the value comes from Current API reference

typestring · query string

Trim / version, as listed by `/api/v1/types`. Comma-separated values select several. Cars with no trim recorded are kept, so a trim filter narrows the list without hiding unclassified stock.

Example 520d·Where the value comes from Current API reference

vehicle_typestring · query string

Example ·Where the value comes from Current API reference

body_stylestring · query string

Example ·Where the value comes from Current API reference

ending_soonboolean · query string

true restricts to auctions ending within roughly two hours.

Example true·Where the value comes from Current API reference

sitestring · query string

Comma-separated source slugs from /api/v1/sites, OR within the parameter. Case-insensitive; padding and empty members are ignored. An unknown slug is a 400 naming the offender.

Example openlane,auto1·Where the value comes from Current API reference

site_excludestring · query string

Comma-separated source slugs to leave out. Same rules as site.

Example copart·Where the value comes from Current API reference

steeringstring · query string

Which side the steering wheel is on. The parameter takes two values, left and right; lhd/left-hand/left_hand and rhd/right-hand/right_hand are equivalent spellings of them. Any other value is a 400. Derived rather than stored. The side is taken from the car's registration market, so a car from an ISO country that drives on the left (GB, IE, JP, CY, MT, AU, NZ, ZA, IN, TH, HK, SG) is right and everything else is left. Every listing resolves to one side or the other, so the two values partition the inventory and their totals sum to the unfiltered total. The same value is published on each result as steering. Accepted by /api/v1/vehicles, /api/v1/list-vehicles, /api/v1/top-offers and every facet endpoint, which narrow their option lists by it. Sending it to a facet endpoint takes that request off the precomputed facet table and onto a live aggregate, so it is slower than an unfiltered facet call.

Example left·Where the value comes from Current API reference

Example request

Request
GET https://api.thecarapi.com/api/v1/production-years
Sends the first example with the sandbox key. Sample data only.

Example response

json
{
  "success": true,
  "data": {
    "items": [
      {
        "value": 2023,
        "count": 12
      }
    ]
  }
}

What you get back

data.items[].valuestring | integer

A value present in the filtered inventory. Send it back as the matching filter.

data.items[].countinteger

How many live lots have it, under the other filters of the request.

GET

/api/v1/facets

Every facet dimension of a filter sidebar in one request.

Requires the search scope.

Unversioned path, original response shape: /api/facets

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.

fieldsstring · query string

Comma-separated subset of brands, years, production_years, fuels, countries, gearboxes, sites, plus the opt-in models and types. Defaults to all but the opt-in two. models needs brand, types needs brand and model, exactly as /api/v1/models and /api/v1/types do; without them the field is reported under errors. That makes a full sidebar one call: ?brand=BMW&model=3-Series&fields=brands,models,types,years,fuels.

Example brands,fuels,gearboxes·Where the value comes from The dimensions your sidebar actually renders.

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

brand / modelstring | integer · query string

Name, slug, or brand_id, exactly as on /api/v1/vehicles.

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

year_from / year_tointeger · query string

Registration-year range. Accepted and ignored by /api/v1/years itself, which is the dimension they would narrow.

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

fuel / gearboxstring · query string

Canonical group, matched whole.

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

countrystring · query string

ISO country code or europe. Accepted and ignored by /api/v1/sites and /api/v1/load-models.

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

site / site_excludestring · query string

Comma-separated source slugs to include or leave out.

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

kilometers_from / kilometers_tointeger · query string

Mileage range.

Example 0 / 150000·Where the value comes from Mileage bounds chosen by your user.

horsepower_from / horsepower_tointeger · query string

Power range in HP.

Example 150 / 300·Where the value comes from Power bounds chosen by your user.

price_from / price_tointeger · query string

Public EUR price range. price_to=5000 on /api/v1/brands returns each brand count under EUR 5,000.

Example 0 / 5000·Where the value comes from EUR budget chosen by your user.

vehicle_type / body_stylestring · query string

Vehicle-type and body-style filters.

Example cars·Where the value comes from As on /api/v1/vehicles.

steeringenum · query string

Restrict to left- or right-hand-drive vehicles. Slower than an unfiltered facet call, because it is computed live rather than read from the precomputed facet table.

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.

damagedboolean · query string

Restrict to damaged or broken vehicles.

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

buy_nowboolean · query string

Restrict to Buy-Now inventory.

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

ending_soonboolean · query string

Restrict to lots ending within about two hours.

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

Example requests

Request
GET https://api.thecarapi.com/api/v1/facets?fields=brands,fuels,gearboxes&country=DE
GET https://api.thecarapi.com/api/v1/facets?fields=brands,years,sites&damaged=true
GET https://api.thecarapi.com/api/v1/facets?brand=bmw&model=320d&fields=brands,models,types,years,fuels
Sends the first example with the sandbox key. Sample data only.

Example response

json
{
  "success": true,
  "data": {
    "brands": [
      {
        "id": 12,
        "name": "BMW",
        "slug": "bmw",
        "count": 3266
      }
    ],
    "fuels": [
      {
        "value": "Diesel",
        "count": null
      },
      {
        "value": "Petrol",
        "count": null
      }
    ],
    "gearboxes": [
      {
        "value": "Automatic",
        "count": null
      },
      {
        "value": "Manual",
        "count": null
      }
    ]
  }
}

What you get back

data.brands / data.models / data.types / data.sitesobject[]

Each is the items list of its own endpoint (/api/v1/brands, …). models and types only when named in fields.

data.fuels / data.gearboxes / data.years / data.production_years / data.countries{value, count}[]

Each is the items list of its own endpoint: the value and how many live lots have it. Countries also carry name.

data.errorsobject

Present only when a dimension could not be served: { field: reason }. Every other field is still returned, so one slow dimension cannot blank a filter sidebar.

GET

/api/v1/brands

List brands with round-trippable slugs and live inventory counts.

Requires the search scope.

Unversioned path, original response shape: /api/brands

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.

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

brand / modelstring | integer · query string

Name, slug, or brand_id, exactly as on /api/v1/vehicles.

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

year_from / year_tointeger · query string

Registration-year range. Accepted and ignored by /api/v1/years itself, which is the dimension they would narrow.

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

fuel / gearboxstring · query string

Canonical group, matched whole.

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

countrystring · query string

ISO country code or europe. Accepted and ignored by /api/v1/sites and /api/v1/load-models.

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

site / site_excludestring · query string

Comma-separated source slugs to include or leave out.

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

kilometers_from / kilometers_tointeger · query string

Mileage range.

Example 0 / 150000·Where the value comes from Mileage bounds chosen by your user.

horsepower_from / horsepower_tointeger · query string

Power range in HP.

Example 150 / 300·Where the value comes from Power bounds chosen by your user.

price_from / price_tointeger · query string

Public EUR price range. price_to=5000 on /api/v1/brands returns each brand count under EUR 5,000.

Example 0 / 5000·Where the value comes from EUR budget chosen by your user.

vehicle_type / body_stylestring · query string

Vehicle-type and body-style filters.

Example cars·Where the value comes from As on /api/v1/vehicles.

steeringenum · query string

Restrict to left- or right-hand-drive vehicles. Slower than an unfiltered facet call, because it is computed live rather than read from the precomputed facet table.

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.

damagedboolean · query string

Restrict to damaged or broken vehicles.

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

buy_nowboolean · query string

Restrict to Buy-Now inventory.

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

ending_soonboolean · query string

Restrict to lots ending within about two hours.

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

searchstring · query string

Substring filter on brand name.

Example bm·Where the value comes from Free text entered by your user.

orderingenum · query string

name, -name, count, or -count. An unrecognised value falls back to name rather than erroring.

Example -count·Where the value comes from Choose name, -name, count, or -count.

limitinteger · query string

Maximum number of values. No default — the full brand list is returned unless you cap it, which is what a filter sidebar wants.

Example 20·Where the value comes from Result count chosen by your application.

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/brands?search=bm&ordering=-count&limit=20
GET https://api.thecarapi.com/api/v1/brands?country=DE&damaged=true
Sends the first example with the sandbox key. Sample data only.

Example response

json
{
  "success": true,
  "data": {
    "items": [
      {
        "id": 12,
        "name": "BMW",
        "slug": "bmw",
        "count": 1543
      }
    ]
  }
}
GET

/api/v1/models

List models for one brand with live inventory counts.

Requires the search scope.

Unversioned path, original response shape: /api/models

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.

brandstring | integer · query stringrequired

Brand name, slug, or brand_id.

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

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

brand / modelstring | integer · query string

Name, slug, or brand_id, exactly as on /api/v1/vehicles.

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

year_from / year_tointeger · query string

Registration-year range. Accepted and ignored by /api/v1/years itself, which is the dimension they would narrow.

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

fuel / gearboxstring · query string

Canonical group, matched whole.

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

countrystring · query string

ISO country code or europe. Accepted and ignored by /api/v1/sites and /api/v1/load-models.

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

site / site_excludestring · query string

Comma-separated source slugs to include or leave out.

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

kilometers_from / kilometers_tointeger · query string

Mileage range.

Example 0 / 150000·Where the value comes from Mileage bounds chosen by your user.

horsepower_from / horsepower_tointeger · query string

Power range in HP.

Example 150 / 300·Where the value comes from Power bounds chosen by your user.

price_from / price_tointeger · query string

Public EUR price range. price_to=5000 on /api/v1/brands returns each brand count under EUR 5,000.

Example 0 / 5000·Where the value comes from EUR budget chosen by your user.

vehicle_type / body_stylestring · query string

Vehicle-type and body-style filters.

Example cars·Where the value comes from As on /api/v1/vehicles.

steeringenum · query string

Restrict to left- or right-hand-drive vehicles. Slower than an unfiltered facet call, because it is computed live rather than read from the precomputed facet table.

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.

damagedboolean · query string

Restrict to damaged or broken vehicles.

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

buy_nowboolean · query string

Restrict to Buy-Now inventory.

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

ending_soonboolean · query string

Restrict to lots ending within about two hours.

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

searchstring · query string

Substring filter on model name.

Example x·Where the value comes from Free text entered by your user.

orderingenum · query string

name, -name, count, or -count. An unrecognised value falls back to name rather than erroring.

Example -count·Where the value comes from Choose name, -name, count, or -count.

limitinteger · query string

Maximum number of values. No default — the full model list for the brand is returned unless you cap it.

Example 20·Where the value comes from Result count chosen by your application.

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/models?brand=bmw&ordering=-count
GET https://api.thecarapi.com/api/v1/models?brand=12&search=x&country=DE
Sends the first example with the sandbox key. Sample data only.

Example response

json
{
  "success": true,
  "data": {
    "items": [
      {
        "name": "320d",
        "slug": "320d",
        "count": 210
      }
    ]
  }
}
GET

/api/v1/years

List registration years available in current inventory.

Requires the search scope.

Unversioned path, original response shape: /api/years

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

brand / modelstring | integer · query string

Name, slug, or brand_id, exactly as on /api/v1/vehicles.

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

year_from / year_tointeger · query string

Registration-year range. Accepted and ignored by /api/v1/years itself, which is the dimension they would narrow.

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

fuel / gearboxstring · query string

Canonical group, matched whole.

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

countrystring · query string

ISO country code or europe. Accepted and ignored by /api/v1/sites and /api/v1/load-models.

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

site / site_excludestring · query string

Comma-separated source slugs to include or leave out.

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

kilometers_from / kilometers_tointeger · query string

Mileage range.

Example 0 / 150000·Where the value comes from Mileage bounds chosen by your user.

horsepower_from / horsepower_tointeger · query string

Power range in HP.

Example 150 / 300·Where the value comes from Power bounds chosen by your user.

price_from / price_tointeger · query string

Public EUR price range. price_to=5000 on /api/v1/brands returns each brand count under EUR 5,000.

Example 0 / 5000·Where the value comes from EUR budget chosen by your user.

vehicle_type / body_stylestring · query string

Vehicle-type and body-style filters.

Example cars·Where the value comes from As on /api/v1/vehicles.

steeringenum · query string

Restrict to left- or right-hand-drive vehicles. Slower than an unfiltered facet call, because it is computed live rather than read from the precomputed facet table.

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.

damagedboolean · query string

Restrict to damaged or broken vehicles.

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

buy_nowboolean · query string

Restrict to Buy-Now inventory.

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

ending_soonboolean · query string

Restrict to lots ending within about two hours.

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

Example requests

Request
GET https://api.thecarapi.com/api/v1/years?country=DE
GET https://api.thecarapi.com/api/v1/years?damaged=true&buy_now=true
Sends the first example with the sandbox key. Sample data only.

Example response

json
{
  "success": true,
  "data": {
    "items": [
      {
        "value": 2024,
        "count": 512
      },
      {
        "value": 2023,
        "count": 4127
      },
      {
        "value": 2022,
        "count": 3890
      },
      {
        "value": 2021,
        "count": 3544
      }
    ]
  }
}

What you get back

data.items[].valuestring | integer

A value present in the filtered inventory. Send it back as the matching filter.

data.items[].countinteger

How many live lots have it, under the other filters of the request.

GET

/api/v1/fuels

List canonical fuel groups available in current inventory.

Requires the search scope.

Unversioned path, original response shape: /api/fuels

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

brand / modelstring | integer · query string

Name, slug, or brand_id, exactly as on /api/v1/vehicles.

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

year_from / year_tointeger · query string

Registration-year range. Accepted and ignored by /api/v1/years itself, which is the dimension they would narrow.

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

fuel / gearboxstring · query string

Canonical group, matched whole.

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

countrystring · query string

ISO country code or europe. Accepted and ignored by /api/v1/sites and /api/v1/load-models.

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

site / site_excludestring · query string

Comma-separated source slugs to include or leave out.

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

kilometers_from / kilometers_tointeger · query string

Mileage range.

Example 0 / 150000·Where the value comes from Mileage bounds chosen by your user.

horsepower_from / horsepower_tointeger · query string

Power range in HP.

Example 150 / 300·Where the value comes from Power bounds chosen by your user.

price_from / price_tointeger · query string

Public EUR price range. price_to=5000 on /api/v1/brands returns each brand count under EUR 5,000.

Example 0 / 5000·Where the value comes from EUR budget chosen by your user.

vehicle_type / body_stylestring · query string

Vehicle-type and body-style filters.

Example cars·Where the value comes from As on /api/v1/vehicles.

steeringenum · query string

Restrict to left- or right-hand-drive vehicles. Slower than an unfiltered facet call, because it is computed live rather than read from the precomputed facet table.

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.

damagedboolean · query string

Restrict to damaged or broken vehicles.

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

buy_nowboolean · query string

Restrict to Buy-Now inventory.

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

ending_soonboolean · query string

Restrict to lots ending within about two hours.

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

Example requests

Request
GET https://api.thecarapi.com/api/v1/fuels?country=DE
GET https://api.thecarapi.com/api/v1/fuels?buy_now=true
Sends the first example with the sandbox key. Sample data only.

Example response

json
{
  "success": true,
  "data": {
    "items": [
      {
        "value": "Diesel",
        "count": 18342
      },
      {
        "value": "Electric",
        "count": 903
      },
      {
        "value": "Hybrid",
        "count": 2211
      },
      {
        "value": "Mild Hybrid",
        "count": 5107
      },
      {
        "value": "Petrol",
        "count": 24980
      },
      {
        "value": "Plug-in Hybrid",
        "count": 1489
      }
    ]
  }
}

What you get back

data.items[].valuestring | integer

A value present in the filtered inventory. Send it back as the matching filter.

data.items[].countinteger

How many live lots have it, under the other filters of the request.

GET

/api/v1/gearboxes

List canonical gearbox groups available in current inventory.

Requires the search scope.

Unversioned path, original response shape: /api/gearboxes

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

brand / modelstring | integer · query string

Name, slug, or brand_id, exactly as on /api/v1/vehicles.

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

year_from / year_tointeger · query string

Registration-year range. Accepted and ignored by /api/v1/years itself, which is the dimension they would narrow.

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

fuel / gearboxstring · query string

Canonical group, matched whole.

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

countrystring · query string

ISO country code or europe. Accepted and ignored by /api/v1/sites and /api/v1/load-models.

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

site / site_excludestring · query string

Comma-separated source slugs to include or leave out.

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

kilometers_from / kilometers_tointeger · query string

Mileage range.

Example 0 / 150000·Where the value comes from Mileage bounds chosen by your user.

horsepower_from / horsepower_tointeger · query string

Power range in HP.

Example 150 / 300·Where the value comes from Power bounds chosen by your user.

price_from / price_tointeger · query string

Public EUR price range. price_to=5000 on /api/v1/brands returns each brand count under EUR 5,000.

Example 0 / 5000·Where the value comes from EUR budget chosen by your user.

vehicle_type / body_stylestring · query string

Vehicle-type and body-style filters.

Example cars·Where the value comes from As on /api/v1/vehicles.

steeringenum · query string

Restrict to left- or right-hand-drive vehicles. Slower than an unfiltered facet call, because it is computed live rather than read from the precomputed facet table.

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.

damagedboolean · query string

Restrict to damaged or broken vehicles.

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

buy_nowboolean · query string

Restrict to Buy-Now inventory.

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

ending_soonboolean · query string

Restrict to lots ending within about two hours.

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

Example requests

Request
GET https://api.thecarapi.com/api/v1/gearboxes?country=KR
GET https://api.thecarapi.com/api/v1/gearboxes?damaged=true
Sends the first example with the sandbox key. Sample data only.

Example response

json
{
  "success": true,
  "data": {
    "items": [
      {
        "value": "Automatic",
        "count": 22190
      },
      {
        "value": "Manual",
        "count": 15432
      }
    ]
  }
}

What you get back

data.items[].valuestring | integer

A value present in the filtered inventory. Send it back as the matching filter.

data.items[].countinteger

How many live lots have it, under the other filters of the request.

GET

/api/v1/countries

List vehicle-location countries and display names.

Requires the search scope.

Unversioned path, original response shape: /api/countries

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

brand / modelstring | integer · query string

Name, slug, or brand_id, exactly as on /api/v1/vehicles.

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

year_from / year_tointeger · query string

Registration-year range. Accepted and ignored by /api/v1/years itself, which is the dimension they would narrow.

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

fuel / gearboxstring · query string

Canonical group, matched whole.

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

countrystring · query string

ISO country code or europe. Accepted and ignored by /api/v1/sites and /api/v1/load-models.

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

site / site_excludestring · query string

Comma-separated source slugs to include or leave out.

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

kilometers_from / kilometers_tointeger · query string

Mileage range.

Example 0 / 150000·Where the value comes from Mileage bounds chosen by your user.

horsepower_from / horsepower_tointeger · query string

Power range in HP.

Example 150 / 300·Where the value comes from Power bounds chosen by your user.

price_from / price_tointeger · query string

Public EUR price range. price_to=5000 on /api/v1/brands returns each brand count under EUR 5,000.

Example 0 / 5000·Where the value comes from EUR budget chosen by your user.

vehicle_type / body_stylestring · query string

Vehicle-type and body-style filters.

Example cars·Where the value comes from As on /api/v1/vehicles.

steeringenum · query string

Restrict to left- or right-hand-drive vehicles. Slower than an unfiltered facet call, because it is computed live rather than read from the precomputed facet table.

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.

damagedboolean · query string

Restrict to damaged or broken vehicles.

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

buy_nowboolean · query string

Restrict to Buy-Now inventory.

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

ending_soonboolean · query string

Restrict to lots ending within about two hours.

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

Example requests

Request
GET https://api.thecarapi.com/api/v1/countries?buy_now=true
GET https://api.thecarapi.com/api/v1/countries?damaged=true
Sends the first example with the sandbox key. Sample data only.

Example response

json
{
  "success": true,
  "data": {
    "items": [
      {
        "value": "DE",
        "count": 9871,
        "name": "Germany"
      },
      {
        "value": "JP",
        "count": 14203,
        "name": "Japan"
      },
      {
        "value": "KR",
        "count": 8455,
        "name": "South Korea"
      },
      {
        "value": "NL",
        "count": 3120,
        "name": "Netherlands"
      }
    ]
  }
}

What you get back

data.items[].valuestring | integer

A value present in the filtered inventory. Send it back as the matching filter.

data.items[].countinteger

How many live lots have it, under the other filters of the request.

data.items[].namestring

The display name of the country, for rendering a picker. value is its ISO code.

GET

/api/v1/sites

List auction source slugs with live inventory counts.

Requires the search scope.

Unversioned path, original response shape: /api/sites

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

brand / modelstring | integer · query string

Name, slug, or brand_id, exactly as on /api/v1/vehicles.

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

year_from / year_tointeger · query string

Registration-year range. Accepted and ignored by /api/v1/years itself, which is the dimension they would narrow.

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

fuel / gearboxstring · query string

Canonical group, matched whole.

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

countrystring · query string

ISO country code or europe. Accepted and ignored by /api/v1/sites and /api/v1/load-models.

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

site / site_excludestring · query string

Comma-separated source slugs to include or leave out.

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

kilometers_from / kilometers_tointeger · query string

Mileage range.

Example 0 / 150000·Where the value comes from Mileage bounds chosen by your user.

horsepower_from / horsepower_tointeger · query string

Power range in HP.

Example 150 / 300·Where the value comes from Power bounds chosen by your user.

price_from / price_tointeger · query string

Public EUR price range. price_to=5000 on /api/v1/brands returns each brand count under EUR 5,000.

Example 0 / 5000·Where the value comes from EUR budget chosen by your user.

vehicle_type / body_stylestring · query string

Vehicle-type and body-style filters.

Example cars·Where the value comes from As on /api/v1/vehicles.

steeringenum · query string

Restrict to left- or right-hand-drive vehicles. Slower than an unfiltered facet call, because it is computed live rather than read from the precomputed facet table.

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.

damagedboolean · query string

Restrict to damaged or broken vehicles.

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

buy_nowboolean · query string

Restrict to Buy-Now inventory.

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

ending_soonboolean · query string

Restrict to lots ending within about two hours.

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

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/sites?buy_now=true
GET https://api.thecarapi.com/api/v1/sites?damaged=true
Sends the first example with the sandbox key. Sample data only.

Example response

json
{
  "success": true,
  "data": {
    "items": [
      {
        "id": 1,
        "name": "encar",
        "count": 9021
      },
      {
        "id": 2,
        "name": "openlane",
        "count": 4110
      },
      {
        "id": 4,
        "name": "japan",
        "count": 1642
      }
    ]
  }
}
GET

/api/v1/load-models

Return the complete model catalog grouped by brand.

Requires the search scope.

Unversioned path, original response shape: /load-models

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

brand / modelstring | integer · query string

Name, slug, or brand_id, exactly as on /api/v1/vehicles.

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

year_from / year_tointeger · query string

Registration-year range. Accepted and ignored by /api/v1/years itself, which is the dimension they would narrow.

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

fuel / gearboxstring · query string

Canonical group, matched whole.

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

countrystring · query string

ISO country code or europe. Accepted and ignored by /api/v1/sites and /api/v1/load-models.

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

site / site_excludestring · query string

Comma-separated source slugs to include or leave out.

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

kilometers_from / kilometers_tointeger · query string

Mileage range.

Example 0 / 150000·Where the value comes from Mileage bounds chosen by your user.

horsepower_from / horsepower_tointeger · query string

Power range in HP.

Example 150 / 300·Where the value comes from Power bounds chosen by your user.

price_from / price_tointeger · query string

Public EUR price range. price_to=5000 on /api/v1/brands returns each brand count under EUR 5,000.

Example 0 / 5000·Where the value comes from EUR budget chosen by your user.

vehicle_type / body_stylestring · query string

Vehicle-type and body-style filters.

Example cars·Where the value comes from As on /api/v1/vehicles.

steeringenum · query string

Restrict to left- or right-hand-drive vehicles. Slower than an unfiltered facet call, because it is computed live rather than read from the precomputed facet table.

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.

damagedboolean · query string

Restrict to damaged or broken vehicles.

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

buy_nowboolean · query string

Restrict to Buy-Now inventory.

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

ending_soonboolean · query string

Restrict to lots ending within about two hours.

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

Example requests

Request
GET https://api.thecarapi.com/api/v1/load-models?country=DE
GET https://api.thecarapi.com/api/v1/load-models?buy_now=true&damaged=false
Sends the first example with the sandbox key. Sample data only.

Example response

json
{
  "success": true,
  "data": {
    "BMW": [
      {
        "text": "320d"
      },
      {
        "text": "X5"
      }
    ],
    "Volvo": [
      {
        "text": "XC60"
      }
    ]
  }
}