# Autotrader UK Scraper — Car Listings, Prices & Dealers (`khadinakbar/autotrader-uk-scraper`) Actor

Scrape used & new car listings from autotrader.co.uk with full spec, dealer contact, history check, and price indicator. MCP/API-ready.

- **URL**: https://apify.com/khadinakbar/autotrader-uk-scraper.md
- **Developed by:** [Khadin Akbar](https://apify.com/khadinakbar) (community)
- **Categories:** E-commerce, Lead generation, MCP servers
- **Stats:** 4 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.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/platform/actors/running/actors-in-store#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

## Autotrader UK Scraper

**Scrape used and new car listings from [autotrader.co.uk](https://www.autotrader.co.uk)** — the UK's largest car marketplace — by make, model, postcode, price, year, mileage, fuel, and more. Returns **structured car data** with full specification, **dealer contact (name, phone, email)**, the Autotrader **price indicator**, basic **history check**, and location coordinates. Search by criteria or paste any Autotrader search/listing URL. Run it on the **Apify platform** for API access, scheduling, integrations, residential proxy rotation, and monitoring.

This Actor is **MCP-ready** — AI agents (Claude, ChatGPT, Gemini) can call it directly to pull live UK car-market data.

### What does Autotrader UK Scraper do?

Give it a make and model (or a pasted Autotrader URL) and it collects every matching car listing into a clean dataset. Each record includes the price and Autotrader's price rating (GREAT/GOOD/FAIR/HIGH), the year, mileage, fuel type, gearbox, engine, body style, colour, seller type, the selling dealer's name, **phone number and email**, the dealer's review rating, photos, and a basic vehicle history check (stolen / scrapped / written-off / imported / exported). Download it as JSON, CSV, Excel, or HTML.

### Why use Autotrader UK Scraper?

- **Dealers & traders** — monitor competitor pricing, stock levels, and how cars are priced against the market (the price indicator) by make/model/region.
- **Car flippers & arbitrage** — find under-priced stock (`priceIndicator = GREAT/GOOD`) within a radius, sorted by price.
- **Market analysts & pricing tools** — build UK used-car price datasets across models, years, and mileage bands.
- **Lead generation** — extract dealer contact details for outreach (public listing contact info).
- **AI agents** — a single tool call returns live, structured UK car data.

### How to use Autotrader UK Scraper

1. Open the Actor and set **Make** (e.g. `BMW`) and **Model** (e.g. `3 Series`), or paste full Autotrader URLs into **Autotrader URLs**.
2. Set a **Postcode** (search origin) and optional filters — price, year, mileage, fuel, transmission, body type, keywords.
3. Choose **Max results** and whether to **Scrape full details** (dealer contact + spec + history). Pick a **Sort order**.
4. Click **Start**. Download the results from the **Output** tab in JSON, CSV, Excel, or HTML.

### Input

| Field | Description |
|-------|-------------|
| `make` / `model` | Manufacturer and model to search (e.g. BMW / 3 Series). |
| `postcode` | UK postcode used as the search origin (default `M1 1AD`). |
| `radius` | Distance in miles from the postcode (optional). |
| `searchUrls` | Paste `/car-search` result pages or `/car-details/` listing pages directly. |
| `enrichDetails` | Visit each listing for full spec, dealer contact, and history (default `true`). |
| `maxResults` | Maximum listings to return (default `100`). |
| `sortBy` | relevance, price, year, mileage, or distance ordering. |
| `priceFrom` / `priceTo` | Price range in GBP. |
| `yearFrom` / `yearTo` | Manufacture-year range. |
| `maxMileage` | Maximum odometer reading. |
| `fuelType` / `transmission` / `bodyType` | Vehicle filters. |
| `keywords` | Free-text advert keyword filter (e.g. "M Sport"). |

### Output

Each dataset item is one car listing. Example (simplified):

```json
{
  "advertId": "202606233554622",
  "url": "https://www.autotrader.co.uk/car-details/202606233554622",
  "title": "BMW 3 Series",
  "derivative": "2.0 320i M Sport Touring Auto Euro 4 5dr",
  "make": "BMW",
  "model": "3 Series",
  "year": 2006,
  "price": 1500,
  "priceIndicator": "GOOD",
  "mileage": 85000,
  "fuelType": "Petrol",
  "transmission": "Automatic",
  "bodyType": "Estate",
  "engineSize": "2.0L",
  "colour": "Silver",
  "sellerType": "TRADE",
  "dealerName": "Trent Motor Shop",
  "dealerPhone": "(07457) 401071",
  "dealerEmail": "sales@example.co.uk",
  "dealerPostcode": "DE14 2QW",
  "latitude": 52.8162,
  "longitude": -1.6369,
  "vehicleCheckStatus": "PASSED",
  "imageCount": 12,
  "enriched": true
}
```

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

#### Data fields

| Field | Description |
|-------|-------------|
| `advertId`, `url` | Listing identifier and detail-page URL |
| `title`, `derivative` | Car name and trim line |
| `make`, `model`, `year`, `registration` | Core vehicle identity |
| `price`, `priceLabel`, `monthlyPrice`, `rrp` | Pricing |
| `priceIndicator` | Autotrader market rating (GREAT/GOOD/FAIR/HIGH/NOANALYSIS) |
| `mileage`, `fuelType`, `transmission`, `engineSize`, `bodyType`, `doors`, `seats`, `colour`, `emissionClass` | Specification |
| `sellerType`, `dealerName`, `dealerPhone`, `dealerEmail`, `dealerTown`, `dealerPostcode`, `dealerReviewRating` | Seller / dealer |
| `latitude`, `longitude`, `location`, `distanceMiles` | Location |
| `vehicleCheckStatus`, `vehicleChecks` | Basic history check |
| `images`, `imageCount`, `badges`, `description` | Media and listing content |

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

This Actor uses **pay-per-event** pricing:

- **Listing scraped** — $0.004 per car listing returned.
- **Listing enriched** — $0.006 extra per listing when full detail (spec, dealer contact, history) is collected.
- **Actor start** — $0.00005 per run.

So 100 fully-enriched listings cost about **$1.00** plus platform compute. Set `enrichDetails: false` to pay only the $0.004 listing rate for lighter, faster runs. Use `maxResults` to cap spend.

### Tips

- Narrow with `priceFrom`/`priceTo`, `yearFrom`, and `maxMileage` to get the most relevant cars first.
- Sort by `price-asc` + `priceIndicator` to surface the best-value stock.
- Set `enrichDetails: false` when you only need price/mileage/seller from the search cards.
- A single Autotrader search caps at ~2000 results; split by region (postcode + radius) or price band to cover more.

### FAQ, disclaimer, and support

**Is scraping Autotrader legal?** This Actor collects only publicly available listing data. You are responsible for complying with Autotrader's Terms of Service, applicable laws (including data-protection rules such as UK GDPR when handling dealer contact details), and using the data lawfully. Do not use scraped personal data for spam or unlawful purposes.

**Why are some fields missing?** Private-seller listings expose less data than dealers; if a detail page can't be enriched the search-card data is still returned with `enriched: false`.

**Support / feedback:** use the Issues tab on the Actor's Store page. Custom fields or related scrapers are available on request.

# Actor input Schema

## `make` (type: `string`):

Car manufacturer to search for, e.g. 'BMW', 'Ford', 'Tesla'. Use the brand exactly as Autotrader spells it. Leave empty to search all makes. NOT a model name — set the model in the Model field.

## `model` (type: `string`):

Model within the chosen make, e.g. '3 Series', 'Fiesta', 'Model 3'. Requires Make to be set. Leave empty to return every model of the make. NOT a trim/derivative — use Keywords for trim text.

## `postcode` (type: `string`):

UK postcode used as the search origin for distance and local availability, e.g. 'M1 1AD' or 'SW1A 1AA'. Defaults to 'M1 1AD' (Manchester). NOT a town name — use a real UK postcode.

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

Optional. Paste full autotrader.co.uk URLs to scrape directly — either /car-search result pages (filters are read from the URL) or individual /car-details/ listing pages. Overrides/adds to the Make/Model fields above. NOT non-Autotrader URLs.

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

When true (default), each listing's detail page is visited to add full spec (mileage, fuel, gearbox, engine, doors, colour, emissions), dealer name/email/phone, location coordinates, and the basic history check. When false, only the lighter search-card data is returned (faster, cheaper).

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

Maximum number of car listings to return across all searches, e.g. 100. The scraper stops once this many are stored. Defaults to 100. Autotrader caps any single search at ~2000 results.

## `sortBy` (type: `string`):

Ordering of search results before the max-results cap is applied. Defaults to 'relevance'.

## `priceFrom` (type: `integer`):

Lowest cash price in GBP to include, e.g. 5000. Leave empty for no lower bound.

## `priceTo` (type: `integer`):

Highest cash price in GBP to include, e.g. 20000. Leave empty for no upper bound.

## `yearFrom` (type: `integer`):

Earliest manufacture year to include, e.g. 2018. Leave empty for no lower bound.

## `yearTo` (type: `integer`):

Latest manufacture year to include, e.g. 2024. Leave empty for no upper bound.

## `maxMileage` (type: `integer`):

Highest odometer reading in miles to include, e.g. 60000. Leave empty for any mileage.

## `fuelType` (type: `string`):

Restrict to one fuel type. Leave empty for all fuels.

## `transmission` (type: `string`):

Restrict to Automatic or Manual gearbox. Leave empty for both.

## `bodyType` (type: `string`):

Restrict to a body style, e.g. 'Hatchback', 'Saloon', 'SUV', 'Estate'. Leave empty for all body types.

## `sellerType` (type: `string`):

Restrict to dealer (trade) listings or private-seller listings. Leave empty to include both. Useful for lead-gen (dealers) or buying direct (private).

## `keywords` (type: `string`):

Free-text keyword filter applied to the advert, e.g. 'M Sport', 'panoramic roof'. Leave empty to skip keyword filtering.

## Actor input object example

```json
{
  "make": "BMW",
  "model": "3 Series",
  "postcode": "SW1A 1AA",
  "searchUrls": [
    "https://www.autotrader.co.uk/car-search?make=Audi&model=A4&postcode=LS1%204DY"
  ],
  "enrichDetails": true,
  "maxResults": 100,
  "sortBy": "relevance",
  "priceFrom": 5000,
  "priceTo": 20000,
  "yearFrom": 2018,
  "yearTo": 2024,
  "maxMileage": 60000,
  "bodyType": "SUV",
  "keywords": "M Sport"
}
```

# Actor output Schema

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

No description

## `runOutput` (type: `string`):

Machine-readable terminal outcome, useful result count, failure details, and PPE charge counts.

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

Detailed terminal status for automation, monitoring, and AI-agent workflows.

# 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 = {
    "make": "BMW",
    "model": "3 Series",
    "postcode": "M1 1AD",
    "maxResults": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("khadinakbar/autotrader-uk-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 = {
    "make": "BMW",
    "model": "3 Series",
    "postcode": "M1 1AD",
    "maxResults": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("khadinakbar/autotrader-uk-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "make": "BMW",
  "model": "3 Series",
  "postcode": "M1 1AD",
  "maxResults": 100
}' |
apify call khadinakbar/autotrader-uk-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=khadinakbar/autotrader-uk-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/SLc5ZpToi2pjBNZan/builds/xpcDCAaeNgUpWSVOt/openapi.json
