---
title: "Migrate from Black Book"
description: "Evaluate CarsXE Market Value for VIN-based wholesale estimates when migrating from Black Book."
canonical_url: "https://docs.carsxe.com/docs/guides/migrate/black-book"
markdown_url: "https://docs.carsxe.com/docs/guides/migrate/black-book.md"
last_updated: "1980-01-01"
x_farming_labs_generated_preamble: true
agent:
  task: "Compare a Black Book lookup for VIN-based wholesale estimates with CarsXE Market Value."
  outcome: "The CarsXE request returns HTTP 200 on the documented sample VIN and the application reads the mapped fields."
  prerequisites:
    - "Credentials for Black Book and CarsXE, plus a representative 17-character VIN."
  verification:
    - "The documented sample includes numeric adjusted values in the clean wholesale, retail, and trade-in groups."
    - "Compare both providers on the same VIN and verify application handling for an HTTP 404 or an absent field."
  failureModes:
    - symptom: "CarsXE returns HTTP 401 or rejects the VIN."
      resolution: "Check the key and the endpoint's required query parameters. Treat an HTTP 404 as a missing lookup result."
    - symptom: "Required fields go missing or error and latency thresholds are exceeded during rollout."
      resolution: "Route the affected workflow back to Black Book and confirm the original client can serve requests."
---

# Migrate from Black Book
URL: /docs/guides/migrate/black-book
LLM index: /llms.txt
Description: Evaluate CarsXE Market Value for VIN-based wholesale estimates when migrating from Black Book.
Related: /docs/guides/migrate, /docs/products/market-value, /docs/guides/errors

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

Task: Compare a Black Book lookup for VIN-based wholesale estimates with CarsXE Market Value.
Outcome: The CarsXE request returns HTTP 200 on the documented sample VIN and the application reads the mapped fields.

### Prerequisites

- Credentials for Black Book and CarsXE, plus a representative 17-character VIN.

### Verification

- The documented sample includes numeric adjusted values in the clean wholesale, retail, and trade-in groups.
- Compare both providers on the same VIN and verify application handling for an HTTP 404 or an absent field.

### Failure Modes

- CarsXE returns HTTP 401 or rejects the VIN. — Recovery: Check the key and the endpoint's required query parameters. Treat an HTTP 404 as a missing lookup result.
- Required fields go missing or error and latency thresholds are exceeded during rollout. — Recovery: Route the affected workflow back to Black Book and confirm the original client can serve requests.
<!-- farming-labs:agent-contract:end -->

Use this guide to evaluate CarsXE for **VIN-based wholesale estimates**. For underwriting or resale rules that require a specific Black Book output, keep that workflow separate. [CarsXE comparison](https://carsxe.com/alternatives/black-book-api)

## Prerequisites

- Keep your existing Black Book access for the comparison and rollback.
- [Get a CarsXE API key](/docs/get-started#api-keys). Confirm coverage and plan availability for [Market Value](/docs/products/market-value). Keep keys server-side and redact them from request logs.
- Choose representative VINs from your inventory and compare data only where your agreements allow it.

## Before and after

**Black Book**. Use the Black Book valuation API and configuration specified for your account. Keep the request and response from your current Black Book client for the same vehicle. Confirm whether the source field is wholesale, trade-in, retail, or a custom trade value before comparing estimates. [Black Book APIs](https://www.blackbook.com/api/)

**CarsXE**. Call `GET /v2/marketvalue` with `key` and the 17-character `vin` in the query. Set `CARSXE_API_KEY` to your key and run the documented sample.

```bash
curl --get "https://api.carsxe.com/v2/marketvalue" \
  --data-urlencode "key=${CARSXE_API_KEY}" \
  --data-urlencode "vin=WBAFR7C57CC811956" \
  --data-urlencode "mileage=50000" \
  --data-urlencode "state=CA" \
  --data-urlencode "condition=clean"
```

The documented sample includes numeric adjusted values in the clean wholesale, retail, and trade-in groups. See the [complete CarsXE response example](/docs/products/market-value#example). Repeat both providers' requests on the same VIN to verify coverage.

Send mileage in miles for the US or kilometers for Canada. `state` is a US regional adjustment. Compare amounts in the currency of the returned market and confirm condition definitions before mapping the values.

## Map the response fields

| Required data | Black Book | CarsXE | Migration change |
| --- | --- | --- | --- |
| Clean wholesale | Your licensed clean wholesale value | `whole_clean.adjusted_whole_clean` (number when present) | **Partial match.** Verify the channel, condition definitions, geographic inputs, and as-of date. |
| Average wholesale | Your licensed average wholesale value | `whole_avg.adjusted_whole_avg` (number when present) | **Partial match.** Compare estimated amounts and retain the source name and currency. |
| Custom trade or contract value | Black Book Custom Trade Value or a prescribed book value | Generic estimates from `/v2/marketvalue` | **Unsupported as an exact replacement.** Retain the source when a policy or contract specifies Black Book. |

Read the adjusted amount for the appropriate condition tier and valuation channel. Carry currency and mileage units through your application. Use the status code before parsing results. Check input on `400`, credentials on `401`, and preserve a separate no-data state for `404`. Compare your vendor's usage limits with [CarsXE rate limits and quotas](/docs/guides/rate-limits).

## Cut over production traffic

1. Compare estimates across representative age, mileage, and condition bands. Review large deviations and test downstream price thresholds before routing live traffic.
2. Compare normalized records side by side. Include a no-data case, missing fields, and a rejected request before switching any traffic.
3. Start with a small share of traffic and monitor errors, no-data rates, latency, and usage. Keep the old client and rollback path ready until the results meet your thresholds.

## 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).
