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.
Trim filter values for one brand and model
Requires the search scope.
Unversioned path, original response shape: /api/types
Parameters
auction_gradestring · query stringThe 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 stringThe 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 stringThe 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 stringA 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 stringtrue 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 stringtrue restricts to Buy-Now listings. Also accepts 1/0/yes/no.
Example true·Where the value comes from Current API reference
countrystring · query stringISO 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 stringrequiredBrand display name, slug (from /api/v1/brands), or numeric brand_id.
Example bmw·Where the value comes from Current API reference
modelstring · query stringrequiredModel name from /api/v1/models. Comma-separated values select several.
Example 5-Series·Where the value comes from Current API reference
year_frominteger · query stringLower bound on registration year, inclusive.
Example 2018·Where the value comes from Current API reference
year_tointeger · query stringUpper bound on registration year, inclusive.
Example 2024·Where the value comes from Current API reference
production_year_frominteger · query stringLower 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 stringUpper bound on production year, inclusive.
Example 2024·Where the value comes from Current API reference
fuelstring · query stringCanonical fuel group from /api/v1/fuels.
Example Diesel·Where the value comes from Current API reference
gearboxstring · query stringCanonical gearbox group from /api/v1/gearboxes.
Example Automatic·Where the value comes from Current API reference
kilometers_frominteger · query stringLower bound on mileage in kilometres.
Example 0·Where the value comes from Current API reference
kilometers_tointeger · query stringUpper bound on mileage in kilometres.
Example 150000·Where the value comes from Current API reference
horsepower_frominteger · query stringExample ·Where the value comes from Current API reference
horsepower_tointeger · query stringExample ·Where the value comes from Current API reference
price_frominteger · query stringLower bound on the public EUR price.
Example 1000·Where the value comes from Current API reference
price_tointeger · query stringUpper bound on the public EUR price.
Example 30000·Where the value comes from Current API reference
typestring · query stringTrim / 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 stringExample ·Where the value comes from Current API reference
body_stylestring · query stringExample ·Where the value comes from Current API reference
ending_soonboolean · query stringtrue restricts to auctions ending within roughly two hours.
Example true·Where the value comes from Current API reference
sitestring · query stringComma-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 stringComma-separated source slugs to leave out. Same rules as site.
Example copart·Where the value comes from Current API reference
searchstring · query stringSubstring filter on the facet value name.
Example ·Where the value comes from Current API reference
orderingstring · query stringExample ·Where the value comes from Current API reference
limitinteger · query stringMaximum facet values to return.
Example 20·Where the value comes from Current API reference
steeringstring · query stringWhich 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 stringComma-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 stringcsv 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
GET https://api.thecarapi.com/api/v1/types?brand=bmw&model=320dExample response
{
"success": true,
"data": {
"grouped": {
"320d": [
{
"name": "Touring",
"count": 12
}
]
},
"items": [
{
"name": "Touring",
"count": 12
}
]
}
}Available production years
Requires the search scope.
Unversioned path, original response shape: /api/production-years
Parameters
auction_gradestring · query stringThe 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 stringThe 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 stringThe 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 stringA 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 stringtrue 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 stringtrue restricts to Buy-Now listings. Also accepts 1/0/yes/no.
Example true·Where the value comes from Current API reference
countrystring · query stringISO 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 stringBrand display name, slug (from /api/v1/brands), or numeric brand_id.
Example bmw·Where the value comes from Current API reference
modelstring · query stringModel name or slug.
Example 320d·Where the value comes from Current API reference
year_frominteger · query stringLower bound on registration year, inclusive.
Example 2018·Where the value comes from Current API reference
year_tointeger · query stringUpper bound on registration year, inclusive.
Example 2024·Where the value comes from Current API reference
production_year_frominteger · query stringLower 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 stringUpper bound on production year, inclusive.
Example 2024·Where the value comes from Current API reference
fuelstring · query stringCanonical fuel group from /api/v1/fuels.
Example Diesel·Where the value comes from Current API reference
gearboxstring · query stringCanonical gearbox group from /api/v1/gearboxes.
Example Automatic·Where the value comes from Current API reference
kilometers_frominteger · query stringLower bound on mileage in kilometres.
Example 0·Where the value comes from Current API reference
kilometers_tointeger · query stringUpper bound on mileage in kilometres.
Example 150000·Where the value comes from Current API reference
horsepower_frominteger · query stringExample ·Where the value comes from Current API reference
horsepower_tointeger · query stringExample ·Where the value comes from Current API reference
price_frominteger · query stringLower bound on the public EUR price.
Example 1000·Where the value comes from Current API reference
price_tointeger · query stringUpper bound on the public EUR price.
Example 30000·Where the value comes from Current API reference
typestring · query stringTrim / 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 stringExample ·Where the value comes from Current API reference
body_stylestring · query stringExample ·Where the value comes from Current API reference
ending_soonboolean · query stringtrue restricts to auctions ending within roughly two hours.
Example true·Where the value comes from Current API reference
sitestring · query stringComma-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 stringComma-separated source slugs to leave out. Same rules as site.
Example copart·Where the value comes from Current API reference
steeringstring · query stringWhich 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
GET https://api.thecarapi.com/api/v1/production-yearsExample response
{
"success": true,
"data": {
"items": [
{
"value": 2023,
"count": 12
}
]
}
}What you get back
data.items[].valuestring | integerA value present in the filtered inventory. Send it back as the matching filter.
data.items[].countintegerHow many live lots have it, under the other filters of the request.
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 stringThe 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 stringThe 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 stringThe 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 stringA 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 stringComma-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 stringThe 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 stringThe 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 stringThe 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 stringA 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 stringProduction-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 stringTrim/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 stringName, 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 stringRegistration-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 stringCanonical group, matched whole.
Example Diesel·Where the value comes from /api/v1/fuels -> data.items[].value, /api/v1/gearboxes -> data.items[].value
countrystring · query stringISO 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 stringComma-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 stringMileage range.
Example 0 / 150000·Where the value comes from Mileage bounds chosen by your user.
horsepower_from / horsepower_tointeger · query stringPower range in HP.
Example 150 / 300·Where the value comes from Power bounds chosen by your user.
price_from / price_tointeger · query stringPublic 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 stringVehicle-type and body-style filters.
Example cars·Where the value comes from As on /api/v1/vehicles.
steeringenum · query stringRestrict 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 stringRestrict to damaged or broken vehicles.
Example true·Where the value comes from Your filter choice.
buy_nowboolean · query stringRestrict to Buy-Now inventory.
Example true·Where the value comes from Your filter choice.
ending_soonboolean · query stringRestrict to lots ending within about two hours.
Example true·Where the value comes from Your filter choice.
Example requests
GET https://api.thecarapi.com/api/v1/facets?fields=brands,fuels,gearboxes&country=DEGET https://api.thecarapi.com/api/v1/facets?fields=brands,years,sites&damaged=trueGET https://api.thecarapi.com/api/v1/facets?brand=bmw&model=320d&fields=brands,models,types,years,fuelsExample response
{
"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.errorsobjectPresent 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.
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 stringThe 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 stringThe 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 stringThe 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 stringA 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 stringThe 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 stringThe 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 stringThe 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 stringA 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 stringProduction-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 stringTrim/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 stringName, 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 stringRegistration-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 stringCanonical group, matched whole.
Example Diesel·Where the value comes from /api/v1/fuels -> data.items[].value, /api/v1/gearboxes -> data.items[].value
countrystring · query stringISO 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 stringComma-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 stringMileage range.
Example 0 / 150000·Where the value comes from Mileage bounds chosen by your user.
horsepower_from / horsepower_tointeger · query stringPower range in HP.
Example 150 / 300·Where the value comes from Power bounds chosen by your user.
price_from / price_tointeger · query stringPublic 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 stringVehicle-type and body-style filters.
Example cars·Where the value comes from As on /api/v1/vehicles.
steeringenum · query stringRestrict 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 stringRestrict to damaged or broken vehicles.
Example true·Where the value comes from Your filter choice.
buy_nowboolean · query stringRestrict to Buy-Now inventory.
Example true·Where the value comes from Your filter choice.
ending_soonboolean · query stringRestrict to lots ending within about two hours.
Example true·Where the value comes from Your filter choice.
searchstring · query stringSubstring filter on brand name.
Example bm·Where the value comes from Free text entered by your user.
orderingenum · query stringname, -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 stringMaximum 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 stringComma-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 stringcsv 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
GET https://api.thecarapi.com/api/v1/brands?search=bm&ordering=-count&limit=20GET https://api.thecarapi.com/api/v1/brands?country=DE&damaged=trueExample response
{
"success": true,
"data": {
"items": [
{
"id": 12,
"name": "BMW",
"slug": "bmw",
"count": 1543
}
]
}
}List models for one brand with live inventory counts.
Requires the search scope.
Unversioned path, original response shape: /api/models
Parameters
auction_gradestring · query stringThe 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 stringThe 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 stringThe 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 stringA 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 stringrequiredBrand name, slug, or brand_id.
Example bmw·Where the value comes from /api/v1/brands -> data.items[].slug (or id/name)
auction_gradestring · query stringThe 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 stringThe 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 stringThe 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 stringA 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 stringProduction-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 stringTrim/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 stringName, 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 stringRegistration-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 stringCanonical group, matched whole.
Example Diesel·Where the value comes from /api/v1/fuels -> data.items[].value, /api/v1/gearboxes -> data.items[].value
countrystring · query stringISO 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 stringComma-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 stringMileage range.
Example 0 / 150000·Where the value comes from Mileage bounds chosen by your user.
horsepower_from / horsepower_tointeger · query stringPower range in HP.
Example 150 / 300·Where the value comes from Power bounds chosen by your user.
price_from / price_tointeger · query stringPublic 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 stringVehicle-type and body-style filters.
Example cars·Where the value comes from As on /api/v1/vehicles.
steeringenum · query stringRestrict 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 stringRestrict to damaged or broken vehicles.
Example true·Where the value comes from Your filter choice.
buy_nowboolean · query stringRestrict to Buy-Now inventory.
Example true·Where the value comes from Your filter choice.
ending_soonboolean · query stringRestrict to lots ending within about two hours.
Example true·Where the value comes from Your filter choice.
searchstring · query stringSubstring filter on model name.
Example x·Where the value comes from Free text entered by your user.
orderingenum · query stringname, -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 stringMaximum 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 stringComma-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 stringcsv 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
GET https://api.thecarapi.com/api/v1/models?brand=bmw&ordering=-countGET https://api.thecarapi.com/api/v1/models?brand=12&search=x&country=DEExample response
{
"success": true,
"data": {
"items": [
{
"name": "320d",
"slug": "320d",
"count": 210
}
]
}
}List registration years available in current inventory.
Requires the search scope.
Unversioned path, original response shape: /api/years
Parameters
auction_gradestring · query stringThe 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 stringThe 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 stringThe 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 stringA 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 stringProduction-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 stringTrim/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 stringName, 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 stringRegistration-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 stringCanonical group, matched whole.
Example Diesel·Where the value comes from /api/v1/fuels -> data.items[].value, /api/v1/gearboxes -> data.items[].value
countrystring · query stringISO 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 stringComma-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 stringMileage range.
Example 0 / 150000·Where the value comes from Mileage bounds chosen by your user.
horsepower_from / horsepower_tointeger · query stringPower range in HP.
Example 150 / 300·Where the value comes from Power bounds chosen by your user.
price_from / price_tointeger · query stringPublic 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 stringVehicle-type and body-style filters.
Example cars·Where the value comes from As on /api/v1/vehicles.
steeringenum · query stringRestrict 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 stringRestrict to damaged or broken vehicles.
Example true·Where the value comes from Your filter choice.
buy_nowboolean · query stringRestrict to Buy-Now inventory.
Example true·Where the value comes from Your filter choice.
ending_soonboolean · query stringRestrict to lots ending within about two hours.
Example true·Where the value comes from Your filter choice.
Example requests
GET https://api.thecarapi.com/api/v1/years?country=DEGET https://api.thecarapi.com/api/v1/years?damaged=true&buy_now=trueExample response
{
"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 | integerA value present in the filtered inventory. Send it back as the matching filter.
data.items[].countintegerHow many live lots have it, under the other filters of the request.
List canonical fuel groups available in current inventory.
Requires the search scope.
Unversioned path, original response shape: /api/fuels
Parameters
auction_gradestring · query stringThe 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 stringThe 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 stringThe 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 stringA 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 stringProduction-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 stringTrim/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 stringName, 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 stringRegistration-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 stringCanonical group, matched whole.
Example Diesel·Where the value comes from /api/v1/fuels -> data.items[].value, /api/v1/gearboxes -> data.items[].value
countrystring · query stringISO 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 stringComma-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 stringMileage range.
Example 0 / 150000·Where the value comes from Mileage bounds chosen by your user.
horsepower_from / horsepower_tointeger · query stringPower range in HP.
Example 150 / 300·Where the value comes from Power bounds chosen by your user.
price_from / price_tointeger · query stringPublic 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 stringVehicle-type and body-style filters.
Example cars·Where the value comes from As on /api/v1/vehicles.
steeringenum · query stringRestrict 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 stringRestrict to damaged or broken vehicles.
Example true·Where the value comes from Your filter choice.
buy_nowboolean · query stringRestrict to Buy-Now inventory.
Example true·Where the value comes from Your filter choice.
ending_soonboolean · query stringRestrict to lots ending within about two hours.
Example true·Where the value comes from Your filter choice.
Example requests
GET https://api.thecarapi.com/api/v1/fuels?country=DEGET https://api.thecarapi.com/api/v1/fuels?buy_now=trueExample response
{
"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 | integerA value present in the filtered inventory. Send it back as the matching filter.
data.items[].countintegerHow many live lots have it, under the other filters of the request.
List canonical gearbox groups available in current inventory.
Requires the search scope.
Unversioned path, original response shape: /api/gearboxes
Parameters
auction_gradestring · query stringThe 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 stringThe 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 stringThe 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 stringA 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 stringProduction-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 stringTrim/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 stringName, 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 stringRegistration-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 stringCanonical group, matched whole.
Example Diesel·Where the value comes from /api/v1/fuels -> data.items[].value, /api/v1/gearboxes -> data.items[].value
countrystring · query stringISO 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 stringComma-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 stringMileage range.
Example 0 / 150000·Where the value comes from Mileage bounds chosen by your user.
horsepower_from / horsepower_tointeger · query stringPower range in HP.
Example 150 / 300·Where the value comes from Power bounds chosen by your user.
price_from / price_tointeger · query stringPublic 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 stringVehicle-type and body-style filters.
Example cars·Where the value comes from As on /api/v1/vehicles.
steeringenum · query stringRestrict 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 stringRestrict to damaged or broken vehicles.
Example true·Where the value comes from Your filter choice.
buy_nowboolean · query stringRestrict to Buy-Now inventory.
Example true·Where the value comes from Your filter choice.
ending_soonboolean · query stringRestrict to lots ending within about two hours.
Example true·Where the value comes from Your filter choice.
Example requests
GET https://api.thecarapi.com/api/v1/gearboxes?country=KRGET https://api.thecarapi.com/api/v1/gearboxes?damaged=trueExample response
{
"success": true,
"data": {
"items": [
{
"value": "Automatic",
"count": 22190
},
{
"value": "Manual",
"count": 15432
}
]
}
}What you get back
data.items[].valuestring | integerA value present in the filtered inventory. Send it back as the matching filter.
data.items[].countintegerHow many live lots have it, under the other filters of the request.
List vehicle-location countries and display names.
Requires the search scope.
Unversioned path, original response shape: /api/countries
Parameters
auction_gradestring · query stringThe 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 stringThe 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 stringThe 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 stringA 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 stringProduction-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 stringTrim/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 stringName, 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 stringRegistration-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 stringCanonical group, matched whole.
Example Diesel·Where the value comes from /api/v1/fuels -> data.items[].value, /api/v1/gearboxes -> data.items[].value
countrystring · query stringISO 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 stringComma-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 stringMileage range.
Example 0 / 150000·Where the value comes from Mileage bounds chosen by your user.
horsepower_from / horsepower_tointeger · query stringPower range in HP.
Example 150 / 300·Where the value comes from Power bounds chosen by your user.
price_from / price_tointeger · query stringPublic 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 stringVehicle-type and body-style filters.
Example cars·Where the value comes from As on /api/v1/vehicles.
steeringenum · query stringRestrict 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 stringRestrict to damaged or broken vehicles.
Example true·Where the value comes from Your filter choice.
buy_nowboolean · query stringRestrict to Buy-Now inventory.
Example true·Where the value comes from Your filter choice.
ending_soonboolean · query stringRestrict to lots ending within about two hours.
Example true·Where the value comes from Your filter choice.
Example requests
GET https://api.thecarapi.com/api/v1/countries?buy_now=trueGET https://api.thecarapi.com/api/v1/countries?damaged=trueExample response
{
"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 | integerA value present in the filtered inventory. Send it back as the matching filter.
data.items[].countintegerHow many live lots have it, under the other filters of the request.
data.items[].namestringThe display name of the country, for rendering a picker. value is its ISO code.
List auction source slugs with live inventory counts.
Requires the search scope.
Unversioned path, original response shape: /api/sites
Parameters
auction_gradestring · query stringThe 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 stringThe 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 stringThe 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 stringA 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 stringProduction-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 stringTrim/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 stringName, 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 stringRegistration-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 stringCanonical group, matched whole.
Example Diesel·Where the value comes from /api/v1/fuels -> data.items[].value, /api/v1/gearboxes -> data.items[].value
countrystring · query stringISO 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 stringComma-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 stringMileage range.
Example 0 / 150000·Where the value comes from Mileage bounds chosen by your user.
horsepower_from / horsepower_tointeger · query stringPower range in HP.
Example 150 / 300·Where the value comes from Power bounds chosen by your user.
price_from / price_tointeger · query stringPublic 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 stringVehicle-type and body-style filters.
Example cars·Where the value comes from As on /api/v1/vehicles.
steeringenum · query stringRestrict 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 stringRestrict to damaged or broken vehicles.
Example true·Where the value comes from Your filter choice.
buy_nowboolean · query stringRestrict to Buy-Now inventory.
Example true·Where the value comes from Your filter choice.
ending_soonboolean · query stringRestrict to lots ending within about two hours.
Example true·Where the value comes from Your filter choice.
fieldsstring · query stringComma-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 stringcsv 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
GET https://api.thecarapi.com/api/v1/sites?buy_now=trueGET https://api.thecarapi.com/api/v1/sites?damaged=trueExample response
{
"success": true,
"data": {
"items": [
{
"id": 1,
"name": "encar",
"count": 9021
},
{
"id": 2,
"name": "openlane",
"count": 4110
},
{
"id": 4,
"name": "japan",
"count": 1642
}
]
}
}Return the complete model catalog grouped by brand.
Requires the search scope.
Unversioned path, original response shape: /load-models
Parameters
auction_gradestring · query stringThe 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 stringThe 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 stringThe 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 stringA 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 stringProduction-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 stringTrim/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 stringName, 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 stringRegistration-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 stringCanonical group, matched whole.
Example Diesel·Where the value comes from /api/v1/fuels -> data.items[].value, /api/v1/gearboxes -> data.items[].value
countrystring · query stringISO 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 stringComma-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 stringMileage range.
Example 0 / 150000·Where the value comes from Mileage bounds chosen by your user.
horsepower_from / horsepower_tointeger · query stringPower range in HP.
Example 150 / 300·Where the value comes from Power bounds chosen by your user.
price_from / price_tointeger · query stringPublic 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 stringVehicle-type and body-style filters.
Example cars·Where the value comes from As on /api/v1/vehicles.
steeringenum · query stringRestrict 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 stringRestrict to damaged or broken vehicles.
Example true·Where the value comes from Your filter choice.
buy_nowboolean · query stringRestrict to Buy-Now inventory.
Example true·Where the value comes from Your filter choice.
ending_soonboolean · query stringRestrict to lots ending within about two hours.
Example true·Where the value comes from Your filter choice.
Example requests
GET https://api.thecarapi.com/api/v1/load-models?country=DEGET https://api.thecarapi.com/api/v1/load-models?buy_now=true&damaged=falseExample response
{
"success": true,
"data": {
"BMW": [
{
"text": "320d"
},
{
"text": "X5"
}
],
"Volvo": [
{
"text": "XC60"
}
]
}
}