
You need a reliable way to surface NHTSA owner complaints for a specific vehicle inside your transportation app. By the end of this guide, you’ll be able to call the Vehicle Complaints endpoint, parse the results, handle errors and quotas, and ship complaint insights into dealer tools, marketplaces, fleet dashboards, insurance triage workflows, or AI agents.
What this endpoint does and when to use it
The Vehicle Complaints endpoint returns the 50 most recent owner complaints filed with NHTSA’s Office of Defects Investigation (ODI) for US-market vehicles, plus the true total count of complaints for that make, model, and year. Although you pass a VIN, the match is by make + model + year. Use it to assess systemic issues, triage service tickets, or provide transparency near listings or underwriting flows.
Scope and coverage details you should rely on in production:
- US-market coverage only for complaints. A valid non-US VIN returns HTTP 422 with an error code of coverage_us_only for this endpoint.
- Complaints are matched by make + model + year derived from the VIN. The specific VIN’s serial isn’t used to look up a single-vehicle history.
- The list includes up to the 50 most recent complaints; use the count field for the true total.
- This is not a vehicle history report. It does not include title, accident, or ownership history.
Related context across Vehicle API:
- VIN decoding works worldwide, with fullest coverage for US-market vehicles.
- US-market safety data (recalls, complaints, NCAP crash ratings) is available by make + model + year.
- Dutch plates (RDW) are supported, but RDW plate lookups never include a VIN.
Base URL, auth, and response envelope
Base URL for REST: https://vehicles-api.com/api/v1
Auth: Send your key in the X-API-Key: YOUR_API_KEY header. Authorization: Bearer YOUR_API_KEY is also supported, but we’ll use X-API-Key here.
Every response uses a standard envelope:
- status: "success" or "error"
- source: data source name on success (e.g., "nhtsa")
- data: the payload object on success
- error: object with code and message on error
You can find the full reference in the Documentation. The MCP server is also available if you’re integrating via an agent runtime: MCP.
Quickstart: cURL example
Call the Vehicle Complaints endpoint with a VIN. This example uses the control VIN 1HGCM82633A004352 (a 2003 Honda Accord from public docs). Replace YOUR_API_KEY with your key.
curl "https://vehicles-api.com/api/v1/vin/complaints?vin=1HGCM82633A004352" -H "X-API-Key: YOUR_API_KEY"
Official JSON response example
This is the official docs example for the endpoint. Live counts and complaint items change as NHTSA publishes new data.
{
"status": "success",
"source": "nhtsa",
"data": {
"vin": "1HGCM82633A004352",
"year": 2003,
"make": "HONDA",
"model": "Accord",
"coverage": "us",
"count": 2013,
"complaints": [
{
"odi_number": "11459899",
"date": "2022-03-15",
"crash": false,
"fire": false,
"injured": 0,
"deaths": 0,
"components": [
"AIR BAGS"
],
"summary": "Driver airbag warning light illuminated."
}
]
}
}
Fields you will use
- data.vin: The VIN you queried. Used for request/response correlation.
- data.year, data.make, data.model: The decoded year/make/model used to match NHTSA data.
- data.coverage: "us" indicates the US-market scope for this endpoint.
- data.count: Integer total of all matching complaints in ODI. This can be larger than the returned list size (the list is capped at 50 most recent).
- data.complaints[]: Array of complaint objects (up to 50):
- odi_number: NHTSA ODI identifier; stable handle for deep links or de-duplication.
- date: Complaint date in ISO 8601 (YYYY-MM-DD).
- crash, fire: Booleans indicating crash or fire involvement.
- injured, deaths: Integers summarizing reported injuries and fatalities.
- components[]: Complaint components or systems (e.g., AIR BAGS).
- summary: Short text summary provided by the complainant.
Nullability: Some complaints may omit certain optional fields in live data. Treat absent fields as null-equivalent in your client. Always check types defensively.
JavaScript and Python usage
Python example (requests)
import os
import requests
API_KEY = os.getenv("VEHICLES_API_KEY", "YOUR_API_KEY")
VIN = "1HGCM82633A004352"
url = "https://vehicles-api.com/api/v1/vin/complaints"
params = {"vin": VIN}
headers = {"X-API-Key": API_KEY}
resp = requests.get(url, params=params, headers=headers, timeout=20)
# Basic envelope handling
data = resp.json()
if data.get("status") != "success":
err = data.get("error", {})
code = err.get("code", "unknown_error")
msg = err.get("message", "Request failed")
raise SystemExit(f"Complaints lookup failed: {code} - {msg}")
payload = data["data"]
vin = payload.get("vin")
year = payload.get("year")
make = payload.get("make")
model = payload.get("model")
coverage = payload.get("coverage")
total = payload.get("count", 0)
complaints = payload.get("complaints", []) or []
print(f"Matched: {year} {make} {model} (VIN: {vin}, coverage: {coverage})")
print(f"Total ODI complaints: {total}; showing up to {len(complaints)} recent")
# Example: summarize the first complaint safely
if complaints:
c0 = complaints[0]
odi = c0.get("odi_number")
date = c0.get("date")
components = ", ".join(c0.get("components", []) or [])
summary = c0.get("summary", "")
flags = []
if c0.get("crash") is True:
flags.append("crash")
if c0.get("fire") is True:
flags.append("fire")
injured = c0.get("injured")
deaths = c0.get("deaths")
print(f"ODI {odi} on {date} [{components}] — {summary}")
print(f"Flags: {', '.join(flags) if flags else 'none'}; injured={injured}, deaths={deaths}")
Notes:
- Timeouts: set a reasonable timeout for your environment (example uses 20s).
- Envelope: always check status before reading data to avoid KeyError on errors.
- Nulls: treat missing arrays as empty and missing scalars as None/empty as appropriate.
Coverage, matching, and limitations you should account for
- US-market only: Complaints come from NHTSA ODI and therefore only cover US-market vehicles. Non-US VINs return HTTP 422 with error.code coverage_us_only for this endpoint.
- Matched by make + model + year: The endpoint uses the VIN to derive YMM and fetches NHTSA complaints for that configuration. It is not a per-serial complaint history.
- 50 most recent: The complaints list is capped at 50 latest entries. Use count for the complete number of complaints in ODI. If you need older items, periodically sync or contact support as needed.
- Worldwide VIN decoding: You can decode VINs globally with Vehicle API; just note that safety datasets (recalls, complaints, NCAP) are US-only.
- RDW plates: Dutch plate lookups never include a VIN; they come from RDW open data and are separate from NHTSA sources.
Error handling, rate limits, and quotas
Common situations to handle:
- 422 coverage_us_only: You passed a valid non-US VIN to the complaints endpoint. Communicate US-only coverage to users and avoid retrying.
- Client errors (4xx): Inspect the response envelope’s error.code and error.message to correct parameters or usage.
- Server or transient errors (5xx): Implement retries with exponential backoff and jitter.
- Rate limits/quota: Plans include monthly quotas and rate limits. Avoid hot loops and parallel storms; coalesce duplicate requests and use caching. Check the Documentation for plan-specific details.
Error envelope shape on failure:
- status: "error"
- error.code: Machine-readable string (e.g., coverage_us_only)
- error.message: Human-readable description
Caching and performance considerations
- Cache complaints by the tuple (year, make, model) derived from VINs. Complaints for the same YMM will be identical at request time.
- Because the list is capped at 50 most recent, consider storing:
- the top N recent complaints you display (e.g., 10–50), and
- the total count for analytics and badges.
- Refresh cadence: ODI updates don’t require minute-by-minute polling. For UIs, caching per YMM for hours or a day is typical; use your app’s freshness requirements.
- VIN decode caching: If you combine this endpoint with VIN decoding, cache decode results for each VIN to avoid repeating work for the same request flow.
Designing transportation features with complaint data
- Dealer tools and marketplaces: Show a “Known issues” module with the most-mentioned components and a link to “View all NHTSA complaints.” Use count for the badge and the 50-item list for details.
- Fleet maintenance: Flag vehicles where complaint density is high for critical systems (e.g., AIR BAGS, SERVICE BRAKES). Use injured/deaths fields as severity signals for triage.
- Insurance intake and AI agents: Enrich underwriting rules with recent complaint trends. AI agents can summarize the latest complaints for a given YMM while citing ODI numbers.
Remember: This dataset reflects reported consumer complaints, not verified failures. Treat it as a signal alongside technical service bulletins, recalls, and inspection findings.
MCP server for agent runtimes
If you’re building AI agents or tools that speak Model Context Protocol (MCP), the same data is available via the Vehicle API MCP server at MCP. Use MCP when your runtime benefits from tool discovery and standardized capability exposure instead of hand-written HTTP calls.
Practical integration checklist
- Authentication: send X-API-Key: YOUR_API_KEY. Keep keys out of client-side code.
- Validation: ensure the VIN you pass is syntactically valid before calling the endpoint.
- Error paths: surface 422 coverage_us_only as a user-facing note about US coverage.
- Data handling: show up to 50 most recent; summarize with count; handle empty arrays or nulls.
- Observability: log source, vin, count, and the first ODI number for quick diagnostics.
- Backoff: add jittered retry for 5xx; do not retry 4xx except 429 with a short backoff.
- Compliance: display ODI numbers when quoting complaint summaries to enable traceability.
FAQ
Does this endpoint return complaints for a specific serial-numbered vehicle?
No. Although you provide a VIN, the results are matched by make + model + year. It is not a per-serial complaint history.
How many complaints are returned?
Up to the 50 most recent complaints are returned, and the count field provides the total number of ODI complaints for that YMM.
What happens if I pass a non-US VIN?
For this endpoint, a valid non-US VIN returns HTTP 422 with error.code coverage_us_only because NHTSA complaints are US-market only.
Can I combine complaints with recalls and NCAP?
Yes. All three datasets are US-market only and are matched by make + model + year. Use VIN decoding to derive YMM, then call each endpoint as needed.
Is there a free trial?
Yes. Starter is $19/month and every plan includes a 7-day free trial.
Ready to add complaint transparency to your transportation app? Start your 7-day free trial and get an API key now: Register. For endpoint details and envelope semantics, see the Documentation.
