# Toppreise.ch Scraper - Swiss Price Comparison (`studio-amba/toppreise-scraper`) Actor

Scrape product prices from toppreise.ch, the Swiss price comparison. Get product name, brand, GTIN/EAN, lowest and highest price, number of shops. Read whole categories. No login.

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

## Pricing

from $1.20 / 1,000 result scrapeds

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

## Toppreise.ch Scraper

Extract product prices from [toppreise.ch](https://www.toppreise.ch), the Swiss price comparison site. Each record has the product name, brand, GTIN/EAN, manufacturer part number, category, the lowest and highest shop price in CHF, the number of shops that sell it and the product image.

No login. No browser. The actor reads category pages and the structured product data that every product page publishes, so a run is fast and cheap.

### What this actor does

toppreise.ch lists Swiss online shops and their prices for each product. The actor takes the categories or product pages you give it, opens every product page and reads the schema.org Product data on it. One product becomes one record with:

- Product name and brand
- GTIN/EAN codes and manufacturer part number
- Category and the full category path
- Lowest and highest price in CHF across all shops
- Number of shops with an offer
- Product image
- Toppreise.ch product id and direct link

### Why use it

- **Price monitoring.** Track the lowest Swiss price for a list of products over time.
- **Market research.** See how many shops sell a product and how wide the price range is.
- **Product matching.** Match Swiss products to other catalogues through GTIN/EAN and part number.
- **Brand tracking.** List every product of a brand in a category with its price range.
- **Catalogue building.** Build a Swiss product catalogue with categories and images.

### How to scrape Toppreise.ch data

1. Open the actor and paste one or more **Category URLs**, for example `https://www.toppreise.ch/produktsuche/Videogames/PlayStation-5/PS5-Konsolen-c2883`. Find them by browsing a category on toppreise.ch and copying the address.
2. Or paste **Product URLs**, the addresses that contain `/preisvergleich/`.
3. Optionally add **Product name keywords** such as `sony` or `1tb` to keep only matching products.
4. Set **Max Results**. The default is 100.
5. Click **Start**. Each product becomes one row in the dataset.
6. Export the result as JSON, CSV or Excel, or read it through the Apify API.

To follow prices, schedule the actor daily and compare the datasets by `productId`.

### Input

| Field | Type | Description |
|-------|------|-------------|
| `categoryUrls` | string\[] | Category pages on toppreise.ch. Every product in the category is read, 45 a page. |
| `productUrls` | string\[] | Product pages on toppreise.ch. |
| `keywords` | string\[] | Keep products whose name contains one of these words. Empty keeps all. |
| `maxResults` | integer | Maximum number of products to return. Default `100`, maximum `5000`. |
| `requestDelaySeconds` | number | Pause after each request, per worker. Default `0.5`. |
| `proxyConfiguration` | object | Apify proxy settings. Default: Apify datacenter proxy. |

With no category and no product URL, the actor reads the PS5 consoles category.

#### Example input

```json
{
    "categoryUrls": ["https://www.toppreise.ch/produktsuche/Computer-Tablets/Notebooks-c8"],
    "keywords": ["apple"],
    "maxResults": 100
}
```

Keywords are matched against the product name in the product address.

### Output

```json
{
    "productName": "SONY Playstation 5 Pro Digital (2025), 2 TB SSD (PS5 Pro)",
    "brand": "SONY",
    "mpn": "1000050720",
    "gtin": "711719024040",
    "gtins": ["711719024040", "711719024125"],
    "category": "PS5 Konsolen",
    "categoryPath": ["Videogames", "PlayStation 5", "PS5 Konsolen", "Sony", "Playstation 5 Pro"],
    "lowPrice": 950,
    "highPrice": 1576.25,
    "offerCount": 8,
    "currency": "CHF",
    "imageUrl": "https://imgsrv.toppreise.ch/img/827702/400-abf077",
    "productId": "827702",
    "url": "https://www.toppreise.ch/preisvergleich/PS5-Konsolen/SONY-Playstation-5-Pro-Digital-2025-2-TB-SSD-PS5-Pro-p827702",
    "scrapedAt": "2026-11-21T10:00:00.000Z"
}
```

#### Output fields

| Field | Type | Description |
|-------|------|-------------|
| `productName` | string | Product title |
| `brand` | string | null | Brand name |
| `mpn` | string | null | Manufacturer part number |
| `gtin` | string | null | First GTIN/EAN of the product |
| `gtins` | string\[] | All GTIN/EAN codes |
| `category` | string | null | Lowest category of the product |
| `categoryPath` | string\[] | Category path from the top category down |
| `lowPrice` | number | null | Lowest shop price in CHF |
| `highPrice` | number | null | Highest shop price in CHF |
| `offerCount` | integer | null | Number of shops with an offer |
| `currency` | string | null | Price currency, CHF |
| `imageUrl` | string | null | Product image |
| `productId` | string | Toppreise.ch product id |
| `url` | string | Direct link to the product page |
| `scrapedAt` | string | ISO 8601 timestamp of collection |

### Data quality

The name, brand, GTIN, category, prices, offer count and URL are filled on nearly every product. The part number is missing on a few. Every `url` in a run is unique.

### Cost estimate

The actor makes one request per 45 products for the category pages and one request per product page. 100 products cost a fraction of a cent in platform compute.

### Limitations

- **No list of shops.** The record holds the lowest and highest price and the shop count. It does not list each shop's offer.
- **Prices in CHF.** The site shows Swiss prices only.
- **Keywords match the product name.** A word that appears only on the product page does not match.
- **Snapshot.** Each run shows the prices at that moment. It is not a price history.
- **Politeness.** The actor runs three requests in parallel with a short pause after each.

### FAQ

**Does it need a login or an API key?**
No. Category and product pages are public.

**Can I read a whole category?**
Yes. Paste the category address and set Max Results high enough.

**Do I get the EAN?**
Yes. `gtin` and `gtins` hold the codes when the product page lists them.

**How fresh is the data?**
Each run reads the live pages.

### Related scrapers

Building a price comparison dataset? These actors return the same kind of clean JSON:

- **Geizhals Scraper** for price comparison in Austria and Germany
- **Idealo Scraper** for price comparison in Germany and other countries
- **Verivox Scraper** for tariff comparison in Germany

### Disclaimer

This actor collects publicly available data from toppreise.ch for research and aggregation. Respect the terms of service of toppreise.ch and applicable data protection law when you use the data.

# Actor input Schema

## `categoryUrls` (type: `array`):

Category pages on toppreise.ch, for example https://www.toppreise.ch/produktsuche/Videogames/PlayStation-5/PS5-Konsolen-c2883. Every product in the category is read. Leave empty with no product URLs to use the PS5 consoles category.

## `productUrls` (type: `array`):

Product pages on toppreise.ch (addresses containing /preisvergleich/).

## `keywords` (type: `array`):

Keep products whose name contains one of these words, for example sony or 1tb. Empty keeps all products.

## `maxResults` (type: `integer`):

Maximum number of products to return.

## `requestDelaySeconds` (type: `number`):

Pause per worker after each request, in seconds.

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

Proxy settings. toppreise.ch serves product links only to Swiss addresses, so the default is the Apify datacenter proxy in Switzerland.

## Actor input object example

```json
{
  "categoryUrls": [
    "https://www.toppreise.ch/produktsuche/Videogames/PlayStation-5/PS5-Konsolen-c2883"
  ],
  "maxResults": 5,
  "requestDelaySeconds": 0.5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyCountry": "CH"
  }
}
```

# Actor output Schema

## `results` (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 = {
    "categoryUrls": [
        "https://www.toppreise.ch/produktsuche/Videogames/PlayStation-5/PS5-Konsolen-c2883"
    ],
    "maxResults": 5,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyCountry": "CH"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("studio-amba/toppreise-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 = {
    "categoryUrls": ["https://www.toppreise.ch/produktsuche/Videogames/PlayStation-5/PS5-Konsolen-c2883"],
    "maxResults": 5,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyCountry": "CH",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("studio-amba/toppreise-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 '{
  "categoryUrls": [
    "https://www.toppreise.ch/produktsuche/Videogames/PlayStation-5/PS5-Konsolen-c2883"
  ],
  "maxResults": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyCountry": "CH"
  }
}' |
apify call studio-amba/toppreise-scraper --silent --output-dataset

```

## MCP server setup

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