ClassicCars.com auction house inventory
A ClassicCars.com auction house (name, city/state, page link) and its vehicles for sale, with the site's sorts and page sizes. Each vehicle as in /classiccars/v1/search. Pass next_page back as page; null on the last page.
Every response includes credits_used: the credits this call cost.
Part of the ClassicCars.com API: 7 endpoints with prices, use cases and example responses.
Parameters
| name | type | description |
|---|---|---|
id | string | The auction house id, e.g. 1201 (from a listing's seller or /classiccars/v1/dealers). Example: 1201 |
url | string | A classiccars.com/listings/auction/<id>/<name> link. |
sort | default | datelisted | year | makemodel | price | Sort field. |
order | asc | desc | Sort direction. |
page_size | 15 | 30 | 60 | Vehicles per page (default 30). |
page | integer | Page number. |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/classiccars/v1/auction-house?id=1201" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/classiccars/v1/auction-house",
params={"id": "1201"},
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/classiccars/v1/auction-house");
url.searchParams.set("id", "1201");
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).
Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)
{"auction_house": {"id": "1201","name": "GAA Classic Cars Auctions","location": "Greensboro, NC","url": "https://classiccars.com/listings/auction/1201/gaa-classic-cars-auctions"},"query": {"sort": "default","order": null,"page_size": 30},"total": 704,"page": 1,"pages": 24,"count": 30,"next_page": 2,"results": [{"id": "2123937","listing_id": "CC-2123937","title": "1957 Ford Fairlane","year": 1957,"make": "Ford","model": "Fairlane","price": null,"price_text": "Auction Vehicle","currency": "USD","obo": false,"location": "Greensboro, North Carolina","snippet": "Original VA Vehicle Built October of 1956 at Norfolk Plant Original D-Code Vehicle 312 CID V8 4 Barr","badge": "Auction","seller_type": "auction","featured": false,"image": "https://photos.classiccars.com/cc-temp/listing/212/3937/62088965-1957-ford-fairlane-thumb.jpg","url": "https://classiccars.com/listings/view/2123937/1957-ford-fairlane-for-sale-in-greensboro-north-carolina-27407"},{"id": "2123935","listing_id": "CC-2123935","title": "1999 GMC Suburban","year": 1999,"make": "GMC","model": "Suburban","price": null,"price_text": "Auction Vehicle","currency": "USD","obo": false,"location": "Greensboro, North Carolina","snippet": "2WD Full Power Leather Interior Rear AC New Front Red Caliper Disc Brakes","badge": "Auction","seller_type": "auction","featured": false,"image": "https://photos.classiccars.com/cc-temp/listing/212/3935/62088908-1999-gmc-suburban-thumb.jpg","url": "https://classiccars.com/listings/view/2123935/1999-gmc-suburban-for-sale-in-greensboro-north-carolina-27407"},"… 28 more"],"cached": false,"credits_used": 1}