# TrueCar Car Listings Scraper ($0.90/1K) (`carabain-digital/truecar-listings`) Actor

Scrape used and new car listings from TrueCar (truecar.com), the US car marketplace: price, TrueCar price rating (Excellent to Fair), mileage, VIN, specs, dealer and location. Search by ZIP, make, model, year, price, mileage, fuel and body. Add-ons: full details, price history.

- **URL**: https://apify.com/carabain-digital/truecar-listings.md
- **Developed by:** [Carabain Digital](https://apify.com/carabain-digital) (community)
- **Categories:** E-commerce, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.54 / 1,000 car listings

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

#### What is TrueCar Car Listings Scraper?

**TrueCar Car Listings Scraper** scrapes **used and new car listings from TrueCar ([truecar.com](https://www.truecar.com))**, a major US car marketplace with cars from franchise and independent dealers. Search by **ZIP code and radius, make, model, model year, price, mileage, fuel type and body style**, or paste a search URL from the site, and get clean, flat car data as JSON, CSV, Excel, XML or HTML: price, **TrueCar price rating** (Excellent, Great, Good, Fair), mileage, VIN, trim, engine, MPG, key features, dealer name and location. Prefilled example: 20 used cars around Beverly Hills (ZIP 90210), ready in a few seconds. Costs **$0.90 per 1,000 listings**. Add-ons: **Full details** (dealer description, photos, equipment, warranties, accident and owner count, dealer fees, dealer phone and hours) and **Price history** (price drops over time), $1.00 per 1,000 listings each.

- 🔎 **Search like on the site**: ZIP code and radius (or all of the US), make, model, year range, price range, max mileage, fuel, body style, new or used, sort order, or paste a TrueCar search URL
- 🏷️ **TrueCar price rating included**: Excellent, Great, Good or Fair on every used car, at no extra cost
- ⚡ **Fast and light**: plain HTTP, 30 cars per request, no browser; 300 cars in under a minute
- 📚 **Full details on demand**: description, photos, equipment by category, warranties, vehicle history (accidents, owners, title flags), dealer fees, phone and opening hours
- 📈 **Track prices over time**: switch on **Price history** to compare every run with the last one
- 🔌 **Connect anywhere**: API, schedules, webhooks, Google Sheets, Make, Zapier, MCP / AI agents

#### What data can I extract from TrueCar?

<table>
<tr><td>🆔 Stable listing ID (VIN) and listing URL</td><td>💵 Price in USD and MSRP (new cars)</td></tr>
<tr><td>🏷️ TrueCar price rating</td><td>📅 Date the car was listed</td></tr>
<tr><td>🚗 Make, model, trim, model year, condition, CPO</td><td>🛣️ Mileage (miles)</td></tr>
<tr><td>⛽ Fuel type, MPG city / highway / combined</td><td>⚙️ Transmission, drivetrain, engine, displacement</td></tr>
<tr><td>🎨 Exterior and interior colour, body style, key features</td><td>🔢 VIN and dealer stock number</td></tr>
<tr><td>🏢 Dealer name, address, city, state, ZIP, distance</td><td>📷 Photo URL</td></tr>
<tr><td>📝 Description, equipment, warranties (add-on)</td><td>🧾 Accidents, owners, title flags, dealer fees, phone, hours (add-on)</td></tr>
</table>

The search results carry everything except the **description, all photos, the equipment list, warranties, dealer fees, dealer phone, website and opening hours**: those come from each listing's page and are only filled with the **Full details** add-on. TrueCar does not publish a market average price, so there is no such field; the price rating is TrueCar's own comparison. New cars have no price rating, so it is `null` for them.

#### How do I scrape TrueCar car listings?

1. [Create a free Apify account](https://console.apify.com/sign-up) and open this Actor.
2. Enter a **ZIP code** (for example `90210`) and, if you like, a radius, make, model, year and price range. Or paste one or more **Search URLs** copied from truecar.com.
3. Set **Max listings**.
4. Click **Start**, then download the cars from the **Output** tab as JSON, CSV, Excel, XML or HTML.

#### How much does it cost to scrape TrueCar?

You pay per car listing that ends up in your dataset: **$0.90 per 1,000 listings**, no subscription. The monthly credit of Apify's Free plan ($5) covers around 5,500 listings without add-ons. Paid plans get volume discounts.

- **Add-on: Full details, $1.00 per 1,000 listings** (off by default). Opens every listing and adds the dealer description, all photos, the equipment list, warranties, accident and owner count, title flags, dealer fees, dealer phone, website and opening hours. Charged only for listings that were actually enriched.
- **Add-on: Price history, $1.00 per 1,000 listings** (off by default). Adds `first_seen_at`, `previous_price`, `price_change`, `price_change_pct` and `price_history`. Charged only for listings that already had history from an earlier run, so the first run is free. See the *Price history* section below.
- Failed runs and empty searches cost nothing; you can cap spending with **Maximum cost per run** in the run options.

See the **Pricing** tab for the current prices.

#### ⬇️ Input

| Field | Description |
|---|---|
| **ZIP code** (`location`) | US ZIP code to search around. Empty = all of the US |
| **Search radius** (`radius_km`) | In km (80 km = 50 miles; default 75 miles), needs a ZIP code |
| **Make / Model** (`make`, `model`) | e.g. `Toyota` / `Camry`, `Ford` / `F-150` |
| **New or used** (`condition`) | `used` (default), `new`, or `any` (used first, then new) |
| **Model year** (`min_year`, `max_year`) | e.g. 2018 to 2023 |
| **Price** (`min_price`, `max_price`) | In US dollars |
| **Maximum mileage** (`max_mileage`) | In miles |
| **Fuel / transmission / body** (`fuel_type`, `transmission`, `body_type`) | e.g. `electric`, `manual`, `suv` |
| **Seller type** (`seller_type`) | `dealer` or `private` (TrueCar lists dealers only) |
| **Sort order** (`sort`) | `best_match` (default), price, mileage or model year |
| **Search URLs** (`start_urls`) | Search pages copied from truecar.com; they replace the filters above |
| **Max listings** (`limit`) | Stop after this many listings (TrueCar serves at most 10,000 per search) |
| **Full details** (`includeDetails`) | Paid add-on: description, equipment, warranties, vehicle history, dealer phone |
| **Price history** (`trackHistory`) | Paid add-on: compare with your previous runs |
| **History store name** (`historyStoreName`) | Where the history is kept (default `cars-history`) |
| **Proxy** (`proxyConfiguration`) | US residential proxy, preselected (Apify Residential, country US) |

```json
{
    "location": "90210",
    "limit": 20
}
```

A filtered search:

```json
{
    "location": "90210",
    "radius_km": 160,
    "make": "Toyota",
    "model": "Camry",
    "min_year": 2020,
    "max_year": 2024,
    "max_price": 25000,
    "max_mileage": 60000,
    "sort": "year_desc",
    "limit": 150
}
```

With **Search URLs** paste a page like `https://www.truecar.com/used-cars-for-sale/listings/toyota/camry/location-90210/` or `https://www.truecar.com/new-cars-for-sale/listings/body-suv/fuel-electric/`; filters in the URL are kept, the page number and sort order are ignored.

#### ⬆️ Output

Car listings are stored in the default dataset, in TrueCar's order for your search (best match unless you pick another **Sort order**). View them as a table in the **Output** tab or export JSON, CSV, Excel, XML or HTML. Fields a listing does not have are `null`; every item has the same keys.

##### A used car with the Full details add-on

```json
{
    "id": "truecar:4T1G11AK4RU255849",
    "source": "truecar",
    "url": "https://www.truecar.com/used-cars-for-sale/listing/4T1G11AK4RU255849/",
    "title": "2024 Toyota Camry SE",
    "make": "Toyota",
    "model": "Camry",
    "variant": "SE",
    "condition": "used",
    "price": 24760,
    "price_currency": "USD",
    "price_type": "fixed",
    "mileage": 56298,
    "mileage_unit": "mi",
    "year": 2024,
    "first_registration": null,
    "fuel_type": "petrol",
    "transmission": "automatic",
    "body_type": "sedan",
    "power_kw": null,
    "power_hp": null,
    "engine_cc": 2500,
    "color": "Ice Edge",
    "doors": null,
    "seats": null,
    "vin": "4T1G11AK4RU255849",
    "seller_type": "dealer",
    "seller_name": "Envision Toyota of West Covina",
    "seller_phone": "626-648-5742",
    "seller_url": null,
    "address": "205 N. Citrus St, West Covina, CA 91791",
    "city": "West Covina",
    "postcode": "91791",
    "region": "CA",
    "country": "US",
    "lat": null,
    "lon": null,
    "listed_at": "2026-10-05",
    "image_urls": [
        "https://listings-prod.tcimg.net/listings/160845/49/58/4T1G11AK4RU255849/001_2026110804.jpg",
        "https://listings-prod.tcimg.net/listings/160845/49/58/4T1G11AK4RU255849/002_2026110804.jpg"
    ],
    "description": "Ice Edge exterior and Black interior, SE trim. CARFAX 1-Owner. FUEL EFFICIENT EPA estimate 39 MPG Hwy/28 MPG City! \n\nKEY FEATURES INCLUDE\nBack-Up...",
    "price_rating": "great",
    "msrp": null,
    "offer_price": 24588,
    "certified_pre_owned": true,
    "drivetrain": "FWD",
    "engine": "2.5L Inline-4 Gas",
    "transmission_text": "Automatic",
    "fuel_type_text": "Gas",
    "interior_color": "BLACK",
    "mpg_city": 28,
    "mpg_highway": 39,
    "mpg_combined": 32,
    "key_features": [
        "Premium Wheels",
        "Apple CarPlay",
        "Android Auto",
        "Premium Seat Material"
    ],
    "stock_number": "U255849P",
    "distance_mi": 30.1,
    "dealer_id": "160845",
    "accident_count": 0,
    "owner_count": 1,
    "clean_title": true,
    "equipment": {
        "Technology": [
            "Apple CarPlay / Android Auto",
            "Bluetooth Hands-Free / Streaming Audio",
            "Voice Command"
        ],
        "Safety": [
            "Pedestrian Detection",
            "Forward Collision Warning",
            "Rear Cross-Traffic Alert"
        ],
        "Comfort": [
            "Driver Lumbar Support",
            "Dual-Zone Climate Control",
            "Auto On/Off Headlights / High Beams"
        ],
        "Appearance": [
            "Premium Synthetic and Cloth Seats",
            "Leather Steering Wheel",
            "Alloy Wheels"
        ]
    },
    "warranties": [
        {
            "name": "Basic",
            "years": 3,
            "miles": 36000
        },
        {
            "name": "Drivetrain",
            "years": 5,
            "miles": 60000
        }
    ],
    "dealer_fees": [
        {
            "name": "Electronic Filling Fee",
            "amount": "$37.00"
        },
        {
            "name": "Smog Fee",
            "amount": "$50.00"
        },
        {
            "name": "Dealer Documentation Fee",
            "amount": "$85.00"
        }
    ],
    "seller_hours": {
        "monday": "8:30am-9:00pm",
        "sunday": "9:00am-9:00pm"
    },
    "details_fetched": true,
    "scraped_at": "2026-11-17T07:56:45Z"
}
```

`price_rating` is TrueCar's own comparison of the price with similar cars nearby. `distance_mi` is the distance from your ZIP code.

##### Extra fields with the Price history add-on

```json
{
    "first_seen_at": "2026-11-08T07:00:12+00:00",
    "previous_price": 25994,
    "price_change": -1234,
    "price_change_pct": -4.75,
    "status_changed": false,
    "price_history": [
        { "at": "2026-11-08T07:00:12+00:00", "price": 25994, "status": null },
        { "at": "2026-11-15T07:00:09+00:00", "price": 24760, "status": null }
    ]
}
```

#### What can I do with TrueCar data?

- 💸 **Underpriced car finder for flippers and wholesalers**: keep `excellent` and `great` price ratings near your ZIP and sort by price
- 📉 **Used car price drop alerts**: add **Price history**, run it daily and push cars with a negative `price_change` to Slack or e-mail
- 📊 **Used car market research by make and model**: compare asking prices, mileage and `listed_at` per model, year and region for pricing or appraisal models
- 🏢 **Car dealer lead generation**: collect dealer names, addresses, phones and inventory per state for dealer software, financing or marketing sales
- 🔍 **Dealer inventory and competitor monitoring**: watch a competitor's stock and price changes by `dealer_id`
- 🔋 **EV and hybrid market tracking**: follow used electric car prices, inventory and mileage nationwide with the fuel filter

#### Tips for best results

- TrueCar has **no sort by listing date**, so "newest first" is not possible. Use `sort` `year_desc` for the newest model years, or read `listed_at` in the output.
- A search returns at most **10,000 cars** (333 pages). Split big pulls by make, model or year range.
- Search results include cars from **farther dealers** when your radius has few, as on the site. Each has its real `distance_mi`; filter on it if you only want local cars.
- **Transmission** is filtered after reading each page (TrueCar has no such filter), so a rare value can mean many pages per kept car.
- Leave **Full details** off for counting, alerts and price monitoring; switch it on when you need descriptions, equipment, vehicle history or dealer phones. The first five photos are returned.
- Results from one run are deduplicated by VIN.

#### Price history

Switch on **Price history** (`trackHistory`) and the Actor remembers every listing between runs, so you can see price drops and how long a car has been for sale.

- **Where it lives.** History is kept in a *named key-value store in your own Apify account* (default name `cars-history`, change it with **History store name**). Named stores never expire, you own the data, and storage costs a fraction of a cent.
- **First run starts the series.** The first time a listing is seen there is nothing to compare with, so `previous_price` is `null` and you are not charged for the add-on on that listing. From the second run on, each listing gets `first_seen_at`, `previous_price`, `price_change`, `price_change_pct` and `price_history` (the last 20 price points, one point per change).
- **Run it on a schedule.** History only grows when you run the Actor. Create a [schedule](https://docs.apify.com/platform/schedules) (daily is typical) with the same search and the same store name.
- **One store, several Actors.** Every car Actor we publish uses the same default store name, so a car keeps one history even if you scrape it with another of our car Actors. Item IDs start with the site (`truecar:...`), so sites never clash.
- **Do not run two runs on the same store at the same time.** The last writer wins per listing, so two parallel runs can overwrite each other's newest point.
- **If you delete the store,** the Actor starts a new empty history without an error.

#### Frequently asked questions

#### Can I use TrueCar Car Listings Scraper with the Apify API?

Yes. Every run has a dataset you can read through the [Apify API](https://docs.apify.com/api/v2). Python:

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("carabain-digital/truecar-listings").call(run_input={
    "location": "90210",
    "make": "Toyota",
    "model": "Camry",
    "max_price": 25000,
    "limit": 100,
})
for car in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(car["title"], car["price"], car["price_rating"])
```

JavaScript:

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

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('carabain-digital/truecar-listings').call({
    fuel_type: 'electric',
    max_price: 30000,
    sort: 'price_asc',
    limit: 100,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, 'cars');
```

#### Can I use TrueCar Car Listings Scraper through an MCP server or with AI agents?

Yes. Add it to an AI agent through the [Apify MCP server](https://mcp.apify.com) (`https://mcp.apify.com?tools=carabain-digital/truecar-listings`), or let the agent find it with `search-actors` and run it with `call-actor`. A small search (`limit` 20) finishes in a few seconds, and the items are flat, so agents can read them with `get-dataset-items`. Example prompt: *"Use TrueCar Car Listings Scraper to find used Honda CR-Vs from 2019 or newer under $20,000 within 50 miles of ZIP 90210 and list the five with the best price rating."*

#### Can I integrate TrueCar data with other apps?

Yes: Google Sheets, Slack, Make, Zapier, n8n, Airtable or your own webhook, through Apify [integrations](https://apify.com/integrations) and [webhooks](https://docs.apify.com/platform/integrations/webhooks). Schedule a run and send new deals or price drops to your inbox or CRM.

#### What does the TrueCar price rating mean?

`price_rating` is TrueCar's own label for how a used car's price compares with similar cars: `excellent`, `great`, `good` or `fair`. TrueCar does not publish the market average behind it, so only the label is available. New cars have no rating (`null`).

#### Why do I need a proxy?

TrueCar blocks datacenter IP addresses and some residential ones too. The Actor therefore defaults to Apify's residential proxy in the US and switches to a new exit IP when a request is blocked. If a run still ends up blocked, it fails with a clear message instead of returning an empty dataset.

#### Why is a field empty?

Without **Full details**, `description`, `seller_phone`, `seller_url`, the equipment, warranties and dealer fee fields are `null`. `lat` and `lon` are always `null`: TrueCar does not publish dealer coordinates. New cars have no price rating. Some dealers publish no price (`price_type` is `on_request`). `power_hp`, `power_kw`, `doors`, `seats` and `first_registration` are always `null`: TrueCar shows only the model year, engine size and no horsepower.

#### Can I search by city instead of ZIP?

No. TrueCar searches around a ZIP code, so use the ZIP of the city centre (for example `60601` for Chicago) and a radius, or leave it empty for the whole US.

#### Is it legal to scrape TrueCar?

The Actor only collects publicly visible listings, the same data anyone can see on truecar.com, and dealer business contact details. Rules such as privacy laws can still apply to how you store and use the data. Check your use case with a lawyer. More background: [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

#### TrueCar Car Listings Scraper not working? Feedback

Open an issue on the **Issues** tab of this Actor with the run link and we will look at it. Feature ideas are welcome there too.

⭐ **Does it work well for you?** A review on the Store page helps others find this Actor and helps us keep it maintained.

# Actor input Schema

## `location` (type: `string`):

US ZIP code to search around (5 digits), as on TrueCar. Example: `10001` (New York), `90210`, `60601`. Leave empty to search all of the US. Ignored when you give Search URLs that carry their own location.

## `radius_km` (type: `integer`):

Distance from the ZIP code in kilometres (converted to miles: 80 km = 50 mi). Default 75 miles, maximum 8,000 km. TrueCar pads results with cars from farther dealers when the radius has few, each with its real `distance_mi`. Example: `160`. Needs a ZIP code.

## `make` (type: `string`):

Car make as TrueCar writes it. Example: `Toyota`, `Ford`, `Mercedes-Benz`, `Land Rover`.

## `model` (type: `string`):

Model of that make (needs Make). Example: `Camry`, `F-150`, `Model 3`, `CR-V`.

## `condition` (type: `string`):

`used` (default), `new`, or `any` (used cars first, then new cars). Example: `used`.

## `min_year` (type: `integer`):

Oldest model year. Example: `2018`.

## `max_year` (type: `integer`):

Newest model year. Example: `2023`.

## `min_price` (type: `integer`):

Lowest price in US dollars. Example: `10000`.

## `max_price` (type: `integer`):

Highest price in US dollars. Example: `25000`.

## `max_mileage` (type: `integer`):

Highest odometer reading in miles. Example: `60000`.

## `fuel_type` (type: `string`):

Fuel type. Example: `electric`.

## `transmission` (type: `string`):

Keep only automatic or manual cars. TrueCar has no such filter, so the Actor drops the others after reading each page (a rare value can need many pages). Example: `manual`.

## `body_type` (type: `string`):

Body style. Example: `suv`.

## `seller_type` (type: `string`):

Keep only dealer or only private-seller listings. TrueCar lists dealers only, so `private` returns nothing. Example: `dealer`.

## `sort` (type: `string`):

Order of the results. TrueCar has no sort by listing date, so newest-first is not possible; use `listed_at` in the output. Example: `price_asc`.

## `start_urls` (type: `array`):

Search result pages copied from truecar.com; they replace the filters above. Example: `https://www.truecar.com/used-cars-for-sale/listings/toyota/camry/location-90210/`. Page number and sort order in the URL are ignored; without a ZIP in the URL all of the US is searched.

## `limit` (type: `integer`):

Stop after this many listings. TrueCar serves at most 10,000 per search. Example: `100`.

## `includeDetails` (type: `boolean`):

Also open each listing: dealer description, all photos, equipment highlights, warranties, accident and owner count from the vehicle history report, title flags, dealer fees, dealer phone, website and opening hours. Billed per listing as the Full details add-on.

## `trackHistory` (type: `boolean`):

Keep the price of every listing in a named store in your own Apify account and add first_seen_at, previous_price, price_change, price_change_pct and price_history to each item. Run it on a schedule: the first run only starts the series. Adds $1.00 per 1,000 listings that already had history. Do not run two runs on the same store at once.

## `historyStoreName` (type: `string`):

Name of the key-value store that holds the history (letters a-z, digits, dashes). All our car Actors use `cars-history` by default, so history is shared between them. Use another name to keep a separate series per search, e.g. `camry-nyc`.

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

TrueCar blocks datacenter IPs and some residential ones; the Actor swaps to a new exit IP when blocked. A US residential proxy is needed. The default (Apify Residential, country US) works; change it only to use your own proxy.

## Actor input object example

```json
{
  "location": "90210",
  "condition": "used",
  "fuel_type": "any",
  "transmission": "any",
  "body_type": "any",
  "seller_type": "any",
  "sort": "best_match",
  "limit": 20,
  "includeDetails": false,
  "trackHistory": false,
  "historyStoreName": "cars-history",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

## `listings` (type: `string`):

All scraped car listings, one item per vehicle.

# 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 = {
    "location": "90210",
    "limit": 20,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("carabain-digital/truecar-listings").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 = {
    "location": "90210",
    "limit": 20,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("carabain-digital/truecar-listings").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 '{
  "location": "90210",
  "limit": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call carabain-digital/truecar-listings --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,carabain-digital/truecar-listings"
        }
    }
}
```

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/xA4b3b28zJ86gAGA2/builds/xz74s4tRmr1Rmn5w0/openapi.json
