# Gumtree.com Listing Scraper (`sync-network/gumtree-com-listing-scraper`) Actor

Efficiently scrape and collect classified listings from Gumtree with customizable search filters, price ranges, and date options. Ideal for market research, price tracking, and data collection.

- **URL**: https://apify.com/sync-network/gumtree-com-listing-scraper.md
- **Developed by:** [Alam](https://apify.com/sync-network) (community)
- **Categories:** Automation, E-commerce
- **Features:** Limited permissions
- **Stats:** 123 total users, 3 monthly users, 100.0% runs succeeded, 5 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 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.

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.com Listing Scraper

Scrape and collect classified listings from Gumtree with customizable search filters, price ranges, and location options. Covers all Gumtree UK categories including electronics, motors, jobs, services, property, and more.

### Features

- 🔍 **Flexible search** — Search by keyword, category, or direct Gumtree URLs
- 📍 **Location filter** — Narrow results by UK city or region
- 💷 **Price filtering** — Set min/max price ranges
- 📅 **Date filtering** — Sort by most recent or relevance
- 🖼️ **Full listing data** — Title, price, description, location, images, seller info, post date
- ⚡ **Fast Cheerio-based scraping** — No heavy browser, fast and efficient
- 🔄 **Pagination support** — Scrape multiple pages of results automatically
- 🤖 **AI-ready output** — Clean structured JSON for analysis or import

### Input Parameters

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `searchUrls` | array | — | List of Gumtree search URLs to scrape |
| `query` | string | — | Search keyword (alternative to URLs) |
| `location` | string | — | UK location filter |
| `minPrice` | integer | — | Minimum price filter |
| `maxPrice` | integer | — | Maximum price filter |
| `maxResults` | integer | `50` | Maximum number of listings to return |
| `category` | string | — | Gumtree category filter |

### Output Example

```json
{
    "title": "iPhone 14 Pro Max 256GB - Excellent Condition",
    "price": "£650",
    "location": "Birmingham",
    "description": "Excellent condition iPhone 14 Pro Max...",
    "imageUrl": "https://...",
    "listingUrl": "https://www.gumtree.com/p/...",
    "postedDate": "2026-03-15",
    "sellerName": "John D.",
    "category": "Mobile Phones"
}
```

### Use Cases

- **Market research** — Track classified pricing trends across the UK
- **Deal finding** — Monitor for underpriced items across categories
- **Lead generation** — Extract seller contact info for outreach
- **Competitor analysis** — Monitor competitor classified listings
- **Price monitoring** — Track specific product categories over time
- **Data collection** — Build datasets for analysis or AI training

### Why Choose This Scraper?

- **98,000+ runs** — Battle-tested reliability
- **Cheerio-based** — Fast, efficient, no browser overhead
- **All categories** — Works across every Gumtree section
- **Pagination built-in** — Automatically scrapes multiple result pages

# Actor input Schema

## `url` (type: `string`):

The base URL of the Gumtree search. Default is 'for-sale'.

## `search_location` (type: `string`):

The location to search within (e.g., 'birmingham'). Leave blank for no specific location.

## `distance` (type: `integer`):

The radius around the location to search within, in miles. Leave blank for no distance filter.

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

Sort results by 'date' (newest first) or 'price'. Leave blank for no sorting.

## `max_items` (type: `integer`):

The maximum number of items to scrape.

## `keywords` (type: `array`):

List of keywords to filter listings by (optional).

## `min_price` (type: `integer`):

Minimum price of listings to scrape (optional).

## `max_price` (type: `integer`):

Maximum price of listings to scrape (optional).

## `locations` (type: `array`):

List of locations to filter listings by (optional).

## `date_range` (type: `string`):

Filter items posted within the last specified timeframe.

## `throttle` (type: `integer`):

Time in seconds to wait between requests to avoid overloading the server.

## Actor input object example

```json
{
  "url": "https://www.gumtree.com/search?search_category=for-sale",
  "search_location": "",
  "sort": "date",
  "max_items": 10,
  "min_price": 0,
  "max_price": 1000000,
  "date_range": "last_week",
  "throttle": 2
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("sync-network/gumtree-com-listing-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("sync-network/gumtree-com-listing-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 '{}' |
apify call sync-network/gumtree-com-listing-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,sync-network/gumtree-com-listing-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/fSsLcaCDzqvRfUiIf/builds/LQB1e3aXdtE4U86vw/openapi.json
