---
title: "Market Value"
description: "Estimate wholesale, retail, trade-in, and auction values for a vehicle by VIN, with optional mileage, state, and condition adjustments."
canonical_url: "https://docs.carsxe.com/docs/products/market-value"
markdown_url: "https://docs.carsxe.com/docs/products/market-value.md"
last_updated: "1980-01-01"
x_farming_labs_generated_preamble: true
agent:
  task: "Retrieve CarsXE market value estimates for a vehicle by VIN or vehicle attributes."
  outcome: "A Market Value request returns the documented successful vehicle-data response for the supplied input."
  appliesTo:
    version:
      - "CarsXE Market Value API v2"
  prerequisites:
    - "A valid CarsXE API key with access to this endpoint."
    - "The vehicle identifier or request inputs required by the Market Value example."
  verification:
    - "Run one documented Market Value request and confirm the response is successful and contains the fields described on this page."
  failureModes:
    - symptom: "The Market Value request is rejected or does not return the expected data."
      resolution: "Check the API key, plan access, supported input format, and the returned status code against the error guide before retrying."
---

# Market Value
URL: /docs/products/market-value
LLM index: /llms.txt
Description: Estimate wholesale, retail, trade-in, and auction values for a vehicle by VIN, with optional mileage, state, and condition adjustments.
Related: /docs/products/specifications, /docs/products/vehicle-history, /docs/get-started

<!-- farming-labs:agent-contract:start -->
## Agent Contract

Task: Retrieve CarsXE market value estimates for a vehicle by VIN or vehicle attributes.
Outcome: A Market Value request returns the documented successful vehicle-data response for the supplied input.

### Applies To

- Version: `CarsXE Market Value API v2`

### Prerequisites

- A valid CarsXE API key with access to this endpoint.
- The vehicle identifier or request inputs required by the Market Value example.

### Verification

- Run one documented Market Value request and confirm the response is successful and contains the fields described on this page.

### Failure Modes

- The Market Value request is rejected or does not return the expected data. — Recovery: Check the API key, plan access, supported input format, and the returned status code against the error guide before retrying.
<!-- farming-labs:agent-contract:end -->

Task: Retrieve CarsXE market value estimates for a vehicle by VIN or vehicle attributes.
Related: /docs/products/market-value, /docs/products/specifications, /docs/get-started

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.

## Who uses this API

Dealerships, lenders, fleet operators, and warranty providers call this endpoint to price a vehicle from a VIN — wholesale, retail, and condition-adjusted bands for appraisals, trade-ins, and loan-to-value.

## Use cases

### B2B

- **Dealerships — trade-in and retail pricing:** Adjust wholesale and retail bands by mileage, state, and condition before making an offer.
- **Lenders — loan-to-value:** Use wholesale and retail buckets to size a loan or lease residual.
- **Fleet — asset valuation:** Track depreciation and end-of-life value across a VIN list.

### B2C

- **Consumer “what’s my car worth?” widgets:** Show a private seller or buyer a condition-tiered estimate from a VIN.
- **Marketplace asking-price hints:** Suggest a listing price after the seller enters a VIN and mileage.

## Parameters

| Parameter | Required | Description |
|---|---|---|
| `vin` | Yes | The 17-character vehicle identification number |
| `key` | Yes | Your CarsXE API key |
| `state` | No | US state used for regional adjustment. Example: `CA` |
| `mileage` | No | Current odometer reading (miles in the US, kilometers in Canada). Must be numeric. When you pass `mileage` with `condition`, the API selects the matching `mileage_list` band and writes that band into the `mileage_*` fields, then recalculates `adjusted_*`. Omit `mileage` to apply bands yourself from `mileage_list`. |
| `condition` | No | One of `excellent`, `clean`, `average`, or `rough`. `excellent` maps to the `xclean` response tier. Used with `mileage` to apply the matching mileage band. |

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

## Example

<CodeGroup title="Get market value" tag="GET" label="/v2/marketvalue">

```bash
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
```

```js
import { CarsXE } from "carsxe-api";

const carsxe = new CarsXE("YOUR_API_KEY");
const vin = "WBAFR7C57CC811956";
const mileage = "50000";
const state = "CA";
const condition = "clean";

try {
  const marketValue = await carsxe.marketvalue({ vin, mileage, state, condition });
  console.log(marketValue);
} catch (error) {
  console.error(error);
}
```

```python
import asyncio
from carsxe_api import CarsXE

carsxe = CarsXE("YOUR_API_KEY")
vin = "WBAFR7C57CC811956"
mileage = "50000"
state = "CA"
condition = "clean"

try:
    marketValue = asyncio.run(carsxe.market_value({"vin": vin, "mileage": mileage, "state": state, "condition": condition}))
    print(marketValue)
except Exception as e:
    print(f"Error: {e}")
```

```php
<?php
require_once __DIR__ . '/vendor/autoload.php';
use CarsxeDeveloper\Carsxe\Carsxe;

$carsxe = new Carsxe("YOUR_API_KEY");
$vin = "WBAFR7C57CC811956";
$mileage = "50000";
$state = "CA";
$condition = "clean";

try {
    $marketValue = $carsxe->marketValue(["vin" => $vin, "mileage" => $mileage, "state" => $state, "condition" => $condition]);
    print_r($marketValue);
} catch (Exception $error) {
    echo "Error: " . $error->getMessage();
}
```

```ruby
require "carsxe"

carsxe = Carsxe::CarsXE.new(api_key: "YOUR_API_KEY")
vin = "WBAFR7C57CC811956"
mileage = "50000"
state = "CA"
condition = "clean"

begin
  marketValue = carsxe.market_value("vin" => vin, "mileage" => mileage, "state" => state, "condition" => condition)
  puts marketValue
rescue StandardError => error
  puts "Error: #{error.message}"
end
```

```go
package main

import (
	"fmt"
	"github.com/carsxe/carsxe-go-package"
)

func main() {
	client := carsxe.New("YOUR_API_KEY")
	vin := "WBAFR7C57CC811956"
	mileage := "50000"
	state := "CA"
	condition := "clean"
	marketValue := client.MarketValue(map[string]string{"vin": vin, "mileage": mileage, "state": state, "condition": condition})
	fmt.Println(marketValue)
}
```

```java
import io.github.carsxe.CarsXE;
import java.util.Map;
import java.util.HashMap;

public class Main {
    public static void main(String[] args) {
        CarsXE carsxe = new CarsXE("YOUR_API_KEY");
        Map<String, String> params = new HashMap<>();
        params.put("vin", "WBAFR7C57CC811956");
        params.put("mileage", "50000");
        params.put("state", "CA");
        params.put("condition", "clean");

        try {
            Map<String, Object> marketValue = carsxe.marketvalue(params);
            System.out.println(marketValue);
        } catch (Exception e) {
            System.err.println("Error: " + e.getMessage());
        }
    }
}
```

```swift
import carsxe

let carsxe = CarsXE(apiKey: "YOUR_API_KEY")
let vin = "WBAFR7C57CC811956"
let mileage = "50000"
let state = "CA"
let condition = "clean"

do {
    let marketValue = try carsxe.marketValue(["vin": vin, "mileage": mileage, "state": state, "condition": condition])
    print(marketValue)
} catch {
    print("Error: \(error)")
}
```

```csharp
using carsxe;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;

class Program
{
    static async Task Main(string[] args)
    {
        CarsXE carsxe = new CarsXE("YOUR_API_KEY");
        string vin = "WBAFR7C57CC811956";
        string mileage = "50000";
        string state = "CA";
        string condition = "clean";

        try
        {
            var marketValue = await carsxe.MarketValue(new Dictionary<string, string> { { "vin", vin }, { "mileage", mileage }, { "state", state }, { "condition", condition } });
            Console.WriteLine(marketValue);
        }
        catch (Exception ex)
        {
            Console.WriteLine($"Error: {ex.Message}");
        }
    }
}
```

```bash {{ title: "Response" }}
{
  "uid": "6AA32D4C",
  "input": {
    "vin": "3KPFK4A78HE103497",
    "state": "CA",
    "country": "US"
  },
  "publish_date": "8/29/2025",
  "data_freq": "D",
  "state": "CA",
  "country": "US",
  "uvc": "2017485075",
  "group_num": "4163",
  "model_year": "2017",
  "make": "Kia",
  "model": "Forte",
  "series": "LX",
  "style": "4D Sedan",
  "mileage_cat": "B",
  "class_code": "A",
  "class_name": "Small Car",
  "description_score": "",
  "first_values_flag": false,
  "risk_score": "",
  "whole_xclean": {
    "base_whole_xclean": 5925,
    "mileage_whole_xclean": 0,
    "add_deduct_whole_xclean": 0,
    "regional_whole_xclean": 25,
    "adjusted_whole_xclean": 5950
  },
  "whole_clean": {
    "base_whole_clean": 4950,
    "mileage_whole_clean": 0,
    "add_deduct_whole_clean": 0,
    "regional_whole_clean": 25,
    "adjusted_whole_clean": 4975
  },
  "whole_avg": {
    "base_whole_avg": 3600,
    "mileage_whole_avg": 0,
    "add_deduct_whole_avg": 0,
    "regional_whole_avg": 25,
    "adjusted_whole_avg": 3625
  },
  "whole_rough": {
    "base_whole_rough": 2300,
    "mileage_whole_rough": 0,
    "add_deduct_whole_rough": 0,
    "regional_whole_rough": 25,
    "adjusted_whole_rough": 2325
  },
  "retail_xclean": {
    "base_retail_xclean": 9750,
    "mileage_retail_xclean": 0,
    "add_deduct_retail_xclean": 0,
    "regional_retail_xclean": 25,
    "adjusted_retail_xclean": 9775
  },
  "retail_clean": {
    "base_retail_clean": 8575,
    "mileage_retail_clean": 0,
    "add_deduct_retail_clean": 0,
    "regional_retail_clean": 25,
    "adjusted_retail_clean": 8600
  },
  "retail_avg": {
    "base_retail_avg": 6550,
    "mileage_retail_avg": 0,
    "add_deduct_retail_avg": 0,
    "regional_retail_avg": 25,
    "adjusted_retail_avg": 6575
  },
  "retail_rough": {
    "base_retail_rough": 5050,
    "mileage_retail_rough": 0,
    "add_deduct_retail_rough": 0,
    "regional_retail_rough": 25,
    "adjusted_retail_rough": 5075
  },
  "trade_in_clean": {
    "base_trade_in_clean": 5055,
    "mileage_trade_in_clean": 0,
    "add_deduct_trade_in_clean": 0,
    "regional_trade_in_clean": 25,
    "adjusted_trade_in_clean": 5080
  },
  "trade_in_avg": {
    "base_trade_in_avg": 3705,
    "mileage_trade_in_avg": 0,
    "add_deduct_trade_in_avg": 0,
    "regional_trade_in_avg": 25,
    "adjusted_trade_in_avg": 3730
  },
  "trade_in_rough": {
    "base_trade_in_rough": 2205,
    "mileage_trade_in_rough": 0,
    "add_deduct_trade_in_rough": 0,
    "regional_trade_in_rough": 25,
    "adjusted_trade_in_rough": 2230
  },
  "region2": 50,
  "region3": 25,
  "region4": -25,
  "region5": 0,
  "region6": 0,
  "msrp": 17600,
  "retail_equipped": 18820,
  "price_includes": "AC",
  "wheel_base": 106.3,
  "tire_size": "195/65R15",
  "seat_cap": "5",
  "fuel_type": "Gas",
  "fuel_cap": "13.2",
  "fuel_delivery": "MPI",
  "hwy_mpg": "38",
  "city_mpg": "29",
  "engine_description": "2.0L I-4 MPI DOHC ",
  "cylinders": "4",
  "engine_displacement": "2.0L",
  "base_hp": "147 @ 6200",
  "taxable_hp": 16.7,
  "torque": "132 @ 4500",
  "drivetrain": "FWD",
  "num_gears": "6",
  "ext_doors": "4",
  "airbags": "Side Curtain",
  "anti_corrosion_warranty": "5-year/100,000-mile, Limited",
  "basic_warranty": "5-year/60,000-mile, Limited",
  "road_assist_warranty": "5-year/60,000-mile",
  "add_deduct_list": [
    {
      "uoc": "05",
      "name": "w/o Auto Trans",
      "xclean": -550,
      "clean": -550,
      "avg": -550,
      "rough": -550,
      "auto": "N",
      "resid12": 0,
      "resid24": 0,
      "resid30": 0,
      "resid36": 0,
      "resid42": 0,
      "resid48": 0,
      "resid60": 0,
      "resid72": 0
    }
  ],
  "model_number_list": ["C3421", "C3422"],
  "mileage_list": [
    {
      "model_year": "2017",
      "range_begin": 1,
      "range_end": 8000,
      "xclean": 2800,
      "clean": 3000,
      "avg": 3200,
      "rough": 3200,
      "finadv": 2900,
      "mileage_cat": "B"
    },
    {
      "model_year": "2017",
      "range_begin": 110001,
      "range_end": 113000,
      "xclean": -250,
      "clean": -125,
      "avg": 0,
      "rough": 125,
      "finadv": -175,
      "mileage_cat": "B"
    },
    {
      "model_year": "2017",
      "range_begin": 214001,
      "range_end": 999999,
      "xclean": -3325,
      "clean": -3325,
      "avg": -3325,
      "rough": -3225,
      "finadv": -3325,
      "mileage_cat": "B"
    }
  ],
  "retail": 6550,
  "trade_in": 5055,
  "rough_trade_in": 2205,
  "average_trade_in": 3705,
  "loan_value": 8575,
  "trade_in_values": [],
  "auction_values": {
    "low_auction_value": 2300,
    "average_auction_value": 3600,
    "high_auction_value": 4950,
    "date_range": "8/29/2025"
  }
}
```

Live `mileage_list` arrays typically include every band from `1` to `999999`. The example above keeps three representative rows.

</CodeGroup>

## Response

### Top-level shape

<MarketValueTopLevelShape />

Click any object or array to expand it and see sample data. For the full interactive reference, try it live in the [API Reference](/api-reference/market-value/vehicle-market-value-v2).

All response fields are optional. Missing value buckets mean the provider did not return that valuation for the VIN or market context. Some vehicles also return extra spec fields such as `gvw`, `payload_cap`, `seats`, `transmission`, `engine_turbocharged`, `oil_cap`, or `navigation`.

## How mileage and options affect values

Each condition object is built the same way:

`adjusted_*` = `base_*` + `mileage_*` + `add_deduct_*` + `regional_*`

- **Mileage.** `mileage_list` is the full table of odometer bands. If you pass the `mileage` query parameter with `condition`, the API selects the band where `range_begin <= mileage <= range_end` and writes that band's condition amount into the matching `mileage_*` fields, then recalculates `adjusted_*`. `excellent` maps to `xclean`. If you omit `mileage`, `mileage_*` stays at the provider default (often `0`) and you can apply a band yourself from `mileage_list`.
- **Options / equipment.** `add_deduct_list` is the table of option adds and deducts (`uoc`, `name`, amounts by condition, `auto`, residual months). These adjust market value based on options the vehicle may have or lack (for example `w/o Auto Trans`). The `add_deduct_*` fields on each condition object hold the option adjustment already applied to that bucket.
- **Region.** Passing `state` selects a regional market. `region2`–`region6` are the raw regional amounts; the selected region's amount also appears on each condition object as `regional_*`.

## Identity and request echo

<Properties>
  <Property name="uid" type="string">
    Valuation record identifier.
  </Property>
  <Property name="input" type="object">
    Echo of request inputs: `vin`, plus `state` and `country` when they were used.
  </Property>
  <Property name="publish_date" type="string">
    Provider valuation publish date. Example: `"8/29/2025"`.
  </Property>
  <Property name="data_freq" type="string">
    How often the provider refreshes this valuation. `"D"` means daily.
  </Property>
  <Property name="state" type="string">
    Market region used for the valuation.
  </Property>
  <Property name="country" type="string">
    Country used for the valuation.
  </Property>
  <Property name="uvc" type="string">
    Unique vehicle code for this configuration.
  </Property>
  <Property name="group_num" type="string">
    Provider grouping used to associate the vehicle with a market segment.
  </Property>
  <Property name="model_year" type="string">
    Vehicle model year.
  </Property>
  <Property name="make" type="string">
    Manufacturer.
  </Property>
  <Property name="model" type="string">
    Model name.
  </Property>
  <Property name="series" type="string">
    Trim or series.
  </Property>
  <Property name="style" type="string">
    Body style. Example: `"4D Sedan"`.
  </Property>
  <Property name="mileage_cat" type="string">
    Mileage category for this configuration. Matches `mileage_cat` on `mileage_list` rows.
  </Property>
  <Property name="class_code" type="string">
    Vehicle class code.
  </Property>
  <Property name="class_name" type="string">
    Human-readable vehicle class. Example: `"Small Car"`.
  </Property>
  <Property name="description_score" type="string">
    Provider description-quality score when supplied.
  </Property>
  <Property name="first_values_flag" type="boolean">
    Whether this is the first published value set for the vehicle.
  </Property>
  <Property name="risk_score" type="string">
    Provider risk score when supplied.
  </Property>
</Properties>

## Condition valuation objects

Wholesale (`whole_*`), retail (`retail_*`), and trade-in (`trade_in_*`) objects use the same five nested fields. The `*` is replaced by the family and condition, for example `base_retail_clean`.

| Family | Objects |
|---|---|
| Wholesale | `whole_xclean`, `whole_clean`, `whole_avg`, `whole_rough` |
| Retail | `retail_xclean`, `retail_clean`, `retail_avg`, `retail_rough` |
| Trade-in | `trade_in_clean`, `trade_in_avg`, `trade_in_rough` |

<Properties>
  <Property name="base_*" type="number">
    Base valuation before mileage, equipment, or regional adjustments.
  </Property>
  <Property name="mileage_*" type="number">
    Mileage-band adjustment. Auto-applied when you pass `mileage` and `condition`; otherwise often `0`.
  </Property>
  <Property name="add_deduct_*" type="number">
    Option/equipment adjustment already applied to this bucket. See `add_deduct_list` for the per-option rows.
  </Property>
  <Property name="regional_*" type="number">
    Regional market adjustment from the selected `state`.
  </Property>
  <Property name="adjusted_*" type="number">
    Final value for the bucket: `base_* + mileage_* + add_deduct_* + regional_*`.
  </Property>
</Properties>

The request parameter `condition=excellent` maps to the `xclean` tier.

## mileage_list

Table of mileage or kilometer bands with value adjustments per condition. Live responses include many rows covering `1` through `999999`. Use a band yourself when you did not pass `mileage`.

<Properties>
  <Property name="model_year" type="string">
    Model year this band applies to.
  </Property>
  <Property name="range_begin" type="number">
    Inclusive start of the odometer band.
  </Property>
  <Property name="range_end" type="number">
    Inclusive end of the odometer band.
  </Property>
  <Property name="xclean" type="number">
    Adjustment for extra-clean / excellent condition.
  </Property>
  <Property name="clean" type="number">
    Adjustment for clean condition.
  </Property>
  <Property name="avg" type="number">
    Adjustment for average condition.
  </Property>
  <Property name="rough" type="number">
    Adjustment for rough condition.
  </Property>
  <Property name="finadv" type="number">
    Finance-advance adjustment for this band, when the provider supplies one.
  </Property>
  <Property name="mileage_cat" type="string">
    Mileage category for the band. Matches top-level `mileage_cat`.
  </Property>
</Properties>

## add_deduct_list

Option and equipment adds and deducts. These adjust market value based on options the vehicle may have. Each row is one option (or the absence of an option).

<Properties>
  <Property name="uoc" type="string">
    Unique option code.
  </Property>
  <Property name="name" type="string">
    Option or equipment name. Example: `"w/o Auto Trans"`.
  </Property>
  <Property name="xclean" type="number">
    Add/deduct amount for extra-clean / excellent condition.
  </Property>
  <Property name="clean" type="number">
    Add/deduct amount for clean condition.
  </Property>
  <Property name="avg" type="number">
    Add/deduct amount for average condition.
  </Property>
  <Property name="rough" type="number">
    Add/deduct amount for rough condition.
  </Property>
  <Property name="auto" type="string">
    Whether the option is treated as automatic / default (`Y` or `N`).
  </Property>
  <Property name="resid12" type="number">
    Residual amount at 12 months. The same pattern continues as `resid24`, `resid30`, `resid36`, `resid42`, `resid48`, `resid60`, and `resid72`.
  </Property>
</Properties>

## Summary scalars and auction values

<Properties>
  <Property name="retail" type="number">
    Typical retail asking value. Sourced from `base_retail_avg`.
  </Property>
  <Property name="trade_in" type="number">
    Typical clean trade-in value. Sourced from `base_trade_in_clean`.
  </Property>
  <Property name="rough_trade_in" type="number">
    Rough-condition trade-in value. Sourced from `base_trade_in_rough`.
  </Property>
  <Property name="average_trade_in" type="number">
    Average-condition trade-in value. Sourced from `base_trade_in_avg`.
  </Property>
  <Property name="loan_value" type="number">
    Typical loan / finance value. Sourced from `base_retail_clean`.
  </Property>
  <Property name="trade_in_values" type="array">
    Historical trade-in series when the provider supplies one. Often an empty array on v2.
  </Property>
  <Property name="auction_values" type="object">
    Auction price band for the vehicle.
  </Property>
  <Property name="auction_values.low_auction_value" type="number">
    Low auction / wholesale-rough value.
  </Property>
  <Property name="auction_values.average_auction_value" type="number">
    Average auction / wholesale-average value.
  </Property>
  <Property name="auction_values.high_auction_value" type="number">
    High auction / wholesale-clean value.
  </Property>
  <Property name="auction_values.date_range" type="string">
    Date the auction band applies. Typically the same as `publish_date`.
  </Property>
  <Property name="model_number_list" type="array of strings">
    Factory model numbers associated with this configuration.
  </Property>
</Properties>

## Regions

<Properties>
  <Property name="region2" type="number">
    Regional adjustment amount for region 2.
  </Property>
  <Property name="region3" type="number">
    Regional adjustment amount for region 3.
  </Property>
  <Property name="region4" type="number">
    Regional adjustment amount for region 4.
  </Property>
  <Property name="region5" type="number">
    Regional adjustment amount for region 5.
  </Property>
  <Property name="region6" type="number">
    Regional adjustment amount for region 6.
  </Property>
</Properties>

The selected `state` determines which regional amount is copied onto each condition object's `regional_*` field.

## Vehicle specs

<Properties>
  <Property name="msrp" type="number">
    Manufacturer’s suggested retail price.
  </Property>
  <Property name="retail_equipped" type="number">
    Retail price with typical factory equipment.
  </Property>
  <Property name="price_includes" type="string">
    Options included in the priced configuration. Example codes: `AC` (air conditioning), `AT` (automatic transmission), `LTH` (leather), `SR` (sunroof).
  </Property>
  <Property name="wheel_base" type="number">
    Wheelbase in inches.
  </Property>
  <Property name="tire_size" type="string">
    Factory tire size. Example: `"195/65R15"`.
  </Property>
  <Property name="seat_cap" type="string">
    Seating capacity.
  </Property>
  <Property name="fuel_type" type="string">
    Fuel type. Example: `"Gas"`.
  </Property>
  <Property name="fuel_cap" type="string">
    Fuel tank capacity in gallons.
  </Property>
  <Property name="fuel_delivery" type="string">
    Fuel-delivery system. Example: `"MPI"`.
  </Property>
  <Property name="hwy_mpg" type="string">
    Highway fuel economy.
  </Property>
  <Property name="city_mpg" type="string">
    City fuel economy.
  </Property>
  <Property name="engine_description" type="string">
    Engine descriptor. Example: `"2.0L I-4 MPI DOHC "`.
  </Property>
  <Property name="cylinders" type="string">
    Cylinder count.
  </Property>
  <Property name="engine_displacement" type="string">
    Engine displacement. Example: `"2.0L"`.
  </Property>
  <Property name="base_hp" type="string">
    Base horsepower at RPM. Example: `"147 @ 6200"`.
  </Property>
  <Property name="taxable_hp" type="number">
    Taxable horsepower rating.
  </Property>
  <Property name="torque" type="string">
    Engine torque at RPM. Example: `"132 @ 4500"`.
  </Property>
  <Property name="drivetrain" type="string">
    Drivetrain. Example: `"FWD"`.
  </Property>
  <Property name="num_gears" type="string">
    Number of transmission gears.
  </Property>
  <Property name="ext_doors" type="string">
    Exterior door count.
  </Property>
  <Property name="airbags" type="string">
    Airbag configuration. Example: `"Side Curtain"`.
  </Property>
  <Property name="anti_corrosion_warranty" type="string">
    Corrosion / rust warranty. Example: `"5-year/100,000-mile, Limited"`.
  </Property>
  <Property name="basic_warranty" type="string">
    Basic limited warranty. Example: `"5-year/60,000-mile, Limited"`.
  </Property>
  <Property name="road_assist_warranty" type="string">
    Roadside-assistance warranty. Example: `"5-year/60,000-mile"`.
  </Property>
</Properties>

## Errors

| Status | When it happens |
|---|---|
| `400` | Missing VIN, wrong VIN length, invalid VIN, invalid mileage, or invalid condition |
| `401` | Missing or invalid API key |
| `404` | No market value data found for this VIN |
| `429` | Usage limit exceeded |
| `500` | Internal server error or non-retryable upstream authentication failure |
| `502` | Upstream market value provider returned an error; response includes `retryable: true` and `Retry-After` |
| `503` | Temporarily unavailable; not billed. Response includes `code: "temporarily_unavailable"`, `retryable: true`, and `Retry-After`; retry after that many seconds |
| `504` | Upstream market value provider timed out; response includes `retryable: true` and `Retry-After` |

Valid condition values:

```text
excellent, clean, average, rough
```

See the [Errors guide](/docs/guides/errors) 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`.

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

## Sitemap

See the full [sitemap](/sitemap.md) for all pages.
Docs-scoped sitemap: [/docs/sitemap.md](/docs/sitemap.md).
Well-known sitemap: [/.well-known/sitemap.md](/.well-known/sitemap.md).
