Исторически инвентар
Ended listings moved into the archive, separate from ended rows still in the live table. Requires the archive scope. A last observed price is not a confirmed sale price.
Справочникът на ендпойнтите е на английски, както и самият API.
Search ended auctions
Изисква обхвата archive scope.
Параметри
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/search` and `/api/archive/search`, 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.
Пример 4,4.5,5·Откъде идва стойността 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/search` and `/api/archive/search`, 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.
Пример uss,honda_tokyo·Откъде идва стойността 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`.
Пример ·Откъде идва стойността Listing values or your application settings.
engine_fromnumber · query stringSmallest engine in litres, e.g. `1.6` (matches from 1550 cc).
Пример ·Откъде идва стойността Listing values or your application settings.
engine_tonumber · query stringLargest engine in litres, e.g. `2.0` (matches up to 2049 cc).
Пример ·Откъде идва стойността Listing values or your application settings.
horsepower_frominteger · query stringПример ·Откъде идва стойността Listing values or your application settings.
horsepower_tointeger · query stringПример ·Откъде идва стойността 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/search` and `/api/archive/search`, 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.
Пример 80041·Откъде идва стойността 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/search` and `/api/archive/search`, 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.
Пример USF40,ZC6·Откъде идва стойността Listing values or your application settings.
sitestring · query stringComma-separated source slugs from `/api/sites`, OR within the parameter. Case-insensitive; padding and empty members are ignored. An unknown slug is a `400` naming the offender.
Пример openlane,auto1·Откъде идва стойността Current API reference
site_excludestring · query stringComma-separated source slugs to leave out. Same rules as `site`.
Пример copart·Откъде идва стойността Current API reference
brandstring · query stringBrand display name, slug (from `/api/brands`), or numeric `brand_id`.
Пример bmw·Откъде идва стойността Current API reference
modelstring · query stringModel name or slug.
Пример 320d·Откъде идва стойността Current API reference
countrystring · query stringISO country code from `/api/countries`, or the pseudo-country `europe`. Accepted and ignored by `/api/sites` and `/load-models`.
Пример DE·Откъде идва стойността Current API reference
fuelstring · query stringCanonical fuel group from `/api/fuels`.
Пример Diesel·Откъде идва стойността Current API reference
gearboxstring · query stringCanonical gearbox group from `/api/gearboxes`.
Пример Automatic·Откъде идва стойността Current API reference
year_frominteger · query stringLower bound on registration year, inclusive.
Пример 2018·Откъде идва стойността Current API reference
year_tointeger · query stringUpper bound on registration year, inclusive.
Пример 2024·Откъде идва стойността 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.
Пример 2018·Откъде идва стойността Current API reference
production_year_tointeger · query stringUpper bound on production year, inclusive.
Пример 2024·Откъде идва стойността Current API reference
kilometers_frominteger · query stringLower bound on mileage in kilometres.
Пример 0·Откъде идва стойността Current API reference
kilometers_tointeger · query stringUpper bound on mileage in kilometres.
Пример 150000·Откъде идва стойността Current API reference
price_frominteger · query stringLower bound on the public EUR price.
Пример 1000·Откъде идва стойността Current API reference
price_tointeger · query stringUpper bound on the public EUR price.
Пример 30000·Откъде идва стойността Current API reference
archived_fromstring · query stringOnly lots archived on or after this date (`YYYY-MM-DD`). Anything else is a `400`.
Пример 2026-07-01·Откъде идва стойността Current API reference
archived_tostring · query stringOnly lots archived on or before this date (`YYYY-MM-DD`). Inclusive of the whole day named.
Пример 2026-08-31·Откъде идва стойността Current API reference
vinstring · query stringExact full-VIN filter. Punctuation and case are ignored. A value that is not a valid 17-character VIN is a `400`. VIN coverage varies; query /api/archive/stats before relying on it.
Пример WBA8E9G50GNU12345·Откъде идва стойността Current API reference
sortstring · query stringResult ordering.
Пример archived_desc·Откъде идва стойността Current API reference
limitinteger · query stringPage size. Capped at `pagination.max_limit` from `GET /api/contract` (100 by default; up to 500 for a key granted bulk pages); larger values are clamped down rather than rejected. Do not combine with `page_size` — that is a `400`.
Пример 20·Откъде идва стойността Current API reference
offsetinteger · query string0-based row offset. Do not combine with `page` — that is a `400`. Bounded by `pagination.max_offset` (5000 by default) on archive, catalog, top-offers and classifieds; /api/search and /api/listVehicles have no offset cap.
Пример 0·Откъде идва стойността Current API reference
pageinteger · query string1-based page number; maps to `offset = (page - 1) * limit`. Do not combine with `offset`.
Пример 1·Откъде идва стойността Current API reference
page_sizeinteger · query stringAlias for `limit`. Do not combine with `limit`.
Пример 20·Откъде идва стойността Current API reference
include_totalboolean · query string`false` returns `total: null` and skips the count, which is faster.
Пример true·Откъде идва стойността Current API reference
Example requests
GET https://api.thecarapi.com/api/archive/search?site=japan&year_from=2020&limit=20GET https://api.thecarapi.com/api/archive/search?brand=bmw&archived_from=2026-09-01Примерен отговор
{
"success": true,
"results": [],
"total": 0,
"limit": 20,
"offset": 0,
"sort": "archived_desc",
"page": 1,
"page_size": 20,
"total_pages": 0,
"max_page": 0,
"contract_version": "2026-10-05"
}One archived auction in full
Изисква обхвата archive scope.
Параметри
site_slugstring · in the URL pathзадължителенПример openlane·Откъде идва стойността Current API reference
auction_idinteger · in the URL pathзадължителенThe source's auction id, as published on the search card.
Пример 38112900·Откъде идва стойността Current API reference
Example request
GET https://api.thecarapi.com/api/archive/auction/encar/38112900Примерен отговор
{
"success": true,
"auction": {
"site_name": "encar",
"auction_id": 38112900,
"auction_id_str": "38112900",
"archived": true,
"archived_at": "2026-09-01T12:00:00",
"final_price": null
},
"contract_version": "2026-10-05"
}Counts of finished lots per filter value.
Изисква обхвата archive scope.
Параметри
site / site_excludestring · query stringComma-separated source slugs to include or leave out. An unknown slug is a 400 naming the offender.
Пример openlane·Откъде идва стойността /api/sites -> sites[].name
brand / modelstring · query stringBrand name, slug or brand_id, and model name or slug, matched exactly as on /api/archive/search. Giving brand adds a model facet.
Пример bmw / 320d·Откъде идва стойността /api/brands -> brands[].slug, /api/models?brand=bmw -> models[].slug
countrystring · query stringISO country code or europe.
Пример DE·Откъде идва стойността /api/countries -> country_details[].code
fuel / gearboxstring · query stringCanonical fuel and gearbox groups.
Пример Diesel·Откъде идва стойността /api/fuels -> fuels[], /api/gearboxes -> gearboxes[]
year_from / year_tointeger · query stringRegistration-year range, inclusive.
Пример 2018 / 2024·Откъде идва стойността Year bounds chosen by your user.
production_year_from / production_year_tointeger · query stringProduction-year range. Falls back to registration year where the source publishes no build year.
Пример 2018 / 2024·Откъде идва стойността Year bounds chosen by your user.
kilometers_from / kilometers_tointeger · query stringMileage range in kilometres.
Пример 0 / 150000·Откъде идва стойността Mileage bounds chosen by your user.
price_from / price_tointeger · query stringPublic EUR price range.
Пример 1000 / 30000·Откъде идва стойността EUR budget chosen by your user.
horsepower_from / horsepower_tointeger · query stringPower range in HP.
Пример 150 / 300·Откъде идва стойността Power bounds chosen by your user.
engine_from / engine_tonumber · query stringEngine size in litres. 1.6 matches from 1550 cc; 2.0 matches up to 2049 cc.
Пример 1.6 / 2.0·Откъде идва стойността Engine sizes chosen by your user.
damagedboolean · query stringtrue keeps only damaged or broken vehicles, false only undamaged ones.
Пример false·Откъде идва стойността Your filter choice.
archived_from / archived_tostring · query stringLots that ended on or after / on or before this date (YYYY-MM-DD).
Пример 2026-07-01 / 2026-09-30·Откъде идва стойността Date range chosen by your user.
vinstring · query stringExact full-VIN filter.
Пример WBA8E9G50GNU12345·Откъде идва стойността A VIN you already have.
limitinteger · query stringValues per facet. Default 100, maximum 500.
Пример 100·Откъде идва стойността How many values your control can hold.
Example requests
GET https://api.thecarapi.com/api/archive/facets?brand=bmw&year_from=2018GET https://api.thecarapi.com/api/archive/facets?site=copart&archived_from=2026-07-01Примерен отговор
{
"success": true,
"total": 48210,
"facets": {
"site": [
{
"value": "openlane",
"count": 18220
}
],
"brand": [
{
"value": "BMW",
"count": 48210
}
],
"model": [
{
"value": "320d",
"count": 3120
}
],
"country": [
{
"value": "DE",
"count": 11840
}
],
"fuel": [
{
"value": "Diesel",
"count": 30110
}
],
"gearbox": [
{
"value": "Automatic",
"count": 35020
}
],
"year": [
{
"value": 2019,
"count": 6120
}
],
"condition": [
{
"value": "normal",
"count": 44090
}
]
}
}Какво получавате
totalintegerFinished lots matching the filters.
facets.<dimension>{value, count}[]site, brand, country, fuel, gearbox, year and condition, plus model when brand is given — the values present under the other filters, biggest first.
Closing-price statistics of finished lots, grouped by one dimension.
Изисква обхвата archive scope.
Параметри
group_byenum · query stringThe dimension to group by. Default month.
Пример month·Откъде идва стойността site, country, brand, model, year, fuel, gearbox, condition, month or week.
site / site_excludestring · query stringComma-separated source slugs to include or leave out. An unknown slug is a 400 naming the offender.
Пример openlane·Откъде идва стойността /api/sites -> sites[].name
brand / modelstring · query stringBrand name, slug or brand_id, and model name or slug, matched exactly as on /api/archive/search. Giving brand adds a model facet.
Пример bmw / 320d·Откъде идва стойността /api/brands -> brands[].slug, /api/models?brand=bmw -> models[].slug
countrystring · query stringISO country code or europe.
Пример DE·Откъде идва стойността /api/countries -> country_details[].code
fuel / gearboxstring · query stringCanonical fuel and gearbox groups.
Пример Diesel·Откъде идва стойността /api/fuels -> fuels[], /api/gearboxes -> gearboxes[]
year_from / year_tointeger · query stringRegistration-year range, inclusive.
Пример 2018 / 2024·Откъде идва стойността Year bounds chosen by your user.
production_year_from / production_year_tointeger · query stringProduction-year range. Falls back to registration year where the source publishes no build year.
Пример 2018 / 2024·Откъде идва стойността Year bounds chosen by your user.
kilometers_from / kilometers_tointeger · query stringMileage range in kilometres.
Пример 0 / 150000·Откъде идва стойността Mileage bounds chosen by your user.
price_from / price_tointeger · query stringPublic EUR price range.
Пример 1000 / 30000·Откъде идва стойността EUR budget chosen by your user.
horsepower_from / horsepower_tointeger · query stringPower range in HP.
Пример 150 / 300·Откъде идва стойността Power bounds chosen by your user.
engine_from / engine_tonumber · query stringEngine size in litres. 1.6 matches from 1550 cc; 2.0 matches up to 2049 cc.
Пример 1.6 / 2.0·Откъде идва стойността Engine sizes chosen by your user.
damagedboolean · query stringtrue keeps only damaged or broken vehicles, false only undamaged ones.
Пример false·Откъде идва стойността Your filter choice.
archived_from / archived_tostring · query stringLots that ended on or after / on or before this date (YYYY-MM-DD).
Пример 2026-07-01 / 2026-09-30·Откъде идва стойността Date range chosen by your user.
vinstring · query stringExact full-VIN filter.
Пример WBA8E9G50GNU12345·Откъде идва стойността A VIN you already have.
limitinteger · query stringGroups returned. Default 100, maximum 500.
Пример 24·Откъде идва стойността How many groups you will show.
Example requests
GET https://api.thecarapi.com/api/archive/statistics?brand=bmw&model=320d&group_by=monthGET https://api.thecarapi.com/api/archive/statistics?group_by=country&year_from=2019Примерен отговор
{
"success": true,
"group_by": "month",
"groups": [
{
"month": "2026-09",
"count": 412,
"priced_count": 401,
"result_count": 140,
"buy_now_count": 37,
"close_median_eur": 18400,
"close_p25_eur": 14200,
"close_p75_eur": 22900,
"close_mean_eur": 18950,
"buy_now_median_eur": 21900,
"mean_mileage_km": 98000,
"mean_hp": 184,
"damaged_share": 0.08
}
],
"notes": {
"close_price": "the source's published result where it has one (result_count), else the last bid seen - not proof of a sale",
"coverage": "archived lots plus lots that ended and are not archived yet"
}
}Какво получавате
groups[]object[]Each group is keyed by its dimension (month: "2026-09", site: "openlane", ...) and carries count, priced_count, result_count (lots whose source published a result), buy_now_count, close_median_eur, close_p25_eur, close_p75_eur, close_mean_eur, buy_now_median_eur, mean_mileage_km, mean_hp and damaged_share (0–1). EUR and mean figures are whole numbers, null where nothing in the group had a value. month, week and year groups come back in chronological order, every other grouping biggest first.
notesobjectPlain-language caveats: what close_price means and which lots are covered.
Archive coverage per source
Изисква обхвата archive scope.
Example request
GET https://api.thecarapi.com/api/archive/statsПримерен отговор
{
"success": true,
"total": 0,
"archived_from": null,
"archived_to": null,
"sources": [],
"contract_version": "2026-10-05"
}