Every working day the Swiss Official Gazette of Commerce (SHAB/SOGC) publishes around 1,000 to 1,500 commercial register notices: new companies, relocations, new managing directors, capital increases, liquidations, bankruptcies. For sales, risk management and compliance this is the most valuable public data source in Switzerland, and it is freely accessible via APIs. Yet very few SMEs use it, because the path from raw notice to usable information is full of traps.
This article explains for developers, product owners and technically minded managers which APIs exist, what a notice contains, how retrieval works concretely and where it gets difficult. We verified the endpoints live on 24 October 2026. At the end comes the honest calculation: build yourself or use a ready-made solution.
Want commercial register data in your CRM, ERP or portal? We built the pipeline for our own products and integrate it into your systems too. Discuss your project →
The data sources at a glance
| Source | Content | Access | Format | Licence and cost |
|---|---|---|---|---|
| SHAB, shab.ch | All official publications: commercial register (rubric HR), bankruptcies, debt enforcement notices (forced sales), calls to creditors, more | Public API without registration, queryable per day and rubric | JSON for lists, XML with schema for individual notices | Free, SECO terms of use, attribution |
| Zefix PublicREST | Central business index: search by name and UID, master data, legal form, seat, status, daily SOGC publications | Credentials requested from the Federal Commercial Registry Office (EHRA) | JSON, documented via Swagger | Open Government Data, commercial use permitted, attribution required |
| Cantonal commercial registers | Full extracts with history, officers, articles | Web portals, some APIs, some paid extracts | HTML, PDF | Varies by canton |
| UID register of the FSO | Business identification number, address, status | Web service with registration | SOAP, XML | Free |
| Open Data Canton of Zurich | Daily new registrations and bankruptcies by industry for Zurich and Switzerland | Download without registration | CSV | Open data |
CHE-123.456.789 is the key that connects everything.
What a commercial register notice contains
Rubric HR has three sub-rubrics you need to know:
| Sub-rubric | Meaning | Typical signals |
|---|---|---|
| HR01 | New registration | New company, new branch, relocation from another canton |
| HR02 | Amendment | New or departing persons, address, purpose, capital, company name, legal form |
| HR03 | Deletion | Liquidation completed, merger, bankruptcy closed, relocation to another canton |
How retrieval works, step by step
1. Fetch the daily list from SHAB
The API returns publications filtered by rubric, date and state, paginated:
curl "https://www.shab.ch/api/v1/publications?publicationStates=PUBLISHED&rubrics=HR&publicationDate.start=2026-10-22&publicationDate.end=2026-10-22&pageRequest.page=0&pageRequest.size=100"
The response is JSON with a content field holding the metadata per notice: id, rubric, subRubric (HR01, HR02, HR03), publicationDate, cantons, title in the publication language and the registry office. Use pageRequest.page to page through the day; a normal working day has ten to fifteen pages.
2. Load a single notice as XML
curl "https://www.shab.ch/api/v1/publications/c9334c07-ab8f-491c-b5a7-8291d86fcaaa/xml"
The XML follows a schema per sub-rubric, for example HR03-export, whose XSD is public at amtsblattportal.ch. It holds company, UID, seat, address, legal form, purpose and the amendment text as separate elements. That is the basis for all further processing.
3. Enrich the company via Zefix
With the UID from the notice you fetch the current master data from Zefix: official name, legal form, municipality of seat, status, deletion date. You need credentials from the EHRA, granted on request. Zefix also offers a daily query of SOGC publications, useful for cross-checking the SHAB list.
4. Normalise and store
The UID becomes the primary key. Company names vary in spelling and suffixes, cantons use different wording, umlauts arrive encoded differently depending on the source. A clean company table with history per UID is the heart of the system; from it come signals such as "new managing director", "seat relocated" or "in liquidation".
5. Repeat daily and build deltas
A cron job at six in the morning fetches the previous day, processes the notices, updates the company table and writes events. Then the application decides: which events matter to whom?
The pitfalls that show up in every project
- The amendment text is free text. The phrasing follows patterns, but every canton and legal form has variants. Reliable detection of personnel changes needs hundreds of examples and tests, or a language model with a review loop as described in our article on AI classification.
- One notice, many events. A single HR02 amendment can change address, purpose and three persons at once. Each is its own signal with its own relevance.
- Relocations appear twice. Deletion in the old canton, new registration in the new one, same UID. Without merging by UID you count a new company that is not one.
- Name changes and mergers break any matching by company name. Only the UID stays stable.
- Volume and fair use. Over 300,000 HR notices per year, plus details as XML. Requests should be batched, cached and paced; the APIs are publicly funded.
- Data protection. Company officers appear in the register with name, place of origin and residence. That is public, but under the revised Swiss Data Protection Act not freely reprocessable: purpose limitation, proportionality and transparency apply to public data too. Anyone building personal profiles or reselling data needs a sound legal basis.
- Licence. Zefix data is subject to Open Government Data terms: use including commercial use permitted, attribution mandatory. SHAB is subject to SECO's terms of use.
What you build with it
| Use case | Signal from the register | Benefit |
|---|---|---|
| New customer leads | New companies by industry and canton, relocations into your region, changes of purpose | Contact on the day of founding, before the competitor calls. That is how Leadradar works |
| Existing customer monitoring | Bankruptcy, liquidation, capital reduction, change of management, relocation abroad | Spot receivables risk early, review contracts, update contacts. That is how Monitoring Radar works |
| Onboarding and KYC | UID check, authorised signatories, status active | Verify customers in seconds instead of requesting a register extract |
| CRM data maintenance | Address and name changes, deletions | Customer master automatically current, no mail to liquidated companies |
| Market observation | Registrations and deletions per industry, capital movements | Spot trends, prioritise territories |
Build yourself or ready-made solution?
An in-house pipeline is technically feasible and a rewarding task for developers. Realistically it costs:
| Component | Effort | Guide value |
|---|---|---|
| Retrieval from SHAB and Zefix, storage, daily cron | 1–2 weeks | CHF 6,000–12,000 |
| Parsing of amendment texts with tests, event model | 2–4 weeks | CHF 10,000–25,000 |
| Interface with search, filters, watchlist, notifications | 3–5 weeks | CHF 15,000–35,000 |
| Operation, schema changes, new rubrics, data protection upkeep | ongoing | 15–20% per year |
If you simply want to use the signals, the ready-made solution is cheaper: Monitoring Radar monitors your entire customer base from CHF 290 per month with 37 classified event types, Leadradar delivers scored new-customer signals with a built-in CRM from CHF 690 per month. Both run on exactly the pipeline described here, with Swiss hosting on request and export to your CRM.
Undecided? In a free initial consultation we tell you honestly whether in-house development, integration or a product fits your case. Book a consultation →
Frequently asked questions
Is the SHAB API free?
Yes. Retrieving lists and individual notices is possible without registration. SECO's terms of use apply, in particular attribution and fair use.
Do I need credentials for Zefix?
For the PublicREST API yes, requested from the EHRA. The web search on zefix.ch works without credentials, but is not suitable for automated queries.
How current is the data?
Notices appear in SHAB on the publication day, usually one to three working days after the entry in the cantonal register. A daily retrieval in the morning captures everything from the previous day.
Is historical data available?
Via the SHAB API publications are retrievable several years back; Zefix delivers the current state and the SOGC publications. Complete histories per company you have to build yourself or obtain from the cantonal registers.
May I resell the data?
Open Government Data may be used commercially, with attribution. As soon as personal data of officers is processed or passed on, the duties of the revised Data Protection Act apply. If in doubt, have it checked legally.
Conclusion: open data, demanding processing
Switzerland makes its commercial register data openly available, and the SHAB and Zefix APIs are stable and well documented. The work lies not in retrieval but in understanding: parsing amendment texts, assigning events, merging companies by UID and shaping the result into a form that sales or risk management actually use.
We built this pipeline for our products and develop it further for Swiss companies, as an integration into existing systems, as a custom web application or as a ready-made product with export.
Let's talk about your requirements for commercial register data. In a free initial consultation we clarify sources, signals and the cheapest route. Get in touch →
Further reading
shab, zefix, api, commercial register, open data, leadradar, monitoring radar, development


