# Digitec Scraper - Swiss Electronics & Tech Store (`studio-amba/digitec-scraper`) Actor

Scrape products, prices, ratings, and availability from digitec.ch, Switzerland's largest online electronics retailer. Export to JSON, CSV, or Excel. No login required.

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

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

## Digitec Scraper

Scrape product data from [Digitec.ch](https://www.digitec.ch), Switzerland's largest online electronics retailer. Part of the Digitec Galaxus Group.

### How to scrape Digitec data

1. Go to [Apify Console](https://console.apify.com) and create a new task with this actor
2. Enter a **search query** (e.g., "laptop", "iphone 16", "gaming mouse")
3. Set **max results** to control how many products to return
4. Click **Start** and wait for results

### Input Parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `searchQuery` | string | `laptop` | Product to search for (ignored when `categoryUrls` is set) |
| `categoryUrls` | array | `[]` | digitec.ch listing URLs (category, producttype, or brand pages) to scrape instead of a search |
| `maxResults` | integer | `100` | Maximum products to return. Hard cap: 960 per run |
| `proxyConfiguration` | object | — | Legacy setting, ignored. Unblocking is handled by a managed scraping browser |

### Output Format

Each product includes:

```json
{
    "name": "MacBook Air (13.60\", M4, 16 GB, 256 GB, CH)",
    "brand": "Apple",
    "price": 879,
    "currency": "CHF",
    "url": "https://www.digitec.ch/en/s1/product/...",
    "inStock": true,
    "deliveryClassification": "ONE_DAY",
    "rating": 4.9,
    "reviewCount": 342,
    "imageUrl": "https://static01.galaxus.com/productimages/..._720.avif",
    "productId": "56822608",
    "sku": "56822608",
    "category": "Notebook",
    "scrapedAt": "2026-08-24T12:00:00.000Z"
}
```

`inStock` is `true` when digitec reports the product as deliverable, `false` when it explicitly reports it as unavailable, and `null` when no availability signal is present. Every price always comes with its `currency` (CHF).

### Use Cases

- **Price monitoring** for Swiss electronics market
- **Competitive analysis** for retailers operating in Switzerland
- **Market research** on consumer electronics trends
- **Product catalog building** for comparison sites
- **Academic research** on pricing in high-cost markets

### API Usage (JavaScript)

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('studio-amba/digitec-scraper').call({
    searchQuery: 'laptop',
    maxResults: 100,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

### API Usage (Python)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("studio-amba/digitec-scraper").call(run_input={
    "searchQuery": "laptop",
    "maxResults": 100,
})
items = client.dataset(run["defaultDatasetId"]).list_items().items
print(items)
```

### Why Digitec?

Digitec.ch is the dominant electronics retailer in Switzerland with:

- 10-15 million monthly visitors
- Extensive product catalog (electronics, computing, gaming, home appliances)
- Swiss Franc pricing (CHF) — important for Swiss market analysis
- Same parent company as Galaxus (broader general merchandise)

### Anti-bot handling

digitec.ch sits behind Akamai bot protection. This actor routes through a managed scraping browser that clears the protection automatically — you don't need to configure any proxy. The legacy `proxyConfiguration` input is accepted for old saved tasks but has no effect.

### Pricing

You pay per result: $0.005 per Actor start plus $0.002 per product returned. A 100-product run costs about $0.21. Note that a run's usage cost only settles after the run reports **SUCCEEDED** — reading the dataset mid-run undercounts the final cost, and a failed run does not charge per-result fees.

### Frequently Asked Questions

#### Do I need a login or cookies?

No. This actor scrapes publicly available product data. No login, cookies, or authentication required.

#### What categories are supported?

All categories available on Digitec.ch: laptops, desktops, smartphones, tablets, gaming, audio, cameras, networking, components, peripherals, home appliances, and more.

#### What currency are prices in?

All prices are in Swiss Francs (CHF).

#### Can I scrape category pages directly?

Yes. Pass one or more digitec.ch listing URLs in `categoryUrls` (e.g. `https://www.digitec.ch/en/s1/producttype/notebook-6`) and the actor scrapes those listings instead of running a search.

#### How many products can one run return?

Up to 960 products per run (hard cap). For larger jobs, split the work across multiple category URLs or search queries.

# Actor input Schema

## `searchQuery` (type: `string`):

Search term to look for products on digitec.ch (e.g. 'laptop', 'kopfhörer', 'smartphone'). Ignored when Category URLs are provided.

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

Optional list of digitec.ch listing URLs to scrape instead of a search query — category, producttype, or brand pages (e.g. https://www.digitec.ch/en/s1/producttype/notebook-6). Maximum 20 URLs per run.

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

Maximum number of products to scrape. Hard cap: 960 per run — split larger jobs across multiple category URLs or queries.

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

Kept for backwards compatibility with saved tasks. Unblocking is handled by a managed scraping browser; this setting has no effect.

## Actor input object example

```json
{
  "searchQuery": "laptop",
  "categoryUrls": [],
  "maxResults": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "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 = {
    "searchQuery": "laptop",
    "categoryUrls": [],
    "maxResults": 5,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "CH"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("studio-amba/digitec-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 = {
    "searchQuery": "laptop",
    "categoryUrls": [],
    "maxResults": 5,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "CH",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("studio-amba/digitec-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 '{
  "searchQuery": "laptop",
  "categoryUrls": [],
  "maxResults": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "CH"
  }
}' |
apify call studio-amba/digitec-scraper --silent --output-dataset

```

## MCP server setup

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