# Carsales Listing Scraper (`seemuapps/carsales-scraper`) Actor

Scrape full car listing details from carsales.com.au — price, specs, features, images, and seller info.

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

## Pricing

$2.00 / 1,000 listing scrapeds

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Carsales Car Listings Scraper

Extract every car listing from any carsales.com.au search — new, used and demo vehicles across Australia — with price, odometer, engine, transmission, seller type and photos, exported to JSON, CSV, Excel or Google Sheets. Follows every results page and automatically works around the site's 440-listing search cap.

### What you get

For every listing in the search results:

- Ad ID, listing URL, title (year make model) and variant
- Year, make, model and condition (new / used / demo)
- Price, price type (drive away or excluding government charges), price excluding government charges, and the carsales price badge (great / good / fair price)
- Body type, transmission, engine, fuel type and odometer in km
- Seller type (private, dealer used, dealer new / demo), seller ID and state
- Whether the listing is a promoted "top spot" result
- Badges such as "Pay through carsales" or "ID verified"
- Photo count and image URLs
- The search URL the listing was found under, its sort order, the total result count for that search, and the scrape timestamp

### Use cases

- Used car market research and price tracking by make, model, state or year
- Dealer stock monitoring and competitor analysis
- Vehicle valuation datasets and price-guide benchmarking
- Lead generation for automotive finance, insurance and inspection services
- Alerts for newly listed cars matching a saved search (schedule the actor and diff on `adId`)

### How to use

1. Open carsales.com.au, run a search with the filters you want and copy the URL — for example `https://www.carsales.com.au/cars/used/toyota/hilux/` or `https://www.carsales.com.au/cars/used/tesla/model-3/victoria-state/`. Both the clean path-style URLs and the longer `?q=(And.Condition.Used...)` filter URLs are accepted.
2. Paste one or more URLs into **Search URLs**.
3. Set **Max Items** (0 for everything) and run. Results appear in the **Dataset** tab.

**Large searches.** carsales serves at most 20 pages (about 440 listings) for any single search. With **Deep collection** on (the default), searches larger than that are split automatically into carsales' own price bands, and then model years if a band is still too big, so a 5,000-listing search comes back complete. Every sub-search is deduplicated by ad ID.

**Proxy.** Apify residential proxy (country AU) is the default and recommended setting. carsales limits each IP to a handful of requests per minute, so a rotating pool is what keeps large runs flowing.

Individual listing detail pages are not supported — this actor works from search results, which already carry the fields listed above.

### Output format

```json
{
  "adId": "OAG-AD-26117498",
  "listingId": "26a34b8d-ff4a-4278-8a58-96f142f03ded",
  "url": "https://www.carsales.com.au/cars/details/2021-toyota-rav4-gxl-auto-2wd/OAG-AD-26117498/",
  "title": "2021 Toyota RAV4",
  "variant": "GXL Auto 2WD",
  "year": 2021,
  "make": "Toyota",
  "model": "RAV4",
  "condition": "Used",
  "price": 33990,
  "priceType": "Excl. Govt. Charges",
  "priceExclGovtCharges": 33990,
  "priceBadge": "GOOD PRICE",
  "bodyType": "SUV",
  "transmission": "Automatic",
  "engine": "4cyl 2.5L Hybrid",
  "fuelType": "Hybrid",
  "odometerKm": 91982,
  "sellerType": "Dealer used",
  "sellerId": "AGC-SELLER-62604",
  "state": "NSW",
  "isPromoted": true,
  "badges": [],
  "imageCount": 23,
  "images": ["https://carsales.pxcrush.net/carsales/car/dealer/....jpg"],
  "searchUrl": "https://www.carsales.com.au/cars/used/toyota/",
  "sortBy": "Featured",
  "totalResultsForSearch": 22992,
  "scrapedAt": "2026-09-03T02:11:24.000Z"
}
```

# Actor input Schema

## `searchUrls` (type: `array`):

One or more carsales.com.au search result URLs copied from your browser, e.g. https://www.carsales.com.au/cars/used/toyota/hilux/ or https://www.carsales.com.au/cars/used/tesla/model-3/victoria-state/. Filters in the URL (make, model, state, price, year, body style, fuel, transmission, sort) are all honoured. Individual listing pages are not supported.

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

Maximum number of unique listings to save across all search URLs. Set 0 for no limit.

## `deepCollection` (type: `boolean`):

carsales only serves the first 20 pages (about 440 listings) of any search. When a search is larger, automatically split it into price bands, then model years, and merge the results so you get the whole set.

## `maxPagesPerSearch` (type: `integer`):

How many result pages (about 22 listings each) to read for each search or sub-search. The site serves at most 20.

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

Apify residential proxy with country AU is recommended. carsales blocks an IP after roughly 10 rapid requests, so a rotating proxy pool is what keeps large runs flowing.

## Actor input object example

```json
{
  "searchUrls": [
    "https://www.carsales.com.au/cars/used/toyota/hilux/"
  ],
  "maxItems": 500,
  "deepCollection": true,
  "maxPagesPerSearch": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "AU"
  }
}
```

# Actor output Schema

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

Fields: adId, url, title, variant, year, make, model, condition, price, priceType, priceExclGovtCharges, priceBadge, bodyType, transmission, engine, fuelType, odometerKm, sellerType, state, isPromoted, badges, imageCount, images, searchUrl, sortBy, totalResultsForSearch, scrapedAt.

# 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 = {
    "searchUrls": [
        "https://www.carsales.com.au/cars/used/toyota/hilux/"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "AU"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("seemuapps/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 = {
    "searchUrls": ["https://www.carsales.com.au/cars/used/toyota/hilux/"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "AU",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("seemuapps/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 '{
  "searchUrls": [
    "https://www.carsales.com.au/cars/used/toyota/hilux/"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "AU"
  }
}' |
apify call seemuapps/carsales-scraper --silent --output-dataset

```

## MCP server setup

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