CarsXECarsXE

Use this guide if your client calls api.carapi.dev/v1/vin-decode to identify a vehicle. Start with make, model, and fuel type. Test more detailed fields against the markets you serve.

Prerequisites

Choose the CarsXE endpoint

WorkflowCarAPI.devCarsXEFit
Identify a non-US vehicle from its VINGET https://api.carapi.dev/v1/vin-decode/{vin} with a 17-character VIN in the path and token in the queryGET https://api.carsxe.com/v1/international-vin-decoder with vin and key in the queryPartial match. The core vehicle fields overlap. Response structure, coverage, and technical details differ.
Read registration date, actual color, or plate from the VIN decodespecifications.registrationDate, specifications.color, plateNumberNo direct field in the international VIN responseUnsupported in this workflow. Keep a registration source where these fields are required.

CarAPI.dev documents US and European VIN coverage. International VIN Decoding returns the fields available for the specific VIN and market. Listing search, inspection reports, financing, and ownership-cost estimates are outside this VIN migration. CarAPI.dev VIN Decode reference · CarsXE International VIN Decoding

Before and after

CarAPI.dev. Set CARAPI_TOKEN to your key. The response excerpt is based on CarAPI.dev's published example.

curl --get 'https://api.carapi.dev/v1/vin-decode/WBAKU210X00R62021' \
  --data-urlencode "token=${CARAPI_TOKEN}"
{
  "vin": "WBAKU210X00R62021",
  "specifications": {
    "make": "BMW",
    "model": "X6",
    "fuel": "petrol",
    "enginePower": 225,
    "enginePowerUnit": "kW"
  }
}

CarsXE. Set CARSXE_API_KEY to the literal YOUR_CARSXE_API_KEY to try the public sample VIN. For a coverage check, repeat both requests on the same VIN with real keys.

curl --get 'https://api.carsxe.com/v1/international-vin-decoder' \
  --data-urlencode "key=${CARSXE_API_KEY}" \
  --data-urlencode 'vin=WF0MXXGBWM8R43240'
{
  "success": true,
  "attributes": {
    "make": "Ford",
    "model": "Galaxy",
    "year": "2008",
    "fuel_type": "Diesel",
    "body": "Wagon"
  }
}

Map the response fields

Application fieldCarAPI.devCarsXEMigration change
VINvin (string)input.vin (string)Keep the requested VIN in your application record.
Make and modelspecifications.make, specifications.model (strings)attributes.make, attributes.model (strings when present)Read from attributes and review spelling differences before joining to a catalog.
Fuel and bodyspecifications.fuel, specifications.bodyStyle (strings when present)attributes.fuel_type, attributes.body (strings when present)Partial match. Normalize vocabulary, such as petrol and gasoline, to your own enums.
Model yearFirst registration date is a separate fieldattributes.year (string when present)Use the model year as its own field. Keep first registration date unknown if you lack a registration source.
Engine powerspecifications.enginePower (number or null) and enginePowerUnit (string or null)No power or unit fieldUnsupported. Keep kW unknown unless a separate source supplies a value and its unit.

Adapt your client and test failures

Move the VIN from the path into the query string and change token to key. Read the identity fields from attributes and return a no-result state on 404.

async function decodeInternationalVin(vin, key) {
  const url = new URL("https://api.carsxe.com/v1/international-vin-decoder");
  url.search = new URLSearchParams({ key, vin }).toString();
  const response = await fetch(url, { signal: AbortSignal.timeout(10_000) });
  if (response.status === 404) return null;
  if (!response.ok) throw new Error(`CarsXE VIN decode returned HTTP ${response.status}`);

  const result = await response.json();
  if (result.success !== true) throw new Error("CarsXE VIN decode was unsuccessful");

  const fields = result.attributes ?? {};
  return {
    vin,
    make: fields.make?.trim() || null,
    model: fields.model?.trim() || null,
    fuelType: fields.fuel_type?.trim().toLowerCase() || null,
  };
}

Replacing the CarAPI.dev token in the before request with YOUR_CARAPI_TOKEN returned HTTP 403 with {"code":"invalid_token","error":"Invalid or missing API token"}. Handle that separately from a lookup miss. For CarsXE, omit vin in the after request to test the documented HTTP 400 validation path. CarAPI.dev exposes quota remaining and reset headers and can return 429; check CarsXE's account usage and handle its quota and credit failures separately. CarAPI.dev rate limits · CarsXE errors · CarsXE rate limits and quotas

Cut over production traffic