# Carsales Scraper (`piotrv1001/carsales-scraper`) Actor

The Carsales Scraper extracts vehicle listings from carsales.com.au beyond the pages the site shows, capturing prices, odometer, year, specs, seller type, photos and optional full descriptions and specifications — ideal for car market research, price benchmarking and dealer stock analysis.

- **URL**: https://apify.com/piotrv1001/carsales-scraper.md
- **Developed by:** [FalconScrape](https://apify.com/piotrv1001) (community)
- **Categories:** E-commerce, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 vehicle listings

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

### 🚀 Carsales Scraper

Extract car listings from **carsales.com.au**, Australia's largest vehicle marketplace. The **Carsales Scraper** turns any search on the site into structured data — prices, odometer readings, specs, sellers and photos — for market research, price benchmarking, dealer stock analysis and lead lists.

### ✨ Features

- 🚗 **Complete Listing Data**: Title, make, model, badge, year, price, odometer, body type, engine, transmission, state, seller type and ID, photos and URL.
- 📈 **Goes Past the Pages the Site Shows**: Carsales only lets a visitor page through a few hundred results of a search. This scraper keeps going, so a search with 800 or 5,000 matching vehicles returns all of them, not the first slice.
- ✅ **Tells You What It Collected**: Every run logs how many vehicles match the search and how many were collected, so you know whether an export is complete instead of guessing.
- 💲 **Honest Prices**: The displayed price, its basis (drive away, excluding government charges…) and the price excluding government charges are kept as separate fields, so you never compare unlike prices. Vehicles listed without a price are included too.
- 🏷️ **Carsales Price Indicator**: The site's own "Great price" / "Fair price" badge, when shown.
- 🔎 **Optional Full Details**: Seller's description, 70+ specifications, feature list, colour, fuel type, drive type, suburb and postcode.
- 🔗 **Any Filter, Any URL**: Filter on the site by make, model, price, state, body type, fuel or keyword and paste the address. Single vehicle pages work too.

### 🛠️ How It Works

1. **Search on carsales.com.au** – Apply the filters you want and copy the URL from your browser.
2. **Paste the URL** – Add one or more search URLs or vehicle page URLs and set the maximum number of results.
3. **Run the Scraper** – Vehicles are saved cheapest first and can be downloaded as JSON, CSV or Excel, or pulled through the API.

### ⚙️ Input

| Field                           | What it does                                                                                                                                                                          |
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Carsales URLs**               | Search pages (`https://www.carsales.com.au/cars/toyota/yaris/`, `https://www.carsales.com.au/cars/suv-bodystyle/victoria-state/under-30000/`) or vehicle pages (`/cars/details/...`). |
| **Max results**                 | Maximum number of vehicles to save across all URLs. Default 50.                                                                                                                       |
| **Scrape full vehicle details** | Opens every vehicle and adds the description, specifications, features, colour, fuel type, suburb and postcode. Off by default.                                                       |
| **Proxy configuration**         | The default works for most runs.                                                                                                                                                      |

```json
{
    "startUrls": [{ "url": "https://www.carsales.com.au/cars/toyota/yaris/" }],
    "maxItems": 500,
    "scrapeDetails": false
}
```

### 💰 Pricing

Pay only for the vehicles you get — no start fee, no monthly rental.

| Event               | Price                                 | What you get                                                                                                                                               |
| ------------------- | ------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Vehicle listing** | $0.001 per vehicle ($1.00 per 1,000)  | Title, make, model, badge, year, price and price basis, price indicator, odometer, body type, engine, transmission, state, seller type and ID, photos, URL |
| **Vehicle detail**  | $0.0025 per vehicle ($2.50 per 1,000) | Everything above plus description, specifications, features, colour, fuel type, suburb, postcode. Charged *instead of* the listing price.                  |

Examples: 50 listings = $0.05 · every Toyota Yaris in Australia (~500 vehicles) = $0.50 · the same export with full details = $1.25.

### 📊 Sample Output Data

A vehicle listing:

```json
{
    "id": "SSE-AD-20779970",
    "url": "https://www.carsales.com.au/cars/details/2010-toyota-yaris-yr-manual-my10/SSE-AD-20779970/",
    "title": "2010 Toyota Yaris YR Manual F MY10",
    "make": "Toyota",
    "model": "Yaris",
    "badge": "YR Manual F MY10",
    "year": 2010,
    "condition": "Used",
    "price": 4300,
    "currency": "AUD",
    "priceLabel": "Excl. Govt. Charges",
    "priceExcludingGovtCharges": null,
    "priceIndicator": null,
    "odometerKm": 278000,
    "bodyType": "Hatch",
    "engine": "4cyl 1.3L Petrol",
    "transmission": "Manual",
    "state": "NSW",
    "sellerType": "Private",
    "sellerId": "SSE-SELLER-20779970",
    "listingType": "Private",
    "photoCount": 15,
    "images": [
        "https://carsales.pxcrush.net/carsales/cars/private/4h7jbdk2u3e1888oaepdxv9it.jpg",
        "https://carsales.pxcrush.net/carsales/cars/private/1xu19yslddlrqutmi0xn6pzrc.jpg"
    ],
    "scrapedAt": "2026-09-20T13:29:34.236Z"
}
```

With **Scrape full vehicle details** on, each vehicle also gets:

```json
{
    "priceType": "egc",
    "fuelType": "Petrol - Unleaded ULP",
    "driveType": "FWD",
    "engineCc": 1490,
    "doors": 5,
    "seats": 5,
    "colour": "Azure Grey",
    "variant": "RS415 Hatchback 5dr Auto 4sp 1.5i",
    "suburb": "Belmont",
    "region": "Geelong Districts",
    "postcode": "3216",
    "saleStatus": "For Sale",
    "description": "Looking to sell as we have purchased a new car. 2 previous owners. Car has recently been serviced...",
    "features": ["Inputs: MP3 decoder", "Airbags: Driver", "Airbags: Passenger", "Seatbelts: Lap/sash for 5 seats"],
    "specifications": {
        "ANCAP Rating": "4",
        "Engine Size (cc)": "1490cc",
        "Cylinders": "4",
        "Fuel Capacity": "43L"
    }
}
```

### ℹ️ Good to Know

- **Order**: vehicles come cheapest first, followed by vehicles listed without a price. Very large searches are collected in several price ranges at once, so their order is cheapest first within each range.
- **Completeness**: the run log ends with `collected X of Y matching vehicles`. The site's counter moves while a run is in progress as cars are listed and sold, so a difference of a few vehicles on a large search is normal. When many brand-new cars share the exact same price, year and state, some of them cannot be told apart by any filter; the log says how many and suggests narrowing the search.
- **Prices**: `price` is the amount displayed on the listing and `priceLabel` says what it includes. Dealer drive-away prices also carry `priceExcludingGovtCharges`. Compare like with like.
- **Sellers**: `sellerId` is stable and lets you group a dealer's stock. Carsales shows dealer names, addresses and phone numbers only to signed-in members, so they are not part of the output.
- **Photos**: listings carry the first few photos and `photoCount` tells you how many the ad has.
- **Suggested vehicles**: when a narrow search has few matches, carsales pads the page with vehicles outside your filters. These are left out.

Get the Australian car market into your spreadsheet with **Carsales Scraper** today! 🚀

# Actor input Schema

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

Search pages or single vehicle pages from carsales.com.au. Run a search on the site with any filters (make, model, price, state, body type…) and paste the address, e.g. `https://www.carsales.com.au/cars/toyota/yaris/` or `https://www.carsales.com.au/cars/suv-bodystyle/victoria-state/under-30000/`. Vehicle pages (`https://www.carsales.com.au/cars/details/...`) always return full details.

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

Maximum number of vehicles to save across all URLs. Vehicles come cheapest first. Set it as high as the search is large: the scraper keeps going past the pages the site itself will show.

## `scrapeDetails` (type: `boolean`):

Open every vehicle and add the seller's description, full specifications, feature list, colour, fuel type, suburb, postcode, publish date and all photos. Charged as a vehicle detail instead of a vehicle listing.

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

Proxy used to reach the site. The default works for most runs.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.carsales.com.au/cars/toyota/yaris/"
    }
  ],
  "maxItems": 50,
  "scrapeDetails": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

# 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": [
        {
            "url": "https://www.carsales.com.au/cars/toyota/yaris/"
        }
    ],
    "maxItems": 50,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("piotrv1001/carsales-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": [{ "url": "https://www.carsales.com.au/cars/toyota/yaris/" }],
    "maxItems": 50,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("piotrv1001/carsales-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": [
    {
      "url": "https://www.carsales.com.au/cars/toyota/yaris/"
    }
  ],
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call piotrv1001/carsales-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,piotrv1001/carsales-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/cJ9UoV5Th8TFnOLP6/builds/6QUZUhVHsy4kiWJ6A/openapi.json
