Legacy v1
Vehicle Sellers & Locations
Last updated:
API reference for searching vehicle sellers and dealerships by location with advanced filtering options.
The locations endpoints cover vehicle sellers: dealerships, individual sellers, and auction houses. Search sellers by geographic location, filter by seller type, and retrieve their inventory counts and contact details.
Search sellers by location
GET /v1/locations/search
Search sellers by geographic location and filters. Each result includes the seller's address, dealership affiliation (if any), and active listing count.
Required parameters
| Parameter | Type | Description |
|---|---|---|
lat | number | Latitude coordinate for location-based search (-90 to 90). |
lng | number | Longitude coordinate for location-based search (-180 to 180). |
Optional parameters
| Parameter | Type | Description |
|---|---|---|
radius | number | Search radius in kilometers (default: 50, max: 500). |
name | string | Filter by seller or dealership name (case-insensitive partial match). |
sellerType | string | Filter by seller type: individual, dealership, auction, or aggregator. |
websiteDomain | string | Filter by website domain (e.g., "example-motors.ca"). |
hasActiveListings | boolean | Only include sellers with active vehicle listings (default: false). |
limit | number | Maximum number of results to return (default: 50, max: 100). |
offset | number | Number of results to skip for pagination (default: 0). |
curl "https://api.cardog.app/v1/locations/search" \
-H "x-api-key: your-api-key" \
-G \
-d "lat=43.6532" \
-d "lng=-79.3832" \
-d "radius=25" \
-d "name=Toyota" \
-d "sellerType=dealership" \
-d "hasActiveListings=true" \
-d "limit=10"import { CardogClient } from "@cardog/api";
const client = new CardogClient({ apiKey: "your-api-key" });
// Search for dealerships near a location
const results = await client.locations.search({
lat: 43.6532,
lng: -79.3832,
radius: 25,
name: "Toyota",
sellerType: "dealership",
hasActiveListings: true,
limit: 10,
});
for (const seller of results.results) {
console.log(`${seller.name} - ${seller.distance}km away`);
console.log(`Active listings: ${seller.totalActiveListings}`);
}import requests
response = requests.get('https://api.cardog.app/v1/locations/search', params={
'lat': 43.6532,
'lng': -79.3832,
'radius': 25,
'name': 'Toyota',
'sellerType': 'dealership',
'hasActiveListings': True,
'limit': 10
}, headers={'x-api-key': 'your-api-key'})
data = response.json()Example
2 keysGet seller details
GET /v1/locations/:id
Retrieve one seller by its identifier. The response includes contact details, address, dealership affiliation, and active listing count.
Path parameters
| Parameter | Type | Description |
|---|---|---|
id | string | The unique UUID identifier of the seller. |
curl "https://api.cardog.app/v1/locations/d904fcbb-8859-4a60-a1b1-7f250e77fe62" \
-H "x-api-key: your-api-key"import { CardogClient } from "@cardog/api";
const client = new CardogClient({ apiKey: "your-api-key" });
// Get detailed seller information
const seller = await client.locations.getById("d904fcbb-8859-4a60-a1b1-7f250e77fe62");
console.log(seller.name);
console.log(seller.phone);
console.log(seller.address?.city, seller.address?.state);
console.log(`${seller.totalActiveListings} active listings`);import requests
seller_id = 'd904fcbb-8859-4a60-a1b1-7f250e77fe62'
response = requests.get(
f'https://api.cardog.app/v1/locations/{seller_id}',
headers={'x-api-key': 'your-api-key'}
)
data = response.json()Example
8 keysResponse objects
Seller object
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the seller. |
name | string | Display name of the seller or dealership. |
type | string | Type of seller: individual, dealership, auction, or aggregator. |
email | string | null | Contact email address (may be null for privacy). |
phone | string | null | Contact phone number (may be null for privacy). |
address | object | null | Physical address information (see Address object below). |
dealership | object | null | Dealership information if seller is affiliated with a dealership. |
totalActiveListings | number | Number of active vehicle listings from this seller. |
distance | number | Distance from search coordinates in kilometers (only in search results). |
Address object
| Field | Type | Description |
|---|---|---|
id | number | null | Unique identifier for the address. |
street | string | null | Street address line. |
city | string | null | City name. |
state | string | null | State or province code. |
postalCode | string | null | ZIP or postal code. |
country | string | null | Country code (e.g., "US", "CA"). |
latitude | string | null | Latitude coordinate as string. |
longitude | string | null | Longitude coordinate as string. |
Dealership object
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the dealership. |
name | string | Official dealership name. |
primaryDomain | string | null | Primary website domain for the dealership. |
Error responses
The locations API uses standard HTTP status codes and returns an error body with details:
| Status | Description |
|---|---|
| 400 Bad Request | Invalid parameters (e.g., coordinates out of range, invalid seller type). |
| 404 Not Found | Seller with the specified ID does not exist. |
| 500 Internal Server Error | Server error occurred while processing the request. |
Example
3 keysUsage examples
Find Toyota dealerships in Toronto
curl "https://api.cardog.app/v1/locations/search" \
-H "x-api-key: your-api-key" \
-G \
-d "lat=43.6532" \
-d "lng=-79.3832" \
-d "radius=50" \
-d "name=Toyota" \
-d "sellerType=dealership" \
-d "hasActiveListings=true"Find all sellers with active listings nearby
curl "https://api.cardog.app/v1/locations/search" \
-H "x-api-key: your-api-key" \
-G \
-d "lat=40.7128" \
-d "lng=-74.0060" \
-d "radius=25" \
-d "hasActiveListings=true" \
-d "limit=20"Paginate through results
# First page
curl "https://api.cardog.app/v1/locations/search" \
-H "x-api-key: your-api-key" \
-G \
-d "lat=34.0522" \
-d "lng=-118.2437" \
-d "limit=50" \
-d "offset=0"
# Second page
curl "https://api.cardog.app/v1/locations/search" \
-H "x-api-key: your-api-key" \
-G \
-d "lat=34.0522" \
-d "lng=-118.2437" \
-d "limit=50" \
-d "offset=50"Was this helpful?