CarsXE

Year Make Model includes two lightweight APIs for cases where you do not have a VIN. Use Year Make Model to find the best matching vehicle and trim from basic vehicle identity. Use the OBD-II code decoder to map diagnostic trouble codes to readable diagnosis text.

Year Make Model

Look up vehicle data by year, make, and model, with an optional trim hint. This is useful when a VIN is unavailable but you still need structured specs, colors, features, pricing, or trim options.

Endpoint: /v1/ymm

Parameters

ParameterRequiredDescription
yearYesVehicle model year, numeric, between 1900 and the current model year plus one
makeYesManufacturer, for example Toyota, Ford, or BMW
modelYesVehicle model, for example Camry, F-150, or X5
trimNoTrim hint, for example XLE or Sport; fuzzy matched when possible
allTrimOptionsNoPass 1 to return all trim options for the year, make, and model

Example

Look up by year, make, and model

Code
curl -G https://api.carsxe.com/v1/ymm \
  -d key=YOUR_API_KEY \
  -d year=2023 \
  -d make=Toyota \
  -d model=Camry \
  -d trim=XLE

Response

Top-level shape

{
"success": true,// always true on 200
"timestamp": "2024-03-19T12:00:00.000Z"// ISO 8601 response time
}

Click any object or array to expand it and see sample data. For the full interactive reference, try it live in the API Reference.

All response fields are optional except success. Availability varies by vehicle, trim, and source coverage.

bestMatch

The bestMatch object contains the matched vehicle and trim data.

trimOptions

When allTrimOptions=1 is passed, trimOptions returns available trims for the requested year, make, and model. Use this when users need to choose a trim before requesting the best match.

color

Color data is grouped by exterior and interior. Each item uses the same shape:

features

Features are grouped into categories under features.standard.

Each feature item has:

input

The input object echoes the request values used for the lookup. It can include year, make, model, trim, and allTrimOptions.

If trim is omitted, the API returns the best/default trim match for the year, make, and model. If trim is provided but not exact, the API attempts a close match. Pass allTrimOptions=1 when you need the available trims instead of a single best match. Response fields vary by vehicle and source availability.

OBD-II Code Decoder

Decode an OBD-II diagnostic trouble code into a readable diagnosis.

Endpoint: /obdcodesdecoder

Parameters

ParameterRequiredDescription
codeYesOBD-II diagnostic trouble code, for example P0115
keyYesYour CarsXE API key
formatNojson by default, or xml if supported by your endpoint configuration

Example

Decode an OBD-II code

Code
curl -G https://api.carsxe.com/obdcodesdecoder \
  -d key=YOUR_API_KEY \
  -d code=P0115

For the full interactive reference, try it live in the API Reference.

Response

Errors

See the Errors guide for the full list.

Common Year / Make / Model errors:

Common OBD-II code decoder errors:

Common errors for both endpoints: