CarsXECarsXE

Use this guide for Auto.dev's GET /vin/{vin} API. Start by switching the VIN lookup for a single vehicle and mapping the response into your existing vehicle record. See the Auto.dev comparison for other products.

Prerequisites

Choose the CarsXE endpoint

WorkflowAuto.dev v2CarsXEFit
Decode vehicle identity by VINGET https://api.auto.dev/vin/{vin} with a 17-character VIN and a Bearer tokenGET https://api.carsxe.com/specs with key and vin in the queryPartial match. Core identity fields overlap. Response types, the evidence behind a trim, and coverage may differ.
Read candidate trims or model yearsambiguity and the decode's ambiguity fields/specs has no equivalent candidate-list or confidence contractUnsupported. Keep a review path for unresolved identity or trim.
Retrieve a VIN's OEM build, live listings, or financed payments/build/{vin}, listing and finance APIsNo direct substitute in /specsUnsupported in this workflow. Preserve any required as-built records and app-specific pricing inputs.

Specifications has its deepest coverage for US-market vehicles. It can return a smaller international result if a standard decode misses. Starting December 19, 2026, that fallback runs only when the request passes intl=true. A US specs-only workflow should handle 404 when the standard decode does not identify the vehicle. If your traffic is mostly non-US, evaluate International VIN Decoding by market. Auto.dev Global VIN Decode reference

Before and after

Auto.dev. Use a real AUTO_DEV_API_KEY. This response is an excerpt of the provider's published sample.

curl 'https://api.auto.dev/vin/3GCUDHEL3NG668790' \
  --header "Authorization: Bearer ${AUTO_DEV_API_KEY}"
{
  "vin": "3GCUDHEL3NG668790",
  "make": "Chevrolet",
  "model": "Silverado 1500",
  "trim": "ZR2",
  "drive": "4WD",
  "doors": 4,
  "vehicle": { "year": 2022 }
}

CarsXE. The sample VIN works with the literal YOUR_CARSXE_API_KEY assigned to CARSXE_API_KEY. For comparisons, use the same VIN and active credentials on both sides.

curl --get 'https://api.carsxe.com/specs' \
  --data-urlencode "key=${CARSXE_API_KEY}" \
  --data-urlencode 'vin=WBAFR7C57CC811956'
{
  "success": true,
  "attributes": {
    "year": "2012",
    "make": "BMW",
    "model": "5-Series",
    "trim": "535i",
    "drivetrain": "RWD",
    "doors": ""
  }
}

Map the response fields

Application fieldAuto.devCarsXE SpecificationsMigration change
VINvin (string)input.vin (string)Carry the VIN from your request and avoid storing the response's full input object.
Model yearvehicle.year (number when present)attributes.year (string when present)Parse a four-digit year after checking for blanks.
Make, model, trimTop-level make, model, trim (strings, with nullable trim)attributes.make, model, trim (strings when present)Preserve unknown trim and compare labels before catalog joins.
Drive and doorsdrive (string) and doors (number when present)attributes.drivetrain, attributes.doors (strings when present)Parse only known numeric door counts and keep blanks as unknown.
VIN validation and ambiguityvinValid, checksum, ambiguous, yearAmbiguous (booleans when returned)success is a lookup outcomeUnsupported as equivalent fields. Preserve any validation or ambiguity decisions in your application.

Adapt your client and test failures

Auto.dev can return HTTP 207 with partial identity fields and a reason. For CarsXE, check for 404 and validate the fields your product needs on a successful response. The adapter below maps both a missing record and a partial identity to explicit application states.

async function decodeVin(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(10_000) });
  if (response.status === 404) return { status: "not_found" };
  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 was unsuccessful");
  const { year, make, model, trim } = result.attributes ?? {};
  const identity = {
    vin,
    year: typeof year === "string" && /^\d{4}$/.test(year) ? Number(year) : null,
    make: make?.trim() || null,
    model: model?.trim() || null,
    trim: trim?.trim() || null,
  };
  const status = identity.year && identity.make && identity.model ? "found" : "partial";
  return { status, identity };
}

Omitting the Bearer header on the Auto.dev request returned HTTP 401 with error.code: "API_KEY_REQUIRED". On CarsXE, an unrecognized key on a non-demo VIN returned HTTP 401 with success: false. Keep access failures separate from no data. Auto.dev documents Retry-After for rate-limited 429 responses. CarsXE can return 429 on exhausted quota and 402 on insufficient credits, so check the response before scheduling a retry. Auto.dev errors · CarsXE errors · CarsXE rate limits and quotas

Cut over production traffic