Every commercial website in Germany, Austria and Switzerland has to publish an Impressum (legal notice): the legal company name and form, a postal address, who represents the company, the commercial register entry and usually the VAT ID. For B2B data work (CRM hygiene, supplier checks, lead qualification), that's company data published by the company itself, on a page that is legally required to be easy to find.
The catch: it's free text, and no two Impressum pages look alike.
What a typical Impressum contains
| Line | Field |
|---|---|
Nordlicht Analytics GmbH | company name + legal form (GmbH, AG, SE, UG (haftungsbeschränkt), GmbH & Co. KG …) |
Hafenweg 12, 20457 Hamburg | address |
Geschäftsführer: … or Vorstand: … | who represents the company |
Amtsgericht Hamburg, HRB 987654 | register court + number (Austria: FN, Switzerland: CHE-… UID) |
USt-IdNr.: DE… | VAT ID (can be validated via the EU's VIES service) |
Parsing it
I open-sourced the parser I use: goldfoot/impressum-parser, plain ESM JavaScript, zero dependencies.
import { parseImpressum } from './src/impressum.js'; parseImpressum(`Nordlicht Analytics GmbH Hafenweg 12 20457 Hamburg Geschäftsführer: Lena Brandt, Tobias Keller Amtsgericht Hamburg, HRB 987654 USt-IdNr.: DE 298 765 432`); // { // companyName: 'Nordlicht Analytics GmbH', legalForm: 'GmbH', // street: 'Hafenweg 12', postalCode: '20457', city: 'Hamburg', // managingDirectors: ['Lena Brandt', 'Tobias Keller'], // registerCourt: 'Hamburg', registerNumber: 'HRB 987654', vatId: 'DE298765432' // } (All names in the example are made up.)
How well does that work on real sites?
I pointed it at the Impressum pages of 12 well-known German companies, using a plain fetch with a descriptive User-Agent, no browser:
| Outcome | Pages |
|---|---|
| Refused the request (HTTP 403 / 429) | 3 |
| Wrong URL or connection error | 2 |
| Content only rendered by JavaScript | 1 |
| Parseable HTML | 6 |
On those 6 pages the parser found:
| Field | Found |
|---|---|
| Company name | 5 / 6 |
| Legal form | 5 / 6 |
| Address | 4 / 6 |
| Register number | 4 / 6 |
| VAT ID | 4 / 6 |
| Representatives | 3 / 6 |
Two lessons from that:
- Getting the page is the bigger problem than parsing it. Half of the sample never returned usable HTML. Some sites block automated requests; that's their call, and a polite scraper takes the hint instead of working around it. Others render the Impressum with JavaScript and need a headless browser.
- Representation is the hardest field. A GmbH has a Geschäftsführer, an AG or SE a Vorstand, a GmbH & Co. KG is represented by its general partner, which in turn has managing directors, often two sentences later. The parser handles the common phrasings, but the KG constructions and long legal paragraphs still slip through.
The pitfalls, as a checklist
- Finding the page: links called Impressum, Imprint, Legal notice or Rechtliches, sometimes only in the footer, sometimes on a different domain.
- Company-name noise: "Ein Angebot der …", "This website is operated by …", lowercase brand names, compound legal forms. Taking the most frequent candidate on the page works well.
- Obfuscated e-mails:
info [at] firma [dot] de. - Template placeholders: Impressum generators leave behind Max Mustermann, Musterstraße 1, 12345 Musterstadt. Filter them, or you'll import a fictional person.
- Austria and Switzerland: different register formats (
FN 123456a,CHE-123.456.789).
For more than a handful of sites
Finding the Impressum link, rendering JavaScript sites and running all of this for thousands of domains is the tedious part. Website → Company Profile on Apify does it per domain and adds e-mails, phone numbers, social profiles and 87 detected technologies (CMS, shop system, analytics …). Disclosure: I built it; the open-source parser above is its core.
Responsible use
Names of managing directors are personal data under the GDPR. Process them only with a lawful basis (for B2B often legitimate interest), honour objections, and keep in mind that German law (§ 7 UWG) restricts unsolicited advertising e-mails, also to businesses. Company data is the easy part; what you do with it is where the rules apply.
Found an Impressum layout that parses badly? Issues and PRs are welcome on GitHub.
Disclosure: the Apify links in this article are affiliate links. If you start a paid Apify plan through them, I earn a commission at no extra cost to you. The tools linked there are my own.
