Legacy v1
Vehicle Complaints
Last updated:
API reference for searching and retrieving NHTSA vehicle complaint information.
The complaints API returns complaints filed with the National Highway Traffic Safety Administration (NHTSA). Search by make, model, year, component, and other criteria to find safety issues and patterns affecting specific vehicles.
Search complaints
GET /v1/complaints/search
Search NHTSA complaints by make, model, year range, component, and state, with pagination and sorting.
Optional parameters
| Parameter | Type | Description |
|---|---|---|
makes | string | Comma-separated list of vehicle makes to filter by (e.g., "HONDA,TOYOTA,FORD"). |
models | string | Comma-separated list of vehicle models to filter by (e.g., "CIVIC,CAMRY,F150"). |
yearMin | number | Minimum model year for filtering (default: 1900). |
yearMax | number | Maximum model year for filtering (default: current year + 2). |
components | string | Comma-separated list of components to filter by (e.g., "Brake System,Air Bag System"). |
states | string | Comma-separated list of states to filter by (e.g., "CA,TX,NY"). |
productTypes | string | Comma-separated list of product types: "V" (Vehicle), "T" (Tires), "E" (Equipment), "C" (Child Restraint). |
crashInvolved | boolean | Filter for complaints involving crashes (true/false). |
fireInvolved | boolean | Filter for complaints involving fires (true/false). |
hasInjuries | boolean | Filter for complaints with injuries (true/false). |
hasDeaths | boolean | Filter for complaints with deaths (true/false). |
dateStart | string | Start date for incident date range (YYYY-MM-DD format). |
dateEnd | string | End date for incident date range (YYYY-MM-DD format). |
limit | number | Maximum number of results to return (default: 10). |
offset | number | Number of results to skip for pagination (default: 0). |
sort | string | Field to sort by: "incident_date", "date_received", "year", "make", "model", "component_description", "injured_count", "deaths_count" (default: "date_received"). |
order | string | Sort order: "asc" or "desc" (default: "desc"). |
Basic search
curl "https://api.cardog.app/v1/complaints/search" \
-H "x-api-key: your-api-key" \
-G \
-d "makes=HONDA,TOYOTA" \
-d "models=CIVIC,CAMRY" \
-d "yearMin=2020" \
-d "yearMax=2023" \
-d "limit=5" \
-d "sort=date_received" \
-d "order=desc"Advanced search
curl "https://api.cardog.app/v1/complaints/search" \
-H "x-api-key: your-api-key" \
-G \
-d "components=Brake System,Air Bag System" \
-d "crashInvolved=true" \
-d "hasInjuries=true" \
-d "states=CA,TX,NY" \
-d "dateStart=2023-01-01" \
-d "dateEnd=2023-12-31" \
-d "limit=10"Response:
Example
4 keysGet complaint by ID
GET /v1/complaints/:id
Retrieve one complaint by its identifier. The response includes incident, vehicle, and consumer details.
Required parameters
| Parameter | Type | Description |
|---|---|---|
id | number | The unique identifier of the complaint to retrieve. |
curl "https://api.cardog.app/v1/complaints/1234567" \
-H "x-api-key: your-api-key"import { CardogClient } from "@cardog/api";
const client = new CardogClient({ apiKey: "your-api-key" });
// Get complaint details by ID
const complaint = await client.complaints.byId(1234567);
console.log(`${complaint.data.year} ${complaint.data.make} ${complaint.data.model}`);
console.log(`Component: ${complaint.data.componentDescription}`);
console.log(`Description: ${complaint.data.complaintDescription}`);Example
2 keysGet complaint statistics
GET /v1/complaints/stats/overview
Retrieve aggregate statistics for NHTSA complaints: totals, top makes, top components, and top states.
curl "https://api.cardog.app/v1/complaints/stats/overview" \
-H "x-api-key: your-api-key"import { CardogClient } from "@cardog/api";
const client = new CardogClient({ apiKey: "your-api-key" });
// Get complaint statistics
const stats = await client.complaints.stats();
console.log(`Total complaints: ${stats.data.totalComplaints}`);
console.log(`With injuries: ${stats.data.complaintsWithInjuries}`);
console.log(`With crashes: ${stats.data.complaintsWithCrashes}`);
console.log("Top components:");
for (const component of stats.data.topComponents) {
console.log(` ${component.component}: ${component.count}`);
}Example
2 keysAdditional statistics endpoints
| Endpoint | Description |
|---|---|
GET /v1/complaints/stats/makes | Retrieve the top vehicle makes by complaint count. |
GET /v1/complaints/stats/components | Retrieve the top components by complaint count. |
GET /v1/complaints/stats/states | Retrieve the top states by complaint count. |
Data Fields
Fields in each complaint record include:
| Field | Type | Description |
|---|---|---|
complaintId | number | Unique NHTSA complaint identifier. |
odiNumber | string | NHTSA ODI (Office of Defects Investigation) number. |
make | string | Vehicle make (e.g., "HONDA", "TOYOTA"). |
model | string | Vehicle model (e.g., "CIVIC", "CAMRY"). |
year | number | Vehicle model year. |
vin | string | Vehicle Identification Number. |
crashInvolved | boolean | Whether the complaint involved a crash. |
fireInvolved | boolean | Whether the complaint involved a fire. |
injuredCount | number | Number of people injured in the incident. |
deathsCount | number | Number of people killed in the incident. |
componentDescription | string | Description of the component involved in the complaint. |
complaintDescription | string | Detailed description of the complaint. |
consumerCity | string | City where the complaint originated. |
consumerState | string | State where the complaint originated. |
incidentDate | string | Date when the incident occurred. |
dateReceived | string | Date when NHTSA received the complaint. |
mileage | number | Vehicle mileage at the time of the incident. |
policeReportFiled | boolean | Whether a police report was filed. |
medicalAttention | boolean | Whether medical attention was required. |
vehicleTowed | boolean | Whether the vehicle was towed. |
Product Types
Complaints are categorized by product type:
| Code | Description |
|---|---|
V | Vehicle complaints. |
T | Tire complaints. |
E | Equipment complaints. |
C | Child restraint complaints. |
Was this helpful?