
A VIN alone does not tell your application which recall campaigns may apply to a vehicle’s model and year. By the end of this guide, you can request official NHTSA recall data, extract recalls[].campaign, and present the result without mistaking a model-level match for a completed or outstanding repair on a particular car.
Request recall campaigns for a VIN
The recall campaign lookup uses GET /vin/recalls on the Vehicle API base URL, https://vehicles-api.com/api/v1. Supply the VIN in the vin query parameter and authenticate with the X-API-Key header. Bearer authorization also works, but the examples below use the API key header.
The following request uses the documentation’s control VIN. It identifies a 2003 Honda Accord; replace it with the VIN supplied to your application when performing a real lookup. The campaign results for the control VIN should not be presented as results for a different vehicle.
curl "https://vehicles-api.com/api/v1/vin/recalls?vin=1HGCM82633A004352" -H "X-API-Key: YOUR_API_KEY"
Put your API key in place of YOUR_API_KEY before running the command. Keep that key in a server-side secret store or environment configuration rather than embedding it in a browser or a distributed app.
The lookup returns official NHTSA recall campaigns for US-market vehicles. Matching is based on make, model, and year, not on confirmation that an individual VIN was included in a campaign or that its repair was completed. Use the campaign number as a reference for follow-up, not as proof of the car’s repair status.
Read the response and campaign number
The official documentation example is shown below. Its campaign and count are example values; live results 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 response envelope separates the outcome from the payload. Here, status is success, source is nhtsa, and data contains the vehicle context and recall results. Check the outcome before reading the campaign list; an error response has a different payload shape.
Within data, use the returned vin, year, make, and model to show users the vehicle context used for the match. The example’s coverage value is us. These fields are important context for a campaign number, particularly when a user is reviewing several vehicles.
count gives the reported recall count, while recalls contains the campaign entries to process. The example shows a count of 24 and one recall object; do not assume the sample array illustrates a complete live result. Process the entries actually returned rather than constructing campaign records from the count.
For each entry, campaign is the campaign identifier your application can display or store as a string. Preserve it exactly as returned. The remaining fields give the identifier useful context:
componentidentifies the vehicle component described by the recall.receivedis the received date in the example’s date format. It is a date, not a timestamp with a supplied timezone.summarydescribes the issue, andconsequencedescribes a potential result.remedydescribes the stated corrective action; it is not confirmation that the action was performed on this vehicle.
Retain the descriptive fields alongside the campaign number when a user needs to understand why it appeared. A campaign identifier on its own does not communicate the affected component, risk, or proposed remedy.
Extract campaigns in Python
This example calls the same endpoint and handles both the success envelope and an API error envelope. It uses Python’s standard library and reads the API key from the environment. Set VEHICLE_API_KEY to your key before running it.
import json
import os
from urllib.error import HTTPError, URLError
from urllib.request import Request, urlopen
url = "https://vehicles-api.com/api/v1/vin/recalls?vin=1HGCM82633A004352"
api_key = os.environ["VEHICLE_API_KEY"]
request = Request(url, headers={"X-API-Key": api_key})
try:
with urlopen(request) as response:
payload = json.load(response)
except HTTPError as exc:
try:
payload = json.load(exc)
except (ValueError, UnicodeDecodeError):
print("Request failed with HTTP status:", exc.code)
raise SystemExit(1)
except URLError as exc:
print("Could not reach Vehicle API:", exc.reason)
raise SystemExit(1)
if payload.get("status") != "success":
error = payload.get("error") or dict()
print("API error:", error.get("code"), error.get("message"))
raise SystemExit(1)
data = payload.get("data") or dict()
print("Source:", payload.get("source"))
print("Vehicle:", data.get("year"), data.get("make"), data.get("model"))
print("VIN:", data.get("vin"))
print("Reported 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"))
print()
The sample checks status before accessing data. If the server returns an API error, it reads error.code and error.message; if the HTTP error body cannot be parsed as JSON, it reports the HTTP status instead. A connection failure is handled separately.
The use of get also avoids failing when an individual value is absent. An empty list fallback keeps iteration safe if recalls is missing or null, but your production application should distinguish incomplete data from a confirmed empty result before displaying a “no recalls” message. Likewise, a missing campaign number should be shown as unavailable or flagged for review, not replaced with a fabricated identifier.
Coverage, freshness, and operational handling
Know what the match establishes
VIN decoding works worldwide, although it is fullest for US-market vehicles. Recall campaigns are different: this endpoint covers US-market vehicles only. A valid non-US VIN returns HTTP 422 with the error code coverage_us_only; that response means the lookup is outside this endpoint’s coverage, not that the vehicle has no recalls.
Vehicle API also provides US-market owner complaints and NCAP crash ratings, matched by make, model, and year. NHTSA vPIC supplies the VIN decoding data, while NHTSA recall data supplies the campaigns discussed here. A decoded make and model can help establish the lookup context, but the recall result remains a make-model-year match.
Dutch plate data comes from RDW and never includes a VIN. Do not assume a Dutch plate lookup can supply the VIN needed for this request. Whether your workflow starts with a VIN entered by a driver or supplied by a dealer, obtain the VIN separately before calling the recall endpoint.
This API is not a vehicle history report. It does not provide title, accident, or ownership history, and this recall lookup does not establish whether the specific car was already repaired. In a user interface, label results as campaigns matched to the vehicle’s make, model, and year, and direct users to confirm individual applicability and repair status through an appropriate official channel.
Handle nulls and changing data
Make the campaign display tolerant of null or missing values. For descriptive fields such as component, received, summary, consequence, and remedy, show an unavailable state when a value is not present. Do not turn a null into an assertion that a consequence or remedy does not exist.
Keep the returned source with stored results so that a downstream user can identify where the data came from. Store received as a date when possible; do not add a time or timezone that the response did not provide. Keep the campaign identifier as text rather than trying to derive a date or other attributes from it.
Caching decoded VIN data can reduce repeated decoding work when the same vehicle is viewed often. Treat recall data separately: NHTSA can publish new campaigns or updates, so a previously cached campaign list is a snapshot rather than a permanent answer. Choose a refresh policy appropriate to the decisions your application supports, and make the age of cached results visible where it matters.
Plan for errors and usage limits
Error responses use status set to error, with details in error.code and error.message. Branch on the code when your application has a specific action, as with coverage_us_only, and retain the message for diagnosis. Do not parse a failure as a successful response merely because a request returned a JSON document.
Plan for both rate limits and a monthly quota. Rate limits affect how quickly requests can be made; the monthly quota concerns usage over the billing period. Check the current Documentation and your plan details for applicable limits and error handling rather than hard-coding an assumed allowance.
For batch or fleet workflows, avoid sending repeated requests for the same VIN unnecessarily. Track failures separately from successful lookups, and do not automatically present a rate-limited, quota-limited, or otherwise failed request as an empty campaign list. Use controlled retries only when appropriate to the error and your application’s usage constraints.
AI-agent integrations can also access Vehicle API through its MCP server. An agent presenting a campaign number should preserve the same coverage and repair-status qualifications as an application calling the REST endpoint.
FAQ
Is a returned campaign specific to the individual VIN?
No. The endpoint matches recall campaigns by make, model, and year. A returned campaign is a reason to investigate applicability, not confirmation that the particular car was affected or repaired.
What does coverage_us_only mean?
A valid non-US VIN is outside this recall endpoint’s coverage and returns HTTP 422 with that code. It is not a successful lookup with zero campaigns.
Can I get a recall lookup VIN from a Dutch plate?
No. Dutch plate data from RDW never includes a VIN. Obtain the VIN separately, and remember that the recall endpoint covers US-market vehicles only.
Should I cache campaign results forever?
No. Decoded VIN data can be cached to avoid repeated work, but recall campaigns can change as NHTSA publishes data. Refresh campaign results according to your application’s needs and treat cached results as a snapshot.
Register to start the 7-day free trial and test the recall lookup with your own VIN workflow. Starter is $19 per month, and every plan has a 7-day free trial.
