CarsXE

Estimate a vehicle's current market value from a VIN. Use /v2/marketvalue for new integrations: it returns vehicle identity plus wholesale and retail values across condition tiers. Add mileage, state, and condition when you want the estimate adjusted for a specific vehicle and market.

When to use it

Parameters

ParameterRequiredDescription
vinYesThe 17-character vehicle identification number
keyYesYour CarsXE API key
stateNoUS state used for regional adjustment. Example: CA
mileageNoCurrent odometer mileage. Must be numeric
conditionNoOne of excellent, clean, average, or rough

If condition is omitted, use the returned condition buckets to choose the value range that matches your workflow.

Example

Get market value

Code
curl -G https://api.carsxe.com/v2/marketvalue \
  -d key=YOUR_API_KEY \
  -d vin=WBAFR7C57CC811956 \
  -d mileage=50000 \
  -d state=CA \
  -d condition=clean

Response

Top-level shape

{
"uid": "FDE60872",// valuation record identifier
"publish_date": "4/8/2025",// provider valuation publish date
"state": "NT",// market region used for valuation
"country": "US",
"model_year": "2012",
"make": "BMW",
"model": "5-Series",
"series": "535i",
"style": "4D Sedan",
"class_name": "Luxury Car",
}

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

All response fields are optional. Missing value buckets mean the provider did not return that valuation for the VIN or market context.

How to read value buckets

Condition tiers - excellent, clean, average, and rough values
SuffixMeaning
xcleanExcellent / extra-clean condition
cleanClean condition
avgAverage condition
roughRough condition

The request parameter condition=excellent maps conceptually to the xclean tier in the response.

Value families - wholesale and retail buckets
PrefixMeaning
whole_*Wholesale-oriented valuation bucket
retail_*Retail-oriented valuation bucket
Adjustment fields - base value plus mileage, add/deduct, and regional adjustments

The * is replaced by the value family and condition tier. For example, base_retail_clean is the base retail value for a clean vehicle.

  • Name
    base_*
    Type
    number
    Description

    Base valuation before mileage, equipment, or regional adjustments.

  • Name
    mileage_*
    Type
    number
    Description

    Mileage adjustment applied to the valuation.

  • Name
    add_deduct_*
    Type
    number
    Description

    Additions or deductions applied by the provider.

  • Name
    regional_*
    Type
    number
    Description

    Regional market adjustment.

Errors

StatusWhen it happens
400Missing VIN, wrong VIN length, invalid mileage, or invalid condition
401Missing or invalid API key
404No market value data found for this VIN
429Usage limit exceeded
500Internal server error
503Upstream market value provider unavailable

Valid condition values:

excellent, clean, average, rough

See the Errors guide for general error handling guidance.

Legacy v1 endpoint

Use /v2/marketvalue for new integrations. Legacy /marketvalue still exists for older integrations and returns simpler fields such as retail, tradeIn, roughTradeIn, averageTradeIn, loanValue, msrp, tradeInValues, and auctionValues.

curl -G https://api.carsxe.com/marketvalue \
  -d key=YOUR_API_KEY \
  -d vin=WBAFR7C57CC811956