# Autotrader UK Scraper - Vehicle Listings (`bovi/autotrader-scraper`) Actor

Scrape vehicle listings from Autotrader.co.uk search results: make, model, price, year, mileage, location, seller, images and listing URL. Paste a search URL, set a result limit and get clean structured data.

- **URL**: https://apify.com/bovi/autotrader-scraper.md
- **Developed by:** [Vitalii Bondarev](https://apify.com/bovi) (community)
- **Categories:** Automation, 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 $1.00 / 1,000 autotrader uk scraper - 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

## Autotrader UK Scraper

Collect vehicle adverts from [autotrader.co.uk](https://www.autotrader.co.uk) search result pages as clean,
structured data: make, model, price, year, mileage, location, seller and images. No API key and no login.

### What it collects

For every advert on a search result page:

- `advertId`, `title`, `subTitle`, `attentionGrabber`, `url`
- `price` (as shown, e.g. "£6,990") and `priceValue` (number, GBP)
- `make`, `model`, `vehicleCategory`, `year`, `registration`, `condition`, `brandNew`, `preRegistered`
- `mileage` (as shown) and `mileageValue` (miles)
- `location`, `distanceMiles` from the search postcode
- `sellerType`, `sellerId`, `sellerUrl`, `sellerRating` (dealer review score when the dealer has one)
- `priceIndicator`, `numberOfImages`, `images` (first photos), `searchPage`, `position`

Fields an advert does not have are left out of its record, never filled with placeholders.

Works with the search pages that Autotrader renders on the server, such as `motorhome-search`
(verified on motorhome search results). Search pages that Autotrader builds only in the browser, such as
`car-search`, return no rows and the run logs a warning.

### Input

- `startUrls` (array): autotrader.co.uk search URLs. The `page` parameter is incremented automatically until
  the last page or your limit. A search URL without a postcode gets the default postcode `E1 7DJ`.
- `maxResults` (integer, default 50): how many records to collect at most.
- `proxyConfiguration` (proxy editor): Apify RESIDENTIAL proxy by default, used from the first request.

```json
{
  "startUrls": [
    "https://www.autotrader.co.uk/motorhome-search?postcode=E1%207DJ&berth=2&include-delivery-option=on&advertising-location=at_motorhomes&page=1"
  ],
  "maxResults": 50
}
```

### Example output

```json
{
  "advertId": "202608205270338",
  "title": "Vauxhall Movano",
  "subTitle": "2.3 CDTi 3500 HEATER-SINK-DOUBLE BED-CRUISE-NAV",
  "url": "https://www.autotrader.co.uk/motorhome-details/202608205270338",
  "price": "£6,990",
  "priceValue": 6990,
  "make": "Vauxhall",
  "model": "Movano",
  "vehicleCategory": "motorhome",
  "year": 2016,
  "registration": "2016 (66 reg)",
  "mileage": "182,000 miles",
  "mileageValue": 182000,
  "condition": "used",
  "location": "Milton Keynes (54 miles)",
  "distanceMiles": 54,
  "sellerType": "TRADE",
  "sellerRating": 4.6,
  "numberOfImages": 77
}
```

### Price per result

You pay per result delivered to the dataset: the platform bills every dataset item itself, the actor code never
charges. The run stops by itself when your charge limit is reached.

### Free-plan preview

On a Free Apify plan a run is a capped preview: one start URL and the first result page. The run's status message
and the `OUTPUT` record say what was capped. No placeholder rows are ever added to the dataset. A paid plan
unlocks the full result.

# Actor input Schema

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

autotrader.co.uk search result URLs (for example a motorhome-search or van-search URL). The page parameter is incremented automatically. A search without a postcode gets the default postcode E1 7DJ.

## `maxResults` (type: `integer`):

Maximum number of vehicle records to collect.

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

Proxy settings. A residential proxy is used by default for reliable access.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.autotrader.co.uk/motorhome-search?postcode=E1%207DJ&berth=2&include-delivery-option=on&advertising-location=at_motorhomes&page=1"
  ],
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

Dataset with the collected records.

# 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": [
        "https://www.autotrader.co.uk/motorhome-search?postcode=E1%207DJ&berth=2&include-delivery-option=on&advertising-location=at_motorhomes&page=1"
    ],
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("bovi/autotrader-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": ["https://www.autotrader.co.uk/motorhome-search?postcode=E1%207DJ&berth=2&include-delivery-option=on&advertising-location=at_motorhomes&page=1"],
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("bovi/autotrader-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": [
    "https://www.autotrader.co.uk/motorhome-search?postcode=E1%207DJ&berth=2&include-delivery-option=on&advertising-location=at_motorhomes&page=1"
  ],
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call bovi/autotrader-scraper --silent --output-dataset

```

## MCP server setup

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