# VIN Listing Audit: Dealer Inventory vs. NHTSA (`felixgoldwin/vin-listing-audit`) Actor

Check advertised vehicle make, model and year against NHTSA vPIC. Get field-level discrepancies and inconclusive checks for every inventory stock ID and supplier.

- **URL**: https://apify.com/felixgoldwin/vin-listing-audit.md
- **Developed by:** [Felix GoldWin](https://apify.com/felixgoldwin) (community)
- **Categories:** E-commerce
- **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 audit results

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

### Check a vehicle listing against its VIN

Pass a dealer inventory feed with advertised make, model and year. This Actor checks each listing against the US National Highway Traffic Safety Administration's vPIC decoder and returns the fields that need review. Stock IDs and supplier labels stay with each row, so you can send a correction back to the right feed. [NHTSA vPIC API](https://vpic.nhtsa.dot.gov/api/)

### Try a listing audit

Paste the following JSON into the Input tab, run the Actor, and open the Dataset tab. Both listings use a public example VIN. The first supplies the correct year. The second shows how a wrong advertised model year appears in the output.

```json
{
  "listings": [
    { "stockId": "001", "supplier": "Demo feed", "vin": "1HGCM82633A004352", "make": "Honda", "model": "Accord", "year": 2003 },
    { "stockId": "002", "supplier": "Demo feed", "vin": "1HGCM82633A004352", "make": "Honda", "model": "Accord", "year": 2004 }
  ],
  "maxItems": 2
}
```

The second row includes these fields.

```json
{
  "inputIndex": 2,
  "stockId": "002",
  "auditStatus": "mismatch",
  "mismatchedFields": ["year"],
  "advertised": { "make": "Honda", "model": "Accord", "year": 2004 },
  "decoded": { "make": "HONDA", "model": "Accord", "year": 2003 },
  "checks": { "make": "match", "model": "match", "year": "mismatch" }
}
```

### Prepare an inventory feed

Supply 1–100 listings per run. Each needs a VIN string. Include one or more of `make`, `model` and `year` to audit an advertised attribute. Supply a base model, such as `Accord`, and use a four-digit model year. `stockId` and `supplier` are optional strings. Only the VIN is sent to NHTSA. The Actor keeps the advertised year out of the decoder request so it can check the year independently.

`maxItems` limits the run to the first 1–100 input rows. Input order and duplicate inventory rows are preserved. The Actor reuses the same VIN lookup within a run. You can download the resulting dataset as JSON, CSV or Excel and join it to your inventory using the stock ID or input index.

### Interpret the checks

| Status | Meaning |
| --- | --- |
| `match` | Every supplied attribute agrees with a clean decode, and at least one attribute was supplied. |
| `mismatch` | At least one comparable supplied attribute differs. Inspect `mismatchedFields` and the original values. |
| `inconclusive` | A supplied value could not be compared, or the listing has no comparison fields. |
| `invalid_vin` | The supplied VIN failed the 17-character format check. The Actor skipped the lookup. |

Field-level checks also distinguish `unknown` from `not_provided`. Case, spaces, hyphens, punctuation and accents are normalized. The Actor recognizes VW, Chevy and Mercedes as make aliases. When either normalized model name starts with the other, an exact match passes and a longer version needs review. Any nonzero vPIC error code makes the checks inconclusive, even when vPIC returns a suggested identity. A flagged mismatch is a review signal and can reflect market-specific model names.

### Runs and pricing

**$2.00 per 1,000 saved VIN audit results**, billed individually at $0.002 per saved inventory row. Each run also costs **$0.001 to start** at the default 256 MB, including a run that saves zero rows. Invalid and inconclusive listings that appear in the dataset count as results. A lookup that fails before a row is saved has no result charge.

Two saved rows cost $0.005 including the start. With the 100-row input limit, ten full runs saving 1,000 rows cost **$2.01** including all ten starts. Set **Maximum cost per run** to limit spending. The smallest selectable cap is $0.003, enough for the start and one row. Only the events that occur are billed. [Current pricing](https://apify.com/felixgoldwin/vin-listing-audit/pricing)

Use the Apify API to submit each new feed or save a recurring input as an Apify Task. If NHTSA is unavailable or returns an invalid response after the applicable retries, the run stops at that row. Completed results stay in the dataset. Resurrecting the same run skips saved input positions.

### Source and coverage

vPIC uses manufacturer information for vehicles intended for the US market. Coverage varies by vehicle and model year. This audit compares listing identity fields. Ownership, mileage, title, accidents and recall completion require other sources. [NHTSA API FAQ](https://vpic.nhtsa.dot.gov/api/home/index/faq)

Data source is NHTSA, US Department of Transportation. NHTSA permits copying and distribution of its public information, disclaims warranties and does not endorse this independent Actor. [NHTSA terms of use](https://www.nhtsa.gov/about-nhtsa/terms-use)

# Actor input Schema

## `listings` (type: `array`):

Supply 1–100 objects with a VIN and optional advertised make, model, year, stockId and supplier. Supply at least one vehicle attribute for a comparison.

## `maxItems` (type: `integer`):

Check this many listings from the start of the input, subject to the run spending limit.

## Actor input object example

```json
{
  "listings": [
    {
      "stockId": "DEMO-01",
      "supplier": "Example inventory",
      "vin": "1HGCM82633A004352",
      "make": "Honda",
      "model": "Accord",
      "year": 2004
    }
  ],
  "maxItems": 100
}
```

# Actor output Schema

## `dataset` (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 = {
    "listings": [
        {
            "stockId": "DEMO-01",
            "supplier": "Example inventory",
            "vin": "1HGCM82633A004352",
            "make": "Honda",
            "model": "Accord",
            "year": 2004
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("felixgoldwin/vin-listing-audit").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 = { "listings": [{
            "stockId": "DEMO-01",
            "supplier": "Example inventory",
            "vin": "1HGCM82633A004352",
            "make": "Honda",
            "model": "Accord",
            "year": 2004,
        }] }

# Run the Actor and wait for it to finish
run = client.actor("felixgoldwin/vin-listing-audit").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 '{
  "listings": [
    {
      "stockId": "DEMO-01",
      "supplier": "Example inventory",
      "vin": "1HGCM82633A004352",
      "make": "Honda",
      "model": "Accord",
      "year": 2004
    }
  ]
}' |
apify call felixgoldwin/vin-listing-audit --silent --output-dataset

```

## MCP server setup

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

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/fkFTI68W1G4QkaW0R/builds/XU83lNXU0xeOtbba4/openapi.json
