# Gumtree Scraper — UK Classifieds, Prices & Sellers (`crawloop/gumtree-scraper`) Actor

Scrape Gumtree UK classifieds by keyword, location, category, or URL. Each row has price, location, seller type, description, and photos from the public listing. Monitor mode saves only new ads and price changes.

- **URL**: https://apify.com/crawloop/gumtree-scraper.md
- **Developed by:** [Andrej Kiva](https://apify.com/crawloop) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.75 / 1,000 listings

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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

## Gumtree Scraper

> **Disclaimer:** Unofficial tool — not affiliated with, sponsored by, or endorsed by Gumtree.com Limited or its affiliates. Data is read from publicly accessible search, category, and listing pages only. No login. You are responsible for complying with applicable law (including GDPR where personal data appears) and the site’s terms. No warranty on accuracy or availability. Provided for informational and research use.

**Gumtree scraper** for UK classifieds. Each row is one listing: asking price in GBP, location, seller type, description, and photos. Search by keyword, place, and category, or paste a results URL. Use it as a **Gumtree API alternative** from **Python**, **Node.js**, **cURL**, or **Apify MCP**.

**Best for:** phone and goods comps, used-car filters, property and job leads, and a scheduled run that saves only new ads and price changes.

| Actor | Role |
| :--- | :--- |
| Gumtree Scraper ◄── you are here | UK classifieds: price, seller type, description, new-ad monitor |
| [eBay Sold Listings Scraper](https://apify.com/crawloop/ebay-sold-listings-scraper) | Sold comps for the same goods |
| [Facebook Marketplace Scraper](https://apify.com/crawloop/facebook-marketplace-scraper) | Marketplace listings |
| [Leboncoin Scraper](https://apify.com/crawloop/leboncoin-scraper) | France classifieds |
| [Marktplaats Scraper](https://apify.com/crawloop/marktplaats-scraper) | Netherlands classifieds |
| [Cars.com Scraper](https://apify.com/crawloop/cars-com-scraper) | US car listings |

### When to use this Actor

- **A keyword in a city** — Set Keyword to iphone, Location to london, and Category to For sale. Leave Search URLs empty.
- **Cars, vans, property, or jobs** — Pick the category. Add a place name, or leave location empty for a UK-wide category page.
- **A results page you already opened** — Paste the category URL. A `/search?q=` link is rewritten to the category path. Keyword and location are ignored when Search URLs is set.
- **One listing** — Paste the listing URL. The run saves that page.
- **New ads and price cuts** — Turn on monitor mode and schedule the same search. The first run stores a baseline and saves nothing. Later runs save new listing ids and price changes.

### When not to use this Actor

- **Australia, New Zealand, or South Africa** — This Actor reads the UK site only.
- **Phone numbers** — Those are not requested.
- **A national dump in one run** — Cap `maxItems` (150). Split by city or category.

### Key features

- **Search and listing pages** — Title, GBP price, location, seller type, description, and photos. Default **256 MB**. No browser.
- **Keyword, place, and category** — For sale, cars, vans, motorbikes, property for sale, property to rent, and jobs.
- **Pasted URL** — Category paths and single listing pages. Browser `/search?q=` links are converted before the request.
- **Private versus trade** — `sellerType` is `private` or `trade` when the page says so.
- **Monitor** — Named key-value store of listing id and last price for that search. The seed run does not open listing pages.

### Input

| Field | Required | Default | What it does |
| :--- | :--- | :--- | :--- |
| Search or listing URLs | No | iPhone in London | Wins over the filters below. |
| Keyword | No | — | Search text when URLs are empty. |
| Location | No | — | Place name, such as london or manchester. |
| Category | No | For sale | Section used when URLs are empty. |
| Sort | No | Most recent | Applied when the Actor builds the URL. |
| Open listing pages | No | on | Description, photos, seller name, and attributes. Same saved row. |
| Maximum listings | No | 30 | Rows to save, up to 150. |
| Monitor mode | No | off | Baseline first, then new ids and price changes. |
| Monitor state store | No | gumtree-monitor | Named store for the baseline. |
| Proxy | No | Datacenter | Switch to residential if a run is blocked. |

```json
{
  "keyword": "iphone",
  "location": "london",
  "category": "for-sale",
  "sort": "date",
  "includeListingDetails": true,
  "maxItems": 30,
  "monitorMode": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

### Output

| Field | Meaning |
| :--- | :--- |
| `id` | Listing id |
| `url` | Public listing page |
| `title` | Listing title |
| `price` | Asking price in GBP |
| `pricePeriod` | `month` or `week` on rent cards. Omitted on a sale price |
| `location` | Town or area |
| `postedAge` | Relative age from the search card |
| `postedAt` | Timestamp from the listing page when present |
| `sellerType` | `private` or `trade` |
| `sellerName` | Display name on the listing page |
| `description` | Listing description |
| `image`, `images` | First photo, then the photo list |
| `make`, `model`, `year`, `mileage`, `fuel` | Vehicle fields when the listing page includes them |
| `attributes` | Attribute pairs from the listing page |
| `changeType` | `new` or `price_change` on monitor runs |
| `previousPrice` | Prior asking price when `changeType` is `price_change` |
| `scrapedAt` | UTC timestamp |

```json
{
  "id": "1803086920",
  "url": "https://www.gumtree.com/p/iphone/apple-iphone-16-pro-max-256gb/1803086920",
  "title": "Apple iPhone 16 Pro Max 256GB",
  "price": 499,
  "currency": "GBP",
  "location": "Hampstead, London",
  "postedAge": "4 days",
  "sellerType": "private",
  "sellerName": "Miles",
  "description": "Apple iPhone 16 Pro Max 256GB in Silver. Fully working.",
  "image": "https://img.gumtree.com/example/86"
}
```

### Use cases

- Compare asking prices for one phone model in one city and keep `sellerType` so trade ads are separate from private sellers.
- Pull used cars in London with year, mileage, and fuel when the listing page includes them.
- Schedule monitor mode each morning and export only listings whose price moved.
- For sold comps on the same goods, run [eBay Sold Listings Scraper](https://apify.com/crawloop/ebay-sold-listings-scraper). For France, run [Leboncoin Scraper](https://apify.com/crawloop/leboncoin-scraper).

### Integration examples

Replace `APIFY_TOKEN`. The slug below is the Store name.

#### Node.js

```javascript
import { ApifyClient } from "apify-client";

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor("crawloop/gumtree-scraper").call({
  keyword: "iphone",
  location: "london",
  category: "for-sale",
  maxItems: 30,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Python

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("crawloop/gumtree-scraper").call(run_input={
    "keyword": "bmw",
    "location": "manchester",
    "category": "cars",
    "maxItems": 30,
})
items = client.dataset(run["defaultDatasetId"]).list_items().items
print(len(items))
```

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/crawloop~gumtree-scraper/runs?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"keyword":"iphone","location":"london","category":"for-sale","maxItems":30}'
```

### MCP and AI assistants

Use this Actor from AI tools via [Apify MCP](https://docs.apify.com/platform/integrations/mcp).
Connect your Apify account, then call this Actor by its Store name `crawloop/gumtree-scraper`.

Example prompts:

- "Run Gumtree Scraper for iphone in london and return price, location, and seller type as JSON"
- "Scrape Gumtree cars in manchester and summarize year, mileage, and asking price"
- "Run Gumtree Scraper in monitor mode for chef jobs in bristol, then use eBay Sold Listings Scraper for sold comps"

### Suite next step

This Actor covers UK classifieds. For sold prices on the same goods, run [eBay Sold Listings Scraper](https://apify.com/crawloop/ebay-sold-listings-scraper). For another country’s classifieds, run [Leboncoin Scraper](https://apify.com/crawloop/leboncoin-scraper) or [Marktplaats Scraper](https://apify.com/crawloop/marktplaats-scraper).

### FAQ

**Does this open every listing page?**
Yes, when Open listing pages is on. Monitor seed runs skip those pages and save nothing. Turn the option off to keep the search card only.

**Which countries are included?**
The UK site only. Australia, New Zealand, and South Africa are not requested.

**What if the run is blocked?**
Leave the datacenter proxy on and retry. If the run still fails, switch the proxy to residential.

**What does monitor mode skip?**
Listing ids already stored for that same search, unless the asking price changed. A quiet tick writes zero rows. The first run only fills the baseline.

**Are phone numbers included?**
No. The row has the public price, description, and seller display name.

# Actor input Schema

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

Gumtree UK search, category, or listing URLs. A /search?q= link is rewritten to the working category path. When this list is set, keyword, location, and category are ignored.

## `keyword` (type: `string`):

Search text used when Search URLs is empty. Example: iphone, bmw, chef.

## `location` (type: `string`):

UK place name used in the path. Example: london, manchester, bristol.

## `category` (type: `string`):

Gumtree UK section used when Search URLs is empty.

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

Sort used when the Actor builds the search. Pasted URLs keep their own query.

## `includeListingDetails` (type: `boolean`):

Fetch each saved listing for the description, photos, seller name, and attributes. The same listing event covers the card and the page. Monitor seed runs do not open listing pages.

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

How many listings to save. Monitor mode examines this many cards and saves only new ids and price changes.

## `monitorMode` (type: `boolean`):

The first run for a search stores a baseline and saves nothing. Later runs save new listings and price changes only.

## `monitorStateStore` (type: `string`):

Named key-value store that keeps the baseline between scheduled runs.

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

Datacenter proxy is on by default. Switch to UK residential if a run is blocked.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.gumtree.com/for-sale/uk/london/srpsearch+iphone?sort=date"
    }
  ],
  "category": "for-sale",
  "sort": "date",
  "includeListingDetails": true,
  "maxItems": 30,
  "monitorMode": false,
  "monitorStateStore": "gumtree-monitor",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Default dataset items — one listing per row.

# 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": [
        {
            "url": "https://www.gumtree.com/for-sale/uk/london/srpsearch+iphone?sort=date"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawloop/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 = { "startUrls": [{ "url": "https://www.gumtree.com/for-sale/uk/london/srpsearch+iphone?sort=date" }] }

# Run the Actor and wait for it to finish
run = client.actor("crawloop/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 '{
  "startUrls": [
    {
      "url": "https://www.gumtree.com/for-sale/uk/london/srpsearch+iphone?sort=date"
    }
  ]
}' |
apify call crawloop/gumtree-scraper --silent --output-dataset

```

## MCP server setup

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