# AutoTrader UK Scraper (`datahamster/autotrader-uk-scraper`) Actor

AutoTrader UK scraper for used and new cars on autotrader.co.uk: search by make, model, postcode, radius, price, year and mileage or paste search URLs. Get price, mileage, fuel, gearbox, body, engine size, price indicator, dealer name. Monitor mode alerts on new listings and price drops.

- **URL**: https://apify.com/datahamster/autotrader-uk-scraper.md
- **Developed by:** [Viktor Dubnytskiy](https://apify.com/datahamster) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 result items

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

Scrape used and new car listings from autotrader.co.uk into flat rows: price, mileage, year and age identifier ("69 reg"), fuel type, gearbox, body type, engine size, colour, owners, autotrader's price indicator (Great, Good, Fair...) with its good-price band, seller type, dealer name and the town. Search with simple fields (make, model, postcode, radius, price, year, mileage) or paste any autotrader search URL. Monitor mode sends you only new listings and price drops.

**Try it:** the prefilled example returns 20 rows in about 6 seconds and costs about $0.020. Results cost $1.00 per 1,000.

Coverage: autotrader serves 20 cars per result page and at most 100 pages (2,000 cars) per search; split bigger searches by price or year. Every row opens the car's own page for the full specs by default (switch `includeDetails` off for search-card fields only).

**Why this one** (compared with the most-used autotrader.co.uk actors in the Store: epctex/autotradercouk-scraper, memo23/autotrader-cheerio and solidcode/autotrader-co-uk-scraper, checked 2026-11-20):

- **New-listing and price-drop alerts.** Save a search as a monitor task and each run returns only cars that were listed since the last run and cars whose price fell at least `minPriceDropPercent` below the last price you were told about, with the old price in `previous.price`. None of the three has a monitor or incremental mode in its input.
- **Only the deals you want.** `priceIndicators: ["GREAT", "GOOD"]` keeps only cars autotrader itself badges as a Great or Good price, and dropped cars are not charged. In the smoke run this kept 20 of 118 BMW 3 Series under £15,000. The others return the badge but cannot filter on it.
- **One car, one row across searches.** Run several searches or URLs at once and a car found twice is returned and charged once: two overlapping BMW searches read 80 cars and returned 46.
- **Your limits hold on every row.** `strictFilters` re-checks price, year, mileage and distance on each car and drops misses free of charge: a Golf search within 100 miles of SW1A 1AA came back from autotrader with 3 cars 101 miles away in the first 60, and they were dropped.
- **Full specs in every row.** Fuel type, gearbox, body type, engine size in litres and cc, colour, previous owners and the good-price band come from the listing page itself, not guessed from the title.
- **No phone numbers, no private names.** Private sellers come back with the town only. Dealers keep the business name, rating and profile link. Phone numbers and e-mails are removed from every description, and full postcodes and number plates also from private sellers' text.

### What you get

Real rows from the example dataset (BMW 3 Series within 50 miles of M1 1AE, newest first):

| title | price | indicator | year | miles | fuel | gearbox | body | seller |
|---|---|---|---|---|---|---|---|---|
| BMW 3 Series 2.0 330i M Sport | £14,750 | - | 2019 | 57,781 | Petrol | Automatic | Saloon | private |
| BMW 3 Series 2.0 330e 7.6kWh M | £5,749 | LOW | 2018 | 150,000 | Petrol Plug-in Hybrid | Automatic | Saloon | dealer |
| BMW 3 Series 2.0 330e 12kWh M | £16,995 | FAIR | 2022 | 97,914 | Petrol Plug-in Hybrid | Automatic | Estate | dealer: Baskeyfield Motors |
| BMW 3 Series 3.0 330d M Sport | £7,795 | GOOD | 2013 | 114,000 | Diesel | Automatic | Saloon | dealer: Day 2 Day Motors Ltd |
| BMW 3 Series 2.0 320i M Sport | £19,995 | GOOD | 2020 | 46,000 | Petrol | Automatic | Saloon | dealer: CarSynergy-UK |
| BMW 3 Series 2.0 320d M Sport | £12,000 | HIGH | 2018 | 111,252 | Diesel | Automatic | Saloon | dealer: Greenlight |

One row (shortened):

```json
{
  "id": "202611208090612",
  "url": "https://www.autotrader.co.uk/car-details/202611208090612",
  "title": "BMW 3 Series",
  "subTitle": "2.0 330e 12kWh M Sport Touring Auto xDrive Euro 6 (s/s) 5dr",
  "make": "BMW",
  "model": "3 Series",
  "trim": "M Sport",
  "year": 2022,
  "regAgeIdentifier": "71",
  "firstRegistrationDate": "2022-02-17",
  "condition": "used",
  "price": 16995,
  "currency": "GBP",
  "priceIndicator": "FAIR",
  "priceIndicatorLabel": "Fair price",
  "goodPriceRange": [
    15948,
    16761
  ],
  "mileageMiles": 97914,
  "fuelType": "Petrol Plug-in Hybrid",
  "transmission": "Automatic",
  "bodyType": "Estate",
  "engineSizeLitres": 2,
  "engineSizeCc": 1998,
  "colour": "Grey",
  "previousOwners": 1,
  "sellerType": "dealer",
  "dealerName": "Baskeyfield Motors",
  "dealerRating": 5,
  "dealerReviewCount": 29,
  "city": "Stoke-On-Trent",
  "distanceMiles": 36,
  "imageCount": 1
}
```

`sellerType` is `dealer` or `private`. `dealerName`, `dealerId`, `dealerUrl`, `dealerRating` and `dealerReviewCount` are filled for dealers with an autotrader dealer page (small traders without one get no name). `priceIndicator` is autotrader's badge: `LOW` (lower price), `GREAT`, `GOOD`, `FAIR` or `HIGH`; null when autotrader shows none, which is the case for private adverts (none of 24 private rows in our test runs had one), so `priceIndicators` effectively returns dealer cars only. `goodPriceRange` is the band autotrader calls a good price for this car. `distanceMiles` is measured from your postcode (null for searches without one). `regAgeIdentifier` is the age part of the registration ("69" for a 69-reg car); there is no plate field, and plates are removed from private sellers' text. `headline` is the seller's one-line note. With `includeDetails: false` rows keep the search-card fields: price, indicator, year, age identifier, mileage, engine litres, town, distance, image count, seller type and dealer id.

### Input

| Field | Meaning | Default |
|---|---|---|
| `make`, `model` | As autotrader spells them, e.g. `BMW`, `3 Series` | prefilled |
| `postcode`, `radius` | UK postcode and miles around it; empty = national | `M1 1AE`, 50 |
| `minPrice`, `maxPrice`, `minYear`, `maxYear`, `minMileage`, `maxMileage` | Numeric limits | none |
| `fuelTypes`, `bodyTypes`, `transmission`, `sellerType` | Petrol, Diesel, ...; Hatchback, SUV, ...; Manual/Automatic; trade/private | all |
| `sort` | `most_recent`, `relevance`, `price_asc`, `price_desc`, `mileage`, `year_dsc`, `year_asc`, `distance` | `most_recent` |
| `startUrls` | Search URLs copied from autotrader.co.uk/car-search (any filter the site has) and `/car-details/<id>` URLs | empty |
| `maxPagesPerSearch` | Result pages per search, 20 cars each, up to 100 | 5 |
| `includeDetails` | Open every listing page for the full specs | `true` |
| `priceIndicators` | Keep only these badges, e.g. `["GREAT", "GOOD"]` | all |
| `strictFilters` | Re-check price, year, mileage and distance limits on every row | `true` |
| `includePromoted` | Keep the paid featured slots autotrader adds to every page | `false` |
| `maxItems` | Stop after this many rows, shared between searches | 100 |
| `mode` | `scrape`, or `monitor` for new listings and price drops | `scrape` |
| `priceChangeAlerts`, `minPriceDropPercent` | Monitor: `drops`, `any` or `off`; smallest drop to report in percent | `drops`, 0 |
| `monitorStateId`, `webhookUrl`, `telegramBotToken`, `telegramChatId` | Monitor state key and alert targets | empty |

The form fields make one search; every URL in `startUrls` is its own search next to it.

### Monitor mode

Save the input as a task and set:

```json
{
  "mode": "monitor",
  "monitorStateId": "golf-london",
  "make": "Volkswagen", "model": "Golf", "postcode": "SW1A 1AA", "radius": 30, "maxPrice": 12000,
  "priceIndicators": ["GREAT", "GOOD"],
  "maxPagesPerSearch": 3,
  "minPriceDropPercent": 5,
  "telegramBotToken": "...", "telegramChatId": "..."
}
```

Put the task on a schedule, for example every hour.

- Monitor mode reads every search newest first. A car is new when its advert id was never returned for this task and it was listed no more than 600 adverts (about 25 minutes of new adverts across the site) before the newest car the previous run saw. autotrader adds new adverts to its search in batches, so a few surface a little late; the margin is above the largest lateness measured (544 adverts).
- A run reads pages until it reaches cars older than that margin. Pages of cars it already knows do not count against `maxPagesPerSearch`; if more new cars arrived than `maxPagesPerSearch` pages hold, the run returns the first ones and the next run continues below them.
- A known car comes back with `changeType: "changed"` and `previous.price` when its price fell at least `minPriceDropPercent` below the last price you were told about (or on any change, with `priceChangeAlerts: "any"`). Price drops are checked on the cars each run reads, which are the newest ones. With `priceIndicators` set, a car that first appeared outside the filter (say FAIR) and later turns GREAT after a price cut is not alerted, because the monitor never recorded it; cars recorded by the baseline are.
- The first run of a search is a free baseline: it records and returns nothing (one monitor-check, `emptyReason: "baseline"`). It opens no listing pages, and on busy searches it reads on past `maxPagesPerSearch` until it has covered the newness margin, so cars just below its depth are not reported as new on the next run. Changing the search or the depth starts a new baseline.
- Featured and promoted slots are skipped in monitor mode: they rotate on every page and would look new every time.
- If a run dies, later runs of the same task end as `overlapping_run` without charging until that run's timeout passes; or give the task a new `monitorStateId`.

### Pricing

| Event | Price |
|---|---|
| result | $0.001 per car ($1.00 per 1,000) |
| monitor-check | $0.005 per monitor run |
| change | $0.001 per new car or price drop in monitor mode |

Apify Store discounts: SILVER -10%, GOLD and higher -20%. You pay only for pushed rows; cars dropped by the price-indicator filter, by `strictFilters` or found twice are free. Apify platform usage is small here because no proxy is needed: the prefilled run (1 search page and 20 listing pages) used about $0.0003.

**Found it useful?** A short review on the Store page helps other people find this actor.

### Related actors

- [Mobile.de Scraper](https://apify.com/datahamster/mobile-de-scraper) for German car listings with price-drop alerts.
- [AutoScout24 Listings](https://apify.com/datahamster/autoscout24-listings) for cars in nine European markets.
- [Kleinanzeigen Listings](https://apify.com/datahamster/kleinanzeigen-listings) for German classifieds.

### Limits

- Cars only (the /car-search channel). Vans, bikes and motorhomes are not covered.
- autotrader serves at most 100 pages (2,000 cars) per search.
- Specs that the seller or autotrader do not provide stay null; `priceIndicator` is null for cars autotrader does not rate.
- Phone numbers, e-mails, websites and street addresses are never returned, also not for dealers.
- A price rise is never reported in `drops` mode and does not move the reference price.
- On very broad searches (all makes nationwide, about 70 adverts' worth of ids per page) the baseline reads about 7 pages instead of `maxPagesPerSearch` (measured on the platform); that is free of charge apart from a little platform usage.

### FAQ

**Do I need an autotrader account?** No. The actor reads the public search and listing pages.

**Why did a run end as blocked?** autotrader refused every request. `AUTOTRADER_STATS` in the run's key-value store lists refused inputs; the actor moves to Apify residential proxies once before giving up.

### Changelog

- 0.1: initial release: form search and pasted search/listing URLs, full specs from listing pages, price-indicator filter, strict numeric filters, de-duplication across searches, monitor mode for new listings and price drops with a threshold.

# Actor input Schema

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

Car make as autotrader.co.uk spells it, e.g. BMW, Ford, Volkswagen, Land Rover. Leave empty for all makes (then use a search URL or other filters).

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

Model as autotrader.co.uk spells it, e.g. 3 Series, Focus, Golf. Needs a make.

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

UK postcode the search is measured from, e.g. M1 1AE or SW1A 1AA. Leave empty for the whole UK.

## `radius` (type: `integer`):

Distance from the postcode in miles. Empty = national.

## `minPrice` (type: `integer`):

Lowest total price in pounds.

## `maxPrice` (type: `integer`):

Highest total price in pounds.

## `minYear` (type: `integer`):

Oldest year, e.g. 2018.

## `maxYear` (type: `integer`):

Newest year.

## `minMileage` (type: `integer`):

Lowest mileage in miles.

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

Highest mileage in miles, e.g. 60000.

## `fuelTypes` (type: `array`):

Any of: Petrol, Diesel, Electric, Petrol Hybrid, Petrol Plug-in Hybrid, Diesel Hybrid, Diesel Plug-in Hybrid, Bi Fuel. Empty = all.

## `bodyTypes` (type: `array`):

Any of: Hatchback, Saloon, Estate, SUV, Coupe, Convertible, MPV, Pickup, Minibus, Combi Van. Empty = all.

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

Manual or automatic only.

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

Dealer (trade) or private listings only.

## `sort` (type: `string`):

Order of results. A pasted search URL keeps its own sort. Monitor mode always reads newest first.

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

Optional. Search URLs copied from autotrader.co.uk/car-search after setting any filters on the site (also filters this form does not have), or listing URLs (/car-details/<id>). Each URL runs as its own search next to the form search above; a car found twice is returned once.

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

Result pages per search, 20 cars each (autotrader serves up to 100 pages = 2,000 cars per search). Example: 5 = up to 100 cars.

## `includeDetails` (type: `boolean`):

true = read each car's own page for fuel type, gearbox, body type, engine size, colour, owners, dealer name, autotrader's good-price band and the description (phone numbers and e-mails removed). false = search-card fields only (price, mileage, year, price indicator, town), faster.

## `priceIndicators` (type: `array`):

Keep only cars with one of autotrader's price badges, e.g. GREAT and GOOD. Cars without a badge are dropped when this is set. Dropped cars are not charged.

## `strictFilters` (type: `boolean`):

Drop any car whose price, year, mileage or distance is outside the search's limits (also limits inside a pasted URL). Dropped cars are not charged.

## `includePromoted` (type: `boolean`):

autotrader adds paid featured and promoted cars to every page. false = organic results only. Monitor mode always skips them.

## `priceChangeAlerts` (type: `string`):

Monitor mode only. drops = a known car comes back when its price falls below the last price you were told about; any = every price change; off = new listings only.

## `minPriceDropPercent` (type: `integer`):

Monitor mode with price drops: report a drop only when it is at least this many percent below the last reported price. Smaller drops add up until they reach it.

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

Stop after this many results (you are charged only for pushed items)

## `mode` (type: `string`):

scrape = full results; monitor = only new/changed items since the previous run of this task

## `monitorStateId` (type: `string`):

Optional state id when not running as a saved task (monitor mode)

## `webhookUrl` (type: `string`):

POST a change summary here in monitor mode

## `telegramBotToken` (type: `string`):

Optional: bot token for monitor-mode change summaries

## `telegramChatId` (type: `string`):

Optional: chat id that receives monitor-mode summaries

## Actor input object example

```json
{
  "make": "BMW",
  "model": "3 Series",
  "postcode": "M1 1AE",
  "radius": 50,
  "fuelTypes": [],
  "bodyTypes": [],
  "transmission": "any",
  "sellerType": "any",
  "sort": "most_recent",
  "startUrls": [],
  "maxPagesPerSearch": 1,
  "includeDetails": true,
  "priceIndicators": [],
  "strictFilters": true,
  "includePromoted": false,
  "priceChangeAlerts": "drops",
  "minPriceDropPercent": 0,
  "maxItems": 20,
  "mode": "scrape"
}
```

# Actor output Schema

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

All pushed rows (dataset, JSON)

## `resultsTable` (type: `string`):

Dataset in the Console viewer

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

RUN_SUMMARY record

# 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 1AE",
    "radius": 50,
    "maxPagesPerSearch": 1,
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("datahamster/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 1AE",
    "radius": 50,
    "maxPagesPerSearch": 1,
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("datahamster/autotrader-uk-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 '{
  "make": "BMW",
  "model": "3 Series",
  "postcode": "M1 1AE",
  "radius": 50,
  "maxPagesPerSearch": 1,
  "maxItems": 20
}' |
apify call datahamster/autotrader-uk-scraper --silent --output-dataset

```

## MCP server setup

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