Helenis API
Start for free

Everyday lifeVIN Decoder

VIN Decoder API: Specs, Recalls and Crash Ratings from 17 Characters

VIN decoder API guide: decode a VIN into make, model, engine and safety equipment, check its digit offline, and pull NHTSA recalls, complaints and ratings.

VIN Decoder API cover: a car sticker, an arrow and a JSON response decoding 1HGCM82633A004352 as a 2003 Honda Accord EX-V6 with 6 cylinders and a valid check digit.
17 characters in: a 2003 Honda Accord EX-V6 with a 3.0-litre V6 and 24 recalls.

Every car marketplace, insurer, fleet tool and parts shop ends up asking users for the same thing: the Vehicle Identification Number. Typing make, model, year, trim and engine by hand produces listings with the wrong engine and quotes for the wrong car. Seventeen characters, read from the windshield or the registration document, identify the vehicle far more precisely.

A VIN decoder API turns those characters into structured data. This article first explains what a VIN actually encodes, including the check digit that catches typos before any lookup, then uses the VIN Decoder API to decode vehicles, validate VINs offline, process a fleet in bulk, and pull NHTSA safety recalls, owner complaints and 5-star crash ratings. All of it comes from official U.S. government data.

What the 17 characters of a VIN encode

The VIN format is defined internationally by ISO 3779 and, for vehicles sold in the United States, by NHTSA's rule 49 CFR Part 565, which is stricter. It always has 17 characters, and never the letters I, O or Q, which are too easy to confuse with 1 and 0.

Positions Name Meaning In 1HGCM82633A004352
1-3 WMI (world manufacturer identifier) Region, country and manufacturer 1HG: Honda, United States
4-8 VDS (vehicle descriptor section; ISO 3779 counts position 9 in it) Model, body, engine, restraints, as the manufacturer codes them CM826
9 Check digit Checksum of the other 16 (mandatory in North America) 3
10 Model year A letter or digit that repeats every 30 years 3: 2003
11 Plant The assembly plant A
12-17 Serial number The vehicle's sequence number 004352

The first character gives the region: 1, 4 and 5 for the United States, 2 for Canada, 3 for Mexico, J for Japan, K for South Korea, L for China, S for the United Kingdom, W for Germany, Z for Italy.

The model year and the 30-year cycle

Position 10 uses a fixed sequence: A = 1980 up to Y = 2000 (skipping I, O, Q, U and Z), then 1 to 9 for 2001 to 2009, then A again for 2010. So K means 1989 or 2019. In North America, position 7 settles it for passenger cars, multipurpose vehicles and light trucks: a digit there means the 1980-2009 cycle, a letter the 2010-2039 cycle. In 5YJ3E1EA2KF317000, position 7 is E, so K is 2019.

Outside North America, manufacturers are not required to encode the model year at all, which is why European VINs often decode to a plausible but wrong year.

The check digit

Position 9 is a checksum. Each character is converted to a number (digits keep their value; letters follow a fixed table, A=1 to H=8, J=1 to N=5, P=7, R=9, S=2 to Z=9), multiplied by a positional weight, summed, and taken modulo 11. A remainder of 10 is written X:

Python
VALUES = {
    **{str(d): d for d in range(10)},
    **dict(zip("ABCDEFGH", range(1, 9))),
    **dict(zip("JKLMN", range(1, 6))),
    "P": 7,
    "R": 9,
    **dict(zip("STUVWXYZ", range(2, 10))),
}
WEIGHTS = [8, 7, 6, 5, 4, 3, 2, 10, 0, 9, 8, 7, 6, 5, 4, 3, 2]


def check_digit(vin: str) -> str:
    total = sum(VALUES[c] * w for c, w in zip(vin.upper(), WEIGHTS))
    remainder = total % 11
    return "X" if remainder == 10 else str(remainder)


vin = "1HGCM82633A004352"
print(check_digit(vin), vin[8])  # 3 3: the VIN is consistent

Running this in a form catches most single-character typos before any API call. It only applies to North American (and Chinese) VINs; most European manufacturers do not use it, and Volkswagen, for example, fills unused positions with Z (WVWZZZ...).

Decode a VIN with Python

GET /v1/vin/decode takes the VIN; lower case, spaces and dashes are accepted. The examples use Python and requests; the API reference documents every field.

Python
import requests

HOST = "vin-decoder-specs-recalls-safety-ratings.p.rapidapi.com"
API = f"https://{HOST}"
HEADERS = {"x-rapidapi-key": "YOUR_API_KEY", "x-rapidapi-host": HOST}

response = requests.get(
    f"{API}/v1/vin/decode",
    headers=HEADERS,
    params={"vin": "1HGCM82633A004352"},
    timeout=30,
)
response.raise_for_status()
car = response.json()
print(car["model_year"], car["make"], car["model"], car.get("trim"))

The real response:

JSON
{
  "vin": "1HGCM82633A004352",
  "valid": true,
  "reason": "Well-formed VIN, check digit correct.",
  "check_digit_valid": true,
  "wmi": "1HG",
  "region": "North America",
  "country": "United States",
  "model_year": 2003,
  "model_year_candidates": [2003],
  "serial_number": "004352",
  "found": true,
  "manufacturer": "AMERICAN HONDA MOTOR CO., INC.",
  "make": "HONDA",
  "model": "Accord",
  "trim": "EX-V6",
  "vehicle_type": "PASSENGER CAR",
  "body_class": "Coupe",
  "doors": 2,
  "engine": {
    "cylinders": 6,
    "displacement_l": 3.0,
    "power_hp": 240.0,
    "configuration": "V-Shaped",
    "model": "J30A4",
    "fuel": "Gasoline"
  },
  "transmission": { "style": "Automatic", "speeds": 5 },
  "gvwr_class": "Class 1C: 4,001 - 5,000 lb (1,814 - 2,268 kg)",
  "plant": { "city": "MARYSVILLE", "state": "OHIO", "country": "UNITED STATES (USA)" },
  "airbags": {
    "front": "1st Row (Driver and Passenger)",
    "side": "1st Row (Driver and Passenger)",
    "curtain": "1st and 2nd Rows"
  },
  "equipment": {},
  "notes": []
}

The first block (valid to serial_number) is computed offline from the 17 characters; the rest comes from NHTSA's vPIC database. found: true means NHTSA knows the vehicle. The plant code A in position 11 resolves to Marysville, Ohio.

Catch typos offline with VIN validation

GET /v1/vin/validate runs only the offline part: format, check digit, manufacturer region and country, model year and serial. Here is the same Honda VIN with its last digit mistyped, a real call:

JSON
{
  "vin": "1HGCM82633A004353",
  "valid": true,
  "reason": "Well-formed VIN, but the check digit (9th character) is wrong: likely a typo, North American VINs always carry it.",
  "check_digit_valid": false,
  "wmi": "1HG",
  "region": "North America",
  "country": "United States",
  "model_year": 2003,
  "model_year_candidates": [2003],
  "serial_number": "004353"
}

The VIN is well-formed, so valid stays true, but check_digit_valid: false with a North American WMI means a typo: ask the user to check the character again. A malformed VIN (16 characters, an O) is an answer here, valid: false with the reason, not an error. The decode endpoints refuse it with 400 invalid_vin, unbilled.

Bulk VIN decoding for fleets and listings

POST /v1/vin/decode/bulk decodes up to 50 VINs in one call, in order, and bills 1 credit per VIN decoded. A real call with four inputs: the Honda, a 2019 Tesla Model 3, a European Volkswagen and a VIN with the letter O in it.

Python
vins = [
    "1HGCM82633A004352",
    "5YJ3E1EA2KF317000",
    "WVWZZZ1KZAW000001",
    "1HGCM82633A0O4352",
]
response = requests.post(
    f"{API}/v1/vin/decode/bulk", headers=HEADERS, json={"vins": vins}, timeout=60
)
response.raise_for_status()
batch = response.json()
print(batch["summary"])

The response, trimmed to the Tesla's main fields, the Volkswagen and the rejected VIN (the Honda entry is identical to the decode above):

JSON
{
  "results": [
    {
      "input": "5YJ3E1EA2KF317000",
      "vehicle": {
        "model_year": 2019,
        "model_year_candidates": [1989, 2019],
        "make": "TESLA",
        "model": "Model 3",
        "body_class": "Sedan/Saloon",
        "engine": { "fuel": "Electric", "electrification": "BEV (Battery Electric Vehicle)" },
        "transmission": { "style": "Automatic", "speeds": 1 },
        "plant": { "city": "FREMONT", "state": "CALIFORNIA", "country": "UNITED STATES (USA)" },
        "equipment": {
          "abs": "Standard",
          "esc": "Standard",
          "adaptive_cruise_control": "Optional",
          "automatic_emergency_braking": "Standard",
          "blind_spot_warning": "Standard",
          "lane_keeping_assist": "Standard",
          "backup_camera": "Standard"
        }
      }
    },
    {
      "input": "WVWZZZ1KZAW000001",
      "vehicle": {
        "valid": true,
        "reason": "Well-formed VIN. The check digit does not match, which is normal for many non-North American vehicles.",
        "check_digit_valid": false,
        "region": "Europe",
        "country": "Germany",
        "model_year": 2010,
        "found": true,
        "manufacturer": "VOLKSWAGEN AG",
        "make": "VOLKSWAGEN",
        "plant": { "city": "WOLFSBURG", "country": "GERMANY" },
        "notes": [
          "Check Digit (9th position) does not calculate properly",
          "Outside North America, makers need not encode the model year in the VIN: treat model_year as a hint."
        ]
      }
    },
    { "input": "1HGCM82633A0O4352", "error": "invalid_vin" }
  ],
  "summary": { "decoded": 3, "invalid": 1, "failed": 0 }
}

The call used 3 credits: the invalid VIN was not billed. Three behaviours are worth noting. The Tesla's year has two candidates, 1989 and 2019, and position 7 picked 2019. The recent car lists its driver-assistance equipment, each item Standard or Optional, which is what an insurer or a listing page needs. The Volkswagen shows the European case: manufacturer, make, plant and a year hint, with notes saying what is missing, but no model or engine.

Recalls, owner complaints and crash-test ratings

Decoding says what the car is. Three more endpoints, 1 credit each, say how that model behaves. They work on the make, model and model year, so they need a VIN NHTSA can identify; otherwise they return 404 vehicle_not_found, unbilled.

Safety recalls

GET /v1/vin/recalls returns NHTSA's recall campaigns for the model, newest first. The real response for the 2003 Accord has 24 recalls; here is one, in full:

JSON
{
  "vehicle": { "vin": "1HGCM82633A004352", "make": "HONDA", "model": "Accord", "model_year": 2003 },
  "count": 24,
  "recalls": [
    {
      "campaign": "19V499000",
      "date": "2019-06-27",
      "manufacturer": "Honda (American Honda Motor Co.)",
      "component": "AIR BAGS:FRONTAL:DRIVER SIDE:INFLATOR MODULE",
      "summary": "Honda (American Honda Motor Co.) is recalling certain 2003 Acura 3.2CL, 2002-2003 3.2TL, 2003-2006 MDX, 2001-2007 Honda Accord, 2001-2005 Civic, 2003-2005 Civic Hybrid, 2001-2005 Civic GX NGV, 2002-2006 CR-V, 2003-2011 Element, 2002-2004 Odyssey, 2003-2008 Pilot and 2006 Ridgeline vehicles.  \r\n\r\nThese vehicles are equipped with driver frontal air bag inflators assembled as a recall remedy part or replacement service part, that may explode due to propellant degradation occurring after long-term exposure to high absolute humidity, temperature and temperature cycling.",
      "consequence": "An inflator explosion may result in sharp metal fragments striking the driver or other occupants resulting in serious injury or death.",
      "remedy": "Honda will notify owners, and dealers will replace the driver frontal air bag inflator, free of charge.  The recall began August 12, 2019.  Owners may contact Honda customer service at 1-888-234-2138.  Honda's numbers for this recall are Q5A and Y58.",
      "park_it": false,
      "park_outside": false,
      "over_the_air": false
    }
  ],
  "note": "Recalls cover every vehicle of this make, model and year; ask the manufacturer whether this one was already repaired."
}

The flags are the fields to surface first in a product: park_it means NHTSA advises not to drive the vehicle, park_outside signals a fire risk, over_the_air a software fix.

Read the campaign number too. NHTSA campaign ids start with the year and a letter: V for a vehicle, E for equipment, T for tires, C for child seats. Of the Accord's 24 recalls, 11 are E campaigns about aftermarket parts sold for it (replacement headlights, an accelerator pedal assembly), which apply only if those parts were fitted. A listing page usually wants the vehicle campaigns first:

Python
recalls = requests.get(
    f"{API}/v1/vin/recalls", headers=HEADERS, params={"vin": vin}, timeout=30
).json()["recalls"]
vehicle_recalls = [r for r in recalls if r["campaign"][2] == "V"]
urgent = [r for r in recalls if r["park_it"] or r["park_outside"]]

Owner complaints

GET /v1/vin/complaints summarises the complaints owners filed with NHTSA for the model: totals, the components cited most, and the latest accounts. Real response for the 2019 Model 3, shortened:

JSON
{
  "vehicle": { "vin": "5YJ3E1EA2KF317000", "make": "TESLA", "model": "Model 3", "model_year": 2019 },
  "count": 627,
  "crashes": 62,
  "fires": 5,
  "injuries": 32,
  "deaths": 4,
  "top_components": [
    { "component": "FORWARD COLLISION AVOIDANCE", "count": 171 },
    { "component": "ELECTRICAL SYSTEM", "count": 94 },
    { "component": "AIR BAGS", "count": 90 }
  ],
  "note": "Complaints cover every vehicle of this make, model and year, as reported by owners to NHTSA; they are not verified defects."
}

Complaints are unverified reports, so they say where to look, not what is broken. For a used-car inspection, the top components are a checklist.

NCAP crash-test ratings

GET /v1/vin/safety-ratings returns NHTSA's 5-Star Safety Ratings for each tested variant of the model year. Real response for the same Tesla, shortened:

JSON
{
  "vehicle": { "vin": "5YJ3E1EA2KF317000", "make": "TESLA", "model": "Model 3", "model_year": 2019 },
  "count": 2,
  "ratings": [
    {
      "description": "2019 Tesla Model 3 4 DR RWD",
      "overall": "5",
      "frontal_crash": "5",
      "side_crash": "5",
      "rollover": "5",
      "rollover_risk_percent": 6.6,
      "side_pole": "5",
      "complaints": 627,
      "recalls": 22,
      "investigations": 14
    }
  ]
}

An empty ratings list means NHTSA did not crash-test that model, which is common for low-volume vehicles.

A VIN pipeline for production

  • Validate in the form. Run the check digit in the browser or the app for North American VINs; a typo caught there costs nothing.
  • Cache decodes for good, refresh recalls. A VIN's specifications never change, so store the decode once. Recalls and complaints grow over time; refresh them on a schedule (the API itself caches NHTSA answers for 6 hours at most).
  • Use bulk for fleets. 50 VINs per call; a 2,000-vehicle fleet is 40 calls.
  • Retry 503, not 404. 503 source_unavailable means NHTSA was slow or down, unbilled, worth a retry with backoff. 404 vehicle_not_found is deterministic for that VIN.
  • Show notes to users. They explain why a European VIN has no model, or why some positions look wrong, better than an empty field does.

From a photo of the windshield or door sticker, the VIN Recognition API reads the VIN and decodes it in one call. And for the same "official data, checked by code" approach applied to customs codes, see the HS code classification walkthrough.

Bulk decoding without code on Apify

The same engine runs as an Apify Actor, VIN Decoder - Bulk Specs, Recalls & Safety Equipment. Paste VINs, one per line, keep recalls and owner complaints switched on, and get one row per vehicle with make, model, year, engine, equipment, recall count and complaint totals, ready for CSV or Excel. It costs $0.0005 per VIN decoded, recalls and complaints included; malformed VINs are free, and the Apify free plan covers 10 VINs per run.

What it costs

1 credit per call, and per VIN decoded in bulk. Failed calls (4xx, 5xx) use no credits.

Plan Price per month Credits In practice
BASIC Free 10 per day 10 lookups a day to test
PRO $3.99 20,000 about $0.0002 per VIN
ULTRA $9.99 150,000 about $0.00007 per VIN
MEGA $29.99 1,000,000 about $0.00003 per VIN

Beyond the monthly quota, paid plans continue at $0.002 per credit. For comparison, the most-subscribed vehicle data API on the RapidAPI Hub in our market survey charges $9.99 for 5,000 calls, $0.002 per lookup.

What the VIN decoder API does not do

  • No vehicle history. Accidents, title brands (salvage, flood), odometer readings and previous owners come from commercial history databases, not from NHTSA.
  • No per-vehicle recall status. Recalls cover the make, model and year. Whether this particular car was repaired is known by the manufacturer and its dealers.
  • Limited European detail. For vehicles not sold in North America, NHTSA usually knows the manufacturer, make, plant and a year hint, not the model or engine. The offline validation works for every VIN.
  • No owner data. A VIN identifies a vehicle, and the API returns nothing about who owns it.
  • No valuation. It does not estimate a market price.
  • No licence plate lookup. Input is the VIN only.

For buyers who want a verdict rather than data, the Used Car Check API turns the same NHTSA facts into a pre-purchase report with known weak points and an inspection checklist.

Frequently asked questions

How do I decode a VIN for free?

NHTSA's vPIC service decodes VINs for free and is the source this API uses. The API adds the offline checks, recalls, complaints and crash ratings in one consistent JSON schema, bulk calls, and a free BASIC plan of 10 calls a day.

Does a VIN decoder work for European cars?

Partly. The structure, manufacturer country and a model year hint can be read from any VIN. Full specifications exist for vehicles sold in North America, including European and Asian brands sold there; for European-market VINs, NHTSA usually returns only the manufacturer, make and plant.

How do I check if a car has open recalls?

Call GET /v1/vin/recalls?vin=... to list the recalls for its make, model and year, then ask the manufacturer or a dealer whether that vehicle was repaired. Check park_it and park_outside first: they mark the urgent campaigns.

What is the check digit in a VIN?

The 9th character, a checksum of the other 16 computed with fixed letter values and weights, modulo 11 (X for 10). It is mandatory in North America and catches most typos. Many European VINs do not use it, so a mismatch there is normal.

Can a VIN tell me who owns a car?

No. A VIN describes the vehicle: manufacturer, model, year, plant and serial number. Owner records are held by registration authorities and are not part of this data.

Get started

VIN Decoder API

Decode any VIN: make, model, year, engine, equipment, plus recalls, complaints and crash stars.

  • VIN Decoder
  • Automotive
  • Vehicle Safety
  • Python
  • Open Data