# Gumtree UK Car Scraper (`rastriq/gumtree-scraper`) Actor

Scrape used car listings from Gumtree.com, the UK classifieds site: make, model, year, mileage in km and miles, price in GBP, fuel, gearbox, body type, engine size, colour, town, trade or private seller, photo and link. Fast HTTP scraper, datacenter proxy is enough.

- **URL**: https://apify.com/rastriq/gumtree-scraper.md
- **Developed by:** [Rastriq — Structured data from the world](https://apify.com/rastriq) (community)
- **Categories:** E-commerce, 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.50 / 1,000 car 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

## Gumtree UK Car Scraper

**Gumtree UK Car Scraper** extracts used-car listings from [Gumtree.com](https://www.gumtree.com/cars), one of the biggest classifieds sites in the United Kingdom. You get make, model, year, mileage (in kilometres and in miles), price in GBP, fuel, gearbox, body type, engine size, colour, town and county, trade or private seller, photo and listing URL as clean JSON, CSV or Excel, in seconds and without a residential proxy.

### 🚗 What is Gumtree UK Car Scraper?

Gumtree is where thousands of UK dealers and private sellers advertise their cars every day. The site has no public API for car listings, so tracking prices or new stock means copying ads by hand.

Gumtree UK Car Scraper does that for you. It reads the same search results you see in the **Cars** section of gumtree.com, for the whole UK, page by page, and turns every listing into a structured record. Featured ads that repeat on several pages are removed, so each car appears once per run.

Use this Gumtree scraper to:

- 📈 **Track used-car prices in the UK** by make, model, year and mileage.
- 🏪 **Watch dealer and private stock** as it is listed, for lead generation or competitor monitoring.
- 🔍 **Spot underpriced cars** by comparing asking price against year, mileage and engine size.
- 📊 **Feed valuation models and market research** with fresh UK car data.
- 🔁 **Build alerts**: schedule the actor every hour or every day and compare runs by `id`.

### 📋 What data does Gumtree UK Car Scraper extract?

| Field | Description |
|---|---|
| 🆔 `id` | Gumtree ad ID |
| 📝 `title` | Listing title, as written by the seller |
| 🏷️ `make` | Car brand, e.g. `Ford`, `BMW`, `Land Rover` |
| 🚙 `model` | Model as Gumtree stores it, often upper case, e.g. `FIESTA` |
| 📅 `year` | Registration year |
| 🛣️ `km` | Mileage in **kilometres**, converted from the listed miles |
| 🇬🇧 `mileage_miles` | Mileage in **miles**, exactly as listed on Gumtree |
| ⚡ `hp` | Engine power in bhp |
| 💷 `price` | Asking price in GBP |
| 💱 `currency` | Always `GBP` |
| ⛽ `fuel_type` | `Petrol`, `Diesel`, `Hybrid Electric`, `Electric`… |
| ⚙️ `gearbox` | `Manual`, `Automatic`, `Semi-Auto` or `Other` |
| 🚘 `body_type` | `Hatchback`, `Estate`, `MPV`, `Saloon`, `Coupe`, `Convertible`… |
| 🔧 `engine_size_cc` | Engine size in cc |
| 🎨 `colour` | Body colour |
| 📍 `city`, `region` | Town and county of the listing |
| 🏢 `is_professional` | `true` for trade sellers (dealers), `false` for private sellers |
| 🔗 `url` | Link to the listing page |
| 🖼️ `img_url` | Main photo |
| 🕒 `posted_at` | When the ad was posted or last bumped (UTC) |
| 🌐 `source`, `scraped_at` | `gumtree.com` and the UTC time of extraction |

#### 🛣️ Kilometres and miles: which field to use

Gumtree shows mileage in **miles**. To match the other car scrapers in the Rastriq family, which all use kilometres, the `km` field holds **kilometres**: the listed miles × 1.609344, rounded. The original number of miles is kept, unchanged, in `mileage_miles`.

- For UK reporting, use `mileage_miles`.
- For comparing with European marketplaces, use `km`.

> ⚠️ **Change in version 0.2.** Up to version 0.1, `km` held the raw **miles**. Since 0.2 it holds kilometres, so the same car now shows a number about 61 % higher in `km`. If you stored data from older runs, remember that their `km` values are miles. In new runs, divide `km` by 1.609344 to get miles, or just read `mileage_miles`.

The scraper reads search results only. It does not open each ad, so it does not return the full description, the seller's name, phone number or exact postcode, or the vehicle registration.

**Data completeness** (measured on 59 listings from a real run, November 2026): `make`, `model`, `year`, `km`, `mileage_miles`, `price`, `fuel_type`, `gearbox`, `city`, `region`, `body_type`, `engine_size_cc` and `colour` were filled on 100 % of listings, and `hp` on 97 %.

### ▶️ How to use Gumtree UK Car Scraper

1. Click **Try for free** (or **Start**) on this page. You need a free Apify account.
2. Set **Max pages**. Each page holds about 30 cars: 1 page for a test, 10 pages for about 300 cars.
3. Leave the proxy as it is (Apify Proxy, datacenter).
4. Click **Start** and wait a few seconds. One page takes about 3 seconds, including a 2-second pause between pages to be gentle with the site.
5. Open the **Output** tab, then download the data as JSON, CSV, Excel or HTML, or read it through the Apify API.

To keep the data fresh, create a **Schedule** in Apify Console and run Gumtree UK Car Scraper every hour or every day.

### ⚙️ Input parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `max_pages` | integer | 3 | Result pages to scrape (about 30 cars each), from 1 to 50 |
| `proxyConfiguration` | object | Apify Proxy (datacenter) | Change only if your runs get blocked |

#### Input example

```json
{
    "max_pages": 1,
    "proxyConfiguration": { "useApifyProxy": true }
}
```

### 📦 Output example

One record, taken from a real run (November 2026):

```json
{
    "id": "1802795082",
    "title": "Ford, FIESTA, Hatchback, 2020, Manual, 998 (cc), 5 doors",
    "make": "Ford",
    "model": "FIESTA",
    "year": 2020,
    "km": 74030,
    "hp": 94,
    "price": 6495,
    "currency": "GBP",
    "fuel_type": "Petrol",
    "gearbox": "Manual",
    "city": "Dunfermline",
    "region": "Fife",
    "is_professional": true,
    "url": "https://www.gumtree.com/p/ford/ford-fiesta-hatchback-2020-manual-998-cc-5-doors/1802795082",
    "img_url": "https://img.gumtree.com/ePR8PyKf84wPHx7_RYmEag/9c802a712f4543bf96_e6d16e787a2f/86",
    "source": "gumtree.com",
    "scraped_at": "2026-11-14T07:52:31.415087+00:00",
    "mileage_miles": 46000,
    "body_type": "Hatchback",
    "engine_size_cc": 998,
    "colour": "Blue",
    "posted_at": "2026-11-14T07:31:01.553000+00:00"
}
```

Here the seller listed 46,000 miles, which `km` gives as 74,030 km.

In Apify Console, the **Car listings** view shows the main columns and **All fields** shows everything. A `SUMMARY` record in the key-value store counts pages fetched, pages blocked and duplicates removed.

### 💰 How much does it cost to scrape Gumtree?

Gumtree UK Car Scraper uses **pay-per-event** pricing: you pay **$1.50 per 1,000 car listings**, plus a tiny start fee of **$0.005** per run. There is no monthly rental, and the Apify platform usage is included in the price.

- **100 listings**: about $0.16
- **1,000 listings**: about $1.51
- **1,500 listings** (all 50 pages): about $2.26

With the $5 of free monthly credit on the Apify Free plan you can scrape more than 3,000 listings a month at no cost.

> 💡 **Tip**: start with `max_pages: 1` to see the data, then scale up.

### ⚠️ Limits

- **Up to about 1,500 listings per run.** Gumtree serves at most 50 result pages per search; a higher `max_pages` is capped at 50.
- **All of the UK, no filters yet.** The actor reads the national Cars search in Gumtree's default order. It has no make, price or location filter: filter the dataset after the run.
- **Search results only.** Fields that appear only on the ad page (full description, MOT history, seller contact) are not extracted.
- **Gumtree's own labels.** Fuel, gearbox and body type are returned as Gumtree shows them, and `model` is often upper case.
- A run that finds no listings fails with an explicit error instead of ending with an empty dataset.

### 🔗 Related Actors

Gumtree UK Car Scraper is part of the [Rastriq](https://apify.com/rastriq) family of car marketplace scrapers, with actors such as [Marktplaats Car Scraper](https://apify.com/rastriq/marktplaats-scraper), [Willhaben Car Scraper](https://apify.com/rastriq/willhaben-scraper) and [2dehands.be Car Scraper](https://apify.com/rastriq/2dehands-scraper), all with the same core fields so you can merge countries in one table.

### ❓ FAQ

#### Is it legal to scrape Gumtree?

Gumtree UK Car Scraper only collects data that anyone can see on the public search pages, and it does not collect seller names, phone numbers or registrations. You are responsible for how you use the data: check the Gumtree terms of use, its robots.txt and UK GDPR before using it, especially for commercial purposes.

#### Do I need a residential proxy?

No. The default Apify Proxy (datacenter) works: test runs in November 2026 fetched every page with 0 blocked pages. If your runs start showing `BLOCKED` pages in the log, switch the proxy to the **RESIDENTIAL** group with country **GB**; Apify then bills the residential traffic per GB.

#### Why does `km` not match the mileage on Gumtree?

Because Gumtree shows miles and `km` is in kilometres. Read `mileage_miles` for the number shown on the site. See *Kilometres and miles* above.

#### Can I get the data through an API?

Yes. Run Gumtree UK Car Scraper through the Apify API or one of the Apify clients for Python and JavaScript, and read the results from the run's dataset. You can also connect it to Make, Zapier, Google Sheets or a webhook.

#### Something does not work. What do I do?

Open an issue on the **Issues** tab with your run ID. We read every report.

# Changelog

This Actor's version history is a separate document: https://apify.com/rastriq/gumtree-scraper/changelog.md

# Actor input Schema

## `max_pages` (type: `integer`):

How many result pages to scrape. Each page returns <b>about 30 cars</b> (featured ads that repeat across pages are removed), so 10 pages ≈ 300 listings. Gumtree stops at 50 pages; a higher value is capped at 50. Start with 1 page for a test run.

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

Apify Proxy (datacenter) is used by default and is enough for Gumtree.com: test runs in November 2026 had 0 blocked pages. If you ever see blocked pages, try the <b>RESIDENTIAL</b> group with country <b>GB</b> (residential traffic is billed by Apify per GB).

## Actor input object example

```json
{
  "max_pages": 1,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

All scraped listings in the default dataset.

# 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 = {
    "max_pages": 1,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rastriq/gumtree-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 = {
    "max_pages": 1,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("rastriq/gumtree-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 '{
  "max_pages": 1,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call rastriq/gumtree-scraper --silent --output-dataset

```

## MCP server setup

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