Vehicles API Reference
Search active and historical dealer inventory across all tracked domains, look up any 17-character VIN with decoded specs and price history, inspect field population quality, or synchronously refresh a single vehicle from its dealer page.
Vehicle Endpoints - search, VIN lookup, price history & refresh.
All endpoints accept X-API-Key or Authorization: Bearer authentication under https://api.motorsdynamic.com/api (or /v1).
| Method | Endpoint | Purpose |
|---|---|---|
| GET | /api/vehicles | Search and filter active or historical vehicle listings across all tracked domains with full-text search, spec filters, sorting, and VIN deduplication. |
| GET | /api/vehicles/{vin} | Retrieve every listing for a 17-character VIN across all tracked dealer domains, together with VIN-decoded specifications, price summary, and price history. |
| GET | /api/vehicles/{vin}/{domain} | Retrieve a single VIN listing at a specific dealer domain, along with its price history and any concurrent listings of the same VIN on other domains. |
| GET | /api/vehicles/{vin}/price-history | Return the chronological timeline of observed listing prices for a VIN. |
| GET | /api/vehicles/domain/{domainId} | Return all vehicle listings belonging to a tracked dealer domain specified by its numeric domain ID. |
| GET | /api/vehicles/stats | Return aggregate vehicle counts broken down by status, condition, vehicle_type, make, and domain. |
| GET | /api/vehicles/field-quality | Return the population percentage for each canonical vehicle field across all active listings. |
| POST | /api/scrape/vehicle | Re-read a single vehicle's dealer detail page synchronously and return a verdict indicating whether photos and fields were updated, unchanged, absent on source, or fetch-degraded. |
Canonical vehicle schema and decoded fields
Every vehicle listing returned by /api/vehicles, /api/domains/{clean_domain}/vehicles, and /api/vehicles/{vin} uses the canonical vehicle schema below, combining dealer website pricing, MSRP and window-sticker specification fields, VIN-decoded attributes, photo URLs, and lifecycle timestamps. On the MCP server, the get_vehicle tool additionally returns window sticker figures and applicable manufacturer offers alongside these fields.
| Field | Type | Description |
|---|---|---|
id | integer | Internal MotorsDynamic listing ID |
vin | string | 17-character Vehicle Identification Number (VIN) |
year | integer | Four-digit model year (for example, 2023) |
make | string | Normalized manufacturer name (for example, Honda) |
model | string | Normalized model name (for example, Accord) |
trim | string | Vehicle trim level (for example, EX-L) |
condition | string | Listing condition: New, Used, or Certified |
is_cpo | boolean | True when the listing is Certified Pre-Owned |
vehicle_type | string | car, motorcycle, rv, or heavy_equipment |
price | string | Current dealer website listing price in decimal USD (for example, "28995.00") |
msrp | string | null | Manufacturer Suggested Retail Price (window sticker MSRP) in decimal USD when available |
mileage | integer | Odometer reading in miles |
exterior_color | string | null | Exterior color as listed on the VDP or window sticker |
interior_color | string | null | Interior color or upholstery material |
body_type | string | null | Body style (for example, Sedan, SUV, Truck) |
fuel_type | string | null | Fuel or powertrain type (for example, Gasoline, Hybrid, Electric) |
transmission | string | null | Transmission specification |
drivetrain | string | null | Drivetrain layout (FWD, RWD, AWD, 4WD) |
engine | string | null | Engine displacement and cylinder configuration |
stock_number | string | null | Dealer stock number |
url | string | Direct URL to the vehicle detail page (VDP) on the dealer website |
images | string[] | Ordered array of vehicle photo URLs |
image_count | integer | Total number of photos in images |
primary_image | string | null | First (hero) photo URL |
is_active | boolean | True while the vehicle is actively listed on the dealer website |
first_seen_at | string (date-time) | ISO 8601 timestamp when the listing was first observed |
last_seen_at | string (date-time) | ISO 8601 timestamp when the listing was most recently verified active |
removed_at | string (date-time) | null | ISO 8601 timestamp when the vehicle left the dealer website, or null if active |
domain_id | integer | Numeric ID of the dealer domain that owns the listing |
clean_domain | string | Bare lowercase hostname of the dealer website (for example, example-dealer.com) |
List and search vehicles
Search and filter active or historical vehicle listings across all tracked domains with full-text search, spec filters, sorting, and VIN deduplication.
| Name | Type | Required | Description |
|---|---|---|---|
domain | string (query) | No | Filter by clean domain |
domain_id | integer (query) | No | Filter by domain ID |
status | string (query) | No | active | removed | all |
active_from | string (query) | No | ISO date |
active_to | string (query) | No | ISO date |
condition | string (query) | No | new | used | cpo |
vehicle_type | string (query) | No | car | motorcycle | rv | heavy_equipment |
make | string (query) | No | Vehicle manufacturer name (for example, Honda, Toyota) |
model | string (query) | No | Vehicle model name (for example, Accord, Camry) |
year_min | integer (query) | No | Minimum model year (inclusive) |
year_max | integer (query) | No | Maximum model year (inclusive) |
price_min | number (query) | No | Minimum listing price in USD |
price_max | number (query) | No | Maximum listing price in USD |
mileage_min | integer (query) | No | Minimum odometer mileage |
mileage_max | integer (query) | No | Maximum odometer mileage |
has_images | boolean (query) | No | When true, return only vehicles with at least one photo |
has_price | boolean (query) | No | When true, return only vehicles with a listed price |
search | string (query) | No | Full-text on VIN, make, model, stock_number |
sort | string (query) | No | last_seen_at | first_seen_at | price | year | make |
order | string (query) | No | asc | desc |
limit | integer (query) | No | Default 50, max 500 |
offset | integer (query) | No | Zero-based pagination offset |
dedupe | boolean (query) | No | Dedupe by VIN (default true unless filtering by single domain) |
curl -sS "https://api.motorsdynamic.com/api/vehicles?make=Honda&model=Accord&condition=used&year_min=2022&has_price=true&limit=50&offset=0" \ -H "X-API-Key: YOUR_API_KEY"
{
"vehicles": [
{
"id": 887412,
"vin": "1HGCV1F34LA123456",
"year": 2023,
"make": "Honda",
"model": "Accord",
"trim": "EX-L",
"condition": "Used",
"is_cpo": true,
"vehicle_type": "car",
"price": "28995.00",
"msrp": "31500.00",
"mileage": 18420,
"exterior_color": "Platinum White Pearl",
"interior_color": "Black",
"body_type": "Sedan",
"fuel_type": "Gasoline",
"transmission": "Automatic",
"drivetrain": "FWD",
"engine": "1.5L Turbo I4",
"stock_number": "H23091A",
"url": "https://www.example-dealer.com/used/Honda/2023-Honda-Accord-1HGCV1F34LA123456.htm",
"images": [
"https://www.example-dealer.com/photos/1HGCV1F34LA123456-1.jpg"
],
"image_count": 28,
"primary_image": "https://www.example-dealer.com/photos/1HGCV1F34LA123456-1.jpg",
"is_active": true,
"first_seen_at": "2026-09-14T06:10:00.000Z",
"last_seen_at": "2026-10-30T06:12:00.000Z",
"removed_at": null,
"domain_id": 42,
"clean_domain": "example-dealer.com"
}
],
"total": 1240,
"limit": 50,
"offset": 0,
"dedupe": true
}
Get vehicle by VIN (cross-domain)
Retrieve every listing for a 17-character VIN across all tracked dealer domains, together with VIN-decoded specifications, price summary, and price history.
| Name | Type | Required | Description |
|---|---|---|---|
vin | string (path) | Yes | 17-character VIN |
curl -sS "https://api.motorsdynamic.com/api/vehicles/1HGCV1F34LA123456" \ -H "X-API-Key: YOUR_API_KEY"
{
"vin": "1HGCV1F34LA123456",
"decoded": {
"year": 2023,
"make": "Honda",
"model": "Accord",
"trim": "EX-L",
"body_style": "Sedan",
"drive_type": "FWD"
},
"summary": {
"total_listings": 2,
"active_listings": 2,
"domains_count": 2,
"min_price": 28795,
"max_price": 28995,
"price_variance": 200
},
"listings": [
{
"id": 887412,
"domain_id": 42,
"clean_domain": "example-dealer.com",
"price": "28995.00",
"msrp": "31500.00",
"mileage": 18420,
"condition": "Used",
"is_active": true,
"last_seen_at": "2026-10-30T06:12:00.000Z"
}
],
"price_history": [
{ "observed_at": "2026-09-14T06:10:00.000Z", "price": "29495.00" },
{ "observed_at": "2026-10-12T06:15:00.000Z", "price": "28995.00" }
]
}
Get vehicle by VIN and domain
Retrieve a single VIN listing at a specific dealer domain, along with its price history and any concurrent listings of the same VIN on other domains.
| Name | Type | Required | Description |
|---|---|---|---|
vin | string (path) | Yes | 17-character Vehicle Identification Number (VIN) |
domain | string (path) | Yes | Clean domain |
curl -sS "https://api.motorsdynamic.com/api/vehicles/1HGCV1F34LA123456/example-dealer.com" \ -H "X-API-Key: YOUR_API_KEY"
{
"vehicle": {
"id": 887412,
"vin": "1HGCV1F34LA123456",
"year": 2023,
"make": "Honda",
"model": "Accord",
"trim": "EX-L",
"price": "28995.00",
"msrp": "31500.00",
"mileage": 18420,
"domain_id": 42,
"clean_domain": "example-dealer.com",
"is_active": true
},
"price_history": [
{ "observed_at": "2026-09-14T06:10:00.000Z", "price": "29495.00" },
{ "observed_at": "2026-10-12T06:15:00.000Z", "price": "28995.00" }
],
"other_listings": []
}
Get VIN price history
Return the chronological timeline of observed listing prices for a VIN.
| Name | Type | Required | Description |
|---|---|---|---|
vin | string (path) | Yes | 17-character Vehicle Identification Number (VIN) |
curl -sS "https://api.motorsdynamic.com/api/vehicles/1HGCV1F34LA123456/price-history" \ -H "X-API-Key: YOUR_API_KEY"
{
"vin": "1HGCV1F34LA123456",
"history": [
{ "observed_at": "2026-09-14T06:10:00.000Z", "price": "29995.00" },
{ "observed_at": "2026-09-28T06:11:00.000Z", "price": "29495.00" },
{ "observed_at": "2026-10-12T06:15:00.000Z", "price": "28995.00" }
]
}
List vehicles for a domain by numeric ID
Return all vehicle listings belonging to a tracked dealer domain specified by its numeric domain ID.
| Name | Type | Required | Description |
|---|---|---|---|
domainId | integer (path) | Yes | Numeric domain identifier |
curl -sS "https://api.motorsdynamic.com/api/vehicles/domain/42" \ -H "X-API-Key: YOUR_API_KEY"
{
"vehicles": [
{
"id": 887412,
"vin": "1HGCV1F34LA123456",
"year": 2023,
"make": "Honda",
"model": "Accord",
"price": "28995.00",
"domain_id": 42,
"clean_domain": "example-dealer.com",
"is_active": true
}
],
"total": 412
}
Get aggregate vehicle stats
Return aggregate vehicle counts broken down by status, condition, vehicle_type, make, and domain.
| Name | Type | Required | Description |
|---|---|---|---|
domain_id | integer (query) | No | Filter by numeric domain identifier |
curl -sS "https://api.motorsdynamic.com/api/vehicles/stats?domain_id=42" \ -H "X-API-Key: YOUR_API_KEY"
{
"total": 485,
"active": 412,
"removed": 73,
"by_condition": { "new": 190, "used": 182, "cpo": 40 },
"by_vehicle_type": { "car": 412 },
"top_makes": [
{ "make": "Honda", "count": 298 },
{ "make": "Toyota", "count": 44 }
]
}
Get per-field population quality report
Return the population percentage for each canonical vehicle field across all active listings.
| Name | Type | Required | Description |
|---|---|---|---|
None | - | - | No parameters required |
curl -sS "https://api.motorsdynamic.com/api/vehicles/field-quality" \ -H "X-API-Key: YOUR_API_KEY"
{
"active_vehicles": 12508,
"fields": {
"vin": { "populated": 12508, "rate": 1.0 },
"year": { "populated": 12508, "rate": 1.0 },
"make": { "populated": 12508, "rate": 1.0 },
"model": { "populated": 12504, "rate": 0.9997 },
"price": { "populated": 12190, "rate": 0.9746 },
"mileage": { "populated": 12310, "rate": 0.9842 },
"images": { "populated": 12055, "rate": 0.9638 }
}
}
Refresh a single vehicle from its dealer page
Re-read a single vehicle's dealer detail page synchronously and return a verdict indicating whether photos and fields were updated, unchanged, absent on source, or fetch-degraded.
| Name | Type | Required | Description |
|---|---|---|---|
vehicle_id | integer (body) | Yes | Internal MotorsDynamic vehicle listing ID to refresh synchronously (rate limit: 1 refresh per vehicle per 60 seconds, max 3 concurrent per domain) |
curl -sS -X POST "https://api.motorsdynamic.com/api/scrape/vehicle" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"vehicle_id": 7939333}'
{
"verdict": "updated",
"vehicle_id": 7939333,
"vin": "JTEBU5JR1L5123456",
"images": 35,
"previous_images": 0,
"duration_ms": 942
}