{
  "openapi": "3.0.1",
  "info": {
    "title": "Switzerland New Companies Scraper: Swiss B2B Leads (SOGC)",
    "description": "Switzerland companies: Swiss company registry, new Swiss companies and Swiss startups from SOGC / FOSC / SHAB (Handelsregister Schweiz). Name, UID, Zefix legal form, canton, address, purpose, capital. Switzerland company data by canton or keyword. Changes, deletions. Alerts. First 20 free.",
    "version": "0.1",
    "x-build-id": "CBEOiuQMCwLQHXjj7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/euroscrape~switzerland-companies/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-euroscrape-switzerland-companies",
        "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/euroscrape~switzerland-companies/runs": {
      "post": {
        "operationId": "runs-sync-euroscrape-switzerland-companies",
        "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/euroscrape~switzerland-companies/run-sync": {
      "post": {
        "operationId": "run-sync-euroscrape-switzerland-companies",
        "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",
        "properties": {
          "daysBack": {
            "title": "📅 Days back",
            "minimum": 1,
            "maximum": 400,
            "type": "integer",
            "description": "Read the SOGC issues of the last N calendar days (published Monday to Friday, usually the morning after the registry entry). Ignored if 'From date' is set.",
            "default": 7
          },
          "dateFrom": {
            "title": "From date",
            "type": "string",
            "description": "First SOGC publication date to read (YYYY-MM-DD). Overrides 'Days back'."
          },
          "dateTo": {
            "title": "To date",
            "type": "string",
            "description": "Last SOGC publication date to read (YYYY-MM-DD). Default: today."
          },
          "cantons": {
            "title": "📍 Cantons",
            "type": "array",
            "description": "Two-letter codes (ZH, BE, VD, GE, ZG, TI…) or names in English, German, French or Italian (Zurich, Geneva, Genève, Ticino, Basel-Stadt). Empty = all of Switzerland.",
            "items": {
              "type": "string"
            }
          },
          "towns": {
            "title": "Towns",
            "type": "array",
            "description": "Keep only companies whose seat or address town contains one of these (e.g. Lausanne, Winterthur, Lugano). Accents and case ignored.",
            "items": {
              "type": "string"
            }
          },
          "eventTypes": {
            "title": "🏢 What to return",
            "type": "array",
            "description": "New companies by default. Changes and deletions are the other two rubrics of the commercial register in the SOGC.",
            "items": {
              "type": "string",
              "enum": [
                "incorporation",
                "change",
                "deletion"
              ],
              "enumTitles": [
                "New companies (new registry entries, HR01)",
                "Registry changes (mutations: name, seat, purpose, capital, dissolution…, HR02)",
                "Deletions from the register (HR03)"
              ]
            },
            "default": [
              "incorporation"
            ]
          },
          "legalForms": {
            "title": "Legal forms",
            "type": "array",
            "description": "AG / SA, GmbH / Sàrl, sole proprietorship, partnership, cooperative, association, foundation, branch — or the 4-digit register code (0106 = AG, 0107 = GmbH, 0101 = sole proprietorship). Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Keep only companies whose name or business purpose contains one of these words, in the language of the notice (German, French or Italian; accents and case ignored), e.g. Treuhand, immobilier, software, Restaurant, fiduciaria.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop companies whose name or purpose contains one of these words.",
            "items": {
              "type": "string"
            }
          },
          "minCapital": {
            "title": "Min share capital (CHF)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only companies with at least this nominal capital, e.g. 100000 (an AG). Sole proprietorships have no capital and are excluded by any minimum."
          },
          "maxCapital": {
            "title": "Max share capital (CHF)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only companies with at most this nominal capital."
          },
          "includeRawText": {
            "title": "Include the notice text",
            "type": "boolean",
            "description": "Adds the published notice text (rawText) with the sentences naming people removed. People's names are never returned by this Actor.",
            "default": false
          },
          "includeSummary": {
            "title": "Include a free summary row",
            "type": "boolean",
            "description": "Adds one free 'summary' row: companies by canton, legal form and language, median capital.",
            "default": true
          },
          "maxItems": {
            "title": "Max companies",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stops after this many companies (most recent SOGC first). The first 20 of every run are free; the summary row is not counted.",
            "default": 500
          },
          "monitorName": {
            "title": "🔔 Monitor name (only new announcements)",
            "type": "string",
            "description": "Name this search and schedule it (e.g. every weekday): each run then returns only notices not delivered by a previous run of this monitor, so you are never charged twice for the same company. The first run is the baseline."
          },
          "telegramBotToken": {
            "title": "Telegram bot token",
            "type": "string",
            "description": "Get an instant message for each new company of your monitor. Create a bot with @BotFather."
          },
          "telegramChatId": {
            "title": "Telegram chat ID",
            "type": "string",
            "description": "Your chat or channel ID (message @userinfobot to get yours)."
          },
          "discordWebhookUrl": {
            "title": "Discord webhook URL",
            "type": "string",
            "description": "Channel settings → Integrations → Webhooks."
          },
          "slackWebhookUrl": {
            "title": "Slack webhook URL",
            "type": "string",
            "description": "Incoming webhook URL."
          },
          "webhookUrl": {
            "title": "Custom webhook URL",
            "type": "string",
            "description": "Receives one JSON POST per run with all new companies (Make, Zapier, n8n, your CRM…)."
          },
          "maxNotifications": {
            "title": "Max alerts per run",
            "minimum": 1,
            "type": "integer",
            "description": "Extra companies are summarized in one message.",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}