
A VIN can identify a vehicle, but a dealer or fleet application still needs a reliable way to show relevant recall campaigns without implying that a particular car has an unrepaired defect. By the end of this guide, you can request NHTSA recall data, read the response fields, and handle coverage and error conditions in your integration.
What the recall check returns
The VIN Recall Check endpoint is GET /vin/recalls, relative to https://vehicles-api.com/api/v1. Supply a VIN in the vin query parameter and authenticate with the X-API-Key header. Bearer authentication also works, but the examples here use the API key header.
The endpoint returns official NHTSA recall campaigns matched by make, model, and year. Recall coverage is limited to US-market vehicles. A valid non-US VIN returns HTTP 422 with the error code coverage_us_only.
The distinction between a campaign match and a vehicle-specific repair status matters. A matching campaign does not establish whether the particular vehicle was affected or whether its repair has already been completed. Present the result as a make-model-year recall match, not as a confirmed open recall for that car.
Vehicle API VIN decoding works worldwide and is fullest for US-market vehicles. Recalls, owner complaints, and NCAP crash ratings are US-market data matched by make, model, and year. The recall endpoint is also not a vehicle history report: it does not provide title, accident, or ownership history.
Make the request
Run the following request after replacing YOUR_API_KEY with your API key. The control VIN identifies a 2003 Honda Accord; it is an example, not the VIN of the vehicle a user may be checking.
curl "https://vehicles-api.com/api/v1/vin/recalls?vin=1HGCM82633A004352" -H "X-API-Key: YOUR_API_KEY"
A successful response has an envelope containing status, source, and data. Read the envelope before using the recall fields: an error response instead has an error status and an error object with code and message.
The VIN is the lookup input, while the returned year, make, and model are the basis for the recall match. Displaying those returned vehicle fields alongside the campaigns gives the user context for what was matched.
Read the official response
This is the official documentation example for the request above. Campaigns and counts in live responses can change as NHTSA publishes new data.
{
"status": "success",
"source": "nhtsa",
"data": {
"vin": "1HGCM82633A004352",
"year": 2003,
"make": "HONDA",
"model": "Accord",
"coverage": "us",
"count": 24,
"recalls": [
{
"campaign": "19V182000",
"component": "AIR BAGS:FRONTAL:DRIVER SIDE:INFLATOR MODULE",
"received": "2019-03-06",
"summary": "Replacement driver air bag inflator may explode.",
"consequence": "Sharp metal fragments may strike occupants.",
"remedy": "Dealers will replace the inflator, free of charge."
}
]
}
}
The envelope identifies the result as successful and its source as NHTSA. Inside data, the response echoes the VIN and identifies the matched vehicle as a 2003 Honda Accord with US coverage. The example reports a count of 24 and shows one campaign object in the recalls array; do not assume this example array illustrates the entire live result.
Vehicle and coverage fields
vinis the lookup VIN. Use it to associate the result with the request and the vehicle record in your application.year,make, andmodelidentify the vehicle used for the campaign match. The year is a model year, not a duration or a campaign date.coverageisusin this example. Recall coverage is US-market only; a non-US coverage error should not be presented as a finding that the vehicle has no recalls.countis a count of recalls, not a measured quantity with a physical unit.recallscontains the campaign objects supplied in the response.
Campaign fields
campaignis the campaign identifier. Retain it as a string and show it with the relevant campaign details so a user can distinguish one campaign from another.componentnames the affected component described by the campaign. It is useful as a compact label, but it does not replace the campaign text.receivedis a calendar date in the example, formatted asYYYY-MM-DD. It is not a timestamp and does not specify a time or timezone.summarydescribes the issue, whileconsequencedescribes its potential effect. Keep those meanings separate when rendering a safety notice.remedydescribes the campaign remedy. In this example it says dealers will replace the inflator free of charge; it does not say whether this particular vehicle received that remedy.
Use count and the returned array as separate response fields. In particular, do not create additional campaign records from a count, or assume that an illustrative example establishes pagination behavior. Consult the Documentation for current endpoint details.
Call the endpoint from Python
This example uses Python’s standard library and calls the same control-VIN URL as the curl request. Replace the API key before running it. The example checks the envelope, reads the campaign fields, and reports an HTTP error without treating it as an empty recall result.
import json
from urllib.error import HTTPError, URLError
from urllib.request import Request, urlopen
url = "https://vehicles-api.com/api/v1/vin/recalls?vin=1HGCM82633A004352"
request = Request(url)
request.add_header("X-API-Key", "YOUR_API_KEY")
try:
with urlopen(request) as response:
payload = json.load(response)
except HTTPError as exc:
try:
payload = json.load(exc)
except (ValueError, UnicodeDecodeError):
raise SystemExit("Request failed with HTTP status " + str(exc.code))
error = payload.get("error") or dict()
raise SystemExit(
"HTTP " + str(exc.code) + ": "
+ str(error.get("code")) + " — "
+ str(error.get("message"))
)
except URLError as exc:
raise SystemExit("Request could not be completed: " + str(exc.reason))
if payload.get("status") != "success":
error = payload.get("error") or dict()
raise SystemExit(
str(error.get("code")) + " — " + str(error.get("message"))
)
data = payload.get("data") or dict()
print("Source:", payload.get("source"))
print("VIN:", data.get("vin"))
print("Vehicle:", data.get("year"), data.get("make"), data.get("model"))
print("Coverage:", data.get("coverage"))
print("Recall count:", data.get("count"))
for recall in data.get("recalls") or []:
print("Campaign:", recall.get("campaign"))
print("Component:", recall.get("component"))
print("Received:", recall.get("received"))
print("Summary:", recall.get("summary"))
print("Consequence:", recall.get("consequence"))
print("Remedy:", recall.get("remedy"))
The sample prints values rather than building a user interface. In production, keep the returned campaign identifier and text together, and associate the result with the VIN and returned vehicle identity. Avoid turning the presence of a campaign into a repair-status claim.
The or [] expression prevents iteration over a null recalls value, while get avoids a missing-key exception for individual fields. That is defensive handling, not a claim that a null array means there are no campaigns. If a value is null or absent, represent it as unavailable; do not replace it with a factual value or silently conclude that a check found nothing.
Handle coverage, freshness, and operational limits
Errors and unavailable data
Use both the HTTP result and the response envelope when deciding what to show. For an error envelope, record or surface error.code and an appropriate version of error.message. In particular, handle HTTP 422 and coverage_us_only as a coverage limitation, not a successful check with zero recalls.
Keep failed requests distinct from successful results in your application state. A network failure, an authentication problem, a limit-related response, and a coverage error require different follow-up from a user-facing “no matching campaigns” result. The error message can help with diagnosis, but avoid exposing the API key in logs or user interfaces.
Null fields also need explicit treatment. If campaign text or a vehicle field is unavailable, show that it is unavailable or omit that part of the display. Do not infer a missing remedy, date, component, or repair outcome from other fields.
Caching and changing records
Cache decoded VIN information when it suits your application, so repeated work on the same vehicle does not require decoding it every time. Keep the recall result’s freshness separate from the decoded vehicle identity: NHTSA can publish or update campaign data after a vehicle was first decoded.
Choose a refresh policy appropriate to the decision your application supports, and make it possible to obtain a fresh recall check when needed. If you display a cached result, distinguish it from a newly retrieved result rather than implying it reflects a live check. The documentation example’s count and campaign should not be hard-coded as expected live values.
Rate limits and monthly quota
Account for both request rate limits and the plan’s monthly quota when designing batch checks or repeated lookups. Cache decoded VIN data, avoid unnecessary duplicate requests, and handle limit-related errors without substituting an empty recall list. Check current plan and documentation details for the limits that apply to your account rather than assuming a fixed allowance.
Starter is $19 per month, and every plan has a 7-day free trial. For agent integrations, Vehicle API is also available through its MCP server. The same coverage and repair-status distinctions matter when an agent explains recall results.
FAQ
Does a campaign match mean this VIN has an open recall?
No. Campaigns are matched by make, model, and year. The response does not establish whether the specific car was affected or whether a repair has already been completed.
What happens when the VIN is for a non-US vehicle?
A valid non-US VIN returns HTTP 422 with coverage_us_only on this endpoint. Worldwide VIN decoding does not extend the recall endpoint’s US-market coverage.
Can a Dutch plate supply the VIN for this request?
No. Dutch plate data comes from RDW open data and never includes a VIN. Obtain the VIN separately before making a VIN recall check.
Should I cache recall results indefinitely?
No. Campaign data can change as NHTSA publishes updates. Cache decoded VIN data as appropriate, but give recall results a separate refresh policy and distinguish cached information from a fresh lookup.
Ready to test the recall check with your own integration? Register to start the 7-day free trial.