Legacy v1
Vehicle Listings
Last updated:
API reference for searching and retrieving vehicle listings.
Docs for the previous API generation. v1 endpoints keep working, but new work should target v2. See v2 Listings reference.
A listing is a vehicle for sale at a specific location, with details about the vehicle, the seller, and media. This page covers the endpoints for searching and retrieving listings.
List all listings
GET /v1/listings/search
Search listings with filters and paginate the results. The default page size is 25.
Optional attributes
| Parameter | Type | Description |
|---|---|---|
makes | array | Filter by vehicle makes (e.g., ["Toyota", "Honda"]). |
models | object | Filter by make-specific models (e.g., {"Toyota": ["Camry", "Corolla"]}). |
year | object | Filter by year range (min and max). |
price | object | Filter by price range (min and max). |
odometer | object | Filter by odometer reading range (min and max). |
saleTypes | array | Filter by sale type (e.g., ["new", "used"]). |
bodyStyles | array | Filter by body styles (e.g., ["SUV", "Sedan"]). |
location | object | Filter by geographic location (lat, lng, radius in km). |
sort | object | Sort results by field and direction. |
pagination | object | Control page size and number. |
curl "https://api.cardog.app/v1/listings/search" \
-H "x-api-key: your-api-key" \
-G \
-d "makes=Toyota" \
-d "models=Toyota|Camry,Corolla" \
-d "yearMin=2018" \
-d "yearMax=2023" \
-d "priceMin=20000" \
-d "priceMax=50000" \
-d "sort=price" \
-d "order=asc" \
-d "limit=10"import { CardogClient } from "@cardog/api";
const client = new CardogClient({ apiKey: "your-api-key" });
// Search listings with filters
const results = await client.listings.search({
makes: ["Toyota"],
models: { Toyota: ["Camry", "Corolla"] },
year: { min: 2018, max: 2023 },
price: { min: 20000, max: 50000 },
sort: { field: "price", direction: "asc" },
pagination: { limit: 10 },
});
for (const listing of results.data) {
console.log(`${listing.year} ${listing.make} ${listing.model} - $${listing.price}`);
}import requests
response = requests.get('https://api.cardog.app/v1/listings/search', params={
'makes': 'Toyota',
'models': 'Toyota|Camry,Corolla',
'yearMin': 2018,
'yearMax': 2023,
'priceMin': 20000,
'priceMax': 50000,
'sort': 'price',
'order': 'asc',
'limit': 10
}, headers={'x-api-key': 'your-api-key'})
data = response.json()Example
4 keys"response": {
"listings": [
0: {14 items}
],
"pagination": {
"page": 1,
"limit": 10
},
"sort": {
"field": "price",
"direction": "asc"
},
"filters": {
"makes": [1 item],
"models": {1 item},
"year": {2 items},
"price": {2 items}
}
}
Retrieve a listing
GET /v1/listings/id/:id
Retrieve one listing by its ID. The response includes the vehicle, seller, dealership, and media.
curl "https://api.cardog.app/v1/listings/id/01H4MXNVJ8TP5PQ8K3Y1VN4E9R" \
-H "x-api-key: your-api-key"import { CardogClient } from "@cardog/api";
const client = new CardogClient({ apiKey: "your-api-key" });
// Get a specific listing by ID
const listing = await client.listings.getById("01H4MXNVJ8TP5PQ8K3Y1VN4E9R");
console.log(listing.year, listing.make, listing.model);
console.log(`Price: $${listing.price}`);
console.log(`Seller: ${listing.seller.name}`);import requests
response = requests.get('https://api.cardog.app/v1/listings/id/01H4MXNVJ8TP5PQ8K3Y1VN4E9R',
headers={'x-api-key': 'your-api-key'})
data = response.json()Example
15 keys"response": {
"id": "01H4MXNVJ8TP5PQ8K3Y1VN4E9R",
"vin": "1HGCM82633A123456",
"sellerId": "01H4MXNVJ8TP5PQ8K3Y1VN4E9R",
"price": 25000,
"currency": "CAD",
"odometer": 50000,
"make": "Toyota",
"model": "Camry",
"year": 2020,
"trim": "SE",
"bodyStyle": "Sedan",
"condition": "used",
"seller": {
"id": "01H4MXNVJ8TP5PQ8K3Y1VN4E9R",
"name": "Toyota Dealership"
},
"dealership": {
"id": "01H4MXNVJ8TP5PQ8K3Y1VN4E9R",
"name": "Toyota Downtown"
},
"media": [
0: {3 items}
]
}
Find listings by VIN
GET /v1/listings/vin/:vin
Return every listing for a VIN (Vehicle Identification Number). Use it to track one vehicle across platforms or over time.
curl "https://api.cardog.app/v1/listings/vin/1HGCM82633A123456" \
-H "x-api-key: your-api-key"import { CardogClient } from "@cardog/api";
const client = new CardogClient({ apiKey: "your-api-key" });
// Find all listings for a specific VIN
const listings = await client.listings.byVin("1HGCM82633A123456");
for (const item of listings) {
console.log(`${item.listing.price} - ${item.seller.name}`);
}import requests
response = requests.get('https://api.cardog.app/v1/listings/vin/1HGCM82633A123456',
headers={'x-api-key': 'your-api-key'})
data = response.json()Example
1 items"response": [
0: {
"listing": {4 items},
"vehicle": {4 items},
"seller": {2 items},
"media": [1 item]
}
]
Was this helpful?