# A vehicle's history


Identity tells you what a vehicle is. History tells you what happened to this
one: every crash report, inspection and carrier observation that names its VIN.

| Route | What it returns | Sources | Guide |
| --- | --- | --- | --- |
| `GET /v2/vin/{vin}/crashes` | every crash report that names the VIN | `gov:fmcsa`, `gov:ny-dmv` | [Crash reports](https://cardog.app/docs/crashes) |
| `GET /v2/vin/{vin}/inspections` | every inspection, with out-of-service orders and each violation cited | `gov:fmcsa`, `gov:ny-dmv` | [Inspections](https://cardog.app/docs/inspections) |
| `GET /v2/vin/{vin}/operators` | every motor carrier the unit was observed running under | `gov:fmcsa` | [Carriers it ran under](#carriers-it-ran-under) |

For a company rather than a vehicle, start at [From a carrier's name to its fleet](https://cardog.app/docs/carriers):
find the carrier, walk every unit observed under it, then read each unit's history here.

## The rest of one VIN's record

Other routes answer about the same VIN from a different angle. They are filed
with their own products, and all take the VIN as their key:

| Route | What it tells you about this vehicle | Guide |
| --- | --- | --- |
| `GET /v2/vin/{vin}/window-sticker` | how it left the factory: options, price as built, the label itself | [Window sticker](https://cardog.app/docs/window-sticker) |
| `GET /v2/vin/{vin}/recalls` | the recall campaigns listed for its model year in its market | [Recalls](https://cardog.app/docs/recalls) |
| `GET /v2/vin/{vin}/listings` | its listing on the market: asking price and odometer | [Market data](https://cardog.app/docs/market-data) |
| `GET /v2/vin/{vin}/instrument` | the market instrument its build trades as, for a value | [Market data](https://cardog.app/docs/market-data) |

## One shape, three routes

Every history route answers with the same item, one per record, most recent first:

```json
{
  "vin": "3HSDZAPR3KN125464",
  "items": [
    { "id": "23d259f6ccd6fd8718eee2d50f5d80f0", "observedAt": "2025-10-30", "source": "gov:fmcsa",
      "value": { "ref": "document:crash/b6c9a755-f739-5bd6-93df-b014535d5e70" } }
  ],
  "page": { "limit": 100, "nextCursor": null },
  "links": { "identity": "/v2/vin/3HSDZAPR3KN125464", "operators": "/v2/vin/3HSDZAPR3KN125464/operators",
    "inspections": "/v2/vin/3HSDZAPR3KN125464/inspections", "carriers": "/v2/carriers?q=3HSDZAPR3KN125464" }
}
```

- `observedAt` is when it happened: a day, or a year when the record carries only the year.
- `source` is who recorded it.
- `value` is the record as a ref (`document:crash/…`, `document:inspection/…`) or, on operators, the carrier (`org:usdot/…`).
- `links` points at the other history routes for the same VIN, so one call leads to the rest.

## Ask for the detail

Without `expand`, an item is only the four fields above: enough to count
records and page through them, not enough to read one. Add `expand=detail`
for the record behind each item, typed by `detail.type`:

| `expand` | What each item gains |
| --- | --- |
| *(none, the default)* | nothing: `id`, `observedAt`, `source`, `value` |
| `detail` | the record as the source published it, plus the carrier operating the unit where the record names one |

`detail` is the only value; anything else is a 400 that names it. The
price is the same either way, so ask for it unless you only need counts.

Page with `cursor` (the previous page's `page.nextCursor`) until it is null;
`limit` goes up to 500.

## Crash reports and inspections

Each has its own page:

- [Crash reports](https://cardog.app/docs/crashes): the federal crash file for commercial vehicles and New York's for every vehicle, with injuries, fatalities, tow-away, vehicles involved and the carrier.
- [Inspections](https://cardog.app/docs/inspections): federal roadside inspections with vehicle and driver out-of-service orders and every violation cited by regulation code, and New York's safety and emissions tests.

## Carriers it ran under

`GET /v2/vin/{vin}/operators` returns one item per day an inspection or a
crash report put a motor carrier on the unit, so a truck inspected ten times
under one carrier is ten items. `expand=detail` adds which record it was and
the carrier as it stands on the register. It covers the power unit; a
trailer's carriers come from `GET /v2/carriers?q={vin}`.

These are observed associations, not ownership: a leased unit is run by a
carrier that does not own it. The walk from the other end, a carrier to every
unit under it, is in [From a carrier's name to its fleet](https://cardog.app/docs/carriers).

## What an empty answer means

No items means no record we read names the VIN. It does not mean the vehicle
was never in a crash or never inspected:

- The federal records cover US DOT-regulated commercial vehicles. A pickup under 10,000 lbs GVWR, or a vehicle not run under a DOT number, is outside them.
- New York covers crashes in New York and inspections of vehicles registered there.
- Most crashes in Canada, and most outside New York that do not involve a commercial truck, are on neither.

An empty answer does not yet say whether the VIN was outside every record's
scope or inside it with nothing on file. Until it does, decode the VIN
(`GET /v2/vin/{vin}`) and read its GVWR class: a light vehicle outside New
York is outside the federal records.

## Cost

Each route costs **3 credits** when there is at least one
item, 0 when there is none, with or without `expand=detail`.

## In the SDK

```ts
const crashes = await client.v2.vin.crashes(vin, { expand: ["detail"] });
const inspections = await client.v2.vin.inspections(vin, { expand: ["detail"] });
const operators = await client.v2.vin.operators(vin, { expand: ["detail"] });
```


---

Previous: [Parts](https://cardog.app/docs/parts.md) (Vehicle identity)
Next: [Crash reports](https://cardog.app/docs/crashes.md) (Vehicle history)
