# USA Car Listings Scraper ($1/1K) (`carabain-digital/usa-cars`) Actor

Search CarGurus, Autotrader, Cars.com, TrueCar, CarMax, Edmunds, Carvana and Craigslist at once for used and new cars in the US. One search by make, model, price, year, mileage and ZIP code; one dataset merged and deduplicated on VIN, newest first. Optional details and price history. Proxy included.

- **URL**: https://apify.com/carabain-digital/usa-cars.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.75 / 1,000 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 USA Car Listings Scraper?

**USA Car Listings Scraper** searches **up to eight US car marketplaces with one query** (CarGurus, Autotrader, Cars.com, TrueCar, CarMax, Edmunds, Carvana and Craigslist) and returns one clean dataset of used and new car listings: **merged, deduplicated on VIN and sorted newest first**. Filter by make, model, year, price, mileage, fuel, body type and ZIP code + radius, and export as JSON, CSV or Excel. Costs **$1.00 per 1,000 listings**; full details are an add-on at $1.20 per 1,000 and price history at $1 per 1,000. A US residential proxy is built in.

- 🌍 **8 sites, one run**: CarGurus and Autotrader by default (100 listings in seconds); add any of the six others under **Sites**
- 🧹 **Cross-site dedup on VIN**: the same car listed on several sites appears once, with an `also_on` list of the other sites
- 💲 **Market price signals**: CarGurus deal rating and Instant Market Value, Autotrader's KBB fair price, Cars.com deal badges
- 📅 **Newest first** across all sites, with a total **Max listings** cap and an optional cap per site
- 🎯 **One input for all sites**: make, model, years, price, mileage, fuel, transmission, body type, new/used, dealer/private, ZIP + radius in miles
- 🛡️ **A blocked or failing site never fails the run**: it is retried on a fresh proxy session, then skipped and logged; the others still deliver
- 📈 **Optional price history** in your own Apify storage, shared with our single-site car Actors
- 🤖 **Agent friendly**: one flat schema for all sites, works through the Apify MCP server

#### Use it from AI agents

This Actor has an agent skill for Claude Code, Codex, Cursor and other agents that read `SKILL.md`: it tells the agent when to use the Actor, every input field and the output. Install it with:

```bash
npx skills add carabain-digital/apify-agent-skills --skill usa-cars
```

Or read the skill on GitHub: [carabain-digital/apify-agent-skills/skills/usa-cars](https://github.com/carabain-digital/apify-agent-skills/tree/main/skills/usa-cars).

#### Which sites are included?

| Site | Single-site Actor | Default | Notes |
|---|---|---|---|
| [CarGurus](https://www.cargurus.com) | [cargurus-listings](https://apify.com/carabain-digital/cargurus-listings) | yes | Deal rating, Instant Market Value, VIN on every listing; up to 48 per request, very fast |
| [Autotrader](https://www.autotrader.com) | [autotrader-listings](https://apify.com/carabain-digital/autotrader-listings) | yes | Dealers and private sellers, KBB fair price range, coordinates; behind Akamai, so a few proxy exits are refused and retried |
| [Cars.com](https://www.cars.com) | [cars-com-listings](https://apify.com/carabain-digital/cars-com-listings) | no (add it under **Sites**) | Runs in a real browser behind Cloudflare: 30 s to a few minutes per run; at most 10,000 results per search |
| [TrueCar](https://www.truecar.com) | [truecar-listings](https://apify.com/carabain-digital/truecar-listings) | no | Dealer cars with VIN, price rating and offer price; about 1 in 3 connections is blocked (retried on a fresh one); ZIP code only, no newest-first order |
| [CarMax](https://www.carmax.com) | [carmax-listings](https://apify.com/carabain-digital/carmax-listings) | no | Used cars from CarMax's own stores, store transfer and shipping fee; Akamai lets only some runs through (retried, then skipped), slow: about a minute |
| [Edmunds](https://www.edmunds.com) | [edmunds-listings](https://apify.com/carabain-digital/edmunds-listings) | no | Edmunds' own price estimate and deal rating; about half of the runs get past Akamai (retried, then skipped) |
| [Carvana](https://www.carvana.com) | [carvana-listings](https://apify.com/carabain-digital/carvana-listings) | no | Carvana's own cars, delivered nationwide: it has no location filter, so ZIP and radius are ignored. Real browser, 30 s to a few minutes |
| [Craigslist](https://craigslist.org) | [craigslist-cars](https://apify.com/carabain-digital/craigslist-cars) | no | Mostly private sellers and small dealers, often without VIN or exact mileage. Needs a **Craigslist area** (see below); fast, no proxy |

**Why only two sites by default?** Only CarGurus and Autotrader are plain HTTP and answer every time. The other six run a real browser, sit behind a bot wall that only lets some connections through, or need extra input. Add them for more coverage; a blocked site is retried and then skipped, never failing the run. Most of their cars are also on CarGurus and Autotrader, so they add the most for Craigslist's private sellers and for sites with their own stock (CarMax, Carvana).

**Results per site are capped by each site, not by this Actor** (Cars.com: 10,000 per search). Asking for more returns what the site offers.

#### What data can I extract?

<table>
<tr><td>🆔 Stable listing ID, source site and URL</td><td>💵 Price in USD (or "on request")</td></tr>
<tr><td>🚗 Make, model, trim, model year, condition</td><td>🛣 Mileage in miles</td></tr>
<tr><td>⛽ Fuel type, transmission, body type, engine, hp</td><td>🔑 VIN, colour, doors, stock number</td></tr>
<tr><td>🏷 Deal rating, CarGurus IMV, KBB fair price, TrueCar and Edmunds ratings</td><td>📅 Date listed</td></tr>
<tr><td>🏪 Dealer name, phone, city, state, ZIP</td><td>🖼 Photos</td></tr>
<tr><td>🔁 <code>also_on</code>: other sites with the same car</td><td>📖 Description, equipment, history flags (add-on)</td></tr>
</table>

Every site fills what it has; the rest is `null`. Site-specific extras (for example `imv_price`, `kbb_fair_price`, `badges`) are kept as extra fields.

#### How do I scrape US 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 `10001`) and a **radius in miles**, or leave the ZIP empty for the whole US.
3. Optionally set make, model, years, price, mileage and other filters, and **Max listings**.
4. Optionally change **Sites**, and switch on **Full details** and/or **Price history**.
5. Click **Start** and download the listings from the **Output** tab as JSON, CSV, Excel, XML or HTML.

### How much does it cost to scrape US car listings?

You **pay per car** that ends up in your dataset: **$1.00 per 1,000 unique listings**, after duplicates are removed. No subscription, the proxy is included.

- **Add-on: Full details, $1.20 per 1,000** listings, **off by default**. Charged only for listings that were actually enriched. Cars.com and Carvana fetch their details inside their browser run, which is slow (up to 30 s per listing): keep Max listings per site small when you add them.
- **Add-on: Price history, $1.00 per 1,000** listings, **off by default**. Charged only for listings that already had history (the first run is free).
- The monthly credit of Apify's free plan covers thousands of listings.
- You are charged for the listings in the dataset, not for the (more numerous) listings fetched before deduplication and the **Max listings** cut. Set a maximum cost per run in the run options.

### Input

See the **Input** tab for all options. The fields are the same as in our single-site car Actors, except Search URLs (they are site-specific: for those use the single-site Actors).

| Field | Description |
|---|---|
| **Make / Model** (`make`, `model`) | As the sites write them, e.g. `Toyota` / `Camry`, `Ford` / `F-150` |
| **Model year from / up to** (`min_year`, `max_year`) | Model year range |
| **Min / Max price** (`min_price`, `max_price`) | Asking price in USD |
| **Max mileage** (`max_mileage`) | Odometer in miles |
| **Fuel, transmission, body type** (`fuel_type`, `transmission`, `body_type`) | e.g. `electric`, `manual`, `pickup` |
| **Condition** (`condition`) | `used` (default), `new` or `any` |
| **Seller** (`seller_type`) | `any`, `dealer` or `private` |
| **Location** (`location`) | 5-digit US ZIP code; empty = the whole US |
| **Craigslist area** (`craigslist_area`) | Only for Craigslist: area name such as `newyork`, `sfbay`, `chicago` (comma separated for several) |
| **Radius (miles)** (`radius_miles`) | Around the ZIP (default 50); `radius_km` is accepted too |
| **Sites** (`sites`) | `cargurus`, `autotrader`, `carscom`, `truecar`, `carmax`, `edmunds`, `carvana`, `craigslist` (default: `cargurus`, `autotrader`) |
| **Max listings** (`limit`) | Cap on the merged dataset; every site gets a fair share |
| **Max listings per site** (`limit_per_site`) | Optional cap per site (default: Max listings) |
| **Full details** (`includeDetails`) | Paid add-on: detail page data |
| **Price history** (`trackHistory`, `historyStoreName`) | Paid add-on: history in your own named store |
| **Proxy** (`proxyConfiguration`) | Apify RESIDENTIAL, country US by default |

Example input:

```json
{
    "make": "Toyota",
    "model": "Camry",
    "condition": "used",
    "max_price": 25000,
    "location": "90001",
    "radius_miles": 50,
    "limit": 100
}
```

#### How filters work on each site

- **ZIP code**: CarGurus, Autotrader, Cars.com, TrueCar, CarMax and Edmunds search around a US ZIP code; city names are rejected. No ZIP means the whole US.
- **Carvana** delivers nationwide and has no location filter: ZIP and radius are ignored (logged).
- **Craigslist** has no ZIP search and no nationwide search: it searches one area (a city region) at a time. Set **Craigslist area** (`newyork`, `sfbay`, `chicago`, `losangeles`; several separated by commas), or give a place name such as `chicago` as Location. With only a ZIP code, Craigslist is skipped and the log says so. Everything except the radius works there.
- **Radius**: CarGurus, TrueCar and Edmunds use your miles as is; CarMax rounds up to 5, 25, 50, 75, 100, 250 or 500 miles; Autotrader rounds up to 10, 25, 50, 75, 100, 200, 300, 400 or 500 miles and Cars.com to 10, 20, 30, 40, 50, 75, 100, 150, 200, 250, 500, 750 or 1,000 miles (more = nationwide).
- **A site that does not know a filter value is skipped**, not searched without it: for example a misspelt model, `ethanol`/`cng` fuel on Autotrader, `new` on CarMax (used only) or `private` sellers on Carvana and CarMax (they sell their own cars). The run log says why. If **every** selected site rejects the input, the run fails with an input error so you notice.
- **New and used** (`any`): Autotrader and Cars.com mix them in date order; CarGurus, TrueCar and Carvana return used cars first and new ones after.
- **Max price on CarGurus** is checked before dealer fees, while `price` includes them in fee-inclusive states (California): a few CarGurus prices can be slightly above your maximum (`total_price` shows the pre-fee figure).

### Output

Listings are stored in the default dataset, one item per unique car. Export them as JSON, CSV, Excel, XML or HTML. Every site uses the same field names (`id` is `<source>:<site id>`). Example (shortened, from a real run):

```json
{
    "id": "cargurus:464361618",
    "source": "cargurus",
    "url": "https://www.cargurus.com/details/464361618",
    "title": "2024 BMW M3 Competition xDrive AWD",
    "make": "BMW",
    "model": "M3",
    "variant": "Competition xDrive AWD",
    "condition": "used",
    "price": 75398.0,
    "price_currency": "USD",
    "price_type": "fixed",
    "mileage": 36373,
    "mileage_unit": "mi",
    "year": 2024,
    "fuel_type": "petrol",
    "transmission": "automatic",
    "body_type": "sedan",
    "power_hp": 503,
    "vin": "WBS43AY0XRFS05783",
    "seller_type": "dealer",
    "seller_name": "Land Rover New Rochelle",
    "seller_phone": "(516) 400-4516",
    "city": "New Rochelle",
    "postcode": "10805",
    "region": "NY",
    "country": "US",
    "listed_at": "2026-11-15",
    "deal_rating": "great_price",
    "imv_price": 79826,
    "scraped_at": "2026-11-15T18:51:52Z",
    "also_on": [
        "autotrader"
    ]
}
```

All car fields are present, `null` when the site has none. Cars.com search cards have no transmission and no listing date: those come with the **Full details** add-on.

#### How duplicates are removed

Two listings are the same car when they have the same **VIN**, on different sites. Without a VIN, make + model year + mileage + price must all match. The first one is kept (order: CarGurus, Autotrader, Cars.com, TrueCar, CarMax, Edmunds, Carvana, Craigslist) and the other sites go in `also_on`. Craigslist rarely has a VIN. Two listings of the same site are never merged. Dealers often list on several sites, so expect a few percent duplicates in a broad search and up to ~15% in a narrow make + model search.

#### Sorting

With **Max listings**, every site gets a fair share: listings are taken in turns from each site (each in its own newest-first order). The result is then sorted newest first by `listed_at`; items without a date (Cars.com search cards, for example) keep their site order at the end.

#### Price history: track price changes

Switch on **Price history** (`trackHistory`) to follow listings over time. The Actor keeps a small history record per listing in a **named key-value store in your own Apify account** (default name `cars-history`; change it with `historyStoreName`). We run no database and hold none of your data.

- **Shared with the single-site Actors.** Our single-site car Actors use the same default store name and listing IDs, so a listing tracked there continues its series here, and the other way round.
- **The first run starts the series.** Listings seen for the first time are not charged for the add-on.
- **Every later run** adds `first_seen_at`, `previous_price`, `price_change`, `price_change_pct` and `price_history` (the last 20 points) to each listing you saw before.
- **History runs once over the merged list**, after deduplication, so a car on two sites is tracked under the site it was kept from.
- **Do not run two runs on the same store at the same time**: the last writer wins per record.

### What can I do with US car listing data?

- 💸 **Used car price comparison**: compare asking prices for one make and model across up to eight sites in one deduplicated list, with CarGurus IMV, KBB fair price and Edmunds estimate next to each car
- 🔔 **New listing alerts**: schedule a daily run for a model and ZIP code and get the fresh cars from all sites, duplicates merged via `also_on`
- 📉 **Price drop tracking**: turn on **Price history** to follow `price_change` per VIN-identified car over weeks
- 🏪 **Dealer inventory and lead lists**: collect dealer names, phones, cities and stock per region for automotive sales and marketing
- 🚚 **Wholesale and export sourcing**: find under-market cars (`deal_rating`, `imv_difference`) by mileage, year and distance
- 🧠 **Car valuation model data**: feed deduplicated prices, mileage, years and trims into pricing models or LLM pipelines

### Tips for best results

- Keep the defaults (CarGurus + Autotrader) for speed: 100-300 listings take 5-15 seconds. Add more sites for wider coverage: Cars.com and Carvana need 30 s to a few minutes to get past Cloudflare, CarMax about a minute, and a blocked connection is retried before the site is skipped.
- With Cars.com or Carvana and **Full details**, set **Max listings per site** to a small number (e.g. 20): they fetch details in their browser, 1-30 s per listing.
- Craigslist: pass `craigslist_area` (for example `newyork`) next to your ZIP code; the other sites keep using the ZIP.
- Use a ZIP code with a radius for local searches; leave the ZIP empty for a nationwide newest-first feed.
- Need a search URL you built on one site? Use that site's own Actor (linked in the table above); this Actor takes filters, not URLs.

### Frequently asked questions

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

Yes. Use the [Apify API](https://docs.apify.com/api/v2) or the Apify clients. Python:

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("carabain-digital/usa-cars").call(run_input={"make": "Toyota", "model": "Camry", "condition": "used", "location": "90001", "limit": 100})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["source"], item["title"], item["price"], item["also_on"])
```

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

Yes. Add the [Apify MCP server](https://mcp.apify.com) to your AI agent (Claude, ChatGPT, Cursor and others) and let it call `carabain-digital/usa-cars` with `call-actor`. Every field has a description, so an agent can fill it from a request such as "find the 20 newest used Honda CR-Vs under $25,000 near Chicago" (`make`, `model`, `max_price`, `location`, `limit`). A run with the default sites finishes in seconds; the agent then reads the dataset with `get-dataset-items`. Add-ons are off by default, so an agent pays only the base price unless it asks for more.

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

Yes: Make, Zapier, Google Sheets, Slack, Airbyte and webhooks, via Apify's [integrations](https://apify.com/integrations).

#### Why are there fewer listings than Max listings?

Each site returns what matches your search, duplicates across sites are removed, and sites that reject a filter are skipped. A narrow search can leave you with fewer.

#### Why does one site return nothing?

Either it has no match for your search, rejected a filter value (the log says which), needed input it did not get (Craigslist without a Craigslist area), or it was blocked and skipped after retries (CarMax, Edmunds and TrueCar block part of the connections). If **all** selected sites fail, the run fails so you notice. Try again later or open an issue.

#### Is it legal to scrape car marketplaces?

The Actor only collects publicly visible listing data. Listings can contain personal data (for example a private seller's first name), and privacy laws may apply to how you store and use it. Check your use case with a lawyer. See also [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

#### USA Car Listings Scraper not working? / Feedback

Open an issue in the **Issues** tab of this Actor with the run link and the input you used; I usually answer within a few days.

### Other scrapers by us

The single-site Actors behind this one are linked in the table above. They are cheaper per car when you need one site only, and take search URLs.

⭐ **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

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

Car make as the sites write it. Example: `Toyota`, `Ford`, `Mercedes-Benz`, `Land Rover`. Leave empty for all makes. A site that does not know the make is skipped (logged) instead of returning unrelated cars.

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

Model of that make (needs Make). Example: `Camry`, `F-150`, `CR-V`, `Model 3`. A site that does not know the model is skipped (logged).

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

Earliest model year. Example: `2018`.

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

Latest model year. Example: `2022`.

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

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

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

Highest asking price in US dollars. Example: `30000`. CarGurus filters on the price before dealer fees, so a few CarGurus prices can be slightly above it in fee-inclusive states such as California.

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

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

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

Fuel type. Example: `electric`. Autotrader has no flex fuel (E85) or CNG filter, so it is skipped for those two.

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

Gearbox. Example: `automatic`.

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

Body type. Example: `pickup`.

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

New or used cars. Example: `used`. With `any`, CarGurus returns used cars first and new ones only after the used ones run out. CarMax sells used cars only: it is skipped for `new`.

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

Dealer or private seller. Example: `dealer`. Almost every listing on these sites is from a dealer; CarGurus filters private sellers after the search and finds very few. Carvana and CarMax sell only their own cars: they are skipped for `private`.

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

Search around a 5-digit US ZIP code. Example: `10001` (New York), `60601` (Chicago), `90001` (Los Angeles). Leave empty to search the whole US (Craigslist cannot: it needs Craigslist area; Carvana ignores the location, it delivers nationwide).

## `radius_miles` (type: `integer`):

Distance around the ZIP code in miles. Example: `50`. CarGurus uses it as is; Autotrader rounds up to 10, 25, 50, 75, 100, 200, 300, 400, 500 miles (more = nationwide) and Cars.com to 10, 20, 30, 40, 50, 75, 100, 150, 200, 250, 500, 750, 1000. Wins over Radius (km). Default 50 miles. TrueCar and Edmunds take any distance, CarMax rounds up to 5, 25, 50, 75, 100, 250, 500; Carvana and Craigslist ignore it.

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

The same distance in km, for tools that pass the shared car-scraper field: converted to miles (80 km = 50 mi). Example: `80`. Ignored when Radius (miles) is set.

## `craigslist_area` (type: `string`):

Only for the site Craigslist, which searches one area (a city region) at a time and has no ZIP code or nationwide search. Use the area name as in `https://<area>.craigslist.org`. Example: `newyork`, `sfbay`, `chicago`, `losangeles`. Several areas, comma separated, are searched one after the other. Without it, a Location that is not a ZIP code (e.g. `chicago`) is used; with only a ZIP code Craigslist is skipped (logged).

## `sites` (type: `array`):

Which sites to search. Default: CarGurus and Autotrader (fast, seconds). Optional extra sources: Cars.com and Carvana run in a real browser behind Cloudflare (30 s to several minutes); CarMax and Edmunds clear Akamai in a stealth browser and only some runs get through (retried, then skipped); TrueCar is blocked on about 1 in 3 connections (retried); Craigslist is fast but needs a Craigslist area (see that field) and lists mostly private sellers. Example: `["cargurus", "autotrader", "truecar"]`.

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

Cap on the merged dataset, newest first; every site gets a fair share. Example: `100`.

## `limit_per_site` (type: `integer`):

Optional cap per site, to keep the mix balanced and Cars.com runs short. Default: Max listings. Example: `25`.

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

Also open each listing on its site: the dealer's description, all photos, equipment by category and more (CarGurus: accident and owner count, dealer fees, street address and coordinates; Autotrader: features, packages, warranties, open recalls, dealer hours; Cars.com: transmission, listing date, title and accident flags; TrueCar, CarMax, Edmunds, Carvana and Craigslist: description, photos, equipment, VIN and history or fee details where the site has them). Adds $1.20 per 1,000 listings that were actually enriched. Cars.com fetches details inside its browser run and is slow (1-30 s per listing): use a small Max listings per site with it.

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

Keep a price history per 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 every listing you have scraped before. Shared with our single-site car Actors. 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. Example: `golf-watch`.

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

Keep Apify RESIDENTIAL, country US (the default): all three sites block datacenter IPs. The Actor then uses its own built-in residential proxy at no extra cost to you.

## Actor input object example

```json
{
  "condition": "used",
  "seller_type": "any",
  "location": "10001",
  "radius_miles": 50,
  "sites": [
    "cargurus",
    "autotrader"
  ],
  "limit": 20,
  "includeDetails": false,
  "trackHistory": false,
  "historyStoreName": "cars-history",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

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

All car listings from the selected sites, merged and deduplicated, newest first.

# 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 = {
    "condition": "used",
    "location": "10001",
    "radius_miles": 50,
    "sites": [
        "cargurus",
        "autotrader"
    ],
    "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/usa-cars").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 = {
    "condition": "used",
    "location": "10001",
    "radius_miles": 50,
    "sites": [
        "cargurus",
        "autotrader",
    ],
    "limit": 20,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("carabain-digital/usa-cars").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 '{
  "condition": "used",
  "location": "10001",
  "radius_miles": 50,
  "sites": [
    "cargurus",
    "autotrader"
  ],
  "limit": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call carabain-digital/usa-cars --silent --output-dataset

```

## MCP server setup

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

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/c4TEDZ5OZeKXFWT7M/builds/ei7RsZbSe0O7nTdD6/openapi.json
