# TrueCar Scraper (`voyn/truecar-scraper`) Actor

Scrape TrueCar car listings into structured data: VIN, price, mileage, specs, dealer info, market average price, and estimated profit. A fast and reliable TrueCar API alternative for data analysis, lead generation, and pricing intelligence.

- **URL**: https://apify.com/voyn/truecar-scraper.md
- **Developed by:** [Voyn Software](https://apify.com/voyn) (community)
- **Categories:** Automation, Agents, E-commerce
- **Features:** Full permissions
- **Stats:** 4 total users, 2 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## TrueCar Scraper – Fast Vehicle Data & Profit Signals

A reliable **TrueCar scraper** that collects live car listings and (optionally) opens each car’s page to enrich the data. It auto-paginates through results, handles lazy-loaded cards, supports proxy use, and saves everything into a clean, column-based dataset—perfect for analysis, pricing intelligence, or lead workflows. Optimized for searches like **“truecar api”** and **“truecar scraper.”**

***

### Why use this TrueCar scraper?

- **Get complete listings, not just snippets**\
  Pull VIN, year, make, model, trim, mileage, price, photos, dealer info, drivetrain, engine, fuel type, MPG, and more.
- **Real pagination**\
  Moves forward by clicking the site’s own **Next** button—no fragile URL hacking.
- **Deeper “details” enrichment (optional)**\
  For each VIN, the actor also loads the individual car page and extracts:
  - **averagePrice** (market average) from the correct section,
  - Condition history (clean title, salvage, lemon, fleet/rental, theft recovered, owner count, accident count),
  - Overview specs (colors, transmission, engine, fuel, drivetrain, MPG, city/state).
- **Profit signal**\
  Automatically computes estimated profit using the given "Average list price" and "Price" from car details page.
- **Clean dataset**\
  Flat columns for easy export to Sheets, Excel, BI tools, or data warehouses.
- **Proxy support**\
  Increase reliability with proxy use when needed.

> ⚠️ This scraper gathers publicly visible data from TrueCar’s web pages. Review and comply with TrueCar’s Terms of Service and applicable laws before use.

***

### Typical use cases

- **Arbitrage scouting & profit analysis** using `price` vs. `averagePrice`.
- **Market tracking** by make/model/region over time.
- **Inventory aggregation** and **lead generation** for dealerships.
- **Competitive intelligence** and pricing benchmarks.

***

### Input (configure in actor UI or JSON)

```json
{
  "startUrls": [
    "https://www.truecar.com/used-cars-for-sale/listings/?page=1"
  ],
  "filters": {},
  "scrapeMode": "DETAILS",
  "maxItems": 500,
  "perPage": 30,
  "concurrency": 10,
  "proxy": {
    "useApifyProxy": true
  },
  "additionalHeaders": {}
}
```

```json
### Output
{
  "vin": "3VVMB7AX3RM168923",
  "image": "https://listings-prod.tcimg.net/listings/396948/23/89/3VVMB7AX3RM168923/001.jpg?auto=format&fit=crop&h=203&w=360",
  "price": 28744,
  "dealerName": "Volkswagen of Fairfield",
  "dealerCity": "Fairfield",
  "dealerState": "CA",
  "condition": "USED",
  "year": 2024,
  "make": "Volkswagen",
  "trim": "Tiguan SE 4MOTION",
  "mileage": 5,
  "car link": "https://www.truecar.com/used-cars-for-sale/listing/3VVMB7AX3RM168923/2024-volkswagen-tiguan/?position=0&returnTo=%2Fused-cars-for-sale%2Flistings%2F&sourceType=marketplace&sponsored=true",
  "_pageUrl": "https://www.truecar.com/used-cars-for-sale/listings/",
  "model": "Tiguan",

  "exteriorColor": "Platinum Gray Metallic",
  "interiorColor": "Titan Black",
  "transmission": "Automatic",
  "engine": "2.0L Inline-4 Gas Turbocharged",
  "fuelType": "Gas",
  "driveType": "AWD",
  "mpg_city": 22,
  "mpg_highway": 29,
  "location_detail": "Fairfield, CA",

  "averagePrice": 28871,
  "reportPullDate": "2025-08-28T02:25:16+00:00",
  "accidentCount": 0,
  "autoCheckUrl": "https://www.autocheck.com/vehiclehistory/?siteID=8900&vin=3VVMB7AX3RM168923",
  "isRentalCar": false,
  "isFleetCar": false,
  "isFrameDamaged": false,
  "ownerCount": 1,
  "isReportFree": false,
  "isCleanTitle": true,
  "isLemon": false,
  "isSalvage": false,
  "isTheftRecovered": false,

  "exteriorColor_detail": "Platinum Gray Metallic",
  "interiorColor_detail": "Titan Black",
  "mileage_detail": 5,
  "transmission_detail": "Automatic",
  "driveType_detail": "AWD",
  "engine_detail": "2.0L Inline-4 Gas Turbocharged",
  "fuelType_detail": "Gas",
  "dealerCity_detail": "Fairfield",
  "dealerState_detail": "CA",

  "estimatedProfit": 127
}
```

### How it behaves

1. Opens your **start URL(s)** and waits for the list to fully load.
2. **Auto-scrolls** to fetch all lazy-loaded cards.
3. **Extracts each listing** in the results grid.
4. **Clicks “Next” button** to paginate through results.
5. In **DETAILS** mode, also loads each car’s page for deeper info.

***

### Tips for best results

- Use `"DETAILS"` mode when you need **averagePrice**, condition history, and full specs.
- Set a reasonable `maxItems` (e.g., a few hundred) for faster runs and reliability.
- Enable proxy if you run frequently or at larger scale.
- For targeted searches, paste filtered TrueCar URLs directly.

***

### Troubleshooting

- **Stops early or misses some cars** → Listings are lazy-loaded. Try more memory or lower `maxItems`.
- **Some fields are null** → Not all cards contain all values. Use `"DETAILS"` mode for more data.
- **Few or no results** → Check your `startUrls`; TrueCar inventory updates constantly.

***

Looking for a **TrueCar API** to export car listings and specs? While an official public API isn’t provided, this **TrueCar scraper** reliably turns TrueCar’s public pages into structured data—VINs, prices, specs, dealer info, **market average price**, and **profit signals**—so you can analyze inventory, benchmark prices, and find opportunities at scale.

# Actor input Schema

## `startUrls` (type: `array`):

Example: https://www.truecar.com/used-cars-for-sale/listings/?page=1 . You can provide multiple URLs. Condition (USED/NEW) is inferred from the path.

## `scrapeMode` (type: `string`):

Choose LIST to scrape only listing data (faster), or DETAILS to also open each car page and extract deeper info.

## `maxItems` (type: `integer`):

Stop after scraping this many cars in total.

## `concurrency` (type: `integer`):

How many detail pages to open in parallel (used only in DETAILS mode).

## `proxy` (type: `object`):

Select proxies to be used by your scraper.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.truecar.com/used-cars-for-sale/listings/location-new-york-ny/"
  ],
  "scrapeMode": "DETAILS",
  "maxItems": 25,
  "concurrency": 10,
  "proxy": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "startUrls": [
        "https://www.truecar.com/used-cars-for-sale/listings/location-new-york-ny/"
    ],
    "proxy": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("voyn/truecar-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 = {
    "startUrls": ["https://www.truecar.com/used-cars-for-sale/listings/location-new-york-ny/"],
    "proxy": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("voyn/truecar-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 '{
  "startUrls": [
    "https://www.truecar.com/used-cars-for-sale/listings/location-new-york-ny/"
  ],
  "proxy": {
    "useApifyProxy": false
  }
}' |
apify call voyn/truecar-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,voyn/truecar-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/Jz8GHgmogHRbEmguU/builds/qKpdZTjqazmZAczNC/openapi.json
