
A VIN may identify a vehicle’s make, but a dealer tool or fleet application may also need the manufacturer name returned by the decoder. This guide shows how to request the manufacturer field, read it from the response envelope, and handle missing data and errors without treating a decode as a vehicle history report.
Request the manufacturer for a VIN
Vehicle API exposes VIN decoding through POST https://vehicles-api.com/api/v1/vin/decode. Send a 17-character VIN in the JSON request body and authenticate with the X-API-Key header. Authorization Bearer also works, but the examples here use X-API-Key.
The following request uses the official control VIN, which decodes as a 2003 Honda Accord. It is an example vehicle, not the reader’s car; replace the VIN in your application with the one supplied for the vehicle being decoded.
curl -X POST "https://vehicles-api.com/api/v1/vin/decode" -H "X-API-Key: YOUR_API_KEY" -H "Content-Type: application/json" -d '{"vin":"1HGCM82633A004352"}'
The decoder accepts 17-character VINs worldwide, with the fullest data for US-market vehicles. The response draws on NHTSA vPIC data, and fields that NHTSA does not publish can be null. A successful request therefore does not mean every field will contain a value.
Read the official response
The official response places the manufacturer inside data, alongside the VIN and decoded vehicle attributes:
{
"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,
"configuration": "V-Shaped",
"model": "J30A4",
"hp": 240,
"fuel": "Gasoline"
},
"fuel_type": "Gasoline",
"electrification_level": null,
"ev_drive_unit": null,
"battery_kwh": null,
"charger_level": null,
"charger_power_kw": null,
"drive": null,
"transmission": {
"style": "Automatic",
"speeds": 5
},
"plant": {
"country": "UNITED STATES (USA)",
"city": "MARYSVILLE",
"state": "OHIO"
},
"manufacturer": "AMERICAN HONDA MOTOR CO., INC."
}
}
For a manufacturer display, read data.manufacturer. In this example it is AMERICAN HONDA MOTOR CO., INC.; data.make is separately reported as HONDA. Keep those values distinct rather than substituting the make whenever a manufacturer is needed.
The outer status indicates the result, and source identifies the source as nhtsa in this response. The data object contains the decoded attributes. Check the envelope before using those attributes: an error response instead has a status of error and provides error.code and error.message.
Interpret the decoded fields
Use vin to associate the response with the submitted identifier. The example’s valid value is true; it should not be presented as proof of ownership, an accident-free past, or a clean title. This endpoint is a decoder, not a vehicle history report.
The identity fields provide context for the manufacturer result. Here, year is 2003, make is HONDA, model is Accord, and trim is EX-V6. Keep the returned manufacturer with these attributes so users can see which decoded vehicle the name describes.
The body information is separate from manufacturer identity. In the example, body is Coupe, doors is the numeric value 2, and vehicle_type is PASSENGER CAR. These fields can help a user review a decode, but they should not be used to fill in a missing manufacturer.
Engine, fuel, and transmission
The engine object describes a six-cylinder engine with a V-Shaped configuration and model J30A4. Its displacement_l value is 3 litres, and hp is 240 horsepower. Preserve the units when displaying or storing these values; displacement is not expressed in cubic centimetres in this field.
Both engine.fuel and the top-level fuel_type report Gasoline in this example. The transmission object reports an Automatic style and 5 speeds. Read the nested fields from their respective objects rather than expecting them beside manufacturer.
Plant and null values
The plant object reports UNITED STATES (USA) as the country, MARYSVILLE as the city, and OHIO as the state. These are assembly-plant attributes; the manufacturer is the separate top-level field inside data.
The control vehicle is a gasoline car. Its electrification_level, ev_drive_unit, battery_kwh, charger_level, and charger_power_kw fields are null, as is drive. When present, battery_kwh is expressed in kilowatt-hours and charger_power_kw in kilowatts.
Represent null as unavailable or not provided in your application, rather than converting it to zero or an empty manufacturer name. A null value does not by itself explain why a field is absent. In particular, do not infer a drivetrain or electric-vehicle specification from the other fields.
Call the endpoint from Python
This standard-library example sends the same VIN request and reads the envelope before printing the manufacturer. It also handles an error response with a JSON body, without assuming a particular error code or HTTP status.
import json
from urllib.error import HTTPError, URLError
from urllib.request import Request, urlopen
url = "https://vehicles-api.com/api/v1/vin/decode"
payload = json.dumps(
dict(vin="1HGCM82633A004352")
).encode("utf-8")
request = Request(
url,
data=payload,
headers=dict([
("X-API-Key", "YOUR_API_KEY"),
("Content-Type", "application/json"),
]),
method="POST",
)
try:
with urlopen(request) as response:
body = response.read()
except HTTPError as exc:
body = exc.read()
except URLError as exc:
raise SystemExit("Request failed: " + str(exc.reason))
try:
result = json.loads(body)
except (ValueError, UnicodeDecodeError):
raise SystemExit("Response was not valid JSON")
if result.get("status") == "error":
error = result.get("error") or dict()
raise SystemExit(
"API error: "
+ str(error.get("code"))
+ " — "
+ str(error.get("message"))
)
if result.get("status") != "success":
raise SystemExit("Unexpected response status")
data = result.get("data") or dict()
manufacturer = data.get("manufacturer")
print("Source:", result.get("source"))
print("VIN:", data.get("vin"))
print("Valid:", data.get("valid"))
print("Manufacturer:", manufacturer if manufacturer is not None else "Not provided")
Replace YOUR_API_KEY with your key when running the example. In a deployed application, supply the key securely rather than committing it to a repository. Substitute the user’s 17-character VIN for the control VIN, and keep the returned VIN with the manufacturer so the result remains attributable to the request.
The sample prints “Not provided” when manufacturer is null or missing. A production application can instead retain a null value internally and choose a suitable display label. It should also handle an unexpected envelope rather than silently showing an empty result as a successful decode.
Operate the integration
Check status for every response. When it is error, record or surface error.code and error.message as appropriate; do not attempt to read the error as a successful data object. Use the Documentation for the applicable error codes and current account limits.
Plan for both rate limits and a monthly quota. A burst of requests and a month’s total usage are different operational concerns, so monitor each against the limits that apply to your account. The supplied example does not specify numeric limits; check your plan before sizing batch jobs or retries.
Cache decoded results by VIN when your application repeatedly displays the same vehicle. Store the source and the time your application fetched the result alongside the decoded data, including nulls, and choose a refresh policy appropriate to your workflow. Caching reduces repeated calls, but a cached response remains a prior decode rather than a guarantee that source data has not changed.
The decoder’s worldwide scope does not extend to all vehicle data. Vehicle API’s recalls, owner complaints, and NCAP crash ratings cover US-market vehicles only and are matched by make, model, and year. Those records are not evidence of a particular vehicle’s title, accident, or ownership history.
Dutch plate data comes from RDW open data and never includes a VIN, so do not design a plate workflow that assumes it can supply one for this manufacturer request. For agent integrations, Vehicle API also provides an MCP server; the JSON example and field handling above apply to the REST request shown here.
FAQ
Is manufacturer the same field as make?
No. The response has separate manufacturer and make fields. For the control VIN, they contain AMERICAN HONDA MOTOR CO., INC. and HONDA, respectively.
Can I decode a VIN from outside the US?
Yes. VIN decoding works worldwide for 17-character VINs, though data is fullest for US-market vehicles. Fields that NHTSA does not publish can be null.
Does a successful decode include vehicle history?
No. The decode is not a title, accident, or ownership history report. US-market recall, complaint, and NCAP data is matched by make, model, and year rather than presented as a vehicle history.
What should I do if manufacturer is null?
Keep it as null and display an unavailable state if needed. Do not replace it with make or infer a manufacturer from the assembly plant.
To try the request with your own VIN, Register and start the 7-day free trial. Every plan includes the trial; Starter is $19 per month.