# Company KYB, DNS Tech Stack & NIS2 Readiness Check (`gutacker/company-kyb-compliance`) Actor

Verify companies and domains using open corporate registries (GLEIF, Wikidata, SEC EDGAR) and standard internet protocols (DNS, RDAP, TLS, RIPE, security.txt). Returns legal entity records, DNS SaaS stack, EU hosting status, mail security, and NIS2 readiness.

- **URL**: https://apify.com/gutacker/company-kyb-compliance.md
- **Developed by:** [Frank-Ringo Gutacker](https://apify.com/gutacker) (community)
- **Categories:** Business, Lead generation, Agents
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $15.00 / 1,000 company kyb, dns tech stack & nis2 dossiers

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Company KYB, DNS Tech Stack & NIS2 Readiness Check

<p align="center">
  <img src="https://api.apify.com/v2/key-value-stores/6QYUU1aPOYtTzoLON/records/company-kyb-compliance-pro-512.png" alt="Company KYB, DNS Tech Stack & NIS2 Readiness Check" width="128" />
</p>

Check a company from a domain, company name or LEI code. This Actor does a company verification (KYB pre-check) against open registries (GLEIF LEI lookup, Wikidata, SEC EDGAR), detects the tech stack from DNS records, checks email security (SPF, DMARC) and TLS, and calculates an external NIS2 readiness score for the company's domain. You get one structured record per company, downloadable as JSON, CSV or Excel, or available through the Apify API.

It does not replace a regulated KYC/KYB process or a legal NIS2 assessment (see [Use cases](#use-cases-for-company-checks-and-nis2-supply-chain-screening)).

### What can Company KYB, DNS Tech Stack & NIS2 Readiness Check do?

- **Company verification and LEI lookup.** Match a domain, name or LEI to a legal entity in GLEIF and Wikidata (and SEC EDGAR for US-listed issuers). A record is marked `kybVerified: true` only when the sources agree; otherwise it is returned as a candidate with the reason (see [How companies are verified](#how-companies-are-verified)).
- **Company data by domain.** Legal name, LEI, jurisdiction, commercial register number, legal and headquarters address, ultimate parent, founding year, employee count and ISIN, where the registries have them.
- **Tech stack lookup by DNS.** Email provider and SaaS tools that leave traces in DNS TXT, SPF, MX and NS records, for example Google Workspace, Microsoft 365, HubSpot, Salesforce or Cloudflare. Tools that leave no DNS trace are not detected.
- **Email security check.** SPF and DMARC presence, policy and reporting, plus CAA, DNSSEC, TLS, HTTP security headers and `security.txt`.
- **NIS2 readiness score.** A 0 to 100 score and an A to F grade for the external technical hygiene of the root domain, with a list of findings.
- **Hosting region.** Hosting ASN and provider, server country, EU/EEA hosting flag, CDN detection and green-hosting status.

### What data do you get for each company?

| Group | Main fields |
| :--- | :--- |
| Verification | `kybVerified`, `matchBasis`, `matchConfidence`, `leiMatchStatus`, `matchConflict`, `corporateRelationship`, `relatedEntity`, `sourcesFailed` |
| Legal entity (GLEIF) | `leiCode`, `legalName`, `legalJurisdiction`, `registeredAs`, `entityStatus`, `legalAddress`, `headquartersAddress`, `ultimateParentName`, `ultimateParentLei` |
| Company facts (Wikidata) | `wikidataId`, `companyDescription`, `inceptionYear`, `employeeCount`, `isin` |
| US-listed issuers (SEC EDGAR) | `secCik`, `stockTicker`, `stockExchange`, `sicCode`, `sicDescription`, `latestSecForm`, `latestSecFilingDate` |
| Tech stack (DNS) | `emailProvider`, `dnsProvider`, `detectedSaasTools`, `saasStackByCategory`, `nameservers`, `mxRecords` |
| Domain registration (RDAP) | `domainRegisteredAt`, `domainExpiresAt`, `domainAgeYears`, `registrarName` |
| Hosting | `hostingAsn`, `hostingProvider`, `hostingBehindCdn`, `serverCountry`, `isEuEeaHosted`, `gdprHostingRegion`, `greenHosted`, `ipv4Addresses` |
| Email security | `spfPresent`, `spfAllMechanism`, `dmarcPresent`, `dmarcPolicy`, `dmarcReportingEnabled`, `caaPresent`, `dnssecValidated` |
| TLS, headers, disclosure | `tlsSupported`, `tlsCertValid`, `tlsVersion`, `certDaysRemaining`, `hstsEnabled`, `cspEnabled`, `xContentTypeOptionsEnabled`, `securityTxtPresent`, `securityContacts` |
| NIS2 readiness | `nis2ReadinessScore`, `nis2Grade`, `securityPassedControls`, `complianceFindings` |
| Optional subdomains | `ctSubdomains`, `ctSubdomainCount`, `ctSubdomainSource` (only with `includeCtSubdomains`) |

If you enter only a company name or LEI, the Actor uses the official website listed in Wikidata as the domain for the DNS, hosting and NIS2 checks. When no website is found, you get the registry fields only and no NIS2 score. See [Output example](#output-example) for a full record.

### Use cases for company checks and NIS2 supply-chain screening

- **B2B onboarding pre-check.** Enter `domain | Legal Name` pairs from a sign-up form. The Actor checks whether the domain and the name point to the same legal entity and flags a mismatch as `matchBasis: "conflict"`. It also returns the LEI, register number and entity status.
- **Vendor and supplier risk screening.** Collect legal entity status, ultimate parent, hosting region and external security findings (mail authentication, TLS, headers) for a supplier list in one run.
- **NIS2 supply-chain checks.** Screen supplier domains for visible gaps such as a missing DMARC policy or an invalid TLS certificate. Use `maxNis2ScoreFilter` to keep only domains at or below a chosen score.
- **Lead enrichment and qualification.** Add legal name, jurisdiction, employee count (where Wikidata has it), email provider and DNS-detected SaaS tools to a domain list for CRM or sales research.

**Limits.** The Actor is not a substitute for a regulated KYC/KYB process: it does not screen sanctions or PEP lists and does not identify beneficial owners. `nis2ReadinessScore` is an external technical view of one domain, not a legal NIS2 assessment or certification of an organization.

### How to use Company KYB, DNS Tech Stack & NIS2 Readiness Check

1. Open the Actor in Apify Console.
2. Enter your targets: domains (`sap.com`), company names, 20-character LEI codes, or `domain.com | Legal Name` pairs. Adding the full legal name, including the legal form, gives the most reliable match. Optionally set `countryHint` (for example `DE`).
3. Choose the modules: corporate registries, TLS/headers/NIS2 score, and optionally Certificate Transparency subdomains.
4. Start the run and open the Output tab. Download the dataset as JSON, CSV or Excel.
5. To automate it, schedule the Actor, call it through the Apify API, or use it from n8n, Make, Python or an MCP client (see [Integrations](#integrations-n8n-make-mcp--python)).

### How much does a company check cost?

Pay per event, no start fee: **$0.015 per company** (`company-dossier`, $15.00 per 1,000). The optional `ct-subdomain-scan` adds **$0.005 per company** ($5.00 per 1,000), only when Certificate Transparency logs actually returned subdomains. The price does not depend on which modules are switched on.

| Example | Calculation | Cost |
| :--- | :--- | :--- |
| 1 company | 1 x $0.015 | $0.015 |
| 100 companies | 100 x $0.015 | $1.50 |
| 1,000 companies | 1,000 x $0.015 | $15.00 |
| 1,000 domains with CT subdomains, CT logs return subdomains for 600 of them | 1,000 x $0.015 + 600 x $0.005 = $15.00 + $3.00 | $18.00 |
| 1,000 domains with CT subdomains, CT logs return subdomains for all | 1,000 x ($0.015 + $0.005) | $20.00 |
| 200 distinct inputs, 20 find nothing and 10 fail | (200 - 20 - 10) x $0.015 = 170 x $0.015 | $2.55 |

Inputs that find nothing, lookups that fail, and results removed by `maxNis2ScoreFilter` are not charged, and duplicate inputs are billed once. A record that is returned as an unverified candidate (`kybVerified: false`) is still a delivered record and is charged. You can set a maximum cost per run in the run options; the Actor stops cleanly when the limit is reached. Details follow below.

### What is delivered and what is charged

- **Empty results are free.** If nothing was found for an input (the domain does not resolve, and there is no registry, Wikidata, SEC, or RDAP match), no dataset item is pushed and nothing is charged. The input appears in `RUN_SUMMARY.emptyInputs` with the reason `no_data_found` and the unreachable `sourcesFailed`.
- **Failed lookups are free and visible.** If nothing was found *and* a source that could have found it was unavailable or blocked (DNS, GLEIF, or Wikidata returned an error, HTTP 4xx/5xx, or an HTML/JSON error page instead of data), the input counts as `failed` in `RUN_SUMMARY.failedInputs` with `errorType` and `httpStatus`, not as empty. If every input fails, the run is marked failed.
- **Order of charges.** The `company-dossier` event is charged when the dossier is pushed. The optional `ct-subdomain-scan` add-on is charged afterwards, only for a dossier that was really pushed and only if your spending limit still allows it. If the remaining budget covers the dossier but not the dossier plus the CT add-on, the dossier is delivered **without** the CT data (`ctSubdomains: []`, `ctSubdomainCount: null`, `ctSubdomainSource: null`; the fields stay present) so CT data is never given away for free; those records are listed in `RUN_SUMMARY.ctSubdomainsStrippedForBudget`. `itemsPushed` and `succeeded` count what was actually written to the dataset, and a record counts as delivered the moment it was pushed, before any add-on charge. A failing add-on charge is logged, counted in `RUN_SUMMARY.addonChargeErrors` and never fails the input or re-pushes the record.
- **Restarts and migrations.** Delivered record IDs and the summary counters are saved to the run's key-value store (`KYB_RUN_STATE`) right after every delivered record and on every platform state-save event. On a platform migration the Actor stops starting new pushes or charges, saves its state and `RUN_SUMMARY`, and waits for the platform to move the run; the resumed run continues with the remaining inputs and neither re-delivers nor re-charges delivered records (a CT add-on charge that had not completed is retried once). After an unplanned crash and automatic restart, only a record that was pushed **after** the last successful state save can be delivered (and `company-dossier` charged) a second time, because the dossier charge has no idempotency key. The state is saved immediately after every push, so in practice that is the one record whose push finished in the instant the crash hit, before its state write completed; if that immediate save fails (a warning is logged), the exposure grows to every record pushed since the last successful save, at most about the 60-second interval of the SDK's own state saves. The `ct-subdomain-scan` add-on uses an idempotency key and is never charged twice. If a run is resurrected with a higher spending limit, it continues with the inputs that are still pending. The same output record (same domain) is never pushed twice within one execution.
- **`RUN_SUMMARY`** (key-value store, uncharged): `succeeded`, `empty`, `failed`, `itemsPushed`, `failedInputs`, `emptyInputs`, `filtered`, `ctSubdomainScansCharged`, `addonChargeErrors`, `ctSubdomainsStrippedForBudget`, `duplicatesDropped`, `budgetExhausted`, `stoppedForMigration`, `resumedFromState`, `notProcessed`, `crashed`. It is also written when the run ends unexpectedly.

### Pricing

Pay-Per-Event with no monthly subscription. `company-dossier` costs $15.00 per 1,000 checked companies or domains ($0.015 per record). Enabling `includeCtSubdomains` adds `ct-subdomain-scan` at $5.00 per 1,000 domains ($0.005 per domain). It is charged **only** when Certificate Transparency logs (CertSpotter or `crt.sh`) actually delivered at least one subdomain, that is when `ctSubdomainSource` is `certspotter` or `crtsh`. If the CT logs return nothing or are unreachable, the Actor falls back to a best-effort DNS check of common prefixes (`www`, `api`, `app`, ...); subdomains found that way are still listed but marked `ctSubdomainSource: "dns_guess"` and are **not** charged. Zones with wildcard DNS (a random label resolves) return no guessed subdomains. A certificate for the bare domain alone does not count as a subdomain.

### Input

#### Input Example

```json
{
  "targets": [
    "sap.com",
    "stripe.com",
    "siemens.com",
    "hetzner.com"
  ],
  "includeCorporateRegistries": true,
  "includeSecurityAndNis2": true,
  "includeCtSubdomains": false
}
```

#### Input Fields

| Field | Type | Default | Notes |
| :--- | :--- | :--- | :--- |
| `targets` | `string[]` | *(none; not formally required)* | Domains, company names, 20-char LEI codes, or `domain.com \| Legal Name` pairs. The schema does not mark `targets` as required so that the aliases below work, but the run fails immediately with a clear message when no target is found. Each list item is exactly one target and is never split on commas (so `"Smith, Jones & Partners"` stays one company). A single newline or comma separated string is split into targets (`Stripe, Inc.` is kept together). A list item may also be an object, see below |
| `countryHint` | `string` | `""` | Optional ISO-2 country code (`DE`, `US`, `FR`, `NL`) to disambiguate regional GLEIF entities. A JSON list is tolerated (first entry used) |
| `includeCorporateRegistries` | `boolean` | `true` | Query GLEIF (CC0), Wikidata (CC0), and US SEC EDGAR |
| `includeSecurityAndNis2` | `boolean` | `true` | Run TLS handshake (with X.509 certificate check), HTTP header check, `security.txt`, and 0 to 100 external root-domain technical hygiene score |
| `includeCtSubdomains` | `boolean` | `false` | Optional Certificate Transparency subdomain enumeration via CertSpotter and `crt.sh`. Works independently of `includeSecurityAndNis2`. Adds `ctSubdomains`, `ctSubdomainCount`, and `ctSubdomainSource` |
| `maxNis2ScoreFilter` | `integer` | `null` | Optional filter (0 to 100) to output only domains at or below a chosen security score. Dossiers without a score (no domain, or DNS unavailable) are **skipped and not charged**, counted in `RUN_SUMMARY` as `filtered`/`empty`. Setting the filter while `includeSecurityAndNis2` is off fails the run immediately, before any lookup or charge |
| `concurrency` | `integer` | `6` | Parallel target lookups (`1` to `20`) |
| `domain`, `company`, `target` | `string` | *(none)* | Agent-friendly aliases for a single `targets` entry |
| `domains`, `companies` | `string[]` | *(none)* | Agent-friendly aliases for `targets` |

**Object form.** Instead of a `domain | name` string a `targets` item may be an object with `domain` (or `url`), `company` (or `name`) and `lei`: `{"domain": "stripe.com", "company": "Adyen N.V."}` is the same as `"stripe.com | Adyen N.V."`, and `{"domain": "stripe.com", "lei": "724500973K4Z9CBXRB75"}` the same as `"stripe.com | 724500973K4Z9CBXRB75"`. If both `company` and `lei` are given, the LEI is used when it is well-formed (20 letters/digits; anything else such as `n/a` is ignored with a warning and the company name is used instead) (it is the more precise identifier; a `domain | name | LEI` triple does not exist). Without a domain the object is just the LEI, else the company name. `target` is accepted as a fallback key; a `target` that already is a `domain | name` pair is kept as it is.

All target fields are merged. Booleans and numbers sent as strings (`"true"`, `"65"`) are accepted. Duplicate targets are removed before processing: the same domain written as `sap.com`, `https://www.sap.com/`, or `sap.com/careers` is checked and billed once. A company name or LEI given with the domain makes it a separate check: `stripe.com` and `stripe.com | Adyen N.V.` are both processed, because the name can change the result (for example a conflict or a parent company); repeating the same domain with the same name counts as a duplicate. The dropped duplicates are listed in `RUN_SUMMARY.duplicatesDropped`.

### Output example

```json
{
  "inputTarget": "sap.com",
  "domain": "sap.com",
  "domainResolves": true,
  "companyName": "SAP SE",
  "kybVerified": true,
  "matchBasis": "wikidata_lei",
  "matchConfidence": "high",
  "leiMatchStatus": "confirmed",
  "matchConflict": null,
  "corporateRelationship": null,
  "relatedEntity": null,
  "sourcesFailed": [],
  "leiCode": "529900D6BF99LW9R2E68",
  "legalName": "SAP SE",
  "legalJurisdiction": "DE",
  "registeredAs": "HRB 719915",
  "entityStatus": "ACTIVE",
  "inceptionYear": 1972,
  "isin": "DE0007164600",
  "stockTicker": "SAP",
  "secCik": "0001000184",
  "latestSecForm": "6-K",
  "emailProvider": "Microsoft 365",
  "detectedSaasTools": [
    "Microsoft 365",
    "Zoho Mail / CRM",
    "Google Cloud / Search Console",
    "Stripe",
    "Atlassian (Jira / Confluence)",
    "Canva",
    "DocuSign",
    "Adobe Enterprise",
    "Postman",
    "Apple Business Manager",
    "Meta Business Suite"
  ],
  "hostingAsn": "AS35039",
  "hostingProvider": "SAP_SCI SAP SE",
  "hostingBehindCdn": false,
  "gdprHostingRegion": "EU/EEA (DE)",
  "isEuEeaHosted": true,
  "domainAgeYears": 31.8,
  "spfPresent": true,
  "dmarcPolicy": "reject",
  "tlsSupported": true,
  "tlsCertValid": true,
  "tlsVersion": "TLSv1.3",
  "hstsEnabled": false,
  "securityTxtPresent": true,
  "knownServerVulnerabilities": [],
  "nis2ReadinessScore": 68,
  "nis2Grade": "C",
  "complianceFindings": [
    "DNSSEC signing not enabled",
    "DNS CAA record not configured",
    "HSTS header missing on HTTPS response",
    "Both Content-Security-Policy and X-Frame-Options headers missing",
    "X-Content-Type-Options nosniff header missing"
  ],
  "checkedAt": "2026-11-13T12:09:49Z"
}
```

### FAQ

#### Which data sources are used?

GLEIF (LEI records, CC0), Wikidata (CC0), US SEC EDGAR, DNS-over-HTTPS resolvers (Google and Cloudflare), ICANN RDAP, RIPE Stat, the Green Web Foundation dataset and, only if you enable it, the Certificate Transparency logs of CertSpotter and crt.sh. TLS, HTTP header and `security.txt` checks are requests to the checked domain itself. Each record also carries a short source list in `dataSources`.

#### Is the NIS2 readiness score an official assessment?

No. `nis2ReadinessScore` (0 to 100, grade A at 85 and above, B from 70, C from 55, D from 40, F below 40) is a rule-based view of what is visible from outside for the root domain: TLS (25 points), SPF and DMARC (30), DNSSEC and CAA (15), HTTP security headers (20) and `security.txt` plus DMARC reporting (10). It says nothing about organizational measures, and it is not a proof of NIS2 compliance.

#### Is this a KYC or KYB compliance check?

It is a pre-check built on open registry data. It does not cover sanctions or PEP screening or beneficial owners, so it does not replace a regulated KYC/KYB process.

#### Do I need API keys for the data sources?

No. All sources are open and need no keys from you. You only need an Apify account (and an Apify API token if you call the Actor through the API or MCP).

#### Can I use it with n8n, Make or Claude via MCP?

Yes. The Actor can be started with a synchronous API call that returns the dataset items, so n8n and Make can call it with a plain HTTP request, and it can be attached as a tool to MCP clients such as Claude through the Apify MCP server. Copy-paste examples are in [Integrations](#integrations-n8n-make-mcp--python).

#### Why was a company not verified?

`kybVerified` is `true` only when the sources agree. Otherwise the record is still delivered, with `matchBasis` and `matchConfidence` showing why: a candidate that could not be corroborated (`leiMatchStatus: "candidate"`), a company name that does not match the domain (`matchBasis: "conflict"`, explained in `matchConflict`), or no registry match (`none`). Companies without a LEI, a Wikidata item or a US SEC filing cannot be verified from these registries. To improve a match, enter the LEI, use `domain | full legal name` including the legal form, or set `countryHint`.

#### Why was a company not delivered, or why is the NIS2 score empty?

Nothing is pushed (and nothing charged) when no data was found for an input; it is listed in `RUN_SUMMARY.emptyInputs`. If a source was unreachable, the input appears in `RUN_SUMMARY.failedInputs` instead. A missing NIS2 score means the security checks were switched off, no domain was found for the input, or the DNS resolvers did not answer. Details are in [What is delivered and what is charged](#what-is-delivered-and-what-is-charged).

### How companies are verified

#### Entity Verification (`kybVerified`, `matchBasis`, `matchConfidence`, `leiMatchStatus`)

`kybVerified` is `true` **only** when the sources agree: `matchConfidence` is `"high"` and no source contradicts another. Whenever a source stands alone, is uncorroborated, or disagrees with another source, the record is a candidate (`kybVerified: false`, `matchConfidence` `medium`/`low`, and `leiMatchStatus: "candidate"` where a GLEIF entity is involved). Two different companies' registry data are never merged into one verified dossier. `leiMatchStatus` tells you how to read the GLEIF fields (`leiCode`, `legalName`, `registeredAs`, addresses, ultimate parent):

- `confirmed`: the GLEIF record is reliably tied to your input (direct LEI, Wikidata LEI, exact legal-name match, or a name hit corroborated by country).
- `candidate`: GLEIF returned a plausible record that could not be corroborated. It is shown for manual review only, `kybVerified` stays `false`, and `companyName` never takes the candidate's legal name.
- `none`: no GLEIF record was found.

When is `kybVerified` true? Only if one of these holds and nothing contradicts it:

1. A direct LEI that GLEIF knows (`lei_input`); with a domain, the Wikidata entity tied to that domain must not carry a different LEI.
2. A Wikidata item lists exactly your domain (apex or `www`, not a parent platform domain and not a subdomain website) as its official website **and** is a business or organization (an instance of a business/company/organization class, or it carries a company-only identifier such as LEI, ISIN, SEC CIK or legal form; a project like an operating system does not count). A tenant subdomain such as `acme.wordpress.com` is never verified through the platform's own Wikidata item.
3. A confirmed GLEIF entity found by an exact, unambiguous legal-name match (`name_input`). If you also supplied a domain, the entity tied to the domain must be the same company (see below).
4. An SEC EDGAR filer found by name counts **only if corroborated**: its SEC website equals the domain, its business-address country equals your `countryHint` or the country of a uniquely, exactly name-matched GLEIF entity, or its CIK equals Wikidata `P5531` of a Wikidata item that is itself tied to your domain or to the confirmed GLEIF entity. An uncorroborated SEC hit is a candidate (`medium`, or `low` with a domain); a filer whose country contradicts the other sources is ignored (not mixed into the record).

`domain | name` pairs are cross-checked: the company found by name and the company tied to the domain must be the same (same LEI, or matching names; a name that only adds generic words such as `Online`, `Group`, `Holding`, `Technologies`, a country name or a legal form still matches, e.g. `Hetzner` and `Hetzner Online GmbH`, while one that adds other words names a different company, e.g. `apple.com | Apple Bank for Savings` or `siemens.com | Siemens Energy AG`) **or belong to one corporate group** (see below). If they are unrelated (for example `stripe.com | Adyen N.V.`), `kybVerified` is `false`, `matchBasis` is `conflict`, `matchConfidence` is `low`, `leiMatchStatus` is `candidate`, and `matchConflict` explains which two entities clashed (a warning is also logged). **If the domain has no Wikidata item and no other registry signal at all, a confirmed exact legal-name GLEIF match can still verify the pair** (nothing can contradict it); the domain is then simply taken at your word.

**Corporate groups (`corporateRelationship`, `relatedEntity`).** When the named entity and the domain's entity both carry a LEI and differ, the Actor reads the GLEIF direct and ultimate parent of both (no deeper graph walk) and treats a parent/subsidiary/sibling relationship as agreement, provided the **named** entity is itself a confirmed GLEIF match (exact, unambiguous legal name or a direct LEI). If the domain's entity has no LEI, one Wikidata hop is used instead: its parent organization (`P749`) or subsidiaries (`P355`) must carry the LEI of the named entity (or share a GLEIF parent with it). The named entity stays the main record (`leiCode`, `legalName`, `companyName`, `matchBasis: "name_input"` or `lei_input`); the domain's entity appears in `relatedEntity` (`{lei, legalName}`; `lei` is `null` when it was found only through Wikidata), and the Wikidata item of the domain's entity is not mixed into the record. `corporateRelationship` is relative to the **named** entity:

- `parent_of_domain_entity`: the named entity is the direct or ultimate parent of the entity behind the domain (`google.com | Alphabet Inc.`).
- `subsidiary_of_domain_entity`: the named entity is a direct or ultimate subsidiary of the entity behind the domain (`abc.xyz | Google LLC`).
- `same_group`: both entities share the same direct or ultimate parent (siblings).
- `same_entity`: the name search and the domain's Wikidata item resolve to the same LEI although the names differ.
- `null`: no such analysis was needed (no pair, or the typed name directly matches the domain's entity) or the entities are unrelated.

If the relationship lookup itself fails, `gleif_relationships` is added to `sourcesFailed` and the pair stays a `conflict` (never silently verified). Note that Wikidata lists `about.google` (not `google.com`) as Google's official website, so a live `google.com | Alphabet Inc.` run has no Wikidata entity tied to the domain and is judged by the registry match alone (the rule above); the relationship check runs where Wikidata does tie the domain to an entity.

In the name-only and LEI-only paths a Wikidata item is used for the website, domain, DNS and NIS2 checks only if it describes the same company as the confirmed GLEIF entity: a Wikidata item with a different LEI is discarded (and logged); an item without LEI is used only if its country equals the GLEIF country.

Company names are compared without their legal form only at the **end** of the name (`Barr plc` equals `Barr Ltd`); a leading token stays part of the name, so `AG Barr plc` is not `Barr Ltd`, `AS Roma` is not `Roma S.p.A.` and `EV Charging Inc` is not `Charging Ltd`.

How `matchBasis` and `matchConfidence` are assigned:

- `lei_input` (`high`): Input included a valid 20-character LEI code matched directly in GLEIF. An explicit LEI that GLEIF does not know is never replaced by a name or domain search.
- `wikidata_lei` (`high`): A Wikidata corporate entity explicitly lists the queried domain as its official website (`P856`) and carries a LEI (`P1278`) that GLEIF confirms.
- `wikidata_website` (`high`): A Wikidata corporate entity lists the queried domain as its official website, and either no GLEIF record was found or the GLEIF record found by name was corroborated (exact name AND the same country as the Wikidata item). `wikidata_website` is `medium` with `leiMatchStatus: "candidate"` when GLEIF only returned an uncorroborated name hit (for example a differently-owned company with the same name in another country): the company is identified through Wikidata, but its legal-entity record is not verified, so `kybVerified` is `false`.
- `name_input` (`high` when the GLEIF record is `confirmed` or the SEC EDGAR filer is corroborated (see above); `medium` for a `candidate`; `medium`/`low` when matched only in Wikidata without website confirmation): You supplied an explicit company name (for example `domain.com | Legal Name` or a standalone legal name). A GLEIF hit is `confirmed` when the normalized legal name is exactly equal (legal forms are unified, so `AG` equals `Aktiengesellschaft` and `Inc` equals `Incorporated`) and it is unambiguous. If you typed the name without a legal form while also giving a domain (`notion.so | Notion`), an entity named `Notion Oy` is only a `candidate` unless the country corroborates it; type the full legal name (`notion.so | Notion Oy`) to confirm. A name that is merely the beginning of a longer legal name (`Siemens` vs `Siemens Energy AG`) is always a `candidate`, and when an exact name matches several active entities the result is a `candidate` too.
- `domain_stem_only` (`low`, `kybVerified: false`): GLEIF returned a candidate matching only the domain's brand stem without website, LEI, or caller-provided name corroboration. Candidate registry fields are still returned for review, clearly marked as low-confidence.
- `conflict` (`low`, `kybVerified: false`): The company you named and the company tied to your domain are different, unrelated entities (or their relationship could not be checked); see `matchConflict`.
- `none` (`none`, `kybVerified: false`): No registry match was found.

### Data sources and technical checks

This Actor builds a structured company verification and external technical readiness dossier from a domain, company name, or 20-character LEI code. It does not scrape website HTML and does not collect personal employee data. Every field comes from open-data corporate registries with commercial reuse licenses or from standard internet protocol queries.

For corporate identity and Know Your Business (KYB) checks, the Actor queries the Global Legal Entity Identifier Foundation (GLEIF API, CC0 1.0 Public Domain) to fetch the official legal name, jurisdiction, commercial register number (such as German HRB entries), legal and headquarters addresses, registration status, and ultimate parent company. It cross-references Wikidata (CC0 1.0 Public Domain) for founding year, employee count, ISIN, and official domain mappings, and queries the US SEC EDGAR API (US Federal Public Domain) for CIK numbers, stock tickers, SIC industry codes, and recent 10-K or 20-F filing dates when an issuer is listed in the United States.

For cloud software detection, the Actor inspects root DNS TXT, SPF, MX, and NS records over DNS-over-HTTPS (RFC 8484). Most organizations publish vendor verification tokens and mail routing entries directly in DNS, which reveals tools like Google Workspace, Microsoft 365, HubSpot, Salesforce, Stripe, OpenAI, Anthropic, Atlassian, Slack, Notion, Miro, Figma, Zoom, DocuSign, Zendesk, Klaviyo, SendGrid, Cloudflare, AWS Route 53, Okta, and Datadog without touching a single web page.

For external root-domain security, mail hygiene, and hosting checks, the Actor queries ICANN RDAP (RFC 7480) for domain registration age (directly at the registry listed in IANA's RDAP bootstrap file; some country-code registries, for example `.de`, `.at`, `.ch`, `.it`, `.es` and `.eu`, offer no RDAP service, so `domainRegisteredAt`, `domainExpiresAt`, `domainAgeYears` and `registrarName` stay `null` for those domains), RIPE Stat for ASN ownership and edge IP country, and the Green Web Foundation open dataset for renewable hosting status. When the root domain sits behind an Anycast CDN or edge network (such as Cloudflare, Akamai, Fastly, or Imperva), `hostingBehindCdn` is `true`, `isEuEeaHosted` is `null`, and `gdprHostingRegion` clearly states `"CDN / Anycast Edge (Origin Unknown)"` because Anycast PoP routing does not reveal origin data residency. It also runs a live TLS handshake on port 443 (distinguishing invalid X.509 certificates via `tlsCertValid: false` and `tlsCertError` from closed TLS ports), checks HTTP security response headers (HSTS, CSP, X-Frame-Options, X-Content-Type-Options), and looks up `/.well-known/security.txt` (RFC 9116). Bare HTTP `Server` banner version matching against OSV.dev is intentionally omitted (`knownServerVulnerabilities` remains `[]` with neutral scoring) because Linux distributions backport security fixes without bumping upstream HTTP banner versions.

> **When DNS is unavailable:** if the DNS-over-HTTPS resolvers (Google, Cloudflare) cannot answer, the dossier lists `dns` in `sourcesFailed`, `nis2ReadinessScore` and `nis2Grade` are `null` (no misleading low score computed from empty DNS answers), and `spfPresent`, `dmarcPresent`, and `caaPresent` are `null` (unknown, not missing).

> **Scope of `nis2ReadinessScore`:** `nis2ReadinessScore` (0 to 100) is an **external technical view of the root domain** (TLS, SPF/DMARC, DNSSEC/CAA, HTTP headers, `security.txt`) and is **not** a proof or certification of organizational NIS2 compliance.

### Integrations (n8n, Make, MCP & Python)

#### n8n / Make / REST API (`run-sync-get-dataset-items`)

Automate B2B onboarding, vendor risk scoring, and CRM domain enrichment in **n8n** or **Make** via a single synchronous `POST` request (`Bearer Auth` with your `APIFY_TOKEN`):

```bash
curl -X POST "https://api.apify.com/v2/acts/gutacker~company-kyb-compliance/run-sync-get-dataset-items" \
  -H "Authorization: Bearer <APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
    "targets": ["personio.de", "celonis.com"],
    "includeCorporateRegistries": true,
    "includeSecurityAndNis2": true,
    "includeCtSubdomains": false
  }'
```

#### AI Agents & Model Context Protocol (Claude, Cursor, n8n AI Agent)

Attach instant GLEIF LEI verification, DNS SaaS stack detection, and NIS2 compliance scoring as an MCP tool for SDR and SecOps agents:

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com/?actors=gutacker/company-kyb-compliance,gutacker/eu-public-tenders",
      "headers": { "Authorization": "Bearer <APIFY_TOKEN>" }
    }
  }
}
```

#### Python (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("gutacker/company-kyb-compliance").call(run_input={
    "targets": ["personio.de", "celonis.com"],
    "includeCorporateRegistries": True,
    "includeSecurityAndNis2": True,
})
items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
```

### Related Tools by gutacker

You can combine this Actor with [EU Public Tenders & Winner Company Enricher](https://apify.com/gutacker/eu-public-tenders) for European public sector contract awards, [Career Site & ATS Jobs Scraper](https://apify.com/gutacker/career-site-jobs) for hiring signals, [Google Ads Transparency Scraper](https://apify.com/gutacker/google-ads-transparency), [LinkedIn Ad Library Scraper](https://apify.com/gutacker/linkedin-ad-library), [Shopify Store & Product Scraper](https://apify.com/gutacker/shopify-store-spy), and [App Store & Google Play Reviews](https://apify.com/gutacker/app-store-reviews).

# Actor input Schema

## `targets` (type: `array`):

List of company domains (such as 'sap.com', 'stripe.com', 'hetzner.com'), 20-character LEI codes, company names, or 'domain.com | Company Name' entries. Not marked required so that the aliases below work, but the run fails immediately with a clear message when no target is given. A list item may also be an object {"domain": "stripe.com", "company": "Adyen N.V.", "lei": "..."} (same as 'domain | name'; a lei wins over a company name). Each list item is exactly one target and is never split on commas ('Smith, Jones & Partners' stays one company); only a single string is split on newlines and commas ('Stripe, Inc.' is kept together). The same domain written in different ways (with or without https://, www., a path) is checked and billed once.

## `countryHint` (type: `string`):

Optional two-letter country code (for example 'DE', 'US', 'FR', 'NL') used to prioritize matching legal entities in GLEIF when multiple regional subsidiaries exist. A JSON list is accepted too; only the first entry is used.

## `includeCorporateRegistries` (type: `boolean`):

Look up LEI code, commercial register number, legal address, ultimate parent entity, founding year, employee count, ISIN, and US SEC filings from CC0 and Public Domain registries.

## `includeSecurityAndNis2` (type: `boolean`):

Run a port 443 TLS handshake (separating X.509 certificate validation failures from unreachable ports), check HTTP security response headers, inspect /.well-known/security.txt (RFC 9116), and calculate a 0 to 100 external technical hygiene score for the root domain (not a proof of organizational NIS2 compliance).

## `includeCtSubdomains` (type: `boolean`):

Query public Certificate Transparency logs (RFC 6962 via CertSpotter and crt.sh) to list subdomains from issued TLS certificates. Works independently of the TLS/NIS2 block. Billed as an optional add-on event per domain only when the CT logs actually delivered subdomains (ctSubdomainSource 'certspotter' or 'crtsh'). If the CT logs are unavailable or empty, a best-effort DNS prefix check may still list subdomains (ctSubdomainSource 'dns_guess'); those are never billed.

## `maxNis2ScoreFilter` (type: `integer`):

Optional upper bound (0 to 100). Set to 65, for example, to keep only domains that have missing mail protections, missing security headers, or TLS issues. Dossiers above the bound and dossiers without a score (no domain, or DNS unavailable) are skipped and not charged; they are listed in the RUN_SUMMARY record. Requires includeSecurityAndNis2; with it switched off the run fails immediately without charges.

## `concurrency` (type: `integer`):

Number of targets checked in parallel.

## `domain` (type: `string`):

Alias for one entry of 'targets': a domain such as 'sap.com', or 'domain.com | Legal Name'. Also accepted: 'target' and 'company'. Lists are accepted as well.

## `company` (type: `string`):

Alias for one entry of 'targets': a company name or a 20-character LEI code.

## `target` (type: `string`):

Alias for one entry of 'targets': a domain, company name, LEI code, or 'domain.com | Legal Name'.

## `domains` (type: `array`):

Alias for 'targets'. A comma or newline separated string is also accepted.

## `companies` (type: `array`):

Alias for 'targets', typically company names or LEI codes. A newline separated string is also accepted.

## Actor input object example

```json
{
  "targets": [
    "sap.com",
    "stripe.com",
    "siemens.com",
    "hetzner.com"
  ],
  "countryHint": "",
  "includeCorporateRegistries": true,
  "includeSecurityAndNis2": true,
  "includeCtSubdomains": false,
  "concurrency": 6
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `runSummary` (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 = {
    "targets": [
        "sap.com",
        "stripe.com",
        "siemens.com",
        "hetzner.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("gutacker/company-kyb-compliance").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 = { "targets": [
        "sap.com",
        "stripe.com",
        "siemens.com",
        "hetzner.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("gutacker/company-kyb-compliance").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 '{
  "targets": [
    "sap.com",
    "stripe.com",
    "siemens.com",
    "hetzner.com"
  ]
}' |
apify call gutacker/company-kyb-compliance --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gutacker/company-kyb-compliance"
        }
    }
}
```

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/V7BSbkyYUYGfnpEj6/builds/BEhFjPXvIv9JiJsis/openapi.json
