[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [NHTSA batch VIN decoder](https://spiral.ai/integrations/muse-code/nhtsa-batch-vin-decoder)

# How to Use NHTSA batch VIN decoder in Muse Code

Returns decoded vehicle records for up to 50 VINs per batch, using the same flat output as individual decoding. Use it to enrich an inventory export or compare vehicle descriptions across multiple records.

|  |  |
| --- | --- |
| Model | NHTSA batch VIN decoder |
| Available through | Alexandria |
| Category | Public Records |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with NHTSA batch VIN decoder in Muse Code

- Use NHTSA batch VIN decoder to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from NHTSA batch VIN decoder and tell me what changed since last week.
- Check NHTSA batch VIN decoder and summarize what you find in three bullet points.
- Pull the newest data from NHTSA batch VIN decoder and give me the result as a table.
- Check NHTSA batch VIN decoder every morning and tell me only when something changed.

## How to set up NHTSA batch VIN decoder in Muse Code

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Install Muse Code**

```bash
curl -fsSL https://dev.meta.ai/install.sh | bash
```

2. **Ask Muse to add the server**: Start `muse` and ask:

```text
Add the Spiral MCP server at https://api.spiral.ai/mcp
```

3. **Sign in**: In your terminal, run:

```bash
muse mcp login spiral
```

### Use the Spiral skill

1. **Send Muse Code this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run NHTSA batch VIN decoder**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "vpic-nhtsa-dot-gov/vehicles/decode_vin_batch",
    "input": {
      "vins": [
        {}
      ]
    }
  }'
```

Then paste one of the prompts above: Muse Code finds NHTSA batch VIN decoder on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/muse-code

## NHTSA batch VIN decoder tools and prices

- [NHTSA vPIC vehicle decoder · Decode vin batch](https://spiral.ai/tools/alexandria/vpic-nhtsa-dot-gov/vehicles/decode_vin_batch) (Alexandria): $0.00873 per call.

## What can you do with NHTSA batch VIN decoder in Muse Code?

Build vehicle reference tables and inventory checks from NHTSA's manufacturer records and VIN data. A coding agent can map the returned identifiers and attribute definitions into the project's existing data structures.

### Check dealer inventory descriptions

Decode inventory VINs individually or in batches, compare reported vehicle identity with listing descriptions, and explain attributes through the dictionary. Resolve unfamiliar prefixes, manufacturers, makes, and models before flagging a mismatch.

### Standardize fleet vehicle records

Enrich a business fleet's VIN records with available vehicle specifications. Reconcile manufacturer entities, prefixes, make names, and model names, then use attribute definitions to build consistent reporting categories.

### Build a vehicle research reference database

Create reference tables for manufacturers, makes, models, VIN prefixes, and attribute definitions. Use single and batch VIN decoding to attach vehicle characteristics to research records and investigate inconsistent identifiers.

### Reconcile commercial trailer intake

Research trailer manufacturers and their makes, models, and WMI prefixes before matching incoming business inventory. Decode individual VIN exceptions or intake batches, using dictionary definitions to interpret trailer attributes.

### Explain vehicle identification results

Turn individual or batch decode results into readable vehicle summaries. Explain manufacturer prefixes, compare model names, and translate attribute definitions and decode errors for inventory reviewers.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Muse Code guides](https://spiral.ai/integrations/muse-code)

## NHTSA batch VIN decoder in other agents

- [Amp](https://spiral.ai/integrations/amp/nhtsa-batch-vin-decoder)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/nhtsa-batch-vin-decoder)
- [Claude](https://spiral.ai/integrations/claude-desktop/nhtsa-batch-vin-decoder)
- [Claude Code](https://spiral.ai/integrations/claude-code/nhtsa-batch-vin-decoder)
- [Cline](https://spiral.ai/integrations/cline/nhtsa-batch-vin-decoder)
- [Codex](https://spiral.ai/integrations/codex/nhtsa-batch-vin-decoder)
- [Cursor](https://spiral.ai/integrations/cursor/nhtsa-batch-vin-decoder)
- [Devin](https://spiral.ai/integrations/devin/nhtsa-batch-vin-decoder)
- [dots](https://spiral.ai/integrations/dots/nhtsa-batch-vin-decoder)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/nhtsa-batch-vin-decoder)
- [Gemini](https://spiral.ai/integrations/gemini/nhtsa-batch-vin-decoder)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/nhtsa-batch-vin-decoder)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/nhtsa-batch-vin-decoder)
- [goose](https://spiral.ai/integrations/goose/nhtsa-batch-vin-decoder)
- [Grok](https://spiral.ai/integrations/grok/nhtsa-batch-vin-decoder)
- [Grok Build](https://spiral.ai/integrations/grok-build/nhtsa-batch-vin-decoder)
- [Hermes](https://spiral.ai/integrations/hermes/nhtsa-batch-vin-decoder)
- [Instinct](https://spiral.ai/integrations/instinct/nhtsa-batch-vin-decoder)
- [Manus](https://spiral.ai/integrations/manus/nhtsa-batch-vin-decoder)
- [Muse](https://spiral.ai/integrations/muse/nhtsa-batch-vin-decoder)
- [n8n](https://spiral.ai/integrations/n8n/nhtsa-batch-vin-decoder)
- [Notion](https://spiral.ai/integrations/notion/nhtsa-batch-vin-decoder)
- [OpenClaw](https://spiral.ai/integrations/openclaw/nhtsa-batch-vin-decoder)
- [opencode](https://spiral.ai/integrations/opencode/nhtsa-batch-vin-decoder)
- [Perplexity](https://spiral.ai/integrations/perplexity/nhtsa-batch-vin-decoder)
- [Raycast](https://spiral.ai/integrations/raycast/nhtsa-batch-vin-decoder)
- [VS Code](https://spiral.ai/integrations/vscode/nhtsa-batch-vin-decoder)
- [Windsurf](https://spiral.ai/integrations/windsurf/nhtsa-batch-vin-decoder)
- [Zapier](https://spiral.ai/integrations/zapier/nhtsa-batch-vin-decoder)

## More Muse Code guides

- [NHTSA WMI decoder](https://spiral.ai/integrations/muse-code/nhtsa-wmi-decoder)
- [NHTSA car seat inspection stations](https://spiral.ai/integrations/muse-code/nhtsa-car-seat-inspection-stations)
- [NHTSA VIN decoder](https://spiral.ai/integrations/muse-code/nhtsa-vin-decoder)
- [NHTSA complaint details](https://spiral.ai/integrations/muse-code/nhtsa-complaint-details)
- [NASA fireball events](https://spiral.ai/integrations/muse-code/nasa-fireball-events)
- [NHTSA manufacturer WMI list](https://spiral.ai/integrations/muse-code/nhtsa-manufacturer-wmi-list)

## Questions about NHTSA batch VIN decoder in Muse Code

**Can Muse Code use NHTSA batch VIN decoder?**

Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run NHTSA batch VIN decoder like any built-in tool.

**How much does NHTSA batch VIN decoder cost in Muse Code?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Muse Code plan is separate.

**Do I need an Alexandria account to use NHTSA batch VIN decoder in Muse Code?**

No. Spiral runs NHTSA batch VIN decoder on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up NHTSA batch VIN decoder in Muse Code?**

About two minutes: install Muse Code, then ask Muse to add the server, then sign in.

**Does Muse Code wait while NHTSA batch VIN decoder runs?**

NHTSA batch VIN decoder runs in the background. Muse Code starts the run, checks on it and gives you the json when it's ready.

**Where does NHTSA get vPIC's information?**

NHTSA codes manufacturer submissions into vPIC after reviewing them. The vehicle descriptions reflect manufacturer-reported information.

**Does vPIC cover vehicles worldwide?**

Its scope is vehicles intended for sale or importation into the United States. Foreign manufacturers can appear, but that does not make vPIC a complete catalog of their vehicles in other markets.

**How far back does vPIC's vehicle coverage go?**

NHTSA states that vPIC is intended for model years 1981 onward. Its API FAQ reports approximately 99% decoding confidence from 1995 onward for most major brands, which is a coverage estimate rather than a guarantee for every attribute.

**How does new information reach vPIC?**

Manufacturer submissions enter the data after NHTSA review. Freshness follows that submission and review process; a newly announced vehicle is not proof that its information has already been processed.

**Does vPIC provide complete equipment information?**

NHTSA explicitly says that missing decoded values do not mean a feature or technology is unavailable on the vehicle. Its records can therefore support an equipment check without establishing a complete installed-equipment list.

