# Switzerland Company Registry Scraper — Zefix (`dltik/switzerland-zefix-company-scraper`) Actor

Search Switzerland companies by name and get identity + legal status (active, liquidation, insolvency, struck off) from the official Zefix (Central Business Register). Rich JSON: legal form, registered address, incorporation date, activity, VAT. Lookup by UID (CHE-…), batch mode. No API key.

- **URL**: https://apify.com/dltik/switzerland-zefix-company-scraper.md
- **Developed by:** [Walid](https://apify.com/dltik) (community)
- **Categories:** Business, Lead generation, Marketing
- **Stats:** 2 total users, 1 monthly users, 100.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/platform/actors/running/actors-in-store#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

## 🇨🇭 Switzerland Company Registry Scraper — Zefix (Central Business Register)

> ⭐ **Bookmark this actor** — it helps keep it visible on the Apify Store.

Search Switzerland companies by name and get the **full company record** — identity **and** legal status (active, liquidation, insolvency, struck off) —
straight from the official **Zefix (Central Business Register)**. Every result carries legal form, registered
address, incorporation date, activity and VAT where the registry publishes them. Batch
dozens in one run. Rich JSON, no API key. Think of it as **Pappers, but for Switzerland**.

### What it does

- **Search by name** (`mode=search`) → matching companies, each **enriched to a full record** (legal form, registered address, incorporation date, activity, VAT) — not just a name. Set `richResults: false` for a fast, lightweight candidate list instead.
- **Lookup by ID** (`mode=lookup`) → one full company by its UID (CHE-…).
- **Normalized status** → legal status is mapped to one vocabulary so you can
  compare companies across every country in this scraper family.
- **Batch** → pass a `queries` list to resolve many companies in a single run.

### Example input

```json
{
  "mode": "search",
  "query": "Nestlé",
  "richResults": true,
  "maxResults": 10
}
```

### Output (rich record per company)

| Field | Meaning |
|---|---|
| `siren` | Local registration identifier (UID (CHE-…)) |
| `nom_complet` | Company name |
| `statut` | Legal status (normalized) |
| `forme_juridique` | Legal form |
| `adresse_siege` | Registered address |
| `date_creation` | Incorporation date |
| `activite_libelle` / `activite_principale` | Activity (label / code) |
| `tva_intracommunautaire` | VAT number (where published) |
| `en_procedure_collective` | `true` if in a collective/insolvency procedure |

Field availability depends on what the **Zefix (Central Business Register)** publishes for free; the actor returns
every field the source exposes.

### Use cases

- **KYC / compliance** — verify a counterparty is active and not in insolvency.
- **B2B prospecting & lead gen** — build clean company lists with official identifiers.
- **CRM / data enrichment** — append legal name, status, address, activity, VAT.
- **Supplier & partner vetting** — flag liquidation / struck-off before you sign.

### Related company registry scrapers

Same actor family, other countries — search by name, get the full record:

- [France — Pappers / Sirene (SIREN/SIRET)](https://apify.com/dltik/pappers-sirene-scraper)
- [United Kingdom — Companies House](https://apify.com/dltik/uk-companies-house-scraper)
- [Netherlands — KVK Handelsregister](https://apify.com/dltik/netherlands-kvk-company-scraper)
- [Italy — Registro Imprese](https://apify.com/dltik/italy-company-registry-scraper)
- [Belgium — BCE / KBO](https://apify.com/dltik/belgium-kbo-company-scraper)

→ Browse them all: search **"company registry scraper"** on the Apify Store.

### FAQ

**Do I need an API key or account?** No. The actor reads the official public Zefix (Central Business Register); just
run it.

**How fresh is the data?** It is fetched **live** from the registry at run time, so it
reflects the current public record.

**Can I look a company up by its UID (CHE-…)?** Yes — set `mode: lookup` and pass the UID (CHE-…)
in `query` (or a list in `queries`).

**Is this legal?** It reads only **public** official-registry information and degrades
gracefully (no result rather than an error) when the source is unavailable.

**How am I charged?** Pay-per-event, **per resolved query** — one search (which can
return many enriched rows) or one lookup. `not_found` / `no_results` are **not** charged.

### Source & legality

Data comes from the official **Zefix (Central Business Register)** (Switzerland), a public source. The actor reads only
public information and never bypasses authentication or paywalls.

***

⭐ **If this saved you time, bookmark the actor** — it keeps it visible for others.

# Actor input Schema

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

search = find companies by name (enriched to full records by default). lookup = fetch one full company by its UID (CHE-…).

## `query` (type: `string`):

A company name (mode=search) or a UID (CHE-…) (mode=lookup). Example: 'Nestlé'.

## `queries` (type: `array`):

Several names and/or IDs to process in one run.

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

How many companies to return per name search (the registry may cap this lower).

## `richResults` (type: `boolean`):

ON (default): each search hit is enriched to its FULL record (legal form, registered address, incorporation date, activity, VAT…) via a per-company lookup. OFF: return the fast, lightweight candidate list only.

## `proxyConfig` (type: `object`):

Optional Apify proxy. Most registries are open-data APIs with no anti-bot; enable only if the public portal rate-limits your IP.

## Actor input object example

```json
{
  "mode": "search",
  "query": "Nestlé",
  "queries": [],
  "maxResults": 10,
  "richResults": true,
  "proxyConfig": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "query": "Nestlé"
};

// Run the Actor and wait for it to finish
const run = await client.actor("dltik/switzerland-zefix-company-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 = { "query": "Nestlé" }

# Run the Actor and wait for it to finish
run = client.actor("dltik/switzerland-zefix-company-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 '{
  "query": "Nestlé"
}' |
apify call dltik/switzerland-zefix-company-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dltik/switzerland-zefix-company-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/L7ssWlXghGXJiByZg/builds/3By4ufdpI4MBusB94/openapi.json
