# Kelley Blue Book Valuation Scraper (`devilscrapes/kelley-blue-book-valuation-scraper`) Actor

Scrape Kelley Blue Book vehicle valuations per trim — Fair Purchase Price, Fair Market Price range, and original MSRP for any make/model/year, parsed from KBB's own page data. Batch up to 50 vehicles per run, no login required.

- **URL**: https://apify.com/devilscrapes/kelley-blue-book-valuation-scraper.md
- **Developed by:** [DevilScrapes](https://apify.com/devilscrapes) (community)
- **Categories:** Automation, E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

<div align="center">
  <img src=".actor/icon.svg" width="160" alt="Devil Scrapes mark" />

## Kelley Blue Book Valuation Scraper

**💰 $3.20 / 1 000 results**  ·  pay only for results  ·  no credit card to try

*We do the dirty work so your dataset stays clean.* 😈

Scrape Kelley Blue Book vehicle valuations per trim — Fair Purchase Price, Fair Market Price range, and original MSRP for any make/model/year, parsed straight from KBB's own page data. Batch up to 50 vehicles in one run.

</div>

***

### 🎯 What this scrapes

Kelley Blue Book publishes the industry-reference valuation numbers used in negotiation, trade-in, and financing conversations — Fair Purchase Price, a Fair Market Price range, and original MSRP, all varying per trim within a single make/model/year. This Actor pulls those numbers straight from KBB's own page data for a list of vehicles you supply, one row per trim, so you never have to hand-check a page one vehicle at a time.

### 🔥 Features

- 🚗 **Per-trim pricing** — Fair Purchase Price, Fair Market Price low/high, and original MSRP, one row per trim.
- 📋 **Batch up to 50 vehicles** — structured make/model/year entries or raw KBB-shaped slug strings, mixed freely in one run.
- 🔁 **We retry with backoff + rotate browser fingerprints** — `curl-cffi` presents a real browser handshake and retries transient `429/5xx` so a large batch finishes instead of dying midway.
- 🧱 **One vehicle's miss never sinks the run** — a page that can't be parsed is logged and skipped; every other vehicle in the batch still comes back.
- 🧊 **Clean, typed rows** — Pydantic-validated, ISO-8601 timestamps, stable schema. Export JSON / CSV / Excel straight from the Apify Console.
- 💰 **You pay only for results that land.** No data → no charge (only the small actor-start warm-up fee).

### 💡 Use cases

- **Used-car dealers** pricing trade-ins and lot inventory against KBB's reference numbers, at scale.
- **Auto-finance and insurance analysts** who need KBB valuation figures across many make/model/year combinations for underwriting or risk models.
- **Pricing-intelligence tools** that fold KBB's authoritative numbers into a broader vehicle-pricing pipeline alongside marketplace listings.

### ⚙️ How to use it

1. Click **Try for free** at the top of the Store listing.
2. Add one or more entries under **Vehicles** — `make`, `model`, and `year` (e.g. `{"make": "honda", "model": "civic", "year": 2020}`), or supply raw KBB-shaped **Vehicle slugs** (e.g. `"toyota/camry/2021"`).
3. Leave **Proxy configuration** on its default — standard Apify Proxy is sufficient for this target.
4. Run the Actor and grab the dataset (JSON, CSV, or Excel) from the Console when it finishes.

### 📥 Input

| Field | Type | Default | Description |
|---|---|---|---|
| `vehicles` | array of objects | `[{"make": "honda", "model": "civic", "year": 2020}]` | Structured make/model/year triples, up to 50. |
| `vehicleSlugs` | array of strings | `[]` | Optional `"<make>/<model>/<year>"` slug strings, parsed and appended to `vehicles`. Combined total capped at 50. |
| `proxyConfiguration` | object | `{"useApifyProxy": true}` | Apify Proxy configuration. Standard (non-residential) proxy is sufficient. |

```json
{
  "vehicles": [
    { "make": "honda", "model": "civic", "year": 2020 },
    { "make": "toyota", "model": "camry", "year": 2021 }
  ],
  "vehicleSlugs": [],
  "proxyConfiguration": { "useApifyProxy": true }
}
```

### 📤 Output

One row per trim.

```json
{
  "make": "honda",
  "model": "civic",
  "year": 2020,
  "trim": "EX Sedan",
  "fair_purchase_price": 21453.0,
  "fair_market_price_low": 20100.0,
  "fair_market_price_high": 22800.0,
  "original_msrp": 23650.0,
  "offer_price": 20100.0,
  "offer_max_price": 22800.0,
  "currency": "USD",
  "source_url": "https://www.kbb.com/honda/civic/2020/",
  "scraped_at": "2026-09-15T12:00:00.000Z"
}
```

### 💰 Pricing

Pay-per-event — you pay for results that land, not per page attempted.

| Event | Price | Trigger |
|---|---|---|
| Actor start | $0.20 | Once per run |
| Result row | $0.003 | Per trim row pushed to the dataset |

**Effective cost: $3.20 / 1 000 results** ($0.20 flat start + 1 000 x $0.003 per row). A typical 10-vehicle run (~4 trims each, ~40 rows) lands around $0.32 total.

### 🚧 Limitations

- v1 covers the public `/<make>/<model>/<year>/` valuation page only — no login-gated features (saved vehicles, price alerts, dealer quotes).
- No VIN-specific / condition-adjusted / mileage-adjusted trade-in valuations — that's KBB's interactive "value your car" flow, out of scope here.
- No listing or dealer-inventory data — this Actor emits valuation numbers only.
- `www.kbb.com` (US) only — no other KBB-branded regional sites.

### ❓ FAQ

**Does this need a KBB account or API key?**
No — every field comes from KBB's own public valuation pages.

**What if a make/model/year isn't in KBB's catalog?**
That vehicle is skipped and logged; the run still finishes successfully with rows for every vehicle that did resolve.

**Can I mix structured vehicles and slug strings in one run?**
Yes — `vehicles` and `vehicleSlugs` are merged into one list before any fetch begins.

### 🙋 Your feedback

Found a bug or want a feature? Open an issue via [apify.com/DevilScrapes](https://apify.com/DevilScrapes) — we read every report.

# Actor input Schema

## `vehicles` (type: `array`):

Structured make/model/year triples to price, up to 50. Each item: { make (required), model (required), year (required, 1990-2027) }.

## `vehicleSlugs` (type: `array`):

Optional convenience path: raw "<make>/<model>/<year>" KBB-shaped slug strings (e.g. "toyota/camry/2021"), parsed and appended to Vehicles. Combined total is capped at 50.

## `proxyConfiguration` (type: `object`):

Apify Proxy configuration. Standard (non-residential) Apify Proxy is sufficient -- kbb.com showed no anti-bot surface at research time.

## Actor input object example

```json
{
  "vehicles": [
    {
      "make": "honda",
      "model": "civic",
      "year": 2020
    },
    {
      "make": "ford",
      "model": "f-150",
      "year": 2022
    }
  ],
  "vehicleSlugs": [
    "toyota/camry/2021"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `datasetItems` (type: `string`):

All dataset items as JSON.

## `datasetItemsCsv` (type: `string`):

Same data exported to CSV.

## `datasetView` (type: `string`):

Open the run dataset in the Console.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "vehicles": [
        {
            "make": "honda",
            "model": "civic",
            "year": 2020
        },
        {
            "make": "ford",
            "model": "f-150",
            "year": 2022
        }
    ],
    "vehicleSlugs": [
        "toyota/camry/2021"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("devilscrapes/kelley-blue-book-valuation-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "vehicles": [
        {
            "make": "honda",
            "model": "civic",
            "year": 2020,
        },
        {
            "make": "ford",
            "model": "f-150",
            "year": 2022,
        },
    ],
    "vehicleSlugs": ["toyota/camry/2021"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("devilscrapes/kelley-blue-book-valuation-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "vehicles": [
    {
      "make": "honda",
      "model": "civic",
      "year": 2020
    },
    {
      "make": "ford",
      "model": "f-150",
      "year": 2022
    }
  ],
  "vehicleSlugs": [
    "toyota/camry/2021"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call devilscrapes/kelley-blue-book-valuation-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,devilscrapes/kelley-blue-book-valuation-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/UK1TgNQYcTKm4aDEY/builds/dR9CKSeeAs4pgvwTk/openapi.json
