VIN Manufacturer API for Developers

By Vehicle API
VIN Manufacturer API for Developers

You need to programmatically identify the vehicle manufacturer from a VIN and return consistent, trustworthy details your app can use. By the end of this guide, you’ll integrate the Vehicle API VIN decode endpoint on the server side to extract the manufacturer along with year, make, model, trim, engine, transmission, and assembly plant—complete with robust error handling, timeouts, and caching strategies.

What the VIN Manufacturer decode returns and where it’s strongest

The VIN decode endpoint returns structured data for any 17-character VIN worldwide, with the fullest coverage for US-market vehicles. It includes the manufacturer, year, make, model, trim, body, engine and transmission specs, and plant details where available. For fields not published by the source (NHTSA vPIC), values will be null.

Illustration: VIN Manufacturer API for Developers

Safety datasets such as recall campaigns, owner complaints, and NCAP crash ratings are US-market only and matched by make + model + year, not by VIN. Dutch license plates are supported via RDW open data but never include a VIN. This API is not a vehicle history report and does not include title, accident, or ownership history.

Endpoint, base URL, and authentication

Base URL: https://vehicles-api.com/api/v1

  • Endpoint: POST /vin/decode
  • Auth header: X-API-Key: YOUR_API_KEY (Authorization: Bearer YOUR_API_KEY also works)
  • Content type: application/json
  • Never expose your API key in browser code; use server-side calls only.

For a broader look at available capabilities and constraints, see the Documentation. If you prefer tool-based integrations for agents or services, explore the MCP server.

cURL: one complete request you can paste

The following request decodes the control VIN (1HGCM82633A004352), a 2003 Honda Accord. It’s a gasoline vehicle; electrification fields are null in this example.

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"}'

Official JSON response

Every response is returned in an envelope with status, source, and data. On errors, status is error and the payload includes error.code and error.message.

{
    "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."
    }
}

Key fields you will use most often:

  • status, source: Use for envelope checks and source traceability. Success indicates a valid, decoded payload in data.
  • data.vin, data.valid: Echo of the VIN you sent and whether it is structurally valid.
  • data.manufacturer: The manufacturer name derived from NHTSA vPIC. This post centers on this field for downstream logic and display.
  • data.year, data.make, data.model, data.trim: The core identity of the vehicle your app can display or use to match US safety datasets (make + model + year).
  • data.engine and data.transmission: Nested specs for dealer merchandising, fleet matching, or insurance underwriting.
  • data.plant: Country, state, and city of assembly if available.
  • Nullables: electrification_level, ev_drive_unit, battery_kwh, charger_level, charger_power_kw, drive can be null when NHTSA does not publish them or when not applicable.

Python (requests): server-side integration with timeout and error handling

This example decodes a VIN, extracts the manufacturer and core attributes, and handles error.code and error.message gracefully. Keep this server-only to protect your API key.

import requests

API_URL = "https://vehicles-api.com/api/v1/vin/decode"
API_KEY = "YOUR_API_KEY"

def decode_vin(vin: str, timeout_seconds: float = 6.0) -> dict:
headers = {
"X-API-Key": API_KEY,
"Content-Type": "application/json",
}
payload = {"vin": vin}

try:
resp = requests.post(API_URL, json=payload, headers=headers, timeout=timeout_seconds)
except requests.exceptions.Timeout:
raise RuntimeError("vehicles-api timeout")
except requests.exceptions.RequestException as e:
raise RuntimeError(f"vehicles-api transport error: {e}")

# 2xx/4xx both return JSON envelopes; check status field
try:
body = resp.json()
except ValueError:
raise RuntimeError("vehicles-api returned non-JSON response")

status = body.get("status")
if status != "success":
err = body.get("error", {}) or {}
code = err.get("code", "unknown_error")
message = err.get("message", "Unknown error")
raise RuntimeError(f"vehicles-api error: {code} - {message}")

data = body.get("data", {}) or {}

# Extract fields your app likely needs
return {
"vin": data.get("vin"),
"valid": data.get("valid"),
"manufacturer": data.get("manufacturer"),
"year": data.get("year"),
"make": data.get("make"),
"model": data.get("model"),
"trim": data.get("trim"),
"engine": data.get("engine") or {},
"transmission": data.get("transmission") or {},
"plant": data.get("plant") or {},
# Keep nullables intact so callers can branch on None
"electrification_level": data.get("electrification_level"),
"drive": data.get("drive"),
}

if __name__ == "__main__":
vin = "1HGCM82633A004352"
decoded = decode_vin(vin)
print("Manufacturer:", decoded["manufacturer"])
print(f"{decoded['year']} {decoded['make']} {decoded['model']} {decoded['trim']}")
print("Engine:", decoded["engine"])
print("Transmission:", decoded["transmission"])

Notes:

  • Use a short timeout to avoid hanging your request pipeline. The example uses 6 seconds.
  • Always check body.status before reading data; on errors, inspect error.code and error.message.
  • Preserve null values (e.g., electrification_level) so UI or rules can display or branch accurately.
  • Cache decoded VINs server-side. VIN decoding is deterministic and stable; persist the envelope or the data object keyed by VIN and refresh on a schedule that fits your product requirements.

PHP (cURL): server-side integration with timeout and error handling

This PHP sample posts a VIN, reads the same envelope, and surfaces error.code and error.message when status is error.

<?php
$apiUrl = "https://vehicles-api.com/api/v1/vin/decode";
$apiKey = "YOUR_API_KEY";

$payload = json_encode(["vin" => "1HGCM82633A004352"]);

$ch = curl_init($apiUrl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"X-API-Key: $apiKey",
"Content-Type: application/json"
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
// Reasonable timeouts
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);

$response = curl_exec($ch);

if ($response === false) {
$err = curl_error($ch);
curl_close($ch);
throw new RuntimeException("vehicles-api transport error: $err");
}
$httpStatus = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

$body = json_decode($response, true);
if (json_last_error() !== JSON_ERROR_NONE) {
throw new RuntimeException("vehicles-api returned non-JSON response (HTTP $httpStatus)");
}

if (!isset($body["status"]) || $body["status"] !== "success") {
$code = $body["error"]["code"] ?? "unknown_error";
$message = $body["error"]["message"] ?? "Unknown error";
throw new RuntimeException("vehicles-api error: $code - $message");
}

$data = $body["data"] ?? [];
$manufacturer = $data["manufacturer"] ?? null;
$year = $data["year"] ?? null;
$make = $data["make"] ?? null;
$model = $data["model"] ?? null;
$trim = $data["trim"] ?? null;

printf("Manufacturer: %s\n", $manufacturer);
printf("%s %s %s %s\n", $year, $make, $model, $trim);

Implementation tips:

  • Keep the key in server-side code only. Do not embed in JavaScript running in browsers.
  • Return nulls as-is to upstream callers. For example, EV fields can be null for gasoline vehicles.
  • To reduce latency and costs, add a persistent cache keyed by VIN. Invalidate or refresh based on your business rules.

Understanding the response envelope, errors, and nulls

Envelope shape:

  • On success: {"status":"success","source":"...","data":{...}}
  • On error: {"status":"error","error":{"code":"...","message":"..."}}

Null handling and availability:

  • Because the VIN decoder is backed by NHTSA vPIC, fields not published by NHTSA will be null.
  • EV-related fields such as electrification_level and battery_kwh are null for non-EVs and can be null when not available even for EVs.
  • drive can be null when not provided by the source.

Coverage reminders:

  • VIN decoding works worldwide with best depth for US-market vehicles.
  • US safety datasets (recalls, complaints, NCAP) are matched by make + model + year, not by VIN.
  • Dutch plates from RDW do not include a VIN, so you cannot crosswalk a plate to VIN via this dataset.

Rate limits, quotas, and production readiness

Plans include a 7-day free trial, with Starter beginning at $19/month. Rate limits and monthly quotas can vary by plan and are subject to change; review the latest limits in the Documentation. Design your integration to:

  • Cache decoded VINs to minimize repeated requests.
  • Implement a request timeout and surface explicit error.code and error.message for reliability.
  • Consider backoff or job queueing for bursty workloads that may hit rate limits.

Working with the manufacturer field

The primary field of interest in this guide is data.manufacturer. Common patterns include:

  • Display manufacturer in dealer inventory and consumer listings alongside make and model.
  • Use manufacturer to apply business rules, e.g., warranty mapping, OEM-specific content, or routing to brand-specific processes.
  • Normalize capitalization for UI, but keep the original value for audit or traceability.

When manufacturer is null or unexpected for a market/region, fall back to make and model for downstream logic and record the source field for debugging. Because responses include source, you can tag records with nhtsa for later data provenance checks.

Best practices for production

  • Caching: Store the full data object keyed by VIN. Decode once per VIN and reuse across services. Refresh the cache when you detect schema updates or at an interval that fits your needs.
  • Null-safe parsing: Treat nullable fields as first-class citizens. Do not coerce nulls into default text in APIs that your clients might cache.
  • Timeouts and retries: Use short timeouts and retry idempotent operations where appropriate. Avoid unbounded retries.
  • Logging: Log status, source, and any error.code/error.message to speed up troubleshooting.
  • Security: Keep X-API-Key or Bearer tokens only on servers. Rotate keys periodically.

Using the MCP server for agent workflows

If you are building AI agents or tools that need to call the VIN decoder within an agent framework, you can connect via the MCP server at MCP. It exposes the same VIN decoding capability and is useful when you prefer a tools protocol rather than direct HTTP integration.

FAQ

Does VIN decoding include vehicle history such as accidents or ownership?
No. This is not a vehicle history report. It decodes VIN structure and returns specifications such as manufacturer, year, make, model, trim, engine, transmission, and assembly plant.

Are recalls, complaints, and NCAP ratings tied to the VIN?
No. Those US datasets are matched by make + model + year (MMY), not by VIN.

Do Dutch plates include VINs?
No. Dutch plate data comes from RDW open data and never includes a VIN.

What happens if a field is not available?
Fields not published by NHTSA vPIC will be null. Your integration should handle nulls without failing, especially for electrification and drive fields.

How should I authenticate?
Send your key using the X-API-Key header. Authorization: Bearer YOUR_API_KEY is also supported. Keep keys server-side only.

Ready to ship your VIN Manufacturer integration with a 7-day free trial? Starter is $19/month. Create your account at Register. For more details on fields, coverage, and limits, review the Documentation.