# Gumtree Scraper (`voyn/gumtree-scraper`) Actor

Export data from search results of Gumtree.com, the free classified ads, and community website. Get images, location, prices, and descriptions of the available products and adverts. Save the data as HTML, JSON, CSV, Excel, or XML.

- **URL**: https://apify.com/voyn/gumtree-scraper.md
- **Developed by:** [Voyn Software](https://apify.com/voyn) (community)
- **Categories:** E-commerce, Jobs, Real estate
- **Stats:** 61 total users, 2 monthly users, 100.0% runs succeeded, 3 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

Extract listings from [Gumtree](https://www.gumtree.com/) into clean **CSV, Excel, JSON, or API** outputs.\
This **Gumtree Scraper** works with any category (cars, property, services, electronics, jobs, etc.).\
Just open Gumtree, apply filters (location, price, category, keywords), copy the results URL, and paste it into the scraper.

##### How to Use

Provide these **3 inputs**:

- **Gumtree List URLs** (one or more results pages with pagination)
- **Number of Max. Products** (stop after N items)
- **Scraper Mode** (List pages only vs. All product pages)

***

##### Gumtree List URLs

Use result pages like `https://www.gumtree.com/cars-vans-motorbikes/uk/page1`.\
You can pass **multiple URLs** to combine results or split queries by filters.

##### Number of Max. Products

Set a hard cap to control volume and cost. The scraper stops once it reaches this count.

> **Note:** Gumtree typically exposes ~first 50 pages of results per query.\
> For larger datasets, split by filters (price ranges, regions, keywords).

##### Scraper Mode

There are **two modes**:

**1) Scrape List Pages Only** (faster, fewer requests)\
Collects generic fields without visiting each product page:

- product title
- short description
- price
- thumbnail image URL
- product link
- location

**2) Scrape All Product Pages** (slower, maximum details)\
Visits each product page to extract richer data (varies by category):

- product title
- short & long description
- price
- **all** image links in gallery
- video links (if available)
- product link
- breadcrumb
- detailed specs / attributes (category-specific, e.g., vehicle specs, property details)

***

##### Output Formats

Download or integrate results as:

- **CSV / Excel** (business-friendly)
- **JSON / NDJSON** (developer-friendly)
- **API** (connect to Google Sheets, Zapier, Make.com, BI tools)

***

### Example Scraped Data

If you choose **“Scrape All Product Pages”**, the output includes richer fields and a `record_specs` object that varies by category.

###### Scraped Car from Gumtree

```json
{
  "list_url": "https://www.gumtree.com/cars/uk",
  "record_url": "https://www.gumtree.com/p/nissan/nissan-x-trail-estate-2016-manual-1598-cc-5-doors/1441412821",
  "record_name": "Nissan, X-TRAIL, Estate, 2016, Manual, 1598 (cc), 5 doors",
  "record_description": "£8400 Nissan X-Trail 1.6 dCi n-tec Euro 6 ...",
  "record_price": "£8,400.00",
  "record_location": "Perth, Perth and Kinross",
  "record_thumbnail": "https://i.ebayimg.com/00/s/NzY4WDEwMjQ=/z/HXMAAOSwysRjGGIK/$_86.JPG",
  "record_images": [
    "https://i.ebayimg.com/00/s/NzY4WDEwMjQ=/z/HXMAAOSwysRjGGIK/$_86.JPG",
    "https://i.ebayimg.com/00/s/NzY4WDEwMjQ=/z/9XgAAOSwhOVjGGIA/$_86.JPG"
  ],
  "record_videos": [],
  "record_description_long": "£8400 Nissan X-Trail 1.6 dCi n-tec Euro 6 (s/s) 5dr ...",
  "record_breadcrumb": "Home|Motors|Cars|Nissan|Nissan X-TRAIL|",
  "record_specs": {
    "vehicle_registration_year": "2016",
    "vehicle_body_type": "Estate",
    "vehicle_mileage": "98,895 miles",
    "vehicle_transmission": "Manual",
    "vehicle_fuel_type": "Diesel",
    "vehicle_engine_size": "1598 cc",
    "vehicle_colour": "Black",
    "seller_type": "Private",
    "Posted": "2 days ago"
  }
}
```

###### Scraped Property from Gumtree

```json
{
  "list_url": "https://www.gumtree.com/flats-houses",
  "record_url": "https://www.gumtree.com/p/property-to-rent/3-bedroom-house-in-redgate-drive-st.-helens-wa9-3-bed-1488395-/1441422295",
  "record_name": "3 bedroom house in Redgate Drive, St. Helens, WA9 (3 bed) (#1488395)",
  "record_description": "No Agent Fees Property Reference Number: 1488395 ...",
  "record_price": "£715.00pm",
  "record_location": "St Helens, Merseyside",
  "record_thumbnail": "https://i.ebayimg.com/00/s/NDUwWDYwMA==/z/A4UAAOSwrapjGHsd/$_86.JPG",
  "record_images": [
    "https://i.ebayimg.com/00/s/NDUwWDYwMA==/z/A4UAAOSwrapjGHsd/$_86.JPG",
    "https://i.ebayimg.com/00/s/NjgyWDEwMjQ=/z/PSkAAOSwoSBjGHsd/$_86.JPG"
  ],
  "record_videos": [],
  "record_description_long": "We are proud to offer this delightful 3 bedroom ...",
  "record_breadcrumb": "Home|Property|To Rent|House|3 Bedroom|",
  "record_specs": {
    "Posted": "Just now",
    "seller_type": "Agency",
    "available_date": "19 Sep 2022",
    "property_type": "House",
    "property_number_beds": "3"
  }
}
```

# Actor input Schema

## `gumtree_link` (type: `array`):

Gumtree list links that contains products you want to be scraped.

## `max_record` (type: `integer`):

Scraper will stop running when successfully scrapes X amount of products or when reaches maximum number of page Gumtree allows.

## `scraper_mode` (type: `string`):

You can either scrape generic info (30 products with 1 web request) or more detailled info (30 products with 31 web requests).

## `proxy_config` (type: `object`):

Select proxies to be used by your crawler.

## Actor input object example

```json
{
  "gumtree_link": [
    "https://www.gumtree.com/search?search_category=cars&search_location=uk"
  ],
  "max_record": 10,
  "scraper_mode": "0",
  "proxy_config": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "gumtree_link": [
        "https://www.gumtree.com/search?search_category=cars&search_location=uk"
    ],
    "proxy_config": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("voyn/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 = {
    "gumtree_link": ["https://www.gumtree.com/search?search_category=cars&search_location=uk"],
    "proxy_config": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("voyn/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 '{
  "gumtree_link": [
    "https://www.gumtree.com/search?search_category=cars&search_location=uk"
  ],
  "proxy_config": {
    "useApifyProxy": true
  }
}' |
apify call voyn/gumtree-scraper --silent --output-dataset

```

## MCP server setup

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