# CarGurus Listings Scraper · US, CA, UK search · $1/1K (`mlg14/cargurus-scraper`) Actor

Get CarGurus car listings for used-car price research, inventory tracking and dealer analysis. Prices, mileage, specifications, VIN, dealer details and photos from US, Canada and UK searches. Filter by ZIP, distance, make and model. $1/1K listings.

- **URL**: https://apify.com/mlg14/cargurus-scraper.md
- **Developed by:** [MLG Data](https://apify.com/mlg14) (community)
- **Categories:** Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 results

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?

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

## CarGurus Scraper

Scrape CarGurus vehicle listings from public searches in the United States, Canada, and the United Kingdom. Export CarGurus data to JSON, CSV, or Excel, including prices, mileage, vehicle specifications, dealer details, and listing photos. This scraper serves as a practical CarGurus API alternative for repeatable inventory collection and price analysis.

The actor accepts a search URL with filters already applied, or builds a search from a country and postal code. It collects listing cards page by page, then requests each vehicle's public detail record. The default dataset contains one flat record per unique listing. A successful US verification collected 36 listings across two search pages; every record had an ID, title, price, year, make, model, VIN, dealer name, listing URL, and primary photo.

### What data can you extract from CarGurus?

Each row represents a vehicle listing. Fields can be empty when a seller or marketplace does not publish them. Numeric prices use the currency of the marketplace selected by the URL or country setting. Mileage and search distance use the local units returned by the site; check `mileageUnit` before combining markets.

| Field | Description | Example |
| --- | --- | --- |
| `country` | Marketplace country code | `US` |
| `listingId` | Stable listing identifier | `458325747` |
| `title` | Display title of the vehicle | `2020 compact SUV AWD` |
| `year` | Vehicle model year | `2020` |
| `make` | Vehicle manufacturer | `Make name` |
| `model` | Vehicle model | `Model name` |
| `trim` | Trim or configuration | `2.5i AWD` |
| `bodyType` | Body style | `SUV / Crossover` |
| `price` | Advertised vehicle price before disclosed fees | `16824` |
| `priceString` | Formatted advertised price | `$16,824` |
| `pricePlusFees` | Price including disclosed dealer fees | `16999` |
| `msrp` | Suggested retail price, if published | `null` |
| `expectedPrice` | Marketplace estimate of fair price | `17811` |
| `dealScore` | Numeric deal score supplied by the source | `1.42` |
| `dealRating` | Source deal label | `GOOD_PRICE` |
| `mileage` | Numeric odometer reading | `70435` |
| `mileageString` | Formatted odometer reading | `70,435` |
| `mileageUnit` | Odometer unit | `MILES` |
| `condition` | New or used status | `USED` |
| `isNew` | Whether the vehicle is new | `false` |
| `isCertified` | Certified pre-owned flag from search | `false` |
| `vin` | Vehicle identification number | `17-character code` |
| `stockNumber` | Dealer inventory reference | `HU4079` |
| `transmission` | Transmission description | `Automatic` |
| `drivetrain` | Drive configuration | `All-Wheel Drive` |
| `engine` | Engine description | `182 hp 2.5L H4` |
| `fuelType` | Fuel category | `Gasoline` |
| `exteriorColor` | Exterior paint description | `Gray` |
| `interiorColor` | Interior color | `Black` |
| `doors` | Formatted door count | `4 doors` |
| `postalCode` | Vehicle or seller postal code | `11209` |
| `distance` | Distance from the search location | `9.25` |
| `savedCount` | Number of shoppers who saved the listing | `1` |
| `daysOnMarket` | Days listed on the marketplace | `19` |
| `dealerName` | Public seller display name | `Dealer name` |
| `dealerType` | Seller category | `DEALER` |
| `dealerPhone` | Public seller phone | `Public phone` |
| `dealerLocation` | Seller city and region | `Brooklyn, NY` |
| `dealerWebsite` | Seller website when available | `https://dealer.example` |
| `dealerRating` | Published seller rating when available | `null` |
| `dealerReviewCount` | Published seller review count | `6` |
| `dealerId` | Seller service provider identifier | `384768` |
| `imageCount` | Count of listing photos | `49` |
| `mainImage` | Primary vehicle photo URL | `https://...jpeg` |
| `images` | Available full-size photo URLs | `[...]` |
| `features` | Advertised equipment and options | `["Backup Camera"]` |
| `description` | Seller's vehicle description | `Dealer description` |
| `accidentCount` | Reported accidents when available | `0` |
| `ownerCount` | Reported prior owners when available | `1` |
| `listingUrl` | Vehicle page URL | `https://www.cargurus.com/details/458325747` |
| `detailApiUrl` | Public JSON detail URL | `https://www.cargurus.com/Cars/detailListingJson.action?...` |
| `sourceUrl` | Search URL that produced the row | `https://www.cargurus.com/search?...` |
| `scrapedAt` | UTC extraction timestamp | `2026-09-27T04:32:04+00:00` |

The `images` array contains the image URLs returned by the public listing detail record, with duplicates removed. It is useful for reviewing merchandising quality or identifying listings with few photos. `mainImage` is the first available image. When detail enrichment is unavailable, the search result can still provide the main photo and its reported `imageCount`; in that case `images` can contain only that main photo. `imageCount` can therefore exceed the length of `images`.

### How to scrape CarGurus

1. Choose a marketplace and search location, or apply filters on the site and copy its `/search` URL. A pasted URL is the most direct way to preserve make, model, price, and other filters.
2. Enter one or more URLs in `startUrls`, or leave that field empty and enter `searchCountry` and `zip`. Choose radius and sort options if using the form fields.
3. Set `maxItems` to the desired overall number of vehicles. Set `maxPages` if you want a page limit for each search. The default item cap is 100; `0` removes that cap.
4. Start the actor. Rows appear in the default dataset as the actor works through search pages and vehicle details.
5. Open the dataset to inspect the table or download JSON, CSV, or Excel. Each item includes its source search URL and direct listing URL for follow-up checks.

A search URL must use the `/search` path on the supported US, Canadian, or UK domain. A vehicle detail URL is not a search input: the actor discovers detail URLs from search results. If you have several filtered searches, provide several URLs. Duplicate listing IDs are emitted once across the run.

### Input

| Parameter | Type | Default | Description |
| --- | --- | --- | --- |
| `startUrls` | Array of URLs | Empty | Search URLs; when present, location and sort fields below are ignored. |
| `searchCountry` | String | `US` | `US`, `CA`, or `UK` for a search built from fields. |
| `zip` | String | Empty | ZIP or postal code required when no URL is supplied. |
| `distance` | Integer | `50` | Search radius in local units. |
| `sortType` | String | `BEST_MATCH` | Result ordering: best match, deal score, price, mileage, year, distance, or listing date. |
| `sortDirection` | String | `ASC` | Ascending or descending sort direction. |
| `makeModelTrimPaths` | String | Empty | Optional make, model, or trim path copied from a filtered URL. |
| `maxPages` | Integer | `0` | Maximum search pages per URL; `0` follows pages until exhausted or another limit applies. |
| `maxItems` | Integer | `100` | Maximum dataset rows across all searches; `0` removes the item cap. |
| `proxyConfiguration` | Object | Enabled | Proxy settings for the public search and detail requests. |

For a straightforward location search, use:

```json
{
  "searchCountry": "US",
  "zip": "10001",
  "distance": 50,
  "sortType": "BEST_MATCH",
  "sortDirection": "ASC",
  "maxPages": 2,
  "maxItems": 36
}
```

To preserve a detailed browser search, use a URL instead:

```json
{
  "startUrls": [
    { "url": "https://www.cargurus.com/search?zip=10001&distance=50&sortType=BEST_MATCH" }
  ],
  "maxPages": 3,
  "maxItems": 60
}
```

When both input modes are populated, URLs take precedence. The actor keeps the filters embedded in each URL, removes stale pagination state, and requests the next page with the current query. `maxPages` applies separately to each URL; `maxItems` applies to the full run. This distinction matters when several regions or vehicle categories are included in one input.

### Output example

This shortened record is from a successful 36-item US run. Photo and feature arrays are trimmed for readability; the dataset row contained 49 image URLs and additional vehicle fields.

```json
{
  "country": "US",
  "listingId": 458325747,
  "year": 2020,
  "price": 16824,
  "pricePlusFees": 16999,
  "expectedPrice": 17811,
  "dealRating": "GOOD_PRICE",
  "mileage": 70435,
  "mileageUnit": "MILES",
  "condition": "USED",
  "isNew": false,
  "postalCode": "11209",
  "savedCount": 1,
  "daysOnMarket": 19,
  "dealerLocation": "Brooklyn, NY",
  "imageCount": 49,
  "features": ["Adaptive Cruise Control", "Alloy Wheels"],
  "accidentCount": 0,
  "ownerCount": 1,
  "listingUrl": "https://www.cargurus.com/details/458325747"
}
```

`price` and `pricePlusFees` are deliberately separate. A dealer can disclose fees in a way that changes the total payable amount without changing the base advertised vehicle price. Compare like with like when calculating market averages. `expectedPrice` is the source's estimate, not an appraisal or a guarantee. A deal rating is the site's classification at the time of extraction and can change as prices or nearby inventory change.

### Use with AI agents (MCP)

Add this actor to any MCP client (Claude, Cursor, VS Code, n8n...) with one URL:

`https://mcp.apify.com?tools=mlg14/cargurus-scraper`

An agent sends a small JSON input and gets back one flat record per item from the dataset. Keep results bounded with `maxItems` so a run finishes in under 3 minutes and costs little.

**Prompt 1:** "Get 30 used cars near New York City from CarGurus with price, mileage and dealer."

```json
{
  "searchCountry": "US",
  "zip": "10001",
  "distance": 50,
  "sortType": "BEST_MATCH",
  "maxItems": 30
}
```

**Prompt 2:** "Show the 20 cheapest cars within 50 miles of New York 10001 on CarGurus."

```json
{
  "searchCountry": "US",
  "zip": "10001",
  "distance": 50,
  "sortType": "PRICE",
  "sortDirection": "ASC",
  "maxItems": 20
}
```

**Prompt 3:** "Scrape the newest 25 CarGurus listings near London SW1A 1AA."

```json
{
  "searchCountry": "UK",
  "zip": "SW1A 1AA",
  "distance": 50,
  "sortType": "LISTING_DATE",
  "sortDirection": "DESC",
  "maxItems": 25
}
```

### Use cases

- **Dealer inventory monitoring:** Collect public competitor listings in a region, compare asking prices, and identify new or removed vehicles across scheduled runs.
- **Used-car price research:** Group rows by year, make, model, trim, mileage, and location to build comparable vehicle sets before reviewing price differences.
- **Merchandising checks:** Count photos, inspect advertised features, and flag listings with limited imagery or missing descriptions.
- **Regional market reports:** Run a consistent search around several postal codes and compare available inventory, typical mileage, and deal labels.
- **Vehicle-history screening:** Use the reported accident and owner counts as review signals, then verify any consequential decision against the original listing and its supporting report.
- **Seller directory maintenance:** Keep a list of public seller names, locations, phone numbers, and websites alongside the listings where they appeared.

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

The result charge is **$1.00 per 1,000 dataset items**, or $0.001 per delivered listing. The charge follows the number of rows produced, not the number requested. The actor's platform usage is included in this result price. A budget cap can stop output early, and `maxItems` controls the maximum rows a run attempts to produce.

| Delivered listings | Result charge |
| ---: | ---: |
| 100 | $0.10 |
| 1,000 | $1.00 |
| 5,000 | $5.00 |

For example, a two-page run that produces 36 distinct listings costs $0.036 in result charges. A larger set of 5,000 distinct listings costs $5.00. These examples assume the current $0.001 charge per result and do not imply that every requested listing will be available. Check the actor's current pricing panel before a large run, because displayed pricing is the authoritative source.

### Tips for best results

Use narrow searches for large projects. A broad nationwide or major-city query can show thousands of result pages and will take much longer than a targeted make, model, price range, or postal-code search. Several filtered URLs are easier to audit than one unbounded search, especially when you need to know which segment produced each row. `sourceUrl` remains attached to every listing for this reason.

Start with `maxItems` around 30–100 to verify that the filters and columns match your needs. Then raise the cap. If you need full image arrays, allow more time per item because each listing needs a detail request after the search page. If the detail response is unavailable, the actor retains the search tile and may leave descriptions, image arrays, seller website, or history fields incomplete.

For repeat monitoring, keep the input URL and settings stable. Compare datasets by `listingId` or VIN, not row position. Sorting and sponsored placement can move records between pages from one run to the next, while inventory can be added or removed during a run. A listing ID identifies a marketplace row; VIN helps recognize the same physical vehicle when a seller relists it.

### Limits

Public search results and listing details change while an actor is running. Page counts are estimates at request time, and a later page can contain duplicates or fewer listings than expected. The actor deduplicates by listing ID and stops when the returned page is empty, the reported last page is reached, `maxPages` is reached, or the item budget is filled. A two-page US run returned 24 search tiles per page and 36 output rows under its item cap; that is an observed result, not a guarantee for every query.

Some requests return HTTP 403 or 406, or a browser navigation can time out. The actor switches to a browser session when an ordinary JSON request does not return usable content. Detail failures are isolated to the affected listing so that available search fields can still be emitted. If a search page itself remains inaccessible, that URL may produce no further rows. Retry later or divide the search into narrower filters.

The US search and full detail flow passed the 36-item verification run. Canadian and UK search JSON routes were observed with listing tiles, but full detail enrichment for those markets was not verified in that run; requests to their detail endpoint returned HTTP 406 during discovery. Those markets can therefore yield fewer enriched fields. Vehicle data, dealer contact details, pricing, and photos are only as complete and current as the public source record. Seller ratings, suggested retail prices, and some history fields are often empty.

### Automated workflows

A scheduled run can collect the same filtered market daily and retain a dated dataset for trend analysis. A downstream process can ask for “used SUVs near this postal code under a given price, with mileage and listing links” or “all listings from these search URLs with more than ten photos and a published dealer website.” Use the structured input fields for simple searches and `startUrls` for more complex filters already selected on the site.

The result schema keeps values flat enough for filtering and tabular exports. Arrays are limited to `images` and `features`; applications that need one row per photo can expand `images` after export. The direct listing URL is included so that a person reviewing an automated report can check the current public page before acting on a price or availability signal.

### FAQ

**Is scraping these listings legal?** Work with public data only, follow the site's terms and applicable laws, and use dealer contact details responsibly. This actor does not access private accounts. Requirements vary by jurisdiction and use case, so assess your own purpose before collecting or redistributing data.

**Do I need to configure proxies?** The default input enables proxy routing. The actor starts with the lower-cost path and can use a browser session if a JSON request is challenged. Leave the proxy setting at its default unless you have a specific routing requirement.

**How fast is a run?** The verified 36-item run completed in under a minute on the platform. Time varies with the number of search pages, detail requests, marketplace response times, and any browser fallback. Broad searches and full photo collection take longer.

**Can I schedule a search and monitor changes?** Yes. Save the same input as a recurring task, then compare exported rows by listing ID or VIN. Use `scrapedAt` to distinguish observation time from model year or days on market.

**Can I export to a spreadsheet?** Yes. The dataset view supports JSON, CSV, and Excel downloads. Arrays such as photos remain nested in JSON and may be serialized as cell text in a spreadsheet export.

**Why is a field empty?** A source listing may omit it, or its detail record may not be accessible during that run. Search tiles still provide core price and vehicle fields. Check `detailApiUrl` and the live listing when a missing value matters.

**Can one run cover the US, Canada, and UK?** Supply a `/search` URL for each marketplace in `startUrls`. A filter-based search chooses one `searchCountry` at a time. Country-specific currency and distance units should be kept separate in analysis.

### Integrations

The default dataset can be read through the platform API or exported to a file. You can connect completed runs to webhooks, automation workflows, scheduling, or a spreadsheet import. Keep the source URL and listing ID when transferring records; they make later reconciliation easier. For a monitoring pipeline, store each run separately and compare current inventory with previous observations rather than assuming that a missing row always means a vehicle was sold.

### Support

Open an issue on the Issues tab; we reply within 24h and add fields on request.

# Actor input Schema

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

Optional CarGurus search URLs on the US, Canada or UK site. Example: https://www.cargurus.com/search?distance=50\&sortType=BEST_MATCH\&zip=10001. Leave empty to build the search from searchCountry and zip; when set, URLs replace those filters.

## `searchCountry` (type: `string`):

Marketplace used when no search URL is provided. Allowed values: US, CA, UK. Example: US. Use CA or UK together with a Canadian or British postal code in zip.

## `zip` (type: `string`):

Postal code that centres the filter-based search. Example: 10001 (US), M4B 1B4 (Canada) or SW1A 1AA (UK). Use a code matching searchCountry; ignored when startUrls is set.

## `distance` (type: `integer`):

Search radius around zip in local distance units (miles in the US and UK). Example: 50. Use a larger radius for rare models or a smaller one for local inventory.

## `sortType` (type: `string`):

Order of results. Allowed values: BEST_MATCH, DEAL_SCORE, PRICE, MILEAGE, YEAR, DISTANCE, LISTING_DATE. Example: PRICE. Use LISTING_DATE for fresh listings or DEAL_SCORE for bargains.

## `sortDirection` (type: `string`):

Direction of the sort. Allowed values: ASC (low to high) or DESC (high to low). Example: DESC with sortType YEAR for newest cars first. Use ASC for cheapest first.

## `makeModelTrimPaths` (type: `string`):

Optional make, model or trim path copied from a filtered CarGurus search URL. Example: m4 or m124,m124/d1751. Leave empty for all vehicles; use it to restrict results to one model.

## `maxPages` (type: `integer`):

Stop after this many result pages per search, e.g. 2. Set 0 for all available pages. Use 1 or 2 for quick tests and 0 for complete inventory pulls.

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

Stop after this many listings across all searches, e.g. 50. Set 0 for no item cap. Use a small value for tests to keep runs short and cheap.

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

Proxy settings for search and detail requests. Leave the default Apify proxy.

## Actor input object example

```json
{
  "searchCountry": "US",
  "zip": "10001",
  "distance": 50,
  "sortType": "BEST_MATCH",
  "sortDirection": "ASC",
  "maxPages": 0,
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

All vehicle listings in the default dataset.

# 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 = {
    "zip": "10001"
};

// Run the Actor and wait for it to finish
const run = await client.actor("mlg14/cargurus-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 = { "zip": "10001" }

# Run the Actor and wait for it to finish
run = client.actor("mlg14/cargurus-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 '{
  "zip": "10001"
}' |
apify call mlg14/cargurus-scraper --silent --output-dataset

```

## MCP server setup

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