ClassicCars.com dealer inventory
A ClassicCars.com dealer (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 dealer id, e.g. 639 (from a listing's seller or /classiccars/v1/dealers). Example: 639 |
url | string | A classiccars.com/listings/dealer/<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/dealer?id=639" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/classiccars/v1/dealer",
params={"id": "639"},
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/dealer");
url.searchParams.set("id", "639");
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)
{"dealer": {"id": "639","name": "Canepa","location": "Scotts Valley, CA","url": "https://classiccars.com/listings/dealer/639/canepa"},"query": {"sort": "default","order": null,"page_size": 30},"total": 47,"page": 1,"pages": 2,"count": 30,"next_page": 2,"results": [{"id": "1949777","listing_id": "CC-1949777","title": "1966 Porsche 906","year": 1966,"make": "Porsche","model": "906","price": null,"price_text": "Contact Seller","currency": "USD","obo": false,"location": "Scotts Valley, California","snippet": "Click here to view high resolution photos 1966 Porsche 906 VIN: 906-137 Campaigned by Jo Siffert, Jo","badge": "Priority Seller Showcased","seller_type": "dealer","featured": true,"image": "https://photos.classiccars.com/cc-temp/listing/194/9777/61757373-1966-porsche-906-thumb.jpg","url": "https://classiccars.com/listings/view/1949777/1966-porsche-906-for-sale-in-scotts-valley-california-95066"},{"id": "2078780","listing_id": "CC-2078780","title": "1961 Porsche 718 RS 61 Spyder","year": 1961,"make": "Porsche","model": "718 RS 61 Spyder","price": null,"price_text": "Contact Seller","currency": "USD","obo": false,"location": "Scotts Valley, California","snippet": "Click here to view high resolution photos 1961 Porsche 718 RS 61 VIN: 718-076 The last of the legend","badge": "Priority Seller Showcased","seller_type": "dealer","featured": true,"image": "https://photos.classiccars.com/cc-temp/listing/207/8780/59717099-1961-porsche-718-rs-61-spyder-thumb.jpg","url": "https://classiccars.com/listings/view/2078780/1961-porsche-718-rs-61-spyder-for-sale-in-scotts-valley-california-95066"},"… 28 more"],"cached": false,"credits_used": 1}