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 for the broader product comparison.
Prerequisites
- Get a CarsXE account and copy your API key from the developer dashboard. Check your available credits or quota and size your production plan for both rollout traffic and any side-by-side testing. See Get Started and Rate Limits & Quotas.
- Keep an active VinAudit key with VIN Decoder access for comparison and rollback. Both examples pass a provider-specific key in the
keyquery parameter. Store keys server-side and redact query strings and echoedinput.keyfields from logs. - Gather VINs across your actual vehicle markets and model years. VinAudit targets the US and Canada. CarsXE's Specifications API provides the richest coverage for US-market vehicles and can fall back to a smaller international decode. 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 and 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 or 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 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. The excerpt below uses the vehicle identity from VinAudit's documented VIN example.
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'{
"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.
curl --get 'https://api.carsxe.com/specs' \
--data-urlencode "key=${CARSXE_API_KEY}" \
--data-urlencode 'vin=WBAFR7C57CC811956'CarsXE returns HTTP 200. Response excerpt:
{
"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):
{
"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:
{
"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 and Rate Limits & Quotas.
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.
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.
Move VIN decoding from VinAudit to CarsXE Specifications and validate field mappings, missing data, and rollout behavior.