---
title: "Recall and complaint counts by model year"
method: GET
path: "/v2/safety/{ref}/years"
tags: ["safety"]
---

# Recall and complaint counts by model year

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

## Request

- Base URL: `https://api.cardog.app`
- URL: `https://api.cardog.app/v2/safety/{ref}/years`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Every year of one model that we know of, or that a recall or complaint names, newest first. Each year gives its model-year ref, the number of recalls from each regulator (counted separately, never added together), and the number of NHTSA complaints. 404 when the model has no years at all. Costs 1 credit.

## Path parameters

- `ref` string, required

## Response `200`

The model's years, newest first

- SafetyModelYears
  - `modelRef` string, required: The model ID, e.g. "model:toyota/rav4"
  - `years` object[], required: Every year we know of for the model, or that has a recall or a complaint, newest first
    - `year` integer, required: Model year
    - `modelYearRef` string, required: The model year ID, e.g. "model-year:toyota/rav4/2021"
    - `recalls` object, required: Recalls naming this model year, per regulator code (e.g. {"tc": 4, "nhtsa": 6}). Each regulator counts its own recalls, so the numbers are not added together. Empty when there are none.
    - `complaints` integer, required: NHTSA complaints filed against this model year, each counted once

## Other responses

- `400`: The request is invalid. The error response names each bad value in `refs` or `details` and, where it can, suggests the nearest valid ref in `suggestions`. We never fall back to a fuzzy match.
- `401`: No valid API key or session
- `404`: Resource not found
- `429`: Per-minute rate limit exceeded
- `500`: Internal error

## Changes

- **2026-11-19** `877cd66e4732`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cardog/apis/cardog-api-v2/changes/v2/safety/:ref/years/get.md)

---

[API](https://skmtc.dev/cardog/apis/cardog-api-v2.md) - [All operations](https://skmtc.dev/cardog/apis/cardog-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/cardog/apis/cardog-api-v2/revisions/016058226dc5?raw)
