# VIN Decoder API: Specs, Recalls & Safety Ratings (NHTSA) (`lathewright/vin-decoder-nhtsa`) Actor

Returns vehicle specs decoded from VINs by NHTSA's official vPIC database: make, model, year, trim, body, engine, fuel, transmission, plant and 100+ fields. Optionally adds open recalls, 5-star safety ratings and complaint summary. Up to 50 VINs per request, no key.

- **URL**: https://apify.com/lathewright/vin-decoder-nhtsa.md
- **Developed by:** [lathewright LLC](https://apify.com/lathewright) (community)
- **Categories:** E-commerce, Business, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 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 API: Specs, Recalls & Safety Ratings (NHTSA)

Decode vehicle identification numbers in bulk with NHTSA's official vPIC database and optionally attach recalls, safety ratings and complaint counts, for dealers, insurers, fleet managers, marketplaces and AI agents. It costs $0.002 per VIN, plus $0.002 each for recalls, ratings or complaints when they exist, so 1,000 VINs cost $2.

Decode vehicle identification numbers in bulk with NHTSA's official **vPIC** database, the same source dealers, insurers and DMVs use: make, model, year, trim, series, body class, vehicle type, doors, GVWR, engine (cylinders, displacement, horsepower, fuel, electrification, battery), transmission, drivetrain, assembly plant and 100+ safety and equipment fields, with a validity check and suggested corrections for mistyped VINs. Optionally attach the vehicle's NHTSA **recalls**, **5-star safety ratings** and an **owner-complaint summary**. Fifty VINs per request, no key, no scraping.

Built and maintained by **Lathewright**. Lathewright is operated by AI systems under human ownership. A person reviews and approves everything we publish, send and sell. Pay only for what you get: **$0.002 per VIN**, plus $0.002 each for recalls, ratings or complaints when they exist.

### What you can do with it

- **Fleet, dealer and insurance workflows**: normalize inventory and policy data from VINs, flag invalid VINs before they reach a contract.
- **Recall checks**: list open NHTSA campaigns for every vehicle in a fleet or a used-car listing feed.
- **Marketplace enrichment**: year, make, model, trim, body and engine for listings that only have a VIN; safety ratings for comparison pages.
- **Agent tool**: "what is this VIN and does it have recalls?" is one call.

### Example tasks

Paste any of these into the Input tab, or send the same JSON through the API. Prices are the per-result prices listed under Pricing.

#### 1. Decode one VIN, specs only

```json
{
  "vins": ["1HGCM82633A004352"],
  "includeRecalls": false
}
```

What comes back: One row with `make`, `model`, `modelYear`, `trim`, `bodyClass`, `engine`, `transmission`, `plant` and `vinValid`. $0.002.

#### 2. Full report for two VINs, one partial

```json
{
  "vins": ["1HGCM82633A004352", "5UXWX7C5*BA"],
  "includeRecalls": true,
  "includeSafetyRatings": true,
  "includeComplaints": true
}
```

What comes back: The spec fields plus `recalls`, `recallCount`, `safetyRatings` and `complaints` where NHTSA has data. Each add-on is $0.002 and only charged when it exists.

#### 3. Check a VIN for recalls

```json
{
  "vins": ["JH4KA7561PC008269"],
  "includeRecalls": true
}
```

What comes back: The decoded vehicle with NHTSA recall campaigns for its year, make and model.

### Input

| Field | Type | Notes |
|---|---|---|
| `vins` | array | 17-character VINs; partial VINs with `*` are decoded as far as possible |
| `includeRecalls` | boolean | NHTSA recalls for the decoded year/make/model (default true) |
| `includeSafetyRatings` | boolean | 5-star ratings for the closest tested variant |
| `includeComplaints` | boolean | Complaint counts, crashes, fires, injuries, deaths, top components |
| `maxVins` | integer | Cap per run |

```json
{ "vins": ["1HGCM82633A004352", "5UXWX7C5*BA", "JH4KA7561PC008269"], "includeRecalls": true, "includeSafetyRatings": true, "includeComplaints": true }
```

### Output

```json
{
  "type": "vehicle",
  "vin": "1HGCM82633A004352",
  "decoded": true,
  "vinValid": true,
  "errorCodes": ["0"],
  "errorText": "0 - VIN decoded clean. Check Digit (9th position) is correct",
  "make": "HONDA",
  "manufacturer": "AMERICAN HONDA MOTOR CO., INC.",
  "model": "Accord",
  "modelYear": 2003,
  "trim": "EX-V6",
  "bodyClass": "Coupe",
  "vehicleType": "PASSENGER CAR",
  "doors": 2,
  "gvwr": "Class 1C: 4,001 - 5,000 lb (1,814 - 2,268 kg)",
  "engine": { "cylinders": 6, "displacementL": 2.999, "horsepower": 240, "configuration": "V-Shaped", "model": "J30A4", "fuelTypePrimary": "Gasoline" },
  "transmission": { "style": null, "speeds": null },
  "plant": { "city": "MARYSVILLE", "state": "OHIO", "country": "UNITED STATES (USA)", "company": null },
  "safety": { "airbagsFront": "1st Row (Driver and Passenger)", "airbagsSide": "1st Row (Driver and Passenger)", "airbagsCurtain": "1st and 2nd Rows" },
  "raw": { "AirBagLocCurtain": "1st and 2nd Rows", "BodyClass": "Coupe", "DisplacementCC": "2998.832712" },
  "recallCount": 24,
  "recalls": [{ "campaignNumber": "19V182000", "component": "AIR BAGS:FRONTAL:DRIVER SIDE:INFLATOR MODULE", "summary": "Honda is recalling ...", "consequence": "...", "remedy": "...", "reportReceivedDate": "2019-06-03", "parkIt": false, "parkOutside": false }],
  "safetyRatings": { "vehicleDescription": "2003 Honda Accord 2-DR. w/SAB", "overall": null, "frontalCrash": 5, "sideCrash": 5, "rollover": 4, "rolloverPossibilityPct": 12.3, "complaintsCount": 2013, "recallsCount": 24, "otherVariants": ["2003 Honda Accord 4-DR. w/SAB", "2003 Honda Accord 4-DR.", "2003 Honda Accord 2-DR."] },
  "complaints": { "count": 2013, "crashes": 95, "fires": 12, "injuries": 110, "deaths": 2, "latestComplaintDate": "2026-06-27", "topComponents": [{ "component": "AIR BAGS", "count": 980 }] },
  "source": "NHTSA vPIC DecodeVINValuesBatch"
}
```

The `raw` object carries every non-empty vPIC field (140+ possible) so nothing is lost. VINs vPIC cannot decode become `type: "error"` rows with the vPIC error text and, when available, a `suggestedVin`.

### Pricing

| Event | Price | Notes |
|---|---|---|
| VIN decoded (`vin`) | $0.002 | Primary event. 1,000 VINs = $2 |
| Recalls attached (`vehicle-recalls`) | $0.002 | Only when at least one recall exists for the year/make/model |
| Safety ratings attached (`vehicle-safety-ratings`) | $0.002 | Only when NHTSA tested the vehicle |
| Complaint summary attached (`vehicle-complaints`) | $0.002 | Only when complaints exist |
| Failed decode (`lookup-error`) | $0.0005 | Not a decodable VIN |

Plus Apify's standard start fee ($0.00005 per run). No proxies, no browser. Set a **maximum cost per run** and the Actor stops cleanly at the limit.

### How to use it

- **Apify Console**: paste VINs, press Start, download JSON, CSV or Excel from the Output tab.
- **API**: `POST https://api.apify.com/v2/acts/lathewright~vin-decoder-nhtsa/run-sync-get-dataset-items?token=<token>` with the input JSON as the body.
- **n8n, Make, Zapier**: use the Apify node/module, pick this Actor, map your VIN column to `vins`.

### Use from an AI agent (MCP)

Add this Actor as a tool in Claude, Cursor, VS Code or any MCP client with `https://mcp.apify.com/?tools=lathewright/vin-decoder-nhtsa`. The Actor description is the tool description, and the input fields above are the tool parameters. Example prompts: "Decode 1HGCM82633A004352 and list its recalls", "Which of these 20 VINs are invalid?".

### Data sources, robots.txt and fair use

Checked on 19 October 2026 for the exact paths the Actor requests:

- **NHTSA vPIC** (`vpic.nhtsa.dot.gov/api/vehicles/DecodeVINValuesBatch/`, POST, up to 50 VINs per request): no robots.txt is served (404); vPIC is a public, keyless API published by NHTSA for exactly this use. The Actor sends one request per 50 VINs, spaced 300 ms apart.
- **NHTSA recalls, complaints and safety-ratings APIs** (`api.nhtsa.gov/recalls/recallsByVehicle`, `/complaints/complaintsByVehicle`, `/SafetyRatings/...`): no robots.txt is served (403 for the file); the APIs are public and keyless. Lookups are cached per year/make/model within a run, so a fleet of 500 identical vans costs one recall request.
- Decoding reveals nothing about the owner; VINs identify vehicles, not people. Complaint narratives are not stored, only counts and components.

### FAQ

**Why is the trim missing?** vPIC knows the trim only when the manufacturer encodes it in the VIN; many do not. `series` and `raw` may carry extra detail.

**Why no safety rating?** NHTSA tests a subset of models; when no variant was tested the field stays null and nothing is charged.

**Are recalls VIN-specific?** NHTSA's public recall lookup is by year, make and model; whether a specific VIN was remedied requires the manufacturer's VIN lookup. The Actor returns the campaigns that apply to the model.

# Actor input Schema

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

17-character VINs (partial VINs with `*` for unknown positions are decoded as far as possible). Duplicates are removed.

## `includeRecalls` (type: `boolean`):

Add NHTSA recall campaigns for the decoded year, make and model (billed as `vehicle-recalls` only when at least one recall exists).

## `includeSafetyRatings` (type: `boolean`):

Add overall, frontal, side and rollover ratings for the closest tested variant (billed as `vehicle-safety-ratings` only when a rating exists).

## `includeComplaints` (type: `boolean`):

Count of NHTSA complaints for the year/make/model with crashes, fires, injuries, deaths and the most-reported components (billed as `vehicle-complaints` only when complaints exist).

## `maxVins` (type: `integer`):

Cap per run.

## `compactOutput` (type: `boolean`):

Return only the key fields (smaller, cheaper for AI agents to read).

## Actor input object example

```json
{
  "vins": [
    "1HGCM82633A004352",
    "5UXWX7C5*BA",
    "JH4KA7561PC008269"
  ],
  "includeRecalls": true,
  "includeSafetyRatings": false,
  "includeComplaints": false,
  "maxVins": 1000,
  "compactOutput": false
}
```

# Actor output Schema

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

One JSON object per VIN (decoded vehicle or error).

# 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",
        "5UXWX7C5*BA",
        "JH4KA7561PC008269"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("lathewright/vin-decoder-nhtsa").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",
        "5UXWX7C5*BA",
        "JH4KA7561PC008269",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("lathewright/vin-decoder-nhtsa").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",
    "5UXWX7C5*BA",
    "JH4KA7561PC008269"
  ]
}' |
apify call lathewright/vin-decoder-nhtsa --silent --output-dataset

```

## MCP server setup

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

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/NBhLeEFHIT6d0qqNH/builds/etTgkuWOjcypN7xfE/openapi.json
