
A VIN alone is not enough to populate a vehicle listing with consistent specifications and US safety data. By the end of this guide, you will be able to call the VIN report endpoint, read its response envelope, and handle missing fields and safety-data coverage without presenting the result as a vehicle history report.
Make a VIN report request
The report endpoint combines decoded specifications, recall campaigns, a complaint count and NCAP ratings in one response. VIN decoding works worldwide and is fullest for US-market vehicles. For a non-US VIN, the endpoint still returns HTTP 200 with specifications only; US safety data is matched by make, model and year, not verified against an individual vehicle’s repair history.
The request below uses a control VIN for a 2003 Honda Accord. It is useful for testing the integration, but it is not the VIN of the vehicle your user has entered. Replace YOUR_API_KEY with your key, and replace the control VIN with the user’s VIN when integrating the call into your application.
curl -X POST "https://vehicles-api.com/api/v1/vin/report" -H "X-API-Key: YOUR_API_KEY" -H "Content-Type: application/json" -d '{"vin":"1HGCM82633A004352"}'
The base URL is https://vehicles-api.com/api/v1, and the request body supplies the VIN in the vin field. The example authenticates with X-API-Key; Authorization Bearer also works. Keep the key on your server or in another protected execution environment rather than exposing it in client-side application code.
Read the official response
The following is the official documentation example for the control VIN. It shows the response shape and example values; live counts and campaigns can change as the underlying public data is updated.
{
"status": "success",
"source": "nhtsa",
"data": {
"vin": "1HGCM82633A004352",
"valid": true,
"year": 2003,
"make": "HONDA",
"model": "Accord",
"trim": "EX-V6",
"body": "Coupe",
"doors": 2,
"vehicle_type": "PASSENGER CAR",
"engine": {
"cylinders": 6,
"displacement_l": 3,
"fuel": "Gasoline"
},
"fuel_type": "Gasoline",
"electrification_level": null,
"ev_drive_unit": null,
"battery_kwh": null,
"charger_level": null,
"charger_power_kw": null,
"plant": {
"country": "UNITED STATES (USA)",
"city": "MARYSVILLE",
"state": "OHIO"
},
"manufacturer": "AMERICAN HONDA MOTOR CO., INC.",
"coverage": "us",
"recalls_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."
}
],
"complaints_count": 2013,
"safety_ratings": {
"match": "partial",
"vehicle_description": "2003 Honda Accord 2-DR.",
"overall": null,
"front": {
"driver": 5,
"passenger": 5
},
"side": {
"driver": 5,
"passenger": 5
},
"rollover": 4
}
}
}
Start with the envelope: status indicates success, source is nhtsa in this example, and data contains the report. The fields most applications will use first are year, make, model, trim and coverage. Use the recall and rating fields only with the US-market matching context described below.
Vehicle identity and specifications
vin identifies the submitted vehicle, and valid is the validity result returned by the service. year, make, model and trim provide the decoded identity; body, doors and vehicle_type describe its configuration. Preserve the returned values if you need an auditable source record, even if your interface displays them with different capitalization.
The nested engine object contains cylinders, displacement_l and fuel. Displacement is measured in litres. fuel_type is also present at the vehicle level; consume the field appropriate to your display rather than assuming every report will have the same level of engine detail.
The fields electrification_level, ev_drive_unit, battery_kwh, charger_level and charger_power_kw are null in this example. Battery capacity is expressed in kilowatt-hours and charger power in kilowatts. A null means the response does not provide a value: do not turn it into zero, an empty specification, or a definitive claim about equipment.
plant contains the assembly country, city and state, while manufacturer identifies the manufacturer in the decoded data. These are useful for inventory enrichment, but missing plant or specification fields should not prevent an application from displaying the fields that are available.
Recalls, complaints and ratings
coverage is us in the example. Recalls, owner complaints and NCAP ratings cover US-market vehicles only and are matched by make, model and year. They provide model-level safety context, not confirmation that a particular VIN is affected by a campaign or that a repair has or has not been completed.
recalls_count gives the reported count, while recalls contains campaign details. The example shows a count larger than the number of entries displayed in its array, so do not assume that the visible array length is the total count. For each returned entry, campaign is the campaign identifier; component, summary, consequence and remedy provide information for a safety notice.
received is a date, not a timestamp with a timezone. Display it as a calendar date instead of converting it to a local time. Check current campaign information before relying on a stored notice, because the live data can change.
complaints_count is a count of owner complaints associated with the make, model and year match. It is not a count of complaints about the individual vehicle, and the response example does not provide complaint narratives. A large count alone does not establish the condition of a specific car.
safety_ratings contains the NCAP match and available results. Inspect match and vehicle_description before showing the scores: the example says partial, so a UI should retain that qualification rather than implying an exact configuration match. front and side contain driver and passenger star ratings, and rollover is a star rating; overall is null here and should be displayed as unavailable, not as zero stars.
Call the endpoint from Python
This standard-library example sends the same control VIN and reads the fields needed for a basic vehicle summary. It checks both HTTP failures and the response envelope, and it treats optional nested rating data as potentially unavailable.
import json
import sys
from urllib.error import HTTPError, URLError
from urllib.request import Request, urlopen
url = "https://vehicles-api.com/api/v1/vin/report"
payload = json.dumps({"vin": "1HGCM82633A004352"}).encode("utf-8")
request = Request(
url,
data=payload,
headers={
"X-API-Key": "YOUR_API_KEY",
"Content-Type": "application/json",
},
method="POST",
)
def read_json(response):
return json.loads(response.read().decode("utf-8"))
try:
with urlopen(request) as response:
result = read_json(response)
except HTTPError as exc:
try:
result = read_json(exc)
except (ValueError, UnicodeDecodeError):
print("HTTP error:", exc.code)
sys.exit(1)
error = result.get("error") or {}
print("HTTP error:", exc.code, error.get("code"), error.get("message"))
sys.exit(1)
except (URLError, ValueError, UnicodeDecodeError) as exc:
print("Request or response error:", exc)
sys.exit(1)
if result.get("status") != "success":
error = result.get("error") or {}
print("API error:", error.get("code"), error.get("message"))
sys.exit(1)
data = result.get("data") or {}
ratings = data.get("safety_ratings") or {}
front = ratings.get("front") or {}
print("Source:", result.get("source"))
print("VIN:", data.get("vin"), "Valid:", data.get("valid"))
print("Vehicle:", data.get("year"), data.get("make"), data.get("model"))
print("Trim:", data.get("trim"), "Coverage:", data.get("coverage"))
print("Recall count:", data.get("recalls_count"))
print("Complaint count:", data.get("complaints_count"))
print("Rating match:", ratings.get("match"))
print("Front driver rating:", front.get("driver"))
In production, supply the VIN from your application and load the API key from protected configuration. Keep unavailable values distinct from zero when mapping the output into your own data model. For example, an unavailable complaint count should not be presented as a finding that no complaints exist.
Handle failures, limits and freshness
A successful response uses the status, source and data envelope. An error response has an error status with error.code and error.message. Record the code and message for diagnosis, while returning an appropriate message to the user; do not try to parse a failed response as a vehicle report.
Handle authentication and input problems separately from temporary request failures in your application flow. Use the returned error code and current Documentation to determine the appropriate action. The numeric error codes and their meanings should not be inferred from the successful example.
Plan for both rate limits and a monthly quota. A rate limit controls request frequency, while a monthly quota limits usage over the billing period; check your plan and current documentation for the applicable values and reset behavior. When a request is limited, avoid an immediate retry loop: use controlled retries where appropriate, and surface quota exhaustion to the operator rather than repeatedly sending the same request.
Cache decoded VIN specifications to avoid repeating work for the same vehicle. Keep the VIN and source context with the cached record, retain nulls, and choose a refresh policy suited to your application. Treat recall campaigns, complaint counts and ratings as freshness-sensitive: a cached specification does not guarantee that cached safety data is still current.
For a marketplace or dealer workflow, display when your application last retrieved safety information if you store it. If the safety data is unavailable, show that state explicitly instead of combining it with a zero count or a clean-history label. This report does not include title, accident or ownership history.
FAQ
Does a non-US VIN return an error?
A non-US VIN can return HTTP 200 with specifications only. VIN decoding works worldwide, although details are fullest for US-market vehicles; US recalls, complaints and NCAP ratings should not be assumed to apply to a non-US-market vehicle.
Does a recall in the response mean this specific car has an open recall?
No. Safety data is matched by make, model and year. A campaign in the report is useful context, but it does not establish the applicability or repair status for the individual VIN.
Can I get a VIN from a Dutch plate?
No. Dutch plate data comes from RDW open data and never includes a VIN. Use a VIN supplied through another appropriate workflow when you need this VIN report.
Can an AI agent use Vehicle API?
Vehicle API also provides an MCP server. An agent should preserve the same distinctions between decoded specifications, make-model-year safety matches and unavailable fields when presenting results.
Register to start the 7-day free trial and test the report with your own VIN workflow. Every plan includes the trial; Starter is $19 per month.


