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
- Use an Auto.dev key that can call the v2 Global VIN Decode API. Auto.dev lists VIN Decode on its Free, Growth, and Scale plans.
- Get a CarsXE account and API key. Confirm Specifications access and enough credits or quota for your tests and rollout.
- Keep both keys server-side. Auto.dev uses the
Authorization: Bearerheader, while CarsXE uses thekeyquery parameter. Redact query strings and echoedinput.keyfrom logs.
Choose the CarsXE endpoint
| Workflow | Auto.dev v2 | CarsXE | Fit |
|---|---|---|---|
| Decode vehicle identity by VIN | GET https://api.auto.dev/vin/{vin} with a 17-character VIN and a Bearer token | GET https://api.carsxe.com/specs with key and vin in the query | Partial match. Core identity fields overlap. Response types, the evidence behind a trim, and coverage may differ. |
| Read candidate trims or model years | ambiguity and the decode's ambiguity fields | /specs has no equivalent candidate-list or confidence contract | Unsupported. 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 APIs | No direct substitute in /specs | Unsupported 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 field | Auto.dev | CarsXE Specifications | Migration change |
|---|---|---|---|
| VIN | vin (string) | input.vin (string) | Carry the VIN from your request and avoid storing the response's full input object. |
| Model year | vehicle.year (number when present) | attributes.year (string when present) | Parse a four-digit year after checking for blanks. |
| Make, model, trim | Top-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 doors | drive (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 ambiguity | vinValid, checksum, ambiguous, yearAmbiguous (booleans when returned) | success is a lookup outcome | Unsupported 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
- Compare both providers on the same representative VINs. Include vehicles previously returned as
207, invalid inputs, and no-data cases. - Review model-year and trim differences. Keep unresolved cases out of flows that require confirmed vehicle identity.
- Ramp traffic gradually. Monitor partial and no-data rates, latency, access and usage errors, and remaining quota or credits.
- Keep the Auto.dev client available until CarsXE meets your rollout thresholds. Test switching back before increasing traffic.
Move Auto.dev v2 VIN decoding to CarsXE Specifications and adapt identity fields, authentication, and partial-response handling.