Skip to main content

Complete Guide: How to Scrape Tutti.ch Listings Using Python

Run the Tutti.ch Scraper Apify Actor from Python and turn tutti.ch keyword searches across Switzerland into structured listing rows.

Updated 12 min readMarkdown
Complete Guide: How to Scrape Tutti.ch Listings Using Python

This guide shows how to scrape tutti.ch listings from Python and turn Swiss classifieds searches into structured rows: title, snippet, asking price, postcode, city, canton, publication time, category, seller name and listing URL, with optional full descriptions and coordinates. The tool is Tutti.ch Scraper (reventadata/tutti-scraper), driven from Python through the official Apify API client.

Rather than maintaining your own scraping code, you send a search query to the Actor and read back normalised JSON rows.

By the end of this complete guide, you will know every input parameter the Actor accepts, how it handles the 101-page site ceiling, what each of the 35 dataset fields means, and how to schedule or webhook-automate runs. The sample output and counts below come from a live Actor run on 14 November 2026 (20 listings in 7.5 seconds) and a same-day detail page parsed with the Actor's own parser.


TL;DR

In this tutorial, you will learn how to run reventadata/tutti-scraper from Python using apify-client 3.x, pass searchQueries, maxItems, maxPages and includeDetails, and retrieve 35-field rows with Swiss franc prices, cantons, categories and seller metadata. You will also learn how the Actor detects tutti.ch's 101-page ceiling (3,030 listings per keyword), flags paid isHighlighted ads, and schedules recurring sweeps. Visit the Tutti.ch Scraper Store page to try it in Apify Console or follow the Python workflow below to produce a working extraction script.


Prerequisites and setup

You need three things before running the script:

  1. Python 3.11 or newer, as required by apify-client 3.x.
  2. A free Apify account, which you can create with an email address or a GitHub login. Apify Console is the web workspace where you manage Actors, runs, logs and datasets.
  3. Your Apify API token, available under Settings > API & Integrations in Apify Console.

Install or upgrade the official client and export your token in the shell:

pip install -U "apify-client~=3.0"
export APIFY_API_TOKEN="your_apify_token_here"

See the Apify API client for Python docs for async usage and client options. You do not need any scraping code on your side.


Understanding Tutti.ch Scraper

Tutti.ch Scraper searches tutti.ch by keyword across all categories and returns one structured row per listing. Behind the scenes, it reads 30 listings per search page.

Each row carries 35 fields: 20 search-page fields (including parsed integer price, raw priceText, postcode, city, canton, cantonName, postedAt, categoryId, sellerName, sellerBadgeUrl and isHighlighted), 11 optional detail-page fields (full description, latitude, longitude, imageUrls, properties, categoryLabel, parentCategoryLabel, sellerPublicAccountId, sellerMemberSince, sellerProfileUrl, detailPrice), and 4 run-tracking fields (matchedKeyword, searchUrl, page, scrapedAt).

Two platform limits matter up front. First, tutti.ch serves at most 101 pages (3,030 listings) for a single keyword. Second, the Actor searches by keyword across all categories without built-in category or price filters, so you filter categoryId, price or isHighlighted downstream. Always verify that your use complies with tutti.ch's terms of use and applicable data-protection law.


Step-by-step walkthrough

Step 1: Access the Actor

Navigate to the Tutti.ch Scraper page on Apify Store. Clicking Try for free opens the Actor in Apify Console, where you can review the input schema and run it interactively. For programmatic runs in Python, you only need the Actor slug reventadata/tutti-scraper.

Step 2: Configure input parameters

The Actor accepts four input fields, identical in the Console form and the API payload:

Field Type Description
searchQueries array of strings Required. Keywords to search on tutti.ch, each swept independently across all categories.
maxItems integer Hard cap on rows stored across all keywords combined (default 100, minimum 1).
maxPages integer Optional cap on result pages per keyword (1 to 101; 30 listings per page).
includeDetails boolean When true, fetches each listing's detail page for full text, coordinates, images and properties (default false).

For example, to monitor two phone generations across up to two pages each without fetching detail pages:

{
    "searchQueries": ["iphone 13 pro", "iphone 14 pro"],
    "maxItems": 50,
    "maxPages": 2,
    "includeDetails": false
}

The Actor validates searchQueries before making any network request: an empty list, blank strings, or any keyword over the 200-byte UTF-8 limit fails the run immediately with an input message. Duplicates across pages or across multiple keywords in the same run are dropped by listing id.

Step 3: Run the Actor from Python

Save the following script to run a one-page search for "iphone 13 pro" capped at 20 rows:

import os
from apify_client import ApifyClient

# 1. Initialise the client with your token from the environment
client = ApifyClient(os.environ["APIFY_API_TOKEN"])

# 2. Describe the search: one keyword, first page, up to 20 rows
run_input = {
    "searchQueries": ["iphone 13 pro"],
    "maxItems": 20,
    "maxPages": 1,
    "includeDetails": False,
}

# 3. Start the Actor and wait for it to finish
run = client.actor("reventadata/tutti-scraper").call(run_input=run_input)
if run is None or run.status != "SUCCEEDED":
    status = run.status if run else "unknown"
    raise SystemExit(f"Run did not succeed (status: {status}).")

# 4. Read the rows from the run's default dataset
items = client.dataset(run.default_dataset_id).list_items().items
print(f"Retrieved {len(items)} listings.\n")

# 5. Print the first 5 listings with price, place, canton and category
for item in items[:5]:
    price = item.get("priceText") or "no price"
    print(f"{item['title']} | {price} | {item.get('city')}, {item.get('canton')} | {item.get('categoryId')}")

Step 4: Examine the results

The live example run on 14 November 2026 completed with status SUCCEEDED, returning 20 listings in 7.5 seconds. On that dataset, the script prints:

Retrieved 20 listings.

MagSafe Ladegerät (1 m) für iPhone von A-Tec * NEU + OVP | 7.- | Ostermundigen, BE | phoneNavigationAccessories
iPhone 13 Pro Max Gold (Gold) Sehr guter Zustand | 120.- | Lugano, TI | cellPhones
Apple iPhone 13 Pro Max 256 GB Graphit Sehr gepflegt | 295.- | Wallisellen, ZH | cellPhones
Neue Handyhüllen ? verschiedene Modelle (iPhone & Samsung) | 8.- | Bremgarten AG, AG | phoneNavigationAccessories
iPhone 13 Pro 128 GB - Akkukapazität 100% - wie neu - OVP | 279.- | Grabs, SG | cellPhones

Even in the first five rows, you can see why inspecting categoryId matters: two listings are accessories (phoneNavigationAccessories) at 7.- and 8.-, while three are phones (cellPhones).

Step 5: Optional detail enrichment

Switching includeDetails to true instructs the Actor to fetch each kept listing's detail page. If an individual detail page fails to load, the Actor logs a warning and still delivers the row with all 11 detail fields set to null.

Here are the 11 detail fields from a same-day capture of listing 83806999 on 14 November 2026, parsed offline with the Actor's parser (imageUrls cut to its first entry; description shortened):

{
    "description": "Apple iPhone 13 Pro Max  256 GB  Graphit  Sehr gepflegt\n\nPreis: CHF 295 VB\n\nIch verkaufe mein Apple iPhone 13 Pro Max mit 256 GB Speicher in der Farbe Graphit (Grau), da ich auf ein neues Modell umsteige...",
    "latitude": 47.42120361328125,
    "longitude": 8.596273422241211,
    "imageUrls": [
        "https://c.tutti.ch/big/1360495343.jpg"
    ],
    "properties": [
        {
            "label": "Versand verfügbar",
            "text": "Nein"
        },
        {
            "label": "Zustand",
            "text": "Neu"
        }
    ],
    "categoryLabel": "Handys",
    "parentCategoryLabel": "Telefon & Navigation",
    "sellerPublicAccountId": "9169092695698416259",
    "sellerMemberSince": "2026-10-13T09:47:39Z",
    "sellerProfileUrl": null,
    "detailPrice": 295
}

Step 6: Download and export data

In Apify Console, open the run's Storage tab to preview the Listings overview table (title, price, city, canton, postedAt, sellerName, isHighlighted, url) or download the full 35-field dataset as JSON, CSV, Excel, XML, RSS, HTML table or JSONL. Programmatically, pass a format parameter to the dataset export endpoint as documented in the Apify datasets documentation.


Working with the API

The Python script uses three synchronous calls on ApifyClient: client.actor("reventadata/tutti-scraper").call(run_input=...) starts the Actor and waits until completion, returning a typed Run object; run.status and run.default_dataset_id are attributes on that object; and client.dataset(...).list_items().items retrieves the stored rows. Always load APIFY_API_TOKEN from your shell environment or secret store rather than hard-coding it in source files.

For event-driven pipelines that should not block while waiting for a run, configure an Apify webhook on ACTOR.RUN.SUCCEEDED. The webhook payload's resource object is the run object and includes defaultDatasetId, so your endpoint can fetch the new dataset items immediately. To run sweeps on a cron cadence, save your input as an Apify task and attach a schedule.

For error handling, check run.status before reading the dataset and inspect logs via client.log(run.id).get(). The log prints Skipped N: reason tallies for deduplicated listings and ends with Pushed N row(s) using .... If a run finds zero rows: it finishes SUCCEEDED with a status message when tutti.ch returned an empty search result, or FAILED when searchQueries was invalid or pages could not be parsed. If the run clock runs low mid-sweep after storing rows, the Actor stops early, logs a warning, and preserves every row already pushed.


Advanced usage patterns

Multi-keyword sweeps with automatic deduplication. Pass related terms in searchQueries (such as ["iphone 13 pro", "iphone 13 pro max"]). Overlapping hits across keywords or across shifting result pages are stored once.

Working around the 101-page ceiling. tutti.ch stops each keyword at page 101 (3,030 results). If totalCount on page 1 exceeds 3,030, split broad terms into model-specific or brand-specific keywords and merge results downstream by id, since deduplication runs only within a single Actor execution rather than across separate runs.

Monitoring fresh listings. tutti.ch search pages default to newest listings first. Scheduling a small run (maxPages: 1 or 2) on a cron schedule and comparing id and postedAt against your database tracks newly posted items without re-fetching deep history.

Separating discovery from enrichment. Keep includeDetails: false for fast discovery sweeps, filter out isHighlighted ads or unwanted categoryId values in your own script, and turn includeDetails on only for focused runs that require full text or coordinates.

Integrating downstream. Connect finished runs to Google Sheets, databases, Zapier or Make via webhooks or scheduled dataset exports.


Understanding your data

Every row follows the 35-field schema (price parses "295.-" to 295 and "1'490.-" to 1490; non-numeric labels leave price null). In the 20 rows from 14 November 2026: 14 were cellPhones, 4 phoneNavigationAccessories, 1 computers (1'490.- bundle) and 1 computerComponentsAccessories; 18 "DE", 1 "IT", 1 "FR"; 7 ZH, 4 SG, 2 AG, 2 LU, 2 SZ, 1 BE, 1 TI, 1 FL. One had sellerBadgeUrl, 0 isHighlighted. Complete row:

{
    "id": "83806999",
    "url": "https://www.tutti.ch/de/vi/83806999",
    "title": "Apple iPhone 13 Pro Max 256 GB Graphit Sehr gepflegt",
    "descriptionSnippet": "Apple iPhone 13 Pro Max  256 GB  Graphit  Sehr gepflegt\n\nPreis: CHF 295 VB\n\nIch verkaufe mein Apple iPhone 13 Pro Max mit 256 GB Spei…",
    "price": 295,
    "priceText": "295.-",
    "postcode": "8304",
    "city": "Wallisellen",
    "canton": "ZH",
    "cantonName": "Zürich",
    "postedAt": "2026-11-14T11:18:13+01:00",
    "categoryId": "cellPhones",
    "sellerName": "Sai Sagar R",
    "sellerLogoUrl": null,
    "sellerBadgeUrl": "https://cdn.tutti.ch/subscriptions-logo/plus.svg",
    "thumbnailUrl": "https://c.tutti.ch/thumbnail/1360495343.jpg",
    "imageCount": 7,
    "isHighlighted": false,
    "source": "tutti",
    "language": "FR",
    "description": null,
    "latitude": null,
    "longitude": null,
    "imageUrls": null,
    "properties": null,
    "categoryLabel": null,
    "parentCategoryLabel": null,
    "sellerPublicAccountId": null,
    "sellerMemberSince": null,
    "sellerProfileUrl": null,
    "detailPrice": null,
    "matchedKeyword": "iphone 13 pro",
    "searchUrl": "https://www.tutti.ch/de/q/suche/Ak61pcGhvbmUgMTMgcHJvwJTAwMDA?page=1",
    "page": 1,
    "scrapedAt": "2026-11-14T14:45:13.000Z"
}

Troubleshooting guide

Run ended SUCCEEDED with zero rows. tutti.ch returned zero matches for your keyword. The status message states how many pages loaded cleanly; simplify or broaden your searchQueries terms and re-run.

Run ended FAILED with zero rows. Check the status message and run log. Either searchQueries was empty, blank or over the 200-byte UTF-8 limit, or the Actor could not get a valid search page (a block or changed page structure).

Fewer rows than expected. Search pages return 30 listings each, and live listings shift as new ads arrive. Check Skipped N: reason in the log for duplicates dropped across pages or keywords, and verify whether maxItems or maxPages stopped the run.

Null detail fields when includeDetails is true. If a single detail fetch fails, the Actor still stores the search row with null detail fields and logs a warning count (N detail page(s) could not be read). Re-check the run log in Apify Console or via client.log(run.id).get(), and use the Issues tab on the Store page for support.


Best practices

Start every new query with maxPages: 1, maxItems: 10 and includeDetails: false to verify what categories and price formats come back before scaling up. Always filter on isHighlighted == False and categoryId in your downstream code so promoted or accessory listings do not skew price averages, and check titles as well since sellers occasionally file accessories under phone categories. Treat price: null explicitly rather than substituting zero, and retain id as your primary key when storing snapshots across scheduled runs.

Because tutti.ch listings expire, record scrapedAt alongside each snapshot, keep sweeps focused to stay well under the 101-page ceiling, and respect tutti.ch's terms of use and Swiss data-protection obligations when processing seller-related fields.


Conclusion and next steps

You now have a complete Python workflow to run reventadata/tutti-scraper, inspect its 35-field output, optionally enrich listings with detail pages, and automate recurring sweeps with schedules and webhooks. Try broadening or splitting your keywords, enabling includeDetails on filtered subsets, or wiring a webhook into your price tracker.

For current pricing and details, see the Store page.

Try Tutti.ch Scraper yourself and let me know what you build!


Resources

About the author: reventadata builds and publishes data extraction Actors on the Apify Store.

About the author

  • Hi, I'm the engineer behind ReventaData. I build pay-per-event Apify Actors that turn public marketplace, classifieds, jobs and real-estate sites into clean, reliable datasets. Here on Hashnode, I share practical tutorials on collecting structured web data with Python and Apify, and on putting it to work: price tracking, lead lists and market analysis. Explore our turnkey scrapers: https://apify.com/reventadata

No comments yet. Be the first to comment.