{
  "openapi": "3.0.1",
  "info": {
    "title": "Comparis.ch Phone & Telecom Plan Price Extractor",
    "description": "Compare Swiss smartphone deals by model or browse mobile, home-internet and bundle plans from Comparis.ch across all major Swiss telecom providers.",
    "version": "2.0",
    "x-build-id": "uIkadLFzeYP5W04hl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dataspryva~comparis-ch-phone-and-telecom-plan-price-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dataspryva-comparis-ch-phone-and-telecom-plan-price-extractor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/dataspryva~comparis-ch-phone-and-telecom-plan-price-extractor/runs": {
      "post": {
        "operationId": "runs-sync-dataspryva-comparis-ch-phone-and-telecom-plan-price-extractor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/dataspryva~comparis-ch-phone-and-telecom-plan-price-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-dataspryva-comparis-ch-phone-and-telecom-plan-price-extractor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "What to collect",
            "enum": [
              "mobilePlans",
              "homeInternetPlans",
              "phoneComparison",
              "internetPlans"
            ],
            "type": "string",
            "description": "Mobile phone plans or home internet, TV and landline plans. The two legacy values map onto the same modes.",
            "default": "mobilePlans"
          },
          "mobileCategory": {
            "title": "Mobile plan category",
            "enum": [
              "all",
              "subscriptions",
              "prepaid",
              "dataOnly",
              "flatrate",
              "fiveG",
              "roamingEurope",
              "noMinimumDuration",
              "youth",
              "kids"
            ],
            "type": "string",
            "description": "Which mobile plan family to fetch. All combines regular, prepaid, data-only and youth offers for the widest coverage."
          },
          "homeProductSet": {
            "title": "Home product set",
            "enum": [
              "all",
              "anyInternet",
              "internetOnly",
              "withTv",
              "withLandline",
              "allThree",
              "tvOnly",
              "landlineOnly",
              "fibre"
            ],
            "type": "string",
            "description": "Which home offers to keep. All includes TV-only and landline-only products as well as internet bundles."
          },
          "keyword": {
            "title": "Search by keyword",
            "type": "string",
            "description": "Optional words that must all appear in the plan name, provider, network, promotion text or product names. Leave empty to browse everything.",
            "default": ""
          },
          "mobileProvider": {
            "title": "Mobile provider",
            "enum": [
              "all",
              "Aldi Mobile",
              "Blizz",
              "CHmobile",
              "Coop Mobile",
              "Digital Republic",
              "GAO",
              "Galaxus",
              "Giga Mobile",
              "GoMo",
              "Lebara",
              "Lidl Connect",
              "Lycamobile",
              "MTEL",
              "Migros Mobile",
              "Mucho Mobile",
              "Netvoip",
              "Post Mobile",
              "Quickline",
              "SAK",
              "Salt",
              "Seabix",
              "Sky",
              "Spusu",
              "Sunrise",
              "Swisscom",
              "Swype",
              "Talk Talk",
              "Teleboy",
              "Thurcom",
              "Ticino.com",
              "Wingo",
              "Yallo",
              "hype SWISS",
              "iWay"
            ],
            "type": "string",
            "description": "Limit mobile plans to one provider. Ignored for home plans.",
            "default": "all"
          },
          "networkProvider": {
            "title": "Swiss mobile network",
            "enum": [
              "all",
              "Swisscom",
              "Sunrise",
              "Salt"
            ],
            "type": "string",
            "description": "Keep plans that run on one of Switzerland's three physical mobile networks.",
            "default": "all"
          },
          "only5G": {
            "title": "5G plans only",
            "type": "boolean",
            "description": "Keep plans that support the 5G network.",
            "default": false
          },
          "eSimOnly": {
            "title": "eSIM plans only",
            "type": "boolean",
            "description": "Keep plans that explicitly support eSIM activation.",
            "default": false
          },
          "unlimitedDataCH": {
            "title": "Unlimited Swiss data",
            "type": "boolean",
            "description": "Keep plans with unlimited mobile data in Switzerland.",
            "default": false
          },
          "unlimitedCallsCH": {
            "title": "Unlimited Swiss calls",
            "type": "boolean",
            "description": "Keep plans with unlimited calls inside Switzerland.",
            "default": false
          },
          "roamingEurope": {
            "title": "Roaming data included",
            "type": "boolean",
            "description": "Keep plans with any EU roaming data allowance.",
            "default": false
          },
          "minDataGb": {
            "title": "Minimum mobile data (GB)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Skip plans below this Swiss data allowance. Unlimited plans always pass. Use 0 for no minimum.",
            "default": 0
          },
          "mobileSort": {
            "title": "Sort mobile plans",
            "enum": [
              "priceAsc",
              "priceDesc",
              "dataDesc",
              "provider",
              "name"
            ],
            "type": "string",
            "description": "Order of the mobile results before pagination.",
            "default": "priceAsc"
          },
          "homeProvider": {
            "title": "Home provider",
            "enum": [
              "all",
              "Blizz",
              "Digital Republic",
              "GAO",
              "GGA Maur",
              "Galaxus",
              "Giga Mobile",
              "Green",
              "Init7",
              "InterXS",
              "Migros Mobile",
              "Monzoon",
              "Mucho Mobile",
              "Netconnect",
              "Post Mobile",
              "Quickline",
              "SAK",
              "Salt",
              "Sky",
              "Solnet",
              "Sunrise",
              "Swisscom",
              "Talk Talk",
              "Teleboy",
              "Teleking",
              "Thurcom",
              "Ticino.com",
              "Wingo",
              "Yallo",
              "Zattoo",
              "hype SWISS",
              "iWay"
            ],
            "type": "string",
            "description": "Limit home internet, TV or landline plans to one provider. Ignored for mobile plans.",
            "default": "all"
          },
          "connectionType": {
            "title": "Connection type",
            "enum": [
              "all",
              "fibre",
              "copper",
              "cable"
            ],
            "type": "string",
            "description": "Only plans available over the selected home connection technology.",
            "default": "all"
          },
          "minDownloadSpeedMbps": {
            "title": "Minimum download speed (Mbit/s)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Skip home plans slower than this. Use 0 for no minimum.",
            "default": 0
          },
          "homeSort": {
            "title": "Sort home plans",
            "enum": [
              "priceAsc",
              "priceDesc",
              "speedDesc",
              "provider",
              "name"
            ],
            "type": "string",
            "description": "Order of the home results before pagination.",
            "default": "priceAsc"
          },
          "noMinimumContract": {
            "title": "No minimum contract",
            "type": "boolean",
            "description": "Keep only plans without a minimum contract period.",
            "default": false
          },
          "onlyDiscountedOffers": {
            "title": "Current promotions only",
            "type": "boolean",
            "description": "Keep only plans that currently carry a discounted monthly price.",
            "default": false
          },
          "maxMonthlyPrice": {
            "title": "Maximum monthly price (CHF)",
            "minimum": 0,
            "maximum": 10000,
            "type": "number",
            "description": "Skip plans whose current monthly price (discounted when available) is above this value. Use 0 for no cap.",
            "default": 0
          },
          "maxContractMonths": {
            "title": "Maximum contract length (months)",
            "minimum": 0,
            "maximum": 120,
            "type": "integer",
            "description": "Skip plans with a longer minimum contract. Use 0 for no limit.",
            "default": 0
          },
          "page": {
            "title": "Page",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "1-based page of the sorted results. Max items also sets the page size; increase page to continue where the previous run stopped.",
            "default": 1
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "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.",
            "default": 20
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}