# Inspections


`GET /v2/vin/{vin}/inspections` returns every inspection that names the VIN,
most recent first, on the [history item shape](https://cardog.app/docs/history#one-shape-three-routes).

```bash
curl "https://api.cardog.app/v2/vin/3HSDZAPR3KN125464/inspections?expand=detail" \
  -H "x-api-key: $CARDOG_API_KEY" \
  -H "Cardog-Version: 2026-10-26"
```

```json
{
  "id": "357e1f9ca442f3f07d8bc914b6a5cdb0", "observedAt": "2025-11-20", "source": "gov:fmcsa",
  "value": { "ref": "document:inspection/8677eb71-7eaf-579d-afdc-947a7eb9ec11" },
  "detail": { "type": "fmcsa.inspection", "reportNumber": "ND7X007310", "state": "CA", "level": 1,
    "role": "power", "unitType": "TRUCK TRACTOR",
    "outOfService": { "vehicle": 1, "driver": 0 },
    "violations": { "total": 3, "vehicleMaintenance": 3 },
    "findings": [
      { "code": "3963A1BOS", "placedOutOfService": true, "unit": "2", "basic": "Vehicle Maintenance",
        "group": "Brake Out Of Service",
        "description": "Brake - Defective brake(s) are equal to or greater than 20% of the service brakes on the vehicle/combination" }
    ],
    "carrier": { "dotNumber": 2865124, "legalName": "XLI LOGISTICS INC" } }
}
```

| source | `detail.type` | covers |
| --- | --- | --- |
| `gov:fmcsa` | `fmcsa.inspection` | roadside inspections of US DOT-regulated commercial vehicles, as the power unit or the towed unit |
| `gov:ny-dmv` | `nydmv.inspection` | New York's safety and emissions inspections, any vehicle registered there, as that record loads |

A federal inspection's detail says where it was done (`state`,
`reportNumber`), its `level`, whether this VIN was the `power` or the
`towed` unit, the out-of-service and violation counts on the inspection
(for a towed unit these are the whole inspection's, tractor included), and
each violation the inspector cited in `findings`: the regulation `code`, whether it put
the unit out of service, its BASIC, the component it is about (`group`) and
the section's text.

A New York inspection says which programme it was, whether it was an initial
test or a re-inspection, the result, the odometer the inspector read
(`{ value, unitCode }`, `SMI` for New York) and every check that did not pass.

Read `violations.total` for the count. `findings` lists each cited violation
where the record holds it, and the newest inspections can carry a count before
their violations arrive. An empty `findings` on an inspection with violations
is a gap in the record, not a clean inspection.

Read the level before you read the findings. Level 3 inspects the driver and
never the vehicle, and it is about a third of the federal file; New York's
OBD-II test never looks at brakes. The figures are that inspection's own
counts. A rate pooled across levels or programmes is not a fact about a
vehicle, so the API does not compute one.

## No items

Neither record names the VIN. Most passenger cars outside New York are
inspected by nobody we read, so an empty answer is not evidence the vehicle
was never inspected.

Costs **3 credits** when there is at least one item, 0 when there is none.


---

Previous: [Crash reports](https://cardog.app/docs/crashes.md) (Vehicle history)
Next: [From a carrier's name to its fleet](https://cardog.app/docs/carriers.md) (Vehicle history)
