# Gumtree Category URLs Scraper (`morkerr/gumtree-structure-crawler`) Actor

Scrape every Gumtree UK category URL, subcategory filter dropdown, & vehicle make/model in seconds. No browser needed. HTTP-based extraction with built-in Apify proxy support. Outputs clean CSV. Perfect for market research, price monitoring, automotive catalogues, and competitor analysis on Gumtree.

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

## Pricing

from $10.00 / 1,000 cost of all categories

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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 Category URLs Scraper

Extract all **Gumtree UK category URLs**, their **filter dropdown options**, and every **vehicle make & model** — all via HTTP, no browser needed.

---

### What It Does

This actor gives you the complete structure of Gumtree UK in clean, flat rows:

| Feature | Output |
|---|---|
| **Category tree** | All 7 top-level + ~108 subcategory URLs |
| **Filter dropdowns** | Every filter value per subcategory (seller type, condition, colour, brand, fuel type, body type, transmission, etc.) |
| **Vehicle makes & models** | Every make + model for cars, vans, trucks, campers, and motorbikes |
| **Price ranges** | Min/max price options from each category |

---

### How to Use

There are 2 simple modes:

#### 1. Scrape main category URLs

No input needed. Outputs the full Gumtree category tree.

````

top\_slug,top\_name,sub\_slug,sub\_name,url
cars-vans-motorbikes,Cars & Vehicles,cars,Cars,https://www.gumtree.com/cars-vans-motorbikes/cars
for-sale,For Sale,kitchen-appliances,Appliances,https://www.gumtree.com/for-sale/kitchen-appliances

````

#### 2. Scrape filters

Enter a **Category URL** and the actor automatically discovers all filter fields for that category. Main category URLs (e.g. `/for-sale`) auto-crawl **all subcategories**.

| Input URL | What you get |
|---|---|
| `/cars-vans-motorbikes/vans` | 69 filters + 52 makes + 150 models + prices |
| `/cars-vans-motorbikes/cars` | 97 makes + 1011 models + prices |
| `/for-sale` | All 23 subcategories crawled automatically |
| `/flats-houses/property-to-rent` | Property type, bedrooms, bills, pets allowed |

---

### Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `phase` | select | `categories` | `categories` = scrape category tree, `filters` = scrape filters for a URL |
| `target_url` | string | empty | Category URL for filter scraping. Main categories auto-crawl all subcategories. Example: `https://www.gumtree.com/cars-vans-motorbikes/vans` |
| `proxy` | object | Apify proxy | Proxy configuration |

---

### Output Schema (category tree mode)

When you select **"Scrape main category URLs"**, each row in the dataset contains one subcategory entry.

#### Columns

| Column | Type | Example |
|---|---|---|
| `top_slug` | string | `cars-vans-motorbikes` |
| `top_name` | string | `Cars & Vehicles` |
| `sub_slug` | string | `cars` |
| `sub_name` | string | `Cars` |
| `url` | string | `https://www.gumtree.com/cars-vans-motorbikes/cars` |

#### Example row

```json
{
  "top_slug": "cars-vans-motorbikes",
  "top_name": "Cars & Vehicles",
  "sub_slug": "vans",
  "sub_name": "Vans",
  "url": "https://www.gumtree.com/cars-vans-motorbikes/vans"
}
````

This full tree is also saved to the key-value store as `OUTPUT.json`.

***

### Dataset Schema (filters mode)

When you select **"Scrape filters"**, every row shares the same 10-column schema — no "undefined" cells in your CSV export. The `row_type` column distinguishes the three kinds of data.

#### Columns

| Column | Type | Populated for | Description |
|---|---|---|---|
| `row_type` | string | All rows | `filter`, `make_model`, or `price_option` |
| `category` | string | All rows | Human-readable category name |
| `filter_name` | string | filter / price\_option | API filter field name (e.g. `appliance_brand`) |
| `value` | string | filter / price\_option | Machine value for the option |
| `label` | string | filter / price\_option | Human-readable label |
| `make_label` | string | make\_model | Vehicle make name (e.g. `Ford`) |
| `make_slug` | string | make\_model | Vehicle make API value (e.g. `ford`) |
| `model_label` | string | make\_model | Vehicle model name (e.g. `Transit Custom`) |
| `model_slug` | string | make\_model | Vehicle model API value (e.g. `transit-custom`) |
| `source` | string | make\_model | `dropdown` or `makes-only` |

#### Example rows

**Filter row:**

```json
{
  "row_type": "filter",
  "category": "Kitchen Appliances",
  "filter_name": "appliance_brand",
  "value": "bosch",
  "label": "Bosch",
  "make_label": "",
  "make_slug": "",
  "model_label": "",
  "model_slug": "",
  "source": ""
}
```

**Make/Model row:**

```json
{
  "row_type": "make_model",
  "category": "Vans",
  "filter_name": "",
  "value": "",
  "label": "",
  "make_label": "Ford",
  "make_slug": "ford",
  "model_label": "Transit Custom",
  "model_slug": "transit-custom",
  "source": "dropdown"
}
```

**Price row:**

```json
{
  "row_type": "price_option",
  "category": "Vans",
  "filter_name": "price-price-min",
  "value": "5000",
  "label": "\u00a35,000",
  "make_label": "",
  "make_slug": "",
  "model_label": "",
  "model_slug": "",
  "source": ""
}
```

***

### Use Cases

- **Market research** — Understand Gumtree's category structure and available filters
- **Price monitoring** — Extract price ranges for each category
- **Automotive catalogues** — Get all vehicle makes and their models (97 makes, 1000+ models)
- **Scraper infrastructure** — Feed category URLs into a listing scraper
- **Competitor analysis** — Track what filters Gumtree offers per category

***

### Technical Notes

- **No browser required** — All extraction is HTTP-based using Gumtree's own AJAX API
- **Proxy included** — Uses Apify's built-in proxy to avoid rate limits
- **Fast** — Category tree in <1 second, single category filters in ~15 seconds
- **Categories auto-detected** — The actor reads Gumtree's SSR `filtersDictionary` to discover available filters dynamically (no hardcoded mapping)
- **Rate-limit aware** — 0.5s delay between subcategory requests

***

### Pricing

Priced at **$10 per 1000 results** with a $5 free monthly credit:

| Scenario | Rows | Price |
|---|---|---|
| Category tree | ~108 | **$1.08** |
| Vans filters + makes/models | ~219 | **$2.19** |
| Cars filters + makes/models | ~1,180 | **$11.80** |
| For-sale auto-crawl (23 subcats) | ~746 | **$7.46** |
| Flats-houses auto-crawl (9 subcats) | ~250 | **$2.50** |

**Your $5 free credit covers:**

- \~4 category tree runs, or
- \~2 filter runs (vans, for-sale, etc.), or
- \~1 full vehicle run (cars with all makes/models)

# Actor input Schema

## `phase` (type: `string`):

Choose what data to extract from Gumtree.

## `target_url` (type: `string`):

Gumtree category page to scrape filters from. Main category URLs (e.g. /for-sale) auto-crawl all subcategories. Leave empty to default to Cars. Example: https://www.gumtree.com/cars-vans-motorbikes/vans

## `proxy` (type: `object`):

Apify proxy settings

## Actor input object example

```json
{
  "phase": "categories",
  "target_url": "",
  "proxy": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `row_type` (type: `string`):

filter / make\_model / price\_option (filters mode). Empty for category tree mode.

## `top_slug` (type: `string`):

e.g. cars-vans-motorbikes

## `top_name` (type: `string`):

e.g. Cars & Vehicles

## `sub_slug` (type: `string`):

e.g. vans

## `sub_name` (type: `string`):

e.g. Vans

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

e.g. https://www.gumtree.com/cars-vans-motorbikes/vans

## `category` (type: `string`):

Human-readable category name

## `filter_name` (type: `string`):

e.g. appliance\_brand, seller\_type, vehicle\_colour

## `value` (type: `string`):

e.g. bosch, private, black

## `label` (type: `string`):

e.g. Bosch, Private, Black

## `make_label` (type: `string`):

e.g. Ford

## `make_slug` (type: `string`):

e.g. ford

## `model_label` (type: `string`):

e.g. Transit Custom

## `model_slug` (type: `string`):

e.g. transit-custom

## `source` (type: `string`):

dropdown or makes-only

# 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("morkerr/gumtree-structure-crawler").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("morkerr/gumtree-structure-crawler").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 '{}' |
apify call morkerr/gumtree-structure-crawler --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Gumtree Category URLs Scraper",
        "description": "Scrape every Gumtree UK category URL, subcategory filter dropdown, & vehicle make/model in seconds. No browser needed. HTTP-based extraction with built-in Apify proxy support. Outputs clean CSV. Perfect for market research, price monitoring, automotive catalogues, and competitor analysis on Gumtree.",
        "version": "0.1",
        "x-build-id": "a0HTy92OUypGXM2ty"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/morkerr~gumtree-structure-crawler/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-morkerr-gumtree-structure-crawler",
                "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/morkerr~gumtree-structure-crawler/runs": {
            "post": {
                "operationId": "runs-sync-morkerr-gumtree-structure-crawler",
                "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/morkerr~gumtree-structure-crawler/run-sync": {
            "post": {
                "operationId": "run-sync-morkerr-gumtree-structure-crawler",
                "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",
                "properties": {
                    "phase": {
                        "title": "What do you want to scrape?",
                        "enum": [
                            "categories",
                            "filters"
                        ],
                        "type": "string",
                        "description": "Choose what data to extract from Gumtree.",
                        "default": "categories"
                    },
                    "target_url": {
                        "title": "Category URL (for 'Scrape filters')",
                        "type": "string",
                        "description": "Gumtree category page to scrape filters from. Main category URLs (e.g. /for-sale) auto-crawl all subcategories. Leave empty to default to Cars. Example: https://www.gumtree.com/cars-vans-motorbikes/vans",
                        "default": ""
                    },
                    "proxy": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Apify proxy settings",
                        "default": {
                            "useApifyProxy": true
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
