# Autotrader UK Scraper (`codingfrontend/autotradercouk-scraper`) Actor

Extract normalized public Autotrader UK vehicle listings without authentication or source-access bypassing.

- **URL**: https://apify.com/codingfrontend/autotradercouk-scraper.md
- **Developed by:** [Coding Frontned](https://apify.com/codingfrontend) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 does the Autotrader UK Scraper do?

The **Autotrader UK Scraper** collects public car and vehicle listing details from [Autotrader UK](https://www.autotrader.co.uk/). It turns information present on search and listing pages into consistent vehicle records, including listing links, prices, specifications, seller details, descriptions, and image links when available.

Use it to compare public listings, review prices and specifications across searches, or create a structured dataset for your own research. No Autotrader account is required. The Actor does not use a private API or try to bypass access controls.

### How to run the Actor

1. Open the **Input** tab. Enter search keywords, or add one or more public Autotrader UK URLs.
2. Choose how many vehicle records to save and whether to fetch listing detail pages.
3. Select **Start**. When the run finishes, open **Vehicle results** to browse or export records. Open **Output summary** for the run status and saved-record count.

If you provide `startUrls`, the Actor processes those URLs and ignores `query`. If you leave `startUrls` empty, it builds a public UK car page from the make and optional model in `query`, such as `Ford Fiesta`. The default `used cars` opens the UK car page. The Actor removes repeated start URLs and deduplicates vehicles by listing identifier, including links with different query parameters. It does not automatically move through additional result pages; add each public page you want to collect to `startUrls`.

### Input

Every field is optional. If you leave both search options empty, the Actor uses the default query, `used cars`. `startUrls` accepts public HTTPS URLs on `autotrader.co.uk` or `www.autotrader.co.uk`.

#### Search settings

| Field | Type | Required? | Default | What it does |
| --- | --- | --- | --- | --- |
| `query` | Text, up to 160 characters | Optional | `used cars` | Vehicle make and optional model, such as `Ford Fiesta` or `Land Rover Discovery`, used when `startUrls` is empty. This does not translate free-text filters such as fuel type, price, or vehicle channel. |
| `startUrls` | Array of text URLs, up to 50 | Optional | `[]` | Search or vehicle-detail URLs to process. When provided, these take precedence over `query`. Exact duplicate URLs are removed. |

#### Result limits and information to include

| Field | Type | Required? | Default | What it does |
| --- | --- | --- | --- | --- |
| `maxItems` | Integer, 1–500 | Optional | `50` | Maximum number of valid vehicle records to save. Reaching this limit is normal completion. |
| `enrichDetails` | Boolean | Optional | `true` | Fetch matching listing detail pages for seller names, descriptions, colour, and more precise vehicle specifications when available. If a detail request fails, retain the base listing and mark saved results as partial. |
| `maxDetailItems` | Integer, 0–50 | Optional | `50` | Maximum number of vehicle detail pages to fetch. Set to `0` to skip detail-page requests. |

#### Advanced settings (Developer Options)

| Field | Type | Required? | Default | What it does |
| --- | --- | --- | --- | --- |
| `requestTimeoutSecs` | Integer, 5–180 seconds | Optional | `45` | Time limit for each public page request. |
| `requestDelayMillis` | Integer, 0–10,000 milliseconds | Optional | `700` | Minimum delay between requests. |
| `maxRetries` | Integer, 1–3 | Optional | `1` | Additional attempts for temporary network or HTTP errors. Access challenges are not retried or bypassed. |

#### Copyable input examples

A keyword search with a small result limit:

```json
{
  "query": "Ford Fiesta",
  "maxItems": 10
}
```

Search several Autotrader pages and let the Actor remove duplicate URLs and listings:

```json
{
  "startUrls": [
    "https://www.autotrader.co.uk/cars/uk/ford/fiesta",
    "https://www.autotrader.co.uk/cars/uk/ford/focus",
    "https://www.autotrader.co.uk/cars/uk/ford/fiesta"
  ],
  "maxItems": 30,
  "maxDetailItems": 15
}
```

Collect listing-page information without fetching detail pages:

```json
{
  "query": "BMW",
  "maxItems": 20,
  "enrichDetails": false,
  "maxDetailItems": 0
}
```

Adjust request limits for a longer run:

```json
{
  "query": "Ford Focus",
  "maxItems": 50,
  "requestTimeoutSecs": 60,
  "requestDelayMillis": 1000,
  "maxRetries": 2
}
```

### Output

Each dataset row represents a vehicle listing. The example below is **illustrative** and is not a verified live listing. This Actor returns flat business fields; `imageUrls` is an array of URL strings. Optional fields that are not present in a public page are left out of real records. Public make/model pages can provide prices, mileage, specifications, condition, location, and images. Detail pages can add seller names, descriptions, colour, and exact engine displacement. A public page may show only a small selection of listings, so fewer than `maxItems` may be saved. A VIN is included only when the source publishes it.

```json
{
  "listingId": "100000000000001",
  "title": "2021 Ford Focus Titanium 1.5 EcoBlue",
  "url": "https://www.autotrader.co.uk/car-details/100000000000001",
  "price": 18995,
  "currency": "GBP",
  "make": "Ford",
  "model": "Focus",
  "year": 2021,
  "mileage": 32500,
  "mileageUnit": "miles",
  "fuelType": "Diesel",
  "transmission": "Manual",
  "bodyType": "Hatchback",
  "engineSizeCc": 1498,
  "doors": 5,
  "seats": 5,
  "colour": "Magnetic Grey",
  "condition": "Used",
  "category": "Car",
  "sellerName": "Example Cars Leeds",
  "location": "Leeds",
  "description": "Illustrative public listing description.",
  "imageUrls": [
    "https://m.atcdn.co.uk/a/media/w800/example-front.jpg",
    "https://m.atcdn.co.uk/a/media/w800/example-interior.jpg"
  ],
  "vin": "WF0EXAMPLE1234567",
  "searchUrl": "https://www.autotrader.co.uk/cars/uk/ford/focus"
}
```

#### Output fields

| Field | Type | Required? | Meaning |
| --- | --- | --- | --- |
| `listingId` | Text | Optional | Listing identifier when available. |
| `title` | Text | Required | Vehicle title shown on the listing. |
| `url` | URL | Required | Public vehicle listing page. |
| `price` | Number | Optional | Asking price when available. |
| `currency` | Text | Optional | Currency for the asking price. |
| `make` | Text | Optional | Vehicle make. |
| `model` | Text | Optional | Vehicle model. |
| `year` | Integer | Optional | Model or registration year. |
| `mileage` | Number | Optional | Odometer reading. |
| `mileageUnit` | Text | Optional | Unit for the odometer reading, such as miles. |
| `fuelType` | Text | Optional | Listed fuel type. |
| `transmission` | Text | Optional | Listed transmission. |
| `bodyType` | Text | Optional | Body style or vehicle configuration. |
| `engineSizeCc` | Number | Optional | Engine displacement in cubic centimetres. Uses the source's exact displacement when available on the detail page; otherwise converts its displayed litres, which may be rounded. |
| `doors` | Integer | Optional | Number of doors. |
| `seats` | Integer | Optional | Seating capacity. |
| `colour` | Text | Optional | Listed exterior colour. |
| `condition` | Text | Optional | Listed vehicle condition. |
| `category` | Text | Optional | Vehicle category or type. |
| `sellerName` | Text | Optional | Public seller or dealer name. |
| `location` | Text | Optional | Public seller or listing location. |
| `description` | Text | Optional | Public vehicle description. |
| `imageUrls` | Array of URLs | Optional | Public listing image links. |
| `vin` | Text | Optional | Vehicle identification number when shown publicly. |
| `searchUrl` | URL | Optional | Autotrader page from which the listing was collected. |

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

### Run status and output summary

The Actor marks a run **SUCCEEDED** when at least one valid vehicle record was saved. If a later request or dataset write fails after records were saved, the run still succeeds with limited results and `isPartial` is `true`. Reaching `maxItems` is normal completion. A run with no real vehicle records, including an empty or blocked run, is **FAILED**. Diagnostic, fixture, and placeholder rows are never added to the dataset.

The **Output summary** link opens the `OUTPUT_SUMMARY` record in the run's default **Key-value store**. This record is separate from the vehicle dataset and contains exactly:

| Field | Type | Required? | Meaning |
| --- | --- | --- | --- |
| `status` | Text | Required | `SUCCEEDED` when records were saved; otherwise `FAILED`. |
| `itemsStored` | Nonnegative integer | Required | Number of valid vehicle records whose dataset writes completed. |
| `isPartial` | Boolean | Required | `true` when a failure limited a run that still saved records. |

Illustrative successful run summary:

```json
{
  "status": "SUCCEEDED",
  "itemsStored": 25,
  "isPartial": false
}
```

### Tips, access, and cost

Start with one URL and a small `maxItems` value. Set `enrichDetails` to `false` when you only need information found on search pages. Use make/model names in `query`, or copy public listing URLs into `startUrls`. This Actor does not paginate automatically or apply separate filters or sorting. A URL's `page` parameter does not guarantee different records; some public pages show a fixed selection. Pages that only load their listings after browser interaction may return no records.

The Actor requests public pages over HTTP and uses an existing environment HTTP/HTTPS proxy when configured. It does not enable paid Apify Proxy services. Autotrader may return a browser-verification or access-control page, in which case collection stops and the run log contains the failure details. The Actor does not log in, use a private Autotrader API, or bypass access challenges. Follow Autotrader's terms and applicable privacy requirements; public page content and available fields can change.

There is no fixed price stated here. A run's cost depends on your Apify plan and the time and storage used. Keep result and detail-page limits bounded, and check your account's current plan and usage in Apify Console.

For questions or feedback, use the repository's **Issues** tab. The output contains only fields found and accepted from public vehicle listings; the illustrative values above are documentation examples, not verified live extraction results.

# Actor input Schema

## `query` (type: `string`):

Search terms used when startUrls is empty.

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

Public HTTPS Autotrader UK search or vehicle-detail URLs. When supplied, these URLs take precedence over query.

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

Maximum number of valid vehicle records to save.

## `enrichDetails` (type: `boolean`):

Fetch listing detail pages for additional public vehicle fields when available.

## `maxDetailItems` (type: `integer`):

Maximum number of vehicle detail pages to fetch in one run.

## `requestTimeoutSecs` (type: `integer`):

Maximum time allowed for each public page request.

## `requestDelayMillis` (type: `integer`):

Minimum delay between public requests.

## `maxRetries` (type: `integer`):

Additional attempts for temporary network or HTTP errors; public access challenges are not bypassed.

## Actor input object example

```json
{
  "query": "used cars",
  "startUrls": [],
  "maxItems": 50,
  "enrichDetails": true,
  "maxDetailItems": 50,
  "requestTimeoutSecs": 45,
  "requestDelayMillis": 700,
  "maxRetries": 1
}
```

# Actor output Schema

## `dataset` (type: `string`):

Public vehicle listing records.

## `runSummary` (type: `string`):

Run status and saved-record count in the default key-value store.

# 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 = {};

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

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

```

## MCP server setup

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