# Gumtree Scraper — UK Classifieds Data (`haketa/gumtree-scraper`) Actor

Gumtree.com scraper for UK classifieds. Extract listings by keyword or category (cars, property, jobs, marketplace): price, title, location, seller type (private/trade), description and photos. Private/trade lead-gen. Export JSON, CSV, Excel.

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

## Pricing

from $1.75 / 1,000 results

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?

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

## Gumtree Scraper 🇬🇧

Extract listings from **Gumtree.com — one of the UK's biggest classifieds sites** — at scale, without an account or API key. Search any keyword or paste category URLs and get clean JSON, CSV or Excel: **prices, locations, seller type (private vs trade), category, descriptions and photos** — across cars, property, jobs and the general marketplace.

Whether you track prices, hunt resale deals, build a pricing dataset, or generate B2B leads from trade sellers, this scraper turns Gumtree into a spreadsheet in minutes.

***

### 🔑 What this scraper does

- 🔎 **Search by keyword** — `iphone`, `ford focus`, `sofa`, `bike`, anything across all categories.
- 💷 **Prices & location** — amount in GBP and the seller's town / region.
- 👤 **Seller intelligence** — **private vs trade/business** — ideal for B2B lead generation.
- 🗂️ **Category & freshness** — category, listing age ("4 days"), featured/urgent flags, photo count.
- 🖼️ **Photos** and listing descriptions.
- 🏙️ **Any category** — general marketplace by default; paste URLs for cars, property, jobs.
- ⚡ **Fast, cheap & reliable** — no browser needed.

***

### 📋 Example output

```json
{
  "id": "1802268882",
  "url": "https://www.gumtree.com/p/iphone/apple-iphone-13-black-128gb-iphone-14-256gb/1802268882",
  "title": "Apple iPhone 13 Black 128GB & iPhone 14 256GB",
  "price": 500,
  "currency": "GBP",
  "location": "Hillsborough, County Down",
  "description": "Both phones in great condition, unlocked...",
  "sellerType": "private",
  "age": "4 days",
  "category": "iphone",
  "categoryId": 10205,
  "numberOfImages": 10,
  "featured": true,
  "imageUrl": "https://i.ebayimg.com/...",
  "scrapedAt": "2026-09-07T12:00:00.000Z"
}
```

***

### 🗂️ Fields you get

| Field | Description |
|---|---|
| `id`, `url` | Listing ID and URL |
| `title`, `description` | Ad title and description |
| `price`, `currency` | Price in GBP |
| `location` | Seller's town / region |
| `sellerType` | `private` or `trade` — key for B2B lead gen |
| `age` | How long the ad has been live |
| `category`, `categoryId` | Gumtree category |
| `numberOfImages`, `imageUrl` | Photo count and cover photo |
| `featured`, `urgent`, `hasVideo` | Listing flags |

***

### 🚀 How to use

1. Click **Try for free**.
2. Enter one or more **Search Terms** (e.g. `iphone`, `sofa`) — or paste full Gumtree search/category URLs into **Start URLs** for cars, property, jobs.
3. (Optional) Filter by **price range**.
4. (Optional) Turn on **Scrape Detail Pages** for the full description, seller and phone where available.
5. Set **Max Items** and run. Export as JSON, CSV, Excel, or pull via API.

#### Example input

```json
{
  "searchTerms": ["iphone 15", "macbook"],
  "priceMin": 100,
  "priceMax": 1000,
  "maxItems": 500,
  "maxPagesPerSearch": 20
}
```

Scrape a whole category via URL (e.g. cars in London):

```json
{
  "startUrls": ["https://www.gumtree.com/cars/london"],
  "maxItems": 1000
}
```

***

### 💡 Popular use cases

#### 💰 Reselling & arbitrage

Track what phones, cars, bikes or furniture actually sell for across the UK. Compare trade vs private prices to spot underpriced items.

#### 🎯 B2B lead generation

Filter by **trade** sellers to build a list of businesses advertising on Gumtree — with location and category. Perfect for service providers and marketplace-tool vendors targeting UK sellers.

#### 📈 Price monitoring & market research

Build a historical price dataset for any category. Measure supply per region, benchmark your own listings and track trends.

#### 🚗 Cars, property & jobs

Paste category URLs to pull used cars, rentals or job ads with price, location and seller — great for vertical analytics.

***

### 🎛️ Filters explained

- **Search Terms** — keywords across all Gumtree categories. Each is searched separately.
- **Start URLs** — paste any Gumtree search/category URL to scrape it directly (cars, property, jobs).
- **Min / Max Price (£)** — keep only listings inside your budget.
- **Scrape Detail Pages** — opens each ad for the full description, seller and phone where available. Slower but richer.
- **Max Items / Max Pages per Search** — control run size. Each result page holds about 24 listings.

***

### ❓ FAQ

**Do I need a Gumtree account or API key?**
No. Just enter what you want to scrape and run.

**Can I tell private sellers from trade/businesses?**
Yes — every listing has a `sellerType` (`private` / `trade`).

**Can I scrape cars, property or jobs, not just the marketplace?**
Yes — paste the category URL from your browser into **Start URLs**.

**How many listings can I get?**
As many as you like. Set **Max Items** to `0` for unlimited, or cap it to control run size.

**What formats can I export?**
JSON, CSV, Excel, HTML table, RSS and via the Apify API. Connect to Make, Zapier, Google Sheets, webhooks or an MCP server.

***

### 🔌 Integrations

- Export to **JSON, CSV, Excel, HTML, RSS**.
- Pull data via the **Apify API** or client libraries.
- Connect to **Make, Zapier, Google Sheets, Slack, webhooks** and more.
- Use it from an **MCP server** in your AI agent / LLM workflow.

***

### ⚖️ Legal & responsible use

This scraper collects **publicly available** listing information only — the same data any visitor can see on Gumtree.com without logging in. It does not access private messages or anything behind a login.

You are responsible for how you use the collected data. Please:

- Respect Gumtree's Terms of Service and applicable laws (including UK GDPR).
- Use any personal data lawfully and only for legitimate purposes.
- Scrape responsibly and avoid excessive request rates.

This tool is provided for lawful purposes such as price research, market analysis and business intelligence. It is not affiliated with, endorsed by, or connected to Gumtree.

# Actor input Schema

## `searchTerms` (type: `array`):

Keywords to search across all Gumtree categories, e.g. 'iphone', 'ford focus', 'sofa'. Each is searched separately. Leave empty if you use Start URLs.

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

Optional. Paste full Gumtree search/category URLs to scrape them directly (e.g. cars in London, property to rent). When provided, Search Terms and filters below are ignored for these URLs.

## `priceMin` (type: `integer`):

Only listings at or above this price.

## `priceMax` (type: `integer`):

Only listings at or below this price.

## `scrapeDetails` (type: `boolean`):

Open each ad for the full description, seller name/type and phone where available. Slower but richer.

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

Maximum number of listings to collect across all searches. 0 = unlimited.

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

How many result pages to scrape per search term / URL. Each page has about 24 listings.

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

Apify Proxy (Datacenter) is enabled by default and works out of the box. Residential is not recommended (unnecessary per-GB cost).

## Actor input object example

```json
{
  "searchTerms": [
    "iphone"
  ],
  "startUrls": [],
  "scrapeDetails": false,
  "maxItems": 100,
  "maxPagesPerSearch": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Open to view and export all scraped listings (JSON, CSV, Excel).

# 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 = {
    "searchTerms": [
        "iphone"
    ],
    "startUrls": [],
    "scrapeDetails": false,
    "maxItems": 100,
    "maxPagesPerSearch": 5,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("haketa/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 = {
    "searchTerms": ["iphone"],
    "startUrls": [],
    "scrapeDetails": False,
    "maxItems": 100,
    "maxPagesPerSearch": 5,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("haketa/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 '{
  "searchTerms": [
    "iphone"
  ],
  "startUrls": [],
  "scrapeDetails": false,
  "maxItems": 100,
  "maxPagesPerSearch": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call haketa/gumtree-scraper --silent --output-dataset

```

## MCP server setup

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