VIN Year Make Model API Documentation

By Vehicle API
VIN Year Make Model API Documentation

You have a VIN and you need to reliably extract its Year, Make, and Model to power listings, quotes, or fleet dashboards. By the end of this guide, you’ll be able to call a single Vehicle API endpoint to decode a VIN and read the year, make, and model (plus related specs) with a consistent JSON envelope you can cache and ship to production.

What you get from the VIN decode endpoint

The Vehicle API VIN decoder returns a normalized JSON document for any 17-character VIN. You’ll use it to retrieve:

Illustration: VIN Year Make Model API Documentation
  • year, make, model: the core identity you need for pricing, search, and fitment.
  • trim, body, doors, engine and transmission details to refine inventory or underwriting.
  • manufacturing plant and manufacturer attribution for compliance views.

Decoding coverage is worldwide for 17-character VINs. Data is sourced from NHTSA vPIC and returns null for fields NHTSA does not publish. Coverage is fullest for US-market vehicles. US safety data (recalls, owner complaints, NCAP crash ratings) is also available in Vehicle API and is matched by year + make + model, but those datasets are US-market only. Dutch plate data is from RDW open data and never includes a VIN.

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

Authentication and request format

Authenticate with your API key using either of the following headers:

  • X-API-Key: YOUR_API_KEY
  • Authorization: Bearer YOUR_API_KEY

You can create and rotate keys in your dashboard at vehicles-api.com. Every plan (Starter begins at $19/mo) includes a 7-day free trial. To start, register here: Register.

Content-Type must be application/json. The VIN decoder is a POST endpoint and accepts a single JSON body parameter:

  • vin: a 17-character VIN string

Make your first request

Use this copy-pasteable cURL command to decode the control VIN 1HGCM82633A004352. It’s a 2003 Honda Accord and is provided for testing; do not use it as a user’s vehicle.

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

Python example

import requests

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

payload = {"vin": "1HGCM82633A004352"}
headers = {
"X-API-Key": API_KEY,
"Content-Type": "application/json",
# Alternatively: "Authorization": f"Bearer {API_KEY}"
}

resp = requests.post(API_URL, json=payload, headers=headers, timeout=10)
resp.raise_for_status()
envelope = resp.json()

if envelope.get("status") == "success":
src = envelope.get("source")
data = envelope.get("data", {})
year = data.get("year")
make = data.get("make")
model = data.get("model")
# Use the core fields in your UI or DB
print(f"{year} {make} {model} (source={src})")
else:
err = envelope.get("error", {})
code = err.get("code")
message = err.get("message")
raise RuntimeError(f"Vehicle API error {code}: {message}")

Official JSON response and field guide

This is the official sample response for the control VIN. The envelope and fields are representative of live responses. Electrification fields are null for this gasoline vehicle; null is expected when a field is not published by NHTSA or not applicable.

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

What you will actually read in most apps:

  • status: "success" or "error". Use this to short-circuit parsing.
  • source: "nhtsa" for VIN decoding. Helpful for attribution and audit logs.
  • data.year: integer model year.
  • data.make: OEM name in uppercase (e.g., HONDA).
  • data.model: model line (e.g., Accord).

Other high-utility fields you may store with a VIN:

  • data.trim: marketing or equipment trim line.
  • data.engine: nested object including cylinders, displacement_l (liters), hp, and fuel.
  • data.transmission: style and speeds.
  • data.body and data.doors: for body-style filters and photo templates.
  • data.plant and data.manufacturer: for compliance and QA workflows.
  • Electrification fields (electrification_level, ev_drive_unit, battery_kwh, charger_level, charger_power_kw) may be null if not applicable or not published.

Response envelope, errors, and nulls

Every response uses the same envelope:

  • On success: status = "success", source, and data populated.
  • On error: status = "error" and error.code + error.message populated.

Documented error codes:

  • 401 invalid_api_key: your key is missing, malformed, or not recognized.
  • 403 no_active_plan: your key exists but there is no active subscription or trial.
  • 422 invalid_input: the request body fails validation (e.g., VIN not 17 characters).

Null handling is intentional: if NHTSA does not publish a field for a given VIN, Vehicle API returns null. Do not coerce nulls to empty strings in your database if you need to distinguish “unknown” from “empty”.

Coverage notes and data sources

VIN decoding works for any 17-character VIN worldwide, with the fullest coverage on US-market vehicles thanks to NHTSA vPIC. For downstream safety datasets in Vehicle API:

  • Recalls, owner complaints, and NCAP crash ratings cover US-market vehicles only.
  • Those datasets are matched by make + model + year, not by VIN.
  • Dutch registration (RDW) datasets are available for NL plates, and never include a VIN.

This guide focuses on decoding to Year, Make, and Model. For additional capabilities, see the Documentation.

Rate limits, quotas, and caching

Rate limits and monthly quota are visible in your dashboard on vehicles-api.com. For resilient integrations:

  • Cache decoded VINs in your database keyed by VIN. VIN data is largely static; a 24-hour cache is a good baseline for most apps.
  • Batch warm your cache for inventory imports to minimize latency during peak traffic.
  • Implement a retry/backoff strategy only for transient transport errors. Do not retry 4xx errors (auth or validation issues).
  • Surface error.code and error.message directly in logs to speed up triage.

Production integration tips

  • Validation: Ensure the VIN is exactly 17 characters before calling the API. Reject whitespace and non-alphanumeric characters in your UI.
  • Normalization: Store make and model as received. If you need display case differences, transform them at render time rather than mutating stored values.
  • Units: engine.displacement_l is in liters; horsepower is hp. Keep units explicit in your schema.
  • Null semantics: Treat null as “unknown/not published”. If you depend on a field (e.g., transmission.style), gate downstream logic when it is null.
  • Attribution: Log the source field with your decode to support compliance and audits.
  • Security: Use server-side API calls. If you must call from a client, proxy through your backend to avoid exposing your key.

MCP server integration

If you are building AI agents or tools that operate via Model Context Protocol, Vehicle API is also available as an MCP server: MCP. The MCP server exposes the same underlying capability to decode a VIN and return Year, Make, and Model with the same field names. Use this when you want agents to ground completions in trustworthy vehicle data rather than pattern-matching.

Troubleshooting common issues

  • HTTP 401 invalid_api_key: Verify you are sending X-API-Key or Authorization: Bearer with a valid key. Keys are created and rotated in your dashboard.
  • HTTP 403 no_active_plan: Start a plan or free trial. The Starter plan includes a 7-day free trial.
  • HTTP 422 invalid_input: Check that the VIN is 17 characters and JSON is valid with Content-Type: application/json.
  • Empty or null fields: This reflects source data. Avoid assumptions; code safely for nulls.
  • Throttling: If you see rate-limit responses, space requests or enable caching to stay within your quota.

FAQ

Does VIN decoding work outside the US?
Yes. Vehicle API decodes any 17-character VIN worldwide. Coverage is fullest for US-market vehicles. Fields not published in source data are returned as null.

Do you provide recalls, complaints, or crash ratings by VIN?
Vehicle API provides US safety datasets matched by year + make + model, not by VIN. Those datasets cover US-market vehicles only.

Can I look up a Dutch license plate and get a VIN?
Dutch plate data is from RDW open data and never includes a VIN. Use VIN decoding and RDW plate data separately as needed.

What’s the response structure for errors?
On error, the envelope sets status to "error" and includes error.code and error.message. Common codes: 401 invalid_api_key, 403 no_active_plan, 422 invalid_input.

How should I cache VIN decodes?
Store the entire data object keyed by VIN. Because VIN attributes are static, a 24-hour cache is typical; tune to your read/write patterns and quota.

Ready to ship VIN-to-Year/Make/Model in your app? Start your 7-day free trial and get an API key here: Register. For deeper integration details, see the Documentation.