Fluxaro Software GmbH

SHAB API and Zefix: Using Swiss Commercial Register Data Programmatically

Florian Grbic, Fluxaro Products Updated 9 min read DE EN FR IT

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

SourceContentAccessFormatLicence and cost
SHAB, shab.chAll official publications: commercial register (rubric HR), bankruptcies, debt enforcement notices (forced sales), calls to creditors, morePublic API without registration, queryable per day and rubricJSON for lists, XML with schema for individual noticesFree, SECO terms of use, attribution
Zefix PublicRESTCentral business index: search by name and UID, master data, legal form, seat, status, daily SOGC publicationsCredentials requested from the Federal Commercial Registry Office (EHRA)JSON, documented via SwaggerOpen Government Data, commercial use permitted, attribution required
Cantonal commercial registersFull extracts with history, officers, articlesWeb portals, some APIs, some paid extractsHTML, PDFVaries by canton
UID register of the FSOBusiness identification number, address, statusWeb service with registrationSOAP, XMLFree
Open Data Canton of ZurichDaily new registrations and bankruptcies by industry for Zurich and SwitzerlandDownload without registrationCSVOpen data
For most applications two sources are enough: SHAB for what happens daily, and Zefix for a company's clean identity. The UID in the format 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-rubricMeaningTypical signals
HR01New registrationNew company, new branch, relocation from another canton
HR02AmendmentNew or departing persons, address, purpose, capital, company name, legal form
HR03DeletionLiquidation completed, merger, bankruptcy closed, relocation to another canton
Every notice contains metadata (publication number, date, canton, registry office, language) and structured content with company, UID, seat, address, legal form, purpose and, as the hardest part, the amendment text: free text following an official pattern, with phrases such as "persons departed and signatures extinguished" or "persons registered new or amended". Anyone who wants to know that a managing director has changed has to parse this text.

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 caseSignal from the registerBenefit
New customer leadsNew companies by industry and canton, relocations into your region, changes of purposeContact on the day of founding, before the competitor calls. That is how Leadradar works
Existing customer monitoringBankruptcy, liquidation, capital reduction, change of management, relocation abroadSpot receivables risk early, review contracts, update contacts. That is how Monitoring Radar works
Onboarding and KYCUID check, authorised signatories, status activeVerify customers in seconds instead of requesting a register extract
CRM data maintenanceAddress and name changes, deletionsCustomer master automatically current, no mail to liquidated companies
Market observationRegistrations and deletions per industry, capital movementsSpot trends, prioritise territories
Which signals are most valuable for sales is shown in our article on buying signals from SHAB and Zefix; how monitoring protects against payment defaults in when your customer files for bankruptcy.

Build yourself or ready-made solution?

An in-house pipeline is technically feasible and a rewarding task for developers. Realistically it costs:

ComponentEffortGuide value
Retrieval from SHAB and Zefix, storage, daily cron1–2 weeksCHF 6,000–12,000
Parsing of amendment texts with tests, event model2–4 weeksCHF 10,000–25,000
Interface with search, filters, watchlist, notifications3–5 weeksCHF 15,000–35,000
Operation, schema changes, new rubrics, data protection upkeepongoing15–20% per year
That makes CHF 30,000 to 70,000 for a solid in-house solution plus operation, and six to twelve weeks of time. It pays off if register data is your core product or has to go deep into your own systems.

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

Related service Leadradar and Monitoring Radar

shab, zefix, api, commercial register, open data, leadradar, monitoring radar, development

Free Consultation

Have questions about this topic? We're happy to advise you.

Contact Us

Related Posts