# Comparis.ch Phone & Telecom Plan Price Extractor (`dataspryva/comparis-ch-phone-and-telecom-plan-price-extractor`) Actor

Compare Swiss smartphone deals by model or browse mobile, home-internet and bundle plans from Comparis.ch across all major Swiss telecom providers.

- **URL**: https://apify.com/dataspryva/comparis-ch-phone-and-telecom-plan-price-extractor.md
- **Developed by:** [Dataspryva](https://apify.com/dataspryva) (community)
- **Categories:** Automation, Lead generation, 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 $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

## Comparis.ch Phone & Telecom Plan Price Extractor

Comparis.ch is Switzerland's largest comparison platform. Its telecom section lists current mobile subscriptions, prepaid and data-only offers, and home internet, TV and landline packages from Swiss providers. This actor turns those public comparison pages into clean, filterable pricing records.

### What it collects

- **Mobile plans** — regular subscriptions, prepaid, data-only, flat-rate, 5G, EU-roaming, no-minimum-contract, youth and kids offers, up to 298 current offers
- **Home plans** — internet, internet + TV, internet + landline, internet + TV + landline, fibre, TV-only and landline-only offers, up to 548 current offers
- CHF monthly and first-year pricing, current discounts and promotion labels
- Provider name, Comparis rating and logo, plus the physical Swiss network (Swisscom, Sunrise or Salt) for mobile plans
- Mobile data, speed, calls, SMS and EU-roaming allowances; eSIM and roaming-package flags
- Contract length, notice period and activation or hardware costs
- Home download/upload speed, connection technology, TV channel and replay details, landline call tariffs
- Filters, sorting and page-based pagination over the complete result list

Every record is omit-empty: fields the source does not provide for an offer are left out rather than written as `null`.

### Input

| Field | Default | What it does |
|---|---|---|
| `mode` | `mobilePlans` | `mobilePlans` or `homeInternetPlans` |
| `mobileCategory` | `all` | Mobile family: `all`, `subscriptions`, `prepaid`, `dataOnly`, `flatrate`, `fiveG`, `roamingEurope`, `noMinimumDuration`, `youth`, `kids` |
| `homeProductSet` | `all` | Home family: `all`, `anyInternet`, `internetOnly`, `withTv`, `withLandline`, `allThree`, `tvOnly`, `landlineOnly`, `fibre` |
| `keyword` | – | Words that must all appear in the plan name, provider, network, promotion or product names |
| `mobileProvider` / `homeProvider` | `all` | Restrict to one provider |
| `networkProvider` | `all` | Mobile network: `all`, `Swisscom`, `Sunrise`, `Salt` |
| `connectionType` | `all` | Home connection: `all`, `fibre`, `copper`, `cable` |
| `only5G`, `eSimOnly`, `unlimitedDataCH`, `unlimitedCallsCH`, `roamingEurope` | `false` | Mobile feature filters |
| `minDataGb` | `0` | Minimum Swiss mobile data in GB; unlimited plans always pass |
| `minDownloadSpeedMbps` | `0` | Minimum home download speed |
| `noMinimumContract`, `onlyDiscountedOffers` | `false` | Shared offer filters |
| `maxMonthlyPrice` | `0` | Cap on the current monthly price (discounted when available); 0 = no cap |
| `maxContractMonths` | `0` | Cap on the minimum contract length; 0 = no cap |
| `mobileSort` / `homeSort` | `priceAsc` | `priceAsc`, `priceDesc`, `dataDesc`/`speedDesc`, `provider`, `name` |
| `page` | `1` | 1-based page of the sorted results |
| `maxItems` | `20` | Maximum records written by this run and the page size, 1–1000 |

The daily prefill uses `mode=mobilePlans`, `mobileCategory=subscriptions`, `maxItems=3` — one page fetch and three records.

#### Examples

Cheapest 25 mobile plans with 10 GB or more data:

```json
{
  "mode": "mobilePlans",
  "mobileCategory": "all",
  "minDataGb": 10,
  "mobileSort": "priceAsc",
  "maxItems": 25
}
```

Any internet plan over fibre at 1 Gbit/s or faster:

```json
{
  "mode": "homeInternetPlans",
  "homeProductSet": "fibre",
  "minDownloadSpeedMbps": 1000,
  "homeSort": "speedDesc",
  "maxItems": 20
}
```

Page through every home offer 50 at a time:

```json
{
  "mode": "homeInternetPlans",
  "homeProductSet": "all",
  "maxItems": 50,
  "page": 2
}
```

#### Legacy inputs

Saved tasks that still send the old fields keep working: `mode: "phoneComparison"` is treated as `mobilePlans`, `mode: "internetPlans"` as `homeInternetPlans`, `planType: "mobile"` selects mobile plans, `planType: "home-internet"` selects any internet home plan, `planType: "bundle"` selects internet + TV + landline, and the old `provider` slug is matched to the provider list. These keys are mapped in code; they are not shown in the input form.

### Output

Each row is one plan. Common fields:

- `recordType` — always `plan` (legacy-compatible)
- `planFamily` — `mobile` or `home-internet`
- `planType` — `mobile`, `home-internet`, `bundle`, `tv` or `landline`
- `planCategory` — the Comparis category that supplied the row
- `productName`, `provider`, `providerId`, `providerRating`, `providerLogoUrl`, `imageUrl`
- `monthlyFee` — current monthly price (discounted when available); `priceMonthly` and `priceMonthlyDiscounted` keep both variants
- `priceFirstYear`, `priceFirstYearDiscounted`, `monthlyDiscount`, `savingsPercent`, `activationFee`, `currency`
- `contractMonths`, `terminationMonths`, `promotions`, `promotionInfo`, `productUrl`

Mobile rows add `networkName`, `supports5G`, `technologyType`, `subscriptionType`, `eSimSupported`, `roamingPackagesAvailable`, `dataGb`, `dataLimitMb`, `dataUnlimited`, `dataSpeedMbps`, `minutesIncludedCh`, `smsIncludedCh` and EU-roaming allowances.

Home rows add `internetProductName`, `tvProductName`, `landlineProductName`, `hasInternet`, `hasTv`, `hasLandline`, `downloadSpeedMbps`, `uploadSpeedMbps`, `connectionTypes`, `connectionTypeIds`, `tvChannels`, `tvHdChannels`, `tvReplay`, `parallelStreams`, landline tariffs and per-component prices.

Every row carries `position`, `page`, `totalResults`, `totalPages` and `scrapedAt` for paging and incremental integrations.

### Pagination

Sorting is applied to the full filtered list, then `page` and `maxItems` slice it. `maxItems` is both the run cap and the page size, so increase `page` (1, 2, 3 …) to walk the list without gaps. A page shorter than `maxItems` means the source list is exhausted; `totalPages` and `totalResults` tell you when to stop.

### Data source and limits

- Public German-language Comparis.ch comparison pages; no login, cookies or API key.
- Comparis.ch retired its device-only smartphone price comparison. This actor covers telecom plans; legacy device fields (`brand`, `storage`, `color`, `price` for handsets) are no longer populated.
- Upstream currently lists at most 298 mobile offers across all mobile categories and 548 home offers. `totalResults` reports the real matching count; the actor does not invent rows beyond the source.
- Filters run on the complete server-rendered offer list, so every filter combination returns consistent, deduplicated rows.
- Comparis.ch protects its pages with an anti-bot layer. The actor uses browser-grade TLS impersonation and automatically falls back to Apify Proxy when a direct request is challenged. No proxy setup is needed from you.

### FAQ

**Do I need a Comparis account?** No. The comparison pages are public.

**Are prices in Swiss francs?** Yes, all monetary fields are CHF.

**Why is a plan missing from a filtered run?** Filters are applied to the current public list; if the provider removed or changed an offer, it disappears. A short page is expected at the end of the list.

**Can I mix mobile and home plans in one run?** No — run one mode at a time. Each mode has its own filters and pagination.

**How current is the data?** Every run reads the live comparison pages, including current promotions and discounted monthly prices.

# Actor input Schema

## `mode` (type: `string`):

Mobile phone plans or home internet, TV and landline plans. The two legacy values map onto the same modes.

## `mobileCategory` (type: `string`):

Which mobile plan family to fetch. All combines regular, prepaid, data-only and youth offers for the widest coverage.

## `homeProductSet` (type: `string`):

Which home offers to keep. All includes TV-only and landline-only products as well as internet bundles.

## `keyword` (type: `string`):

Optional words that must all appear in the plan name, provider, network, promotion text or product names. Leave empty to browse everything.

## `mobileProvider` (type: `string`):

Limit mobile plans to one provider. Ignored for home plans.

## `networkProvider` (type: `string`):

Keep plans that run on one of Switzerland's three physical mobile networks.

## `only5G` (type: `boolean`):

Keep plans that support the 5G network.

## `eSimOnly` (type: `boolean`):

Keep plans that explicitly support eSIM activation.

## `unlimitedDataCH` (type: `boolean`):

Keep plans with unlimited mobile data in Switzerland.

## `unlimitedCallsCH` (type: `boolean`):

Keep plans with unlimited calls inside Switzerland.

## `roamingEurope` (type: `boolean`):

Keep plans with any EU roaming data allowance.

## `minDataGb` (type: `integer`):

Skip plans below this Swiss data allowance. Unlimited plans always pass. Use 0 for no minimum.

## `mobileSort` (type: `string`):

Order of the mobile results before pagination.

## `homeProvider` (type: `string`):

Limit home internet, TV or landline plans to one provider. Ignored for mobile plans.

## `connectionType` (type: `string`):

Only plans available over the selected home connection technology.

## `minDownloadSpeedMbps` (type: `integer`):

Skip home plans slower than this. Use 0 for no minimum.

## `homeSort` (type: `string`):

Order of the home results before pagination.

## `noMinimumContract` (type: `boolean`):

Keep only plans without a minimum contract period.

## `onlyDiscountedOffers` (type: `boolean`):

Keep only plans that currently carry a discounted monthly price.

## `maxMonthlyPrice` (type: `number`):

Skip plans whose current monthly price (discounted when available) is above this value. Use 0 for no cap.

## `maxContractMonths` (type: `integer`):

Skip plans with a longer minimum contract. Use 0 for no limit.

## `page` (type: `integer`):

1-based page of the sorted results. Max items also sets the page size; increase page to continue where the previous run stopped.

## `maxItems` (type: `integer`):

Maximum records this run writes and the page size used for pagination. The smallest page that still returns data is used as the daily prefill.

## Actor input object example

```json
{
  "mode": "mobilePlans",
  "mobileCategory": "subscriptions",
  "homeProductSet": "anyInternet",
  "keyword": "",
  "mobileProvider": "all",
  "networkProvider": "all",
  "only5G": false,
  "eSimOnly": false,
  "unlimitedDataCH": false,
  "unlimitedCallsCH": false,
  "roamingEurope": false,
  "minDataGb": 0,
  "mobileSort": "priceAsc",
  "homeProvider": "all",
  "connectionType": "all",
  "minDownloadSpeedMbps": 0,
  "homeSort": "priceAsc",
  "noMinimumContract": false,
  "onlyDiscountedOffers": false,
  "maxMonthlyPrice": 0,
  "maxContractMonths": 0,
  "page": 1,
  "maxItems": 3
}
```

# Actor output Schema

## `products` (type: `string`):

Dataset containing every mobile or home plan collected in this run.

## `input` (type: `string`):

The exact input used for this run.

# 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 = {
    "mode": "mobilePlans",
    "mobileCategory": "subscriptions",
    "homeProductSet": "anyInternet",
    "keyword": "",
    "mobileProvider": "all",
    "networkProvider": "all",
    "only5G": false,
    "eSimOnly": false,
    "unlimitedDataCH": false,
    "unlimitedCallsCH": false,
    "roamingEurope": false,
    "minDataGb": 0,
    "mobileSort": "priceAsc",
    "homeProvider": "all",
    "connectionType": "all",
    "minDownloadSpeedMbps": 0,
    "homeSort": "priceAsc",
    "noMinimumContract": false,
    "onlyDiscountedOffers": false,
    "maxMonthlyPrice": 0,
    "maxContractMonths": 0,
    "page": 1,
    "maxItems": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("dataspryva/comparis-ch-phone-and-telecom-plan-price-extractor").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 = {
    "mode": "mobilePlans",
    "mobileCategory": "subscriptions",
    "homeProductSet": "anyInternet",
    "keyword": "",
    "mobileProvider": "all",
    "networkProvider": "all",
    "only5G": False,
    "eSimOnly": False,
    "unlimitedDataCH": False,
    "unlimitedCallsCH": False,
    "roamingEurope": False,
    "minDataGb": 0,
    "mobileSort": "priceAsc",
    "homeProvider": "all",
    "connectionType": "all",
    "minDownloadSpeedMbps": 0,
    "homeSort": "priceAsc",
    "noMinimumContract": False,
    "onlyDiscountedOffers": False,
    "maxMonthlyPrice": 0,
    "maxContractMonths": 0,
    "page": 1,
    "maxItems": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("dataspryva/comparis-ch-phone-and-telecom-plan-price-extractor").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 '{
  "mode": "mobilePlans",
  "mobileCategory": "subscriptions",
  "homeProductSet": "anyInternet",
  "keyword": "",
  "mobileProvider": "all",
  "networkProvider": "all",
  "only5G": false,
  "eSimOnly": false,
  "unlimitedDataCH": false,
  "unlimitedCallsCH": false,
  "roamingEurope": false,
  "minDataGb": 0,
  "mobileSort": "priceAsc",
  "homeProvider": "all",
  "connectionType": "all",
  "minDownloadSpeedMbps": 0,
  "homeSort": "priceAsc",
  "noMinimumContract": false,
  "onlyDiscountedOffers": false,
  "maxMonthlyPrice": 0,
  "maxContractMonths": 0,
  "page": 1,
  "maxItems": 3
}' |
apify call dataspryva/comparis-ch-phone-and-telecom-plan-price-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dataspryva/comparis-ch-phone-and-telecom-plan-price-extractor"
        }
    }
}
```

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/xxhhEovEZOweinq30/builds/uIkadLFzeYP5W04hl/openapi.json
