# VIN Decoder: make, model, year and specs from NHTSA (`examsens.ai/vin-decoder`) Actor

Decodes vehicle identification numbers in bulk with the official NHTSA vPIC database: make, model, model year, trim, body, engine, fuel, transmission, drive type and assembly plant, plus a check digit test and NHTSA's error codes. No key needed.

- **URL**: https://apify.com/examsens.ai/vin-decoder.md
- **Developed by:** [Ed Rayyis](https://apify.com/examsens.ai) (community)
- **Categories:** Developer tools, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.35 / 1,000 vin decodeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## VIN Decoder: make, model, year and specs from NHTSA

Paste in vehicle identification numbers and get each one back as a row of plain fields: make, model, model year, trim, body style, engine, fuel, transmission, drive type and where it was built. The data comes from vPIC, the vehicle database of the U.S. National Highway Traffic Safety Administration \[1], through its free public API. There's no key to set up.

Every VIN also gets a check digit test. vPIC reports on the check digit in the ninth position, and the actor works it out from the other 16 characters as well and gives you the digit it expected, which helps spot a mistyped VIN before it goes into a listing or a claim.

### What you get for each VIN

- `make`, `model`, `modelYear`, `trim`, `series`, `manufacturer`
- `vehicleType`, `bodyClass`, `doors`, `seats`, `seatRows`
- `engineCylinders`, `displacementL`, `engineHP`, `engineModel`, `fuelTypePrimary`, `fuelTypeSecondary`, `electrificationLevel`
- `transmissionStyle`, `transmissionSpeeds`, `driveType`, `gvwr`
- `plantCountry`, `plantState`, `plantCity`, `plantCompanyName`
- `checkDigitValid`, and `expectedCheckDigit` when it fails
- `errorCodes`, `errorText` and `decodedClean`: NHTSA's own codes, where 0 means the VIN decoded clean
- `suggestedVin` when vPIC proposes a correction
- `allFields`, when you turn it on: every non empty value vPIC returned, out of more than 150 named fields covering safety systems, airbags, wheelbase and battery data

In testing, a 2003 Honda Accord, a 2019 Tesla Model 3 and a 2013 Ford F-150 all decoded clean with make, model, year and body. The same Ford VIN with a wrong ninth character still decoded, with `checkDigitValid` false, error code 1 and the right digit in `expectedCheckDigit`. A partial VIN with a `*` in place of a character also decoded.

Fields NHTSA has no data for come back empty. NHTSA says an empty value means it holds no data on that variable, not that the vehicle lacks the feature, and every row repeats that note in `notice`.

### Input

- VINs (required), one per line. Add the model year after a comma when you know it, as in `1HGCM82633A004352,2003`; NHTSA recommends sending it \[1]. A `*` stands for an unknown character.
- Include every vPIC field, off by default.

A line that isn't 17 characters made of digits and letters other than I, O and Q is rejected before any request goes out.

### Output

One row per VIN. A VIN that fails the format check, or that vPIC can't match to any make, gets a row with `ok` false and the reason in `error`, and the run carries on with the rest. The `OUTPUT` record in the key value store gives VINs decoded, VINs failed and whether the run stopped at your spending limit.

### Speed and fair use

VINs go to vPIC 50 to a request, NHTSA's batch limit \[1], one request at a time with a one second pause between them. NHTSA runs an automated traffic rate control on the API \[1], and the actor makes up to three attempts at each request, waiting longer after each failure.

### Pricing

Pay per event: one event per VIN decoded. Rejected VINs and VINs vPIC can't decode aren't charged. Before each batch, and before each row, the run checks the maximum charge you set and stops when it's reached, so every decoded row in the dataset is a paid one.

### Support

Questions and problems: the Issues tab on this page.

### References

1. Vehicle API | vPIC | vpic.nhtsa.dot.gov. https://vpic.nhtsa.dot.gov/api/

# Actor input Schema

## `vins` (type: `array`):

17 character vehicle identification numbers, one per line. Add the model year after a comma when you know it (1HGCM82633A004352,2003); NHTSA recommends sending it. Use \* for an unknown character.

## `includeAllFields` (type: `boolean`):

Add allFields to each row: every non empty value vPIC returned for the VIN, such as airbag locations, safety systems, wheelbase and battery data, under vPIC's own field names.

## Actor input object example

```json
{
  "vins": [
    "1HGCM82633A004352",
    "5YJ3E1EA2KF317000",
    "1FTFW1ET9DFC10312"
  ],
  "includeAllFields": false
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "vins": [
        "1HGCM82633A004352",
        "5YJ3E1EA2KF317000",
        "1FTFW1ET9DFC10312"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("examsens.ai/vin-decoder").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "vins": [
        "1HGCM82633A004352",
        "5YJ3E1EA2KF317000",
        "1FTFW1ET9DFC10312",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("examsens.ai/vin-decoder").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "vins": [
    "1HGCM82633A004352",
    "5YJ3E1EA2KF317000",
    "1FTFW1ET9DFC10312"
  ]
}' |
apify call examsens.ai/vin-decoder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,examsens.ai/vin-decoder"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/7dclFIDobj8jF9Hp2/builds/3ateLIQHM0A6izmen/openapi.json
