# Switzerland Company Registry Scraper (Zefix, UID) (`scrapers_lat/switzerland-companies-scraper`) Actor

Search the Swiss company registry by name or UID and extract structured records: UID (CHE), name, legal form, full address and canton, status, purpose, publications and mutations. Export to JSON, CSV or Excel.

- **URL**: https://apify.com/scrapers\_lat/switzerland-companies-scraper.md
- **Developed by:** [Scrapers Lat](https://apify.com/scrapers_lat) (community)
- **Categories:** Lead generation, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 96.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $11.54 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## 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, UID)](https://scrapers.lat/banners/switzerland-companies-scraper.png)

## Switzerland Company Registry Scraper (Zefix, UID)

**📥 [Input](https://apify.com/scrapers_lat/switzerland-companies-scraper/input-schema) · 📤 [Output](https://apify.com/scrapers_lat/switzerland-companies-scraper/output-schema) · 💰 [Pricing](https://apify.com/scrapers_lat/switzerland-companies-scraper/pricing) · ▶️ [Examples](https://apify.com/scrapers_lat/switzerland-companies-scraper/examples)**

Search the Swiss company registry and extract a clean, structured record for every match. Look up businesses by company name or by Swiss UID (CHE number), or narrow a search to a single canton or legal form. Turn on the full record to also get the registered address, business purpose, alternative and former names, audit firm, branch and head offices, merger and acquisition history (companies taken over or absorbed by) and the registry publication history.

No login, no API key and no proxy are required.

### Use cases

- KYB, due diligence and compliance checks on Swiss companies by UID or name.
- Lead generation and enrichment from a company name, canton or legal form.
- Market research on companies by canton, legal form or sector.
- Monitoring registry publications, mutations and status changes.

### Notes and limits

- **Name or UID.** Enter a company name to search, or a UID (`CHE-105.909.036` or `CHE105909036`) to look one company up directly.
- **Filters.** Narrow a broad name search by canton and by legal form. Turn `activeOnly` off to also include companies that have been deleted from the register.
- **Full record.** With `withDetails` on (default), each company is enriched with its registered address, purpose, alternative and former names, audit firm, branch and head offices, merger and acquisition history (companies it has taken over or was taken over by, and the companies it audits) and the full registry publication and mutation history. Set `withDetails` to false to return company-level fields only and skip the per-company request.
- Fields are populated when they are published for a company and returned as `null` otherwise.

### FAQ

**What is a UID?** The UID (`CHE` number) is the unique enterprise identification number every Swiss company is assigned. You can search with either the formatted (`CHE-105.909.036`) or plain (`CHE105909036`) form.

**Can I get every company in a canton or legal form?** Yes. Combine a broad name with a `canton` and/or `legalForm` filter and raise `maxItems` to collect them in one run.

**Do I need an account or API key for the source?** No. This actor needs no login, no key and no proxy.

**Which export formats are supported?** JSON, CSV and Excel, plus the Apify API and integrations.

### Disclaimer

This actor retrieves **public records** published as open data in the Swiss central business name index. You are responsible for using the data lawfully, including for KYB, due diligence and lead-generation purposes, and for complying with applicable privacy and data-protection rules in your jurisdiction. This actor is independent and is not affiliated with or endorsed by any Swiss government body, canton or register.

### Example use cases

Ready-to-run example tasks, each preconfigured for a common scenario. Open one and press run, or use it as a template:

- [Nestle Switzerland Company Registry Profile](https://apify.com/scrapers_lat/switzerland-companies-scraper/examples/zefix-nestle): Find Nestle in the Swiss Zefix company registry with UID (CHE number), address, purpose, legal form and audit firm.
- [Swiss UID CHE-105.909.036 Company Lookup](https://apify.com/scrapers_lat/switzerland-companies-scraper/examples/zefix-uid-che-105-909-036): Look up Swiss UID CHE-105.909.036 (Nestle AG) in the Zefix registry with address, purpose, legal form and details.
- [Roche in Basel Switzerland Registry Search](https://apify.com/scrapers_lat/switzerland-companies-scraper/examples/zefix-roche-basel): Find Roche companies in canton Basel-Stadt from the Swiss Zefix registry with UID numbers, address and legal form.
- [UBS in Zurich Switzerland Company Registry Search](https://apify.com/scrapers_lat/switzerland-companies-scraper/examples/zefix-ubs-zurich): Search UBS entities in canton Zurich from the Swiss Zefix company registry with UID numbers, address and legal form.
- [Novartis in Basel Switzerland Registry Search](https://apify.com/scrapers_lat/switzerland-companies-scraper/examples/zefix-novartis-basel): Find Novartis companies in canton Basel-Stadt from the Swiss Zefix registry with UID numbers, address and details.
- [Credit Suisse Switzerland Company Registry Search](https://apify.com/scrapers_lat/switzerland-companies-scraper/examples/zefix-credit-suisse): Search Credit Suisse entities in the Swiss Zefix company registry with UID numbers, address, purpose and legal form.
- [Rolex in Geneva Switzerland Registry Search](https://apify.com/scrapers_lat/switzerland-companies-scraper/examples/zefix-rolex-geneva): Find Rolex companies in canton Geneva from the Swiss Zefix company registry with UID numbers, address and legal form.
- [Logitech in Vaud Switzerland Registry Search](https://apify.com/scrapers_lat/switzerland-companies-scraper/examples/zefix-logitech-vaud): Find Logitech companies in canton Vaud from the Swiss Zefix company registry with UID numbers, address and details.
- [Zurich Insurance Switzerland Registry Search](https://apify.com/scrapers_lat/switzerland-companies-scraper/examples/zefix-zurich-insurance): Search Zurich Insurance entities in canton Zurich from the Swiss Zefix registry with UID numbers, address and form.
- [Migros Switzerland Company Registry Search](https://apify.com/scrapers_lat/switzerland-companies-scraper/examples/zefix-migros): Find Migros companies in the Swiss Zefix company registry with UID numbers, address, purpose, legal form and details.

### Export, API and AI agents (x402 + MCP)

Export the scraped data to **JSON, CSV or Excel**, pull it as a **dataset** through the Apify **API**, or wire it into your app with **no code**. This web scraper and data extractor also works for bulk data extraction and scheduled runs.

For AI agents: this Actor is available on **x402**, Apify's agentic payment standard built with Coinbase. An AI agent can discover, pay for and run it on its own with a funded wallet and a single HTTP request: no account, no subscription, no API key and no human in the loop. It also runs as an **MCP** tool inside Claude, Cursor and other AI clients out of the box. Learn more about [x402 agentic payments on Apify](https://docs.apify.com/platform/integrations/x402).

### Related scrapers

Need data from the same space? Here are other scrapers we build and maintain:

- [Norway Company Registry & Officers Scraper](https://apify.com/scrapers_lat/norway-companies-scraper): Search Norway's company register by name or org number and get legal form, industry, address, employees and the board, chair and CEO.
- [France Company Registry Scraper (SIREN, Officers, Finances)](https://apify.com/scrapers_lat/france-company-search-scraper): Extract French company records with SIREN, legal form, NAF code, officers, VAT number and financials.
- [Taiwan Business Registry Scraper (Company & UBN)](https://apify.com/scrapers_lat/taiwan-business-registry-scraper): Extract Taiwan company registration records with capital, representative, address, directors and business scope.
- [New York Business Entity & LLC Records Scraper](https://apify.com/scrapers_lat/ny-dos-business-scraper): Search New York business entity records by name or DOS ID with entity type, status, filing date and registered agent.

### More scrapers at scrapers.lat

This actor is built and maintained by [scrapers.lat](https://scrapers.lat), where we publish scrapers for Latin American and US public platforms: real estate, jobs, e-commerce, company registries and government data. Browse the full catalog, see live sample output for each one, or ask us for a custom scraper at [scrapers.lat](https://scrapers.lat).

# Actor input Schema

## `maxCompanies` (type: `integer`):

Maximum number of company records to collect.

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

A company name (or part of it) to search for, or a Swiss UID (for example CHE-105.909.036 or CHE105909036) to look up a company directly.

## `canton` (type: `string`):

Optional. Restrict results to companies registered in one Swiss canton.

## `legalForm` (type: `string`):

Optional. Restrict results to one legal form.

## `activeOnly` (type: `boolean`):

When on, only companies still on the register are returned. Turn off to also include deleted (struck off) companies.

## `withDetails` (type: `boolean`):

Fetch the full record for each company: registered address, purpose, alternative and former names, audit firm and the list of registry publications and mutations. Adds one fast request per company.

## `enrichContacts` (type: `boolean`):

Optional paid add-on, off by default. For each result without an email, attempt to find a public business contact email and a contact person's name. Billed per attempt, plus an extra charge only when an email is found.

## `enrichContactsMax` (type: `integer`):

Cap how many results the add-on tries to enrich, to control add-on cost. Leave empty to attempt all. Free Apify accounts are capped at 3.

## Actor input object example

```json
{
  "maxCompanies": 10,
  "query": "Nestlé",
  "activeOnly": true,
  "withDetails": true,
  "enrichContacts": false,
  "enrichContactsMax": 50
}
```

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

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

# Run the Actor and wait for it to finish
run = client.actor("scrapers_lat/switzerland-companies-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "maxCompanies": 10,
  "query": "Nestlé"
}' |
apify call scrapers_lat/switzerland-companies-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scrapers_lat/switzerland-companies-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/baZOGOs4rY9Ibpg0c/builds/0h8iTwqO9yaGYdxh2/openapi.json
