Home

Gumtree UK Classified Listings

How to get Gumtree UK Classified Listings in Google Sheets

Scrape Gumtree UK (and AU/NZ/ZA) classified listings from search URLs - title, price with currency, location, and listing URL. gumtree.com is one page of it. A run reads that public list and saves one row per result.

Set up the Apify actor

Apify is where this run is collected. An actor is the program that collects the rows. A task is that program saved with your settings, so the next section can ask for the latest rows. You need a free Apify account.

  1. 01
    Open Gumtree UK Classified Listings and click Try for free. Create an Apify account if you do not have one. The Free plan does not ask for a card.
  2. 02
    You are on the input form. Keep the sample for this first run.
    {
        "startUrls": [
            {
                "url": "https://www.gumtree.com/search?q=bicycle&search_location=london"
            }
        ],
        "includePhoneDetails": false,
        "maxItems": 5,
        "includeListingDetails": false,
        "monitoringMode": false,
        "gumtreeSearchSort": "most_recent",
        "maxRequestRetries": 3,
        "enrichEmails": false
    }
  3. 03
    Leave the proxy setting as it is. Click Start and wait until the run says Succeeded.
  4. 04
    Open Storage, then Dataset. You should see id, title, price, currency.
  5. 05
    When you want the real list, raise maxItems. The sample cap is only there so the first run stays small.
  6. 06
    Go back to the input and choose Save as a new task. Name it after this list.
  7. 07
    Open the task. Copy the task ID from the address bar. Excel, Sheets, Power BI, and the other guides ask for this ID.
  8. 08
    On the task, open Schedules and add a weekly run if you want fresh rows. Each run pays the start charge and the charge for the rows. The amounts are in the price list on this page.
  9. 09
    Open Settings, then API & Integrations, and copy an API token. Excel, Sheets, and the other guides put this token in a download link. Anyone with that link can download the rows, so treat it like a password.

How to set up in Google Sheets

Use the task ID and the API token from Set up the Apify actor, above.

  1. 01
    In a Google Sheet, click cell A1 and paste this formula. Replace TASK_ID and YOUR_TOKEN.
    =IMPORTDATA("https://api.apify.com/v2/actor-tasks/TASK_ID/runs/last/dataset/items?format=csv&clean=true&status=SUCCEEDED&token=YOUR_TOKEN")
  2. 02
    Wait until the columns fill. Sheets refreshes IMPORTDATA on its own. Use Data, Data connectors, Refresh when you want it now.
  3. 03
    After the next scheduled run, the same cell reads that task's newest successful dataset.

Schema

Examples come from the actor sample, not a live result.

NameDescriptionExample
idId1504002246
titleTitleDibond sheets £15 each
pricePrice15
currencyCurrencyGBP
phonePhone+1-555-0100
locationLocationLondon
urlUrlhttps://www.gumtree.com/p/sheet-materials/dibond-sheets-15-each-/1504002246
  • idId1504002246
  • titleTitleDibond sheets £15 each
  • pricePrice15
  • currencyCurrencyGBP
  • phonePhone+1-555-0100
  • locationLocationLondon
  • urlUrlhttps://www.gumtree.com/p/sheet-materials/dibond-sheets-15-each-/1504002246