---
title: "Migrate from VinAudit"
description: "Move VIN decoding from VinAudit to CarsXE Specifications and validate field mappings, missing data, and rollout behavior."
canonical_url: "https://docs.carsxe.com/docs/guides/migrate/vinaudit"
markdown_url: "https://docs.carsxe.com/docs/guides/migrate/vinaudit.md"
last_updated: "1980-01-01"
x_farming_labs_generated_preamble: true
agent:
  task: "Move a VinAudit VIN specifications lookup to CarsXE Specifications."
  outcome: "The CarsXE request returns HTTP 200 with vehicle identity fields in attributes, and the client maps them into its existing vehicle record."
  appliesTo:
    version:
      - "VinAudit Specifications v3 and CarsXE Specifications at /specs"
  prerequisites:
    - "An active VinAudit key, a CarsXE API key, and representative 17-character VINs."
  verification:
    - "Run the public BMW sample and confirm success is true, attributes.year is the string \"2012\", and equipment.abs_brakes is \"Std.\"."
    - "Compare both providers on the same VIN before routing production traffic."
  failureModes:
    - symptom: "VinAudit returns HTTP 200 with success false, or CarsXE returns HTTP 401."
      resolution: "Check provider access and the server-side key before retrying. Treat CarsXE HTTP 404 as no data."
    - symptom: "The CarsXE rollout breaches the agreed error, latency, or field-completeness thresholds."
      resolution: "Use the provider switch to route traffic back to VinAudit and verify the previous client handles cached and stored records."
---

# Migrate from VinAudit
URL: /docs/guides/migrate/vinaudit
LLM index: /llms.txt
Description: Move VIN decoding from VinAudit to CarsXE Specifications and validate field mappings, missing data, and rollout behavior.
Related: /docs/guides/migrate, /docs/products/specifications, /docs/guides/errors

<!-- farming-labs:agent-contract:start -->
## Agent Contract

Task: Move a VinAudit VIN specifications lookup to CarsXE Specifications.
Outcome: The CarsXE request returns HTTP 200 with vehicle identity fields in attributes, and the client maps them into its existing vehicle record.

### Applies To

- Version: `VinAudit Specifications v3 and CarsXE Specifications at /specs`

### Prerequisites

- An active VinAudit key, a CarsXE API key, and representative 17-character VINs.

### Verification

- Run the public BMW sample and confirm success is true, attributes.year is the string "2012", and equipment.abs_brakes is "Std.".
- Compare both providers on the same VIN before routing production traffic.

### Failure Modes

- VinAudit returns HTTP 200 with success false, or CarsXE returns HTTP 401. — Recovery: Check provider access and the server-side key before retrying. Treat CarsXE HTTP 404 as no data.
- The CarsXE rollout breaches the agreed error, latency, or field-completeness thresholds. — Recovery: Use the provider switch to route traffic back to VinAudit and verify the previous client handles cached and stored records.
<!-- farming-labs:agent-contract:end -->

Use this guide if your application submits a VIN to VinAudit's Specifications API to retrieve vehicle identity and specs. Run the two requests below, adapt your parser, and compare both providers on your own VINs before sending production traffic to CarsXE. See the [VinAudit comparison](https://carsxe.com/alternatives/vinaudit-api) for the broader product comparison.

## Prerequisites

- Get a CarsXE account and copy your API key from the [developer dashboard](https://carsxe.com/dashboard/developer). Check your available credits or quota and size your production plan for both rollout traffic and any side-by-side testing. See [Get Started](/docs/get-started) and [Rate Limits & Quotas](/docs/guides/rate-limits).
- Keep an active VinAudit key with VIN Decoder access for comparison and rollback. Both examples pass a provider-specific key in the `key` query parameter. Store keys server-side and redact query strings and echoed `input.key` fields from logs.
- Gather VINs across your actual vehicle markets and model years. VinAudit targets the US and Canada. CarsXE's [Specifications API](/docs/products/specifications) provides the richest coverage for US-market vehicles and can fall back to a smaller [international decode](/docs/products/international-vin-decoder). Assembly country alone does not identify the vehicle's market.

## Choose the CarsXE endpoint

| VinAudit workflow | VinAudit request | CarsXE path | Fit |
| --- | --- | --- | --- |
| Decode a VIN for identity and specs | `GET https://specifications.vinaudit.com/v3/specifications` with `key` and `vin` | `GET https://api.carsxe.com/specs` with `key` and a 17-character `vin` | **Partial match.** Identity fields overlap. Coverage, field values, and equipment shape can differ. The example below covers this workflow. |
| Use a VinAudit trim or style ID as a lookup key | `/v3/specifications?id=…` and IDs from `/v3/selections` | No input for these IDs on `/specs` | **Unsupported.** Preserve the VIN or redesign the lookup around your own identifiers. |
| Look up specs without a VIN | `/v3/specifications` with `year`, `make`, `model`, and optional `trim` | Evaluate [Year Make Model](/docs/products/year-make-model) and [YMM Options](/docs/products/ymm-options) | **Partial match.** These are separate workflows. The requests and response mappings below are for VIN input only. |

VinAudit's optional `include` parameter selects response sections. Remove it when moving to `/specs`. Use [Recalls](/docs/products/recalls) or [Vehicle Images](/docs/products/vehicle-images) if your application needs those datasets. Review their coverage and meaning independently. Stock images and recall records from a separate endpoint may serve a different purpose than the sections your VinAudit integration reads.

Vehicle history, market values, and plate lookups require independent migration and testing. Live listings feeds, five-year ownership-cost estimates, window stickers, and consumer-facing VinAudit history reports have no direct CarsXE equivalent. CarsXE's [Vehicle History API](/docs/products/vehicle-history) is for B2B and internal use.

## Before and after

### Before with VinAudit

Set `VINAUDIT_API_KEY` to an active key and run the [VinAudit VIN Decoder request](https://data.vinaudit.com/docs/api/vin/decoder). The excerpt below uses the vehicle identity from VinAudit's documented VIN example.

```bash
curl --get 'https://specifications.vinaudit.com/v3/specifications' \
  --data-urlencode "key=${VINAUDIT_API_KEY}" \
  --data-urlencode 'vin=1NXBR32E85Z505904' \
  --data-urlencode 'format=json' \
  --data-urlencode 'include=attributes'
```

```json
{
  "success": true,
  "error": "",
  "attributes": {
    "year": "2005",
    "make": "Toyota",
    "model": "Corolla",
    "trim": "S"
  }
}
```

### After with CarsXE

Set `CARSXE_API_KEY` to your CarsXE key. The BMW VIN below serves a public sample response. You can set the variable to the literal placeholder `YOUR_CARSXE_API_KEY` for this VIN to inspect the response shape. Then use your real key and a VIN from your inventory to verify account access and live coverage.

```bash
curl --get 'https://api.carsxe.com/specs' \
  --data-urlencode "key=${CARSXE_API_KEY}" \
  --data-urlencode 'vin=WBAFR7C57CC811956'
```

CarsXE returns HTTP `200`. Response excerpt:

```json
{
  "success": true,
  "attributes": {
    "year": "2012",
    "make": "BMW",
    "model": "5-Series",
    "trim": "535i",
    "drivetrain": "RWD",
    "engine_cylinders": ""
  },
  "equipment": {
    "abs_brakes": "Std.",
    "navigation_aid": "Opt."
  }
}
```

The examples use each provider's sample VIN. For side-by-side validation, replace the VIN in both requests with the same representative VIN.

## Map the response fields

| Application field | VinAudit JSON | CarsXE JSON | Migration change |
| --- | --- | --- | --- |
| Vehicle identifier | `input.vin` (string) when requested by VIN | `input.vin` (string) | Carry the requested VIN through your application. Avoid persisting the entire `input` object because it can contain credentials. |
| Model year, make, model, trim | `attributes.year`, `make`, `model`, `trim` (strings) | Same paths and types where present | Compare spellings and trim labels before joining to a catalog. Parse a year only after checking it is a four-digit string. |
| Engine and drivetrain | `attributes.engine`, `engine_cylinders`, `drivetrain` (strings) | Same paths and types where present | **Partial match.** Names and units vary. A blank cylinder count remains unknown. |
| Equipment | `equipment` (array of objects with `group`, `name`, and `availability` or `value`) | `equipment` (object keyed by feature, with string values) | **Partial match.** Map features by key, for example `abs_brakes: "Std."`. Preserve optional and unknown states separately. |
| Colors and warranties | `colors` and `warranties` (arrays of objects) | `colors[]` with `category` and `name`, and `warranties[]` with `type`, `miles`, and `months` (strings where present) | **Partial match.** Options vary by vehicle. Treat an absent section as unknown and normalize warranty units before comparing. |
| Vendor trim or style selection | `selections.trims[]`, including vendor IDs | No matching ID field | **Unsupported.** Use an application-owned catalog mapping if you need stable IDs. |

For non-US-market or sparse results, verify the fields you need even when `success` is true. Starting December 19, 2026, the international fallback runs only when the request passes `intl=true`. A workflow that needs the full Specifications dataset should handle a possible `404` when the standard decode does not identify the vehicle. Individual fields can still be missing or blank in a successful response.

## Adapt your client and test failures

VinAudit may send HTTP `200` with `success: false`. For example, sending the documented Corolla VIN with the literal placeholder key `YOUR_VINAUDIT_API_KEY` produces this response (excerpt):

```json
{
  "success": false,
  "error": "api_not_enabled"
}
```

CarsXE uses HTTP status codes alongside the JSON body. Try the Corolla VIN with `key=YOUR_CARSXE_API_KEY` as a literal query value. Unlike the BMW sample, that VIN requires a real key, and the request returns HTTP `401`:

```json
{
  "success": false,
  "message": "User with this API key was not found or the API key is disabled"
}
```

Route VinAudit's `no_data` and CarsXE's `404` to your application's no-result state. Keep invalid input (`invalid_vin` or CarsXE validation errors), authentication and access errors, and usage limits separate. Check your VinAudit plan for its query allowance and throughput terms. On CarsXE, a quota-blocked request can return `429`; an underfunded credit wallet can return `402`. For retryable failures, see [Errors](/docs/guides/errors) and [Rate Limits & Quotas](/docs/guides/rate-limits).

If your existing parser iterates over VinAudit equipment rows, read the feature you need from the CarsXE equipment object instead. This Node.js example keeps the original VIN and normalizes a small subset into an application record.

```js
async function decodeWithCarsXE(vin, key) {
  const url = new URL("https://api.carsxe.com/specs");
  url.search = new URLSearchParams({ key, vin }).toString();

  const response = await fetch(url, { signal: AbortSignal.timeout(5000) });
  if (response.status === 404) return null;

  if (!response.ok) {
    throw new Error(`CarsXE Specifications returned HTTP ${response.status}`);
  }

  const result = await response.json();
  if (result.success !== true) {
    throw new Error("CarsXE Specifications returned an unsuccessful response");
  }

  const attributes = result.attributes ?? {};
  const text = (value) =>
    typeof value === "string" ? value.trim() || null : null;

  const year = text(attributes.year);
  const abs = result.equipment?.abs_brakes;
  const absAvailability =
    { "Std.": "standard", "Opt.": "optional", "N/A": "not_applicable" }[abs] ?? null;

  return {
    vin,
    year: year && /^\d{4}$/.test(year) ? Number(year) : null,
    make: text(attributes.make),
    model: text(attributes.model),
    trim: text(attributes.trim),
    absAvailability,
  };
}
```

Set required-field rules where you consume this record. For instance, send a decode with missing make or model for review before using it to create an inventory item.

## Cut over production traffic

- [ ] Test valid VINs across your makes, model years, and markets. Include an invalid VIN, a missing record or sparse decode, and a denied request. Verify your application handles each state.
- [ ] Compare normalized records for the same VINs. Track missing required fields, unexpected trim or drivetrain labels, and equipment differences. Set acceptable thresholds before starting.
- [ ] Start with a small share of traffic behind a provider switch. Monitor error rates by category, no-data and missing-field rates, p95 latency, and remaining credits or quota.
- [ ] Switch back to VinAudit if thresholds are breached. Keep its credentials, integration, and rollback procedure available until CarsXE meets your targets through a representative traffic cycle.

## Sitemap

See the full [sitemap](/sitemap.md) for all pages.
Docs-scoped sitemap: [/docs/sitemap.md](/docs/sitemap.md).
Well-known sitemap: [/.well-known/sitemap.md](/.well-known/sitemap.md).
