# Gumtree Scraper — UK Classifieds & Prices | $1.69/1K (`bovi/gumtree-scraper`) Actor

Scrape Gumtree UK classifieds by keyword, category, location & price. Returns title, price, location, condition, seller type, posted date, images, description & listing URL. Resilient JSON-LD + dataLayer extraction. Pay per result.

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

## Pricing

from $2.62 / 1,000 listing items

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/platform/actors/running/actors-in-store#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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use 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 — UK Classifieds, Prices, Sellers

Scrape [Gumtree](https://www.gumtree.com) — the UK's #1 classifieds platform — by keyword, category, and location. Returns titles, prices, conditions, seller types, locations, images, descriptions, and listing URLs.

### Features

- **Search by keyword** — any search term across all categories or a specific category slug
- **Location filter** — restrict to a UK city or region (e.g. `london`, `manchester`, `glasgow`)
- **Price range** — optional min/max GBP price filters
- **Access resilient** — uses the browse path (`/for-sale/...`) which avoids the access challenge that hits the `/search?...` path; RESIDENTIAL GB proxy recommended for production
- **Rich data** — dual-source extraction (JSON-LD + gumtreeDataLayer) gives 20+ fields per listing
- **Pay per result** — you are charged only for listings actually returned

### Output Fields

| Field | Type | Description |
|-------|------|-------------|
| `listing_id` | string | Gumtree numeric listing ID |
| `title` | string | Listing title |
| `description` | string | Full listing description |
| `url` | string | Listing page URL |
| `price` | float | Price in GBP |
| `price_currency` | string | Always `GBP` |
| `price_pennies` | int | Price in pence |
| `condition` | string | `New`, `Used`, `Refurbished` |
| `availability` | string | `InStock`, `OutOfStock` |
| `location` | string | City/area string (e.g. `"Hackney, London"`) |
| `posted_age` | string | How long ago posted (e.g. `"2 days"`) |
| `seller_type` | string | `trade` or `private` |
| `seller_name` | string | Seller name (null on search results) |
| `images` | array | Image URLs |
| `image_count` | int | Number of images |
| `thumbnail` | string | First image URL |
| `is_trade` | bool | Trade seller flag |
| `is_delivery` | bool | Delivery offered |
| `is_gbg_verified` | bool | Gumtree Verified badge |
| `promotions` | array | e.g. `["FEATURED"]` |
| `has_video` | bool | Video included in listing |
| `category` | string | Category slug (e.g. `"iphone"`) |
| `category_id` | int | Gumtree numeric category ID |
| `search_query` | string | The query used (provenance) |
| `search_location` | string | Location filter used |
| `page_number` | int | Page number the listing came from |
| `parse_confidence` | float | 0–1 quality score; \< 0.5 = drift warning |
| `warnings` | array | Machine-readable parse warnings |
| `scraped_at` | string | ISO-8601 UTC timestamp |

### Input

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `query` | string | **required** | Search keyword(s) |
| `location` | string | UK-wide | Location slug (e.g. `london`) |
| `category` | string | all | Category slug (e.g. `iphones`, `cars-vans-motorbikes`) |
| `priceMin` | integer | — | Minimum price in GBP |
| `priceMax` | integer | — | Maximum price in GBP |
| `maxItems` | integer | 100 | Maximum listings to return (0 = all) |
| `proxyConfiguration` | object | RESIDENTIAL GB | Apify proxy config |

### Access Notes

Gumtree's `/search?...` query path triggers a JS challenge (HTTP 247 with `window.rbzns`). The browse path (`/for-sale/...`) is not challenged. This actor uses the browse path exclusively. Apify RESIDENTIAL GB proxy is recommended for production cloud runs.

### Pricing

Pay-per-event: **$1.50 per 1,000 listings** (charged per `listing-item` event, only for records actually returned).

# Actor input Schema

## `query` (type: `string`):

Keyword(s) to search on Gumtree (e.g. 'iphone 14', 'sofa', 'mountain bike'). Required.
## `location` (type: `string`):

UK location slug as it appears in Gumtree URLs (e.g. 'london', 'manchester', 'glasgow', 'birmingham'). Leave blank to search all of the UK.
## `category` (type: `string`):

Gumtree category slug to restrict results (e.g. 'iphones', 'laptops', 'cars-vans-motorbikes', 'property-for-sale'). Leave blank to search all categories.
## `priceMin` (type: `integer`):

Only show listings priced at or above this amount in GBP. Leave blank for no minimum.
## `priceMax` (type: `integer`):

Only show listings priced at or below this amount in GBP. Leave blank for no maximum.
## `maxItems` (type: `integer`):

Maximum number of listings to return. Set to 0 for all available results. Default 100.
## `proxyConfiguration` (type: `object`):

Gumtree requires a residential proxy for reliable access. Apify Residential proxy (GB) is required to ensure reliable results in production. Without a residential proxy, requests may be challenged.

## Actor input object example

```json
{
  "query": "iphone",
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "GB"
  }
}
````

# Actor output Schema

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

Dataset containing Gumtree Scraper records (listing\_id, title, price, price\_currency, condition, location, seller\_type, seller\_name, posted\_age, image\_count, url, category, parse\_confidence).

# 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 = {
    "query": "iphone",
    "maxItems": 100,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "GB"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("bovi/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 = {
    "query": "iphone",
    "maxItems": 100,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "GB",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("bovi/gumtree-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "query": "iphone",
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "GB"
  }
}' |
apify call bovi/gumtree-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=bovi/gumtree-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Gumtree Scraper — UK Classifieds & Prices | $1.69/1K",
        "description": "Scrape Gumtree UK classifieds by keyword, category, location & price. Returns title, price, location, condition, seller type, posted date, images, description & listing URL. Resilient JSON-LD + dataLayer extraction. Pay per result.",
        "version": "0.1",
        "x-build-id": "O4Qx58GEbBD3VpBRM"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/bovi~gumtree-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-bovi-gumtree-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/bovi~gumtree-scraper/runs": {
            "post": {
                "operationId": "runs-sync-bovi-gumtree-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/bovi~gumtree-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-bovi-gumtree-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "query"
                ],
                "properties": {
                    "query": {
                        "title": "Search query",
                        "type": "string",
                        "description": "Keyword(s) to search on Gumtree (e.g. 'iphone 14', 'sofa', 'mountain bike'). Required."
                    },
                    "location": {
                        "title": "Location (optional)",
                        "type": "string",
                        "description": "UK location slug as it appears in Gumtree URLs (e.g. 'london', 'manchester', 'glasgow', 'birmingham'). Leave blank to search all of the UK."
                    },
                    "category": {
                        "title": "Category slug (optional)",
                        "type": "string",
                        "description": "Gumtree category slug to restrict results (e.g. 'iphones', 'laptops', 'cars-vans-motorbikes', 'property-for-sale'). Leave blank to search all categories."
                    },
                    "priceMin": {
                        "title": "Minimum price (GBP)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Only show listings priced at or above this amount in GBP. Leave blank for no minimum."
                    },
                    "priceMax": {
                        "title": "Maximum price (GBP)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Only show listings priced at or below this amount in GBP. Leave blank for no maximum."
                    },
                    "maxItems": {
                        "title": "Max listings to scrape",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum number of listings to return. Set to 0 for all available results. Default 100.",
                        "default": 100
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Gumtree requires a residential proxy for reliable access. Apify Residential proxy (GB) is required to ensure reliable results in production. Without a residential proxy, requests may be challenged.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ],
                            "apifyProxyCountry": "GB"
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
