## Reference: Safety

NCAP ratings + complaints

**Availability: live** on `https://api.cardog.app`.

### GET /v2/safety/{ref}

NCAP ratings for a model year *Since 2026-07-30.*

**Path parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `ref` | string | yes | A model-year ref. Slashes in refs must be URL-encoded (%2F). |

**Response 200** `Safety`: Rated configurations + the headline rating

- `modelYearRef` (string): Entity ref ({domain}:{key}) in the "model-year" domain. Example: "model-year:toyota/rav4/2021"
- `best` (object | null)
  - `best.ref` (string): Ref of this rating. One rating exists per rated configuration (body style, drivetrain, variant, production release), so cite this ref rather than the model year.
  - `best.modelYearRef` (string): Entity ref ({domain}:{key}) in the "model-year" domain. Example: "model-year:toyota/rav4/2021"
  - `best.makeRef` (string | null): Entity ref ({domain}:{key}) in the "make" domain. Example: "make:toyota"
  - `best.modelRef` (string | null): Entity ref ({domain}:{key}) in the "model" domain. Example: "model:toyota/rav4"
  - `best.year` (integer)
  - `best.make` (string | null): Display name, derived from makeRef
  - `best.model` (string | null): Display name, derived from modelRef
  - `best.config` (object)
    - `best.config.bodyStyleRef` (string | null): Body-style entity ref, e.g. "body-style:pickup"
    - `best.config.bodyCabRef` (string | null): Cab configuration entity ref for pickups, e.g. "body-cab:crew-super-crew-crew-max"
    - `best.config.driveTypeRefs` (string[])
    - `best.config.fuelTypeRef` (string | null)
    - `best.config.electrificationLevelRef` (string | null)
    - `best.config.nhtsaClass` ("passenger-car" | "suv" | "truck" | "van" | "bus")
    - `best.config.nhtsaSizeClass` ("mini" | "light" | "compact" | "medium" | "heavy")
    - `best.config.variant` (string | null)
  - `best.crash` (object)
    - `best.crash.overall` (object)
      - `best.crash.overall.stars` (integer | null)
      - `best.crash.overall.outOf` (5)
    - `best.crash.frontal` (object)
      - `best.crash.frontal.overall` (object)
      - `best.crash.frontal.driver` (object)
      - `best.crash.frontal.passenger` (object)
    - `best.crash.side` (object)
      - `best.crash.side.overall` (object)
      - `best.crash.side.driver` (object)
      - `best.crash.side.passenger` (object)
      - `best.crash.side.barrier` (object)
      - `best.crash.side.pole` (object)
    - `best.crash.combined` (object)
      - `best.crash.combined.front` (object)
      - `best.crash.combined.rear` (object)
    - `best.crash.rollover` (object)
      - `best.crash.rollover.stars` (object)
      - `best.crash.rollover.possibility` (object | null)
      - `best.crash.rollover.staticStabilityFactor` (object | null)
      - `best.crash.rollover.dynamicTip` ("no-tip" | "tip" | "not-tested")
  - `best.equipment` (object)
  - `best.published` (object)
    - `best.published.bodyStyle` (string | null)
    - `best.published.driveTrain` (string | null)
    - `best.published.vehicleClass` (string | null)
    - `best.published.vehicleType` (string | null)
    - `best.published.dynamicTipResult` (string | null)
    - `best.published.rolloverPossibility` (number | null)
    - `best.published.abs` (string | null)
    - `best.published.esc` (string | null)
    - `best.published.backupCamera` (string | null)
    - `best.published.blindSpotDetection` (string | null)
    - `best.published.frontCollisionWarning` (string | null)
    - `best.published.laneDepartureWarning` (string | null)
    - `best.published.crashImminentBrake` (string | null)
    - `best.published.dynamicBrakeSupport` (string | null)
    - `best.published.headSideAirbag` (string | null)
    - `best.published.torsoSideAirbag` (string | null)
  - `best.provenance` (object)
    - `best.provenance.sourceRef` (string)
    - `best.provenance.productionRelease` (integer)
  - `best.tested`? (boolean)
- `ratings` (object[])
  - `ratings[].ref` (string): Ref of this rating. One rating exists per rated configuration (body style, drivetrain, variant, production release), so cite this ref rather than the model year.
  - `ratings[].modelYearRef` (string): Entity ref ({domain}:{key}) in the "model-year" domain. Example: "model-year:toyota/rav4/2021"
  - `ratings[].makeRef` (string | null): Entity ref ({domain}:{key}) in the "make" domain. Example: "make:toyota"
  - `ratings[].modelRef` (string | null): Entity ref ({domain}:{key}) in the "model" domain. Example: "model:toyota/rav4"
  - `ratings[].year` (integer)
  - `ratings[].make` (string | null): Display name, derived from makeRef
  - `ratings[].model` (string | null): Display name, derived from modelRef
  - `ratings[].config` (object)
    - `ratings[].config.bodyStyleRef` (string | null): Body-style entity ref, e.g. "body-style:pickup"
    - `ratings[].config.bodyCabRef` (string | null): Cab configuration entity ref for pickups, e.g. "body-cab:crew-super-crew-crew-max"
    - `ratings[].config.driveTypeRefs` (string[])
    - `ratings[].config.fuelTypeRef` (string | null)
    - `ratings[].config.electrificationLevelRef` (string | null)
    - `ratings[].config.nhtsaClass` ("passenger-car" | "suv" | "truck" | "van" | "bus")
    - `ratings[].config.nhtsaSizeClass` ("mini" | "light" | "compact" | "medium" | "heavy")
    - `ratings[].config.variant` (string | null)
  - `ratings[].crash` (object)
    - `ratings[].crash.overall` (object)
      - `ratings[].crash.overall.stars` (integer | null)
      - `ratings[].crash.overall.outOf` (5)
    - `ratings[].crash.frontal` (object)
      - `ratings[].crash.frontal.overall` (object)
      - `ratings[].crash.frontal.driver` (object)
      - `ratings[].crash.frontal.passenger` (object)
    - `ratings[].crash.side` (object)
      - `ratings[].crash.side.overall` (object)
      - `ratings[].crash.side.driver` (object)
      - `ratings[].crash.side.passenger` (object)
      - `ratings[].crash.side.barrier` (object)
      - `ratings[].crash.side.pole` (object)
    - `ratings[].crash.combined` (object)
      - `ratings[].crash.combined.front` (object)
      - `ratings[].crash.combined.rear` (object)
    - `ratings[].crash.rollover` (object)
      - `ratings[].crash.rollover.stars` (object)
      - `ratings[].crash.rollover.possibility` (object | null)
      - `ratings[].crash.rollover.staticStabilityFactor` (object | null)
      - `ratings[].crash.rollover.dynamicTip` ("no-tip" | "tip" | "not-tested")
  - `ratings[].equipment` (object)
  - `ratings[].published` (object)
    - `ratings[].published.bodyStyle` (string | null)
    - `ratings[].published.driveTrain` (string | null)
    - `ratings[].published.vehicleClass` (string | null)
    - `ratings[].published.vehicleType` (string | null)
    - `ratings[].published.dynamicTipResult` (string | null)
    - `ratings[].published.rolloverPossibility` (number | null)
    - `ratings[].published.abs` (string | null)
    - `ratings[].published.esc` (string | null)
    - `ratings[].published.backupCamera` (string | null)
    - `ratings[].published.blindSpotDetection` (string | null)
    - `ratings[].published.frontCollisionWarning` (string | null)
    - `ratings[].published.laneDepartureWarning` (string | null)
    - `ratings[].published.crashImminentBrake` (string | null)
    - `ratings[].published.dynamicBrakeSupport` (string | null)
    - `ratings[].published.headSideAirbag` (string | null)
    - `ratings[].published.torsoSideAirbag` (string | null)
  - `ratings[].provenance` (object)
    - `ratings[].provenance.sourceRef` (string)
    - `ratings[].provenance.productionRelease` (integer)
  - `ratings[].tested`? (boolean)
- `links`? (object): Related resources, keyed by relation name, each a server-relative path. Example: {"recalls": "/v2/recalls/entity/model-year:toyota/rav4/2021"}

**Errors** (all use the ErrorEnvelope): 400, 401, 404, 429, 500

**Example: cURL**

```bash
curl "https://api.cardog.app/v2/safety/model-year:honda%2Fcr-v%2F2026" \
  -H "x-api-key: $CARDOG_API_KEY" \
  -H "Cardog-Version: 2026-10-26"
```

**Example: TypeScript** (`npm install @cardog/api`)

```typescript
import { CardogClient } from "@cardog/api";

const client = new CardogClient({ apiKey: process.env.CARDOG_API_KEY });

const safety = await client.v2.safety.ratings("model-year:honda/cr-v/2026");
console.log(safety.modelYearRef);
```

**Example: Python** (`pip install cardog`)

```python
import os

from cardog import Cardog

client = Cardog(api_key=os.environ["CARDOG_API_KEY"])

safety = client.v2.safety.ratings("model-year:honda/cr-v/2026")
print(safety.model_year_ref)
```

### GET /v2/safety/{ref}/complaints

ODI complaints for a model year, paged *Since 2026-07-30.*

NHTSA publishes one row per affected component under one ODI number, so by default a complaint filed under three components is three rows. `group=complaint` returns one row per complaint with every component in `components` (crash and fire true if any row says so, injuries and deaths the largest reported), and `totalCount` counts complaints. `fields=list` trims `summary` to its first sentence, at most 160 characters.

**Path parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `ref` | string | yes | A model-year ref. Slashes in refs must be URL-encoded (%2F). |

**Query parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `page` | integer | no | Page number |
| `limit` | integer | no | Page size, 1 to 100, or up to 500 with `group=complaint`; a larger value is refused with 400 |
| `group` | "complaint" | no | `complaint`: one row per complaint, with `components` |
| `fields` | "list" | no | `list`: `summary` trimmed to its first sentence for list views |

**Response 200** `Complaints`: Complaints, newest first

- `modelYearRef` (string | null): Null when the query covered more than one model year
- `totalCount` (integer): Rows across every page: complaints with `group=complaint`, complaint and component rows without it
- `complaints` (object[])
  - `complaints[].ref` (string): Ref of the complaint: "complaint:nhtsa/{odino}", where odino is the NHTSA ODI number. NHTSA publishes one row per affected component under the same number, so this ref identifies the complaint, not a single row.
  - `complaints[].modelYearRef` (string | null): Entity ref ({domain}:{key}) in the "model-year" domain. Example: "model-year:toyota/rav4/2021"
  - `complaints[].component` (string | null)
  - `complaints[].components`? (string[]): Present when `group=complaint`: every component NHTSA filed this complaint under, in filing order. The first is `component`.
  - `complaints[].summary` (string | null): The complainant's narrative. With `fields=list`, only its first sentence, at most 160 characters, ending in an ellipsis when cut.
  - `complaints[].incidentDate` (string | null): Date of the incident (ISO date, YYYY-MM-DD)
  - `complaints[].filedDate` (string | null): Date the complaint was filed (ISO date, YYYY-MM-DD)
  - `complaints[].crash` (boolean | null)
  - `complaints[].fire` (boolean | null)
  - `complaints[].injuries` (integer | null)
  - `complaints[].deaths` (integer | null)
  - `complaints[].source` (string): Source of the complaint: "nhtsa". Other values may be added.
- `pagination` (object)
  - `pagination.page` (integer)
  - `pagination.limit` (integer)
- `links`? (object): Related resources, keyed by relation name, each a server-relative path. Example: {"recalls": "/v2/recalls/entity/model-year:toyota/rav4/2021"}

**Errors** (all use the ErrorEnvelope): 400, 401, 404, 429, 500

**Example: cURL**

```bash
curl "https://api.cardog.app/v2/safety/model-year:honda%2Fcr-v%2F2026/complaints" \
  -H "x-api-key: $CARDOG_API_KEY" \
  -H "Cardog-Version: 2026-10-26"
```

**Example: TypeScript** (`npm install @cardog/api`)

```typescript
import { CardogClient } from "@cardog/api";

const client = new CardogClient({ apiKey: process.env.CARDOG_API_KEY });

const complaints = await client.v2.safety.complaints("model-year:honda/cr-v/2026");
console.log(complaints.modelYearRef);
```

**Example: Python** (`pip install cardog`)

```python
import os

from cardog import Cardog

client = Cardog(api_key=os.environ["CARDOG_API_KEY"])

complaints = client.v2.safety.complaints("model-year:honda/cr-v/2026")
print(complaints.model_year_ref)
```

### GET /v2/safety/{ref}/years

A model's years with recall and complaint counts *Since 2026-11-18.*

Every year of one model that the registry holds or that a recall or complaint names, newest first. Each year carries its model-year ref, the distinct recall campaigns per authority (each authority's count stands alone, never summed), and the NHTSA complaints filed against it. 404 when the model has no years at all.

**Path parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `ref` | string | yes | A model ref, e.g. "model:ford/f-150". Slashes in refs must be URL-encoded (%2F). |

**Response 200** `SafetyModelYears`: The model's years, newest first

- `modelRef` (string): Entity ref ({domain}:{key}) in the "model" domain. Example: "model:toyota/rav4"
- `years` (object[]): Every year with a registry entry, a recall or a complaint, newest first
  - `years[].year` (integer): Model year
  - `years[].modelYearRef` (string): Entity ref ({domain}:{key}) in the "model-year" domain. Example: "model-year:toyota/rav4/2021"
  - `years[].recalls` (object): Distinct recall campaigns naming this model year, per authority code (e.g. {"tc": 4, "nhtsa": 6}). Each authority counts its own notices; the numbers are never summed into one. Empty when none.
  - `years[].complaints` (integer): NHTSA ODI complaints filed against this model year, each counted once

**Errors** (all use the ErrorEnvelope): 400, 401, 404, 429, 500

**Example: cURL**

```bash
curl "https://api.cardog.app/v2/safety/make:tesla/years" \
  -H "x-api-key: $CARDOG_API_KEY" \
  -H "Cardog-Version: 2026-10-26"
```

**Example: TypeScript** (`npm install @cardog/api`)

```typescript
import { CardogClient } from "@cardog/api";

const client = new CardogClient({ apiKey: process.env.CARDOG_API_KEY });

const safetyModelYears = await client.v2.safety.years("make:tesla");
console.log(safetyModelYears.modelRef);
```

**Example: Python** (`pip install cardog`)

```python
import os

from cardog import Cardog

client = Cardog(api_key=os.environ["CARDOG_API_KEY"])

safety_model_years = client.v2.safety.years("make:tesla")
print(safety_model_years.model_ref)
```

### GET /v2/safety/complaint:nhtsa/{odino}

One ODI complaint by ref *Since 2026-11-18.*

One complaint, addressed by its ref `complaint:nhtsa/{odino}`, grouped as a `group=complaint` row: the full summary, every component in `components`, crash and fire true if any row says so, injuries and deaths the largest reported, plus `modelYearRefs`, every model year it is filed against. 404 when NHTSA has no such complaint in the record.

**Path parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `odino` | string | yes | The NHTSA ODI number, the key of the complaint ref (`complaint:nhtsa/11766824` → `11766824`). |

**Response 200** `ComplaintDetail`: The complaint

- `ref` (string): Ref of the complaint: "complaint:nhtsa/{odino}", where odino is the NHTSA ODI number. NHTSA publishes one row per affected component under the same number, so this ref identifies the complaint, not a single row.
- `modelYearRef` (string | null): Entity ref ({domain}:{key}) in the "model-year" domain. Example: "model-year:toyota/rav4/2021"
- `component` (string | null)
- `components` (string[]): Every component NHTSA filed this complaint under, in filing order. The first is `component`.
- `summary` (string | null): The complainant's narrative. With `fields=list`, only its first sentence, at most 160 characters, ending in an ellipsis when cut.
- `incidentDate` (string | null): Date of the incident (ISO date, YYYY-MM-DD)
- `filedDate` (string | null): Date the complaint was filed (ISO date, YYYY-MM-DD)
- `crash` (boolean | null)
- `fire` (boolean | null)
- `injuries` (integer | null)
- `deaths` (integer | null)
- `source` (string): Source of the complaint: "nhtsa". Other values may be added.
- `modelYearRefs` (string[]): Every model year the complaint is filed against, in filing order. The first is `modelYearRef`.
- `links`? (object): Related resources, keyed by relation name, each a server-relative path. Example: {"recalls": "/v2/recalls/entity/model-year:toyota/rav4/2021"}

**Errors** (all use the ErrorEnvelope): 400, 401, 404, 429, 500

**Example: cURL**

```bash
curl "https://api.cardog.app/v2/safety/complaint:nhtsa/{odino}" \
  -H "x-api-key: $CARDOG_API_KEY" \
  -H "Cardog-Version: 2026-10-26"
```

**Example: TypeScript** (`npm install @cardog/api`)

```typescript
import { CardogClient } from "@cardog/api";

const client = new CardogClient({ apiKey: process.env.CARDOG_API_KEY });

const complaintDetail = await client.v2.safety.complaint("{odino}");
console.log(complaintDetail.ref);
```

**Example: Python** (`pip install cardog`)

```python
import os

from cardog import Cardog

client = Cardog(api_key=os.environ["CARDOG_API_KEY"])

complaint_detail = client.v2.safety.complaint("{odino}")
print(complaint_detail.ref)
```

### GET /v2/safety/complaints/recent

The newest ODI complaints across every vehicle *Since 2026-11-18.*

The newest complaints NHTSA has filed, across every make and model, newest first. Each row is grouped by complaint like a `group=complaint` row (every component, crash and fire true if any row says so, injuries and deaths the largest reported), with `modelYearRefs` and `summary` trimmed to its first sentence, at most 160 characters. Read the full text at `GET /v2/safety/complaint:nhtsa/{odino}`.

**Query parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | integer | no | Complaints to return, 1 to 100 |

**Response 200** `RecentComplaints`: Complaints, newest first

- `complaints` (object[]): Newest filed first. Each row is grouped by complaint (every component, every model year) with `summary` trimmed to its first sentence, at most 160 characters.
  - `complaints[].ref` (string): Ref of the complaint: "complaint:nhtsa/{odino}", where odino is the NHTSA ODI number. NHTSA publishes one row per affected component under the same number, so this ref identifies the complaint, not a single row.
  - `complaints[].modelYearRef` (string | null): Entity ref ({domain}:{key}) in the "model-year" domain. Example: "model-year:toyota/rav4/2021"
  - `complaints[].component` (string | null)
  - `complaints[].components` (string[]): Every component NHTSA filed this complaint under, in filing order. The first is `component`.
  - `complaints[].summary` (string | null): The complainant's narrative. With `fields=list`, only its first sentence, at most 160 characters, ending in an ellipsis when cut.
  - `complaints[].incidentDate` (string | null): Date of the incident (ISO date, YYYY-MM-DD)
  - `complaints[].filedDate` (string | null): Date the complaint was filed (ISO date, YYYY-MM-DD)
  - `complaints[].crash` (boolean | null)
  - `complaints[].fire` (boolean | null)
  - `complaints[].injuries` (integer | null)
  - `complaints[].deaths` (integer | null)
  - `complaints[].source` (string): Source of the complaint: "nhtsa". Other values may be added.
  - `complaints[].modelYearRefs` (string[]): Every model year the complaint is filed against, in filing order. The first is `modelYearRef`.

**Errors** (all use the ErrorEnvelope): 400, 401, 429, 500

**Example: cURL**

```bash
curl "https://api.cardog.app/v2/safety/complaints/recent" \
  -H "x-api-key: $CARDOG_API_KEY" \
  -H "Cardog-Version: 2026-10-26"
```

**Example: TypeScript** (`npm install @cardog/api`)

```typescript
import { CardogClient } from "@cardog/api";

const client = new CardogClient({ apiKey: process.env.CARDOG_API_KEY });

const recentComplaints = await client.v2.safety.recentComplaints();
console.log(recentComplaints.complaints);
```

**Example: Python** (`pip install cardog`)

```python
import os

from cardog import Cardog

client = Cardog(api_key=os.environ["CARDOG_API_KEY"])

recent_complaints = client.v2.safety.recent_complaints()
print(recent_complaints.complaints)
```

### GET /v2/safety/complaints/top

The model years with the most complaints in a window *Since 2026-11-18.*

Model years ranked by the distinct NHTSA complaints filed against them in the last `months` months (from `since`, inclusive). `crashes` and `fires` count the complaints that report one; `injuries` and `deaths` add up what each complaint reports. A complaint filed against several model years counts once for each.

**Query parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `months` | integer | no | The window, in months back from today |
| `limit` | integer | no | Model years to return, 1 to 100 |

**Response 200** `TopComplaints`: Model years, most complaints first

- `months` (integer): The window, in months back from today
- `since` (string): First day of the window (ISO date, YYYY-MM-DD): complaints filed on or after it count
- `modelYears` (object[]): Most complaints first
  - `modelYears[].modelYearRef` (string): Entity ref ({domain}:{key}) in the "model-year" domain. Example: "model-year:toyota/rav4/2021"
  - `modelYears[].complaints` (integer): Distinct complaints filed in the window
  - `modelYears[].crashes` (integer): Of those, complaints that report a crash
  - `modelYears[].fires` (integer): Of those, complaints that report a fire
  - `modelYears[].injuries` (integer): Injuries reported across those complaints
  - `modelYears[].deaths` (integer): Deaths reported across those complaints

**Errors** (all use the ErrorEnvelope): 400, 401, 429, 500

**Example: cURL**

```bash
curl "https://api.cardog.app/v2/safety/complaints/top" \
  -H "x-api-key: $CARDOG_API_KEY" \
  -H "Cardog-Version: 2026-10-26"
```

**Example: TypeScript** (`npm install @cardog/api`)

```typescript
import { CardogClient } from "@cardog/api";

const client = new CardogClient({ apiKey: process.env.CARDOG_API_KEY });

const topComplaints = await client.v2.safety.topComplaints();
console.log(topComplaints.months);
```

**Example: Python** (`pip install cardog`)

```python
import os

from cardog import Cardog

client = Cardog(api_key=os.environ["CARDOG_API_KEY"])

top_complaints = client.v2.safety.top_complaints()
print(top_complaints.months)
```

### GET /v2/safety/{ref}/complaints/summary

Complaint counts for a model year or a model *Since 2026-11-19.*

Counts a vehicle's NHTSA owner complaints instead of listing them: distinct complaints (ODI numbers), crashes, fires, injuries and deaths, and the count per component system, per filing month and per model year. Takes a model-year ref or a model ref (every year of the model).

**Path parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `ref` | string | yes | A model-year ref or a model ref. Slashes in refs must be URL-encoded (%2F). |

**Response 200** `ComplaintsSummary`: Complaint counts

- `ref` (string): The scope that was counted: a model-year ref or a model ref
- `totalCount` (integer): Distinct complaints (ODI numbers) in scope
- `crashes` (integer): Complaints that report a crash
- `fires` (integer): Complaints that report a fire
- `injuryComplaints` (integer): Complaints that report at least one injury
- `injuries` (integer): People reported injured, summed across complaints
- `deaths` (integer): Deaths reported, summed across complaints
- `firstFiled` (string | null): Earliest filing date in scope (ISO date). Null when there are no complaints.
- `lastFiled` (string | null): Latest filing date in scope (ISO date). Null when there are no complaints.
- `bySystem` (object[]): Complaints per component system, most complained first
  - `bySystem[].system` (string | null): The component system as NHTSA files it: the part of the component before the first colon ("POWER TRAIN" for "POWER TRAIN:AUTOMATIC TRANSMISSION"). Null when the complaint names no component.
  - `bySystem[].complaints` (integer): Complaints that name this system
- `byMonth` (object[]): Complaints per filing month, oldest first; months with no complaints are omitted
  - `byMonth[].month` (string): Month the complaints were filed with NHTSA, YYYY-MM
  - `byMonth[].complaints` (integer)
- `byModelYear` (object[]): Complaints per model year, newest first. One entry for a model-year scope.
  - `byModelYear[].modelYearRef` (string): Entity ref ({domain}:{key}) in the "model-year" domain. Example: "model-year:toyota/rav4/2021"
  - `byModelYear[].year` (integer)
  - `byModelYear[].complaints` (integer)
- `links`? (object): Related resources, keyed by relation name, each a server-relative path. Example: {"recalls": "/v2/recalls/entity/model-year:toyota/rav4/2021"}

**Errors** (all use the ErrorEnvelope): 400, 401, 404, 429, 500

**Example: cURL**

```bash
curl "https://api.cardog.app/v2/safety/model-year:honda%2Fcr-v%2F2026/complaints/summary" \
  -H "x-api-key: $CARDOG_API_KEY" \
  -H "Cardog-Version: 2026-10-26"
```

**Example: TypeScript** (`npm install @cardog/api`)

```typescript
import { CardogClient } from "@cardog/api";

const client = new CardogClient({ apiKey: process.env.CARDOG_API_KEY });

const complaintsSummary = await client.v2.safety.complaintsSummary("model-year:honda/cr-v/2026");
console.log(complaintsSummary.ref);
```

**Example: Python** (`pip install cardog`)

```python
import os

from cardog import Cardog

client = Cardog(api_key=os.environ["CARDOG_API_KEY"])

complaints_summary = client.v2.safety.complaints_summary("model-year:honda/cr-v/2026")
print(complaints_summary.ref)
```

---

Previous: [Recalls](https://cardog.app/docs/reference/recalls.md) (API reference)
Next: [Locations](https://cardog.app/docs/reference/locations.md) (API reference)
