Bring a Trailer live auctions
Every live Bring a Trailer auction, filtered by words, make and model, year range, bid range, ending time, category, origin, era, country, no-reserve, Premium and BaT-alumni, transmission and maximum mileage, with sort and paging. Each auction has id, link, title, year, current bid, currency, end time, no-reserve and Premium flags, era, categories, location (country and coordinates), VIN where the listing shows one, excerpt, image, and mileage (miles), transmission (the gearbox as described) and transmission_type (manual or automatic) where the auction summary states them (null otherwise). Pass next_page back as page; null on the last page.
Every response includes credits_used: the credits this call cost.
Parameters
| name | type | description |
|---|---|---|
q | string | Words that must all appear in the title or listing text (make, model, trim, chassis code, VIN...). Example: porsche 911 |
make | string | Make, added to the words searched (e.g. porsche). |
model | string | Model, added to the words searched (e.g. 911). |
exclude | string | Words that must not appear. |
year_min | integer | Earliest model year. |
year_max | integer | Latest model year. |
max_bid | number | Highest current bid or result (USD). |
category | string | Categories, comma-separated: aircraft, atv, boats, charity, convertibles, diesels, electric, go_karts, hot_rods, kei, military, minibikes, motorcycles, parts, projects, race_cars, rhd, rv, service_vehicles, side_by_sides, wagons, tractors, trains, truck_4x4, vans, wheels. |
origin | string | Origins, comma-separated: american, brazilian, british, canadian, czech, dutch, french, german, italian, japanese, korean, prewar, spanish, swedish. |
era | string | Decades, comma-separated: 2020, 2010, ... 1900, pre-1900. |
country | string | Location country codes, comma-separated (US, CA, GB, DE...). |
no_reserve | boolean | true: only no-reserve auctions. |
premium | boolean | true: only Premium listings. |
bat_alumni | boolean | true: only cars sold on BaT before. |
min_bid | number | Lowest current bid (USD). |
ending_within_hours | number | Only auctions ending within this many hours. |
transmission | manual | automatic | Only auctions whose summary describes this gearbox. Automated manuals (dual-clutch, PDK, F1, SMG, sequential) count as automatic. Auctions that don't state a gearbox are left out. |
mileage_max | number | Only auctions whose stated mileage is at most this many miles (kilometres are converted). Auctions that don't state a mileage are left out. |
sort | ending_soon | ending_latest | bid_asc | bid_desc | newest | Order. |
limit | integer | Auctions per page (1-100, default 24). |
page | integer | Page number (1-based). Pass next_page back as page; null on the last page. |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/bringatrailer/v1/auctions?q=porsche+911" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/bringatrailer/v1/auctions",
params={"q": "porsche 911"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/bringatrailer/v1/auctions");
url.searchParams.set("q", "porsche 911");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).