# Gumtree Scraper - UK Classifieds with Prices and Dates (`scrapewise/gumtree-scraper`) Actor

Scrape Gumtree UK classified ads by keyword or search link: title, price in GBP, city, publish date, category, condition, image and ad link. Schedule it to watch new listings. Error rows are free.

- **URL**: https://apify.com/scrapewise/gumtree-scraper.md
- **Developed by:** [Scrapewise Data](https://apify.com/scrapewise) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.76 / 1,000 ad delivereds

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: UK classified ads with prices in GBP, city, date and category

Gumtree Scraper collects classified ads from gumtree.com, the UK classifieds site. Give it a keyword such as `bicycle`
or a search link copied from gumtree.com, and it returns one row per ad: title, price in GBP, city, publish date,
category, condition, featured flag, image and the ad link. No login, no account on gumtree.com.

Only the ad is collected. Seller names, phone numbers, e-mail addresses, seller profiles and the free-text description
(which often carries the seller's contact details) are never read or saved.

### At a glance

| Item | Value |
| --- | --- |
| Price | US$ 0.001 per ad delivered (about US$ 1.63 per 1,000 ads) |
| Run start | US$ 0.005 once per run |
| Error rows | Free |
| Duplicates in the same run | Free |
| Login needed | No |
| Output | Dataset: JSON, CSV, Excel, table view |

### Quick start

Input for the most common case, a keyword across the whole UK:

```json
{
  "searchQueries": ["bicycle"],
  "maxItems": 50,
  "includeDetails": true
}
```

Input for a search you already filtered on gumtree.com (paste the address bar link):

```json
{
  "startUrls": ["https://www.gumtree.com/search?search_category=for-sale&q=bicycle"],
  "maxItems": 200,
  "includeDetails": false
}
```

Keep `includeDetails` on when you need the publish date, category and condition. Turn it off for a faster and lighter
run; those three fields then stay empty and every other field is still filled.

### Input

| Field | Type | Default | What it does |
| --- | --- | --- | --- |
| `searchQueries` | list of strings | `["bicycle"]` | Keywords, one per line. Each keyword is one search across the UK. |
| `startUrls` | list of strings | empty | Search links copied from the address bar of gumtree.com. Other gumtree.com pages are refused with a free error row. |
| `maxItems` | integer | 50 | Cap for the whole run, across all searches. 0 means no cap. |
| `includeDetails` | boolean | true | Opens each ad page for the publish date, category and condition. |
| `proxyConfiguration` | object | Apify Proxy | Leave it as it is unless you know you need to change it. |

If both `searchQueries` and `startUrls` are empty, the Actor runs the example keyword `bicycle` so the run is never
blank.

### Output fields

| Field | Example | Notes |
| --- | --- | --- |
| `type` | `listing` | `error` rows have `errorCode` and `error` instead. |
| `adId` | `1804655253` | Numeric ad ID from the link. Unique per ad; use it to match ads across runs. |
| `title` | `Trek slash 8 gen 5 Large` | As the seller wrote it. |
| `price` | `2600` | Number in GBP. Empty for ads without a price. |
| `currency` | `GBP` | Always GBP on gumtree.com UK. |
| `priceText` | `£2,600` | Price as shown on the site. |
| `location` | `Perth, Perth and Kinross` | City or town and region, as shown on the ad. Not a street address. |
| `publishedAt` | `2026-11-06T14:13:14.919Z` | Date the ad went live. Empty when `includeDetails` is off. |
| `category` | `Sports, Leisure & Travel > Bicycles > Other Bikes` | Category path of the ad. Empty when `includeDetails` is off. |
| `condition` | `Used` | `New`, `Used`, `Refurbished` or `Damaged` when the ad states it. |
| `featured` | `true` | True when the ad carries the Featured badge in the results. |
| `imageUrl` | `https://img.gumtree.com/...` | Main picture of the ad (link only, the image is not downloaded). |
| `url` | `https://www.gumtree.com/p/...` | Link to the ad on gumtree.com. |
| `searchTerm` | `bicycle` | The keyword or the search link that found the ad. |
| `scrapedAt` | `2026-11-09T21:01:59Z` | When the row was collected (UTC). |
| `errorCode` | `NO_RESULTS` | Empty on ad rows. |
| `error` | `gumtree.com has no ad for this search...` | Empty on ad rows. |

### Example output

One real row from a run with `searchQueries: ["bicycle"]` and `includeDetails: true`, copied as it came out of the
dataset:

```json
{
  "type": "listing",
  "adId": "1804561131",
  "title": "Rockrider EXPL 100 Mountain Bike (Large) - Perfect (As-New) Condition",
  "price": 219,
  "currency": "GBP",
  "priceText": "£219",
  "location": "North London, London",
  "publishedAt": "2026-11-03T17:50:07.488Z",
  "category": "Sports, Leisure & Travel > Bicycles > Other Bikes",
  "condition": "New",
  "featured": true,
  "imageUrl": "https://img.gumtree.com/ePR8PyKf84wPHx7_RYmEag/f87cd0dcad5f49fa8f_d6626b66d98a/86",
  "url": "https://www.gumtree.com/p/other-bikes/rockrider-expl-100-mountain-bike-large-perfect-as-new-condition/1804561131",
  "searchTerm": "bicycle",
  "scrapedAt": "2026-11-09T21:01:59Z",
  "errorCode": null,
  "error": null
}
```

### Errors

Errors are rows in the same dataset, with `type: "error"`, a plain message and an `errorCode`. Error rows are never
charged.

| errorCode | Meaning | What to do |
| --- | --- | --- |
| `INVALID_INPUT` | A number in the input is not valid (for example a negative `maxItems`). | Fix the input and run again. |
| `INVALID_URL` | The link is not a gumtree.com search link. | Copy the address bar after searching on gumtree.com. |
| `NO_RESULTS` | gumtree.com has no ad for that keyword or link. | Try a broader keyword or fewer filters. |
| `BLOCKED` | gumtree.com refused every attempt for that search. | Run it again in a few minutes. |
| `UNEXPECTED` | Something outside the normal flow stopped the run. | The run ends with the ads already delivered. Nothing more is charged. Run again later. |

If a single ad page cannot be read, the ad is still delivered from the search results (price, title, city, link and
image), and only the publish date, category and condition stay empty.

### Scheduling and new ads

To watch for new listings, schedule the Actor (daily or hourly in Apify Console) with the same keyword or link. Each run
returns the ads that are on the site at that moment, so compare `adId` between runs to find the new ones. Ads you have
already seen in your own dataset are the same `adId`, so a simple filter on the dataset is enough.

### Integrations, scheduling and AI agents

- **Schedules:** run the Actor on a timetable from the Apify Console and get the dataset after each run.
- **Export:** download the dataset as JSON, CSV, Excel or HTML, or read it through the Apify API.
- **Make, n8n and Zapier:** use the Apify app or the dataset URL to send each new row to a sheet, a chat channel or a CRM.
- **Apify MCP server:** let an AI assistant start this Actor and read its dataset with a plain question, such as
  "list the bicycles under 100 pounds in London from the last run".
- **Webhooks:** send a message when a run finishes, then read the dataset from your own code.

### FAQ

**Does it need a gumtree.com account?**
No. It reads public search results and public ad pages.

**Does it collect seller details?**
No. Seller name, profile, phone, e-mail and the free-text description are not read or saved. Each row has only the
fields listed above.

**Why is the location a city and not a street?**
The site shows the town and region on the ad. Street addresses are not shown, so none is saved.

**Are prices always in pounds?**
Yes. gumtree.com UK lists prices in GBP, and every row has `currency: "GBP"`. Ads without a price keep `price` empty
and keep the text the site shows in `priceText`.

**Are the images downloaded?**
No. The row keeps the link to the main picture. Download them yourself if you need them.

**Can I search a town or a price range?**
Yes. Set the filters on gumtree.com, copy the address bar link and paste it in `startUrls`.

**How many ads can one run return?**
Set `maxItems`. Use 0 for no cap. Large searches take longer, so schedule them on a timetable.

**Why is the same ad sometimes missing from one run?**
Ads are published and removed all the time. Each run returns the ads on the site when it runs.

**What does a run cost?**
US$ 0.005 to start, plus US$ 0.001 per ad delivered. A run that returns 1,000 ads costs about US$ 1.00 plus the
start fee. Error rows and repeated ads in the same run are free.

### Limitations

- Only gumtree.com UK. Other Gumtree sites (Australia, South Africa, New Zealand) are not covered.
- The publish date, category and condition come from the ad page. With `includeDetails` off they are empty.
- Sold or removed ads are not marked as sold. A removed ad stops appearing in new runs.
- Search results depend on what gumtree.com shows for the keyword and filters. Very broad keywords can return many
  pages; use `maxItems` to keep runs short.
- Data is shown as the site has it. Check the ad before you act on a price or a condition.

### Changelog

- 0.1 (11 Nov 2026): first version. Keyword and search link input, ad rows with GBP price, city, publish date,
  category, condition, featured flag, image link and ad link. Error rows for bad input, bad links, empty searches and
  refused requests.

# Actor input Schema

## `searchQueries` (type: `array`):

Keywords to search on gumtree.com, one per line, for example bicycle or sofa. Each keyword is one search across all of the UK. Leave empty when you paste search links below.

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

Links copied from the address bar of gumtree.com after a search, for example a search filtered by town or price. Other pages of gumtree.com are not accepted.

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

Hard cap for the whole run, across all searches. 0 = no cap.

## `includeDetails` (type: `boolean`):

On: opens each ad page to fill the publish date, category and condition. Off: faster and lighter, those three fields stay empty.

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

Apify Proxy by default. Change it only if you know you need to.

## Actor input object example

```json
{
  "searchQueries": [
    "bicycle"
  ],
  "maxItems": 50,
  "includeDetails": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

## `resultsCsv` (type: `string`):

No description

# 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 = {
    "searchQueries": [
        "bicycle"
    ],
    "maxItems": 50,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapewise/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 = {
    "searchQueries": ["bicycle"],
    "maxItems": 50,
    "proxyConfiguration": { "useApifyProxy": True },
}

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

```

## MCP server setup

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