# Company Lookup by Name, Register No. or LEI (GLEIF) (`michael80/company-lookup-lei-gleif`) Actor

Company verification and KYB lookup from the official GLEIF LEI company registry: legal name, legal form, status, register number and court (e.g. Handelsregister HRB), address, founding date, parent and subsidiaries. Bulk by name, HRB or LEI.

- **URL**: https://apify.com/michael80/company-lookup-lei-gleif.md
- **Developed by:** [Toolmaster Data Tools](https://apify.com/michael80) (community)
- **Categories:** Lead generation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.60 / 1,000 company founds

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/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 Lookup by Name, Register No. or LEI (GLEIF)

Verify and enrich companies in bulk from the **official Global LEI database (GLEIF)**, the worldwide register of Legal Entity Identifiers. Millions of companies worldwide, about 260,000 of them in Germany; LEI issuers validate the records against official registers (the corroboration level is included). The data is free and open (CC0), so this Actor works without an account or API key.

- **Look up by company name, German register number (e.g. `HRB 6684`) or LEI**: one clean, CSV-ready row per company.
- **Official company core data:** legal name, legal form in words (e.g. *Gesellschaft mit beschränkter Haftung*), status (active/inactive), register number and register court, legal address and headquarters, founding date, successor after a merger.
- **Group structure:** direct and ultimate parent company with LEI and country, and the number of direct subsidiaries, from the official GLEIF relationship data.
- **Smart name matching:** legal-form suffixes are ignored, a fuzzy fallback finds the official name (e.g. *Deutsche Bahn AG* → *Deutsche Bahn Aktiengesellschaft*), every match has a score and weak matches are flagged.
- **List mode for lead lists:** all companies with an LEI whose legal or head-office address is in a city or postal-code area, optionally filtered by legal form.
- **Fair billing and privacy:** queries without a match are free; sole proprietors are skipped (free) to avoid personal data.

### Who uses it

| User | Typical use |
| --- | --- |
| Finance, compliance, KYB | Check that a customer or supplier exists, is active and who owns it |
| Sales and CRM teams | Clean company names, add register numbers, legal form and parent company |
| Analysts | Map corporate groups and subsidiaries |

### Input

| Field | Example | Notes |
| --- | --- | --- |
| `companies` | `["Siemens Healthineers AG", "HRB 6684", "529900QBVWXMWANH7H45"]` | Name, register number or LEI per line |
| `country` | `DE` | Recommended for register numbers and names |
| `includeGroupStructure` | `true` | Parents and subsidiary count |
| `onlyActive`, `maxMatchesPerQuery` | `false`, `1` | |
| `city`, `postalCode`, `legalFormCode` | `Chemnitz`, `09111`, `2HBR` | List mode (leave `companies` empty) |
| `maxResults` | `1000` | |

### Output (one row per company)

| Field | Example |
| --- | --- |
| `query`, `matchType`, `matchScore` | `Siemens Healthineers`, `name`, `1.0` |
| `legalName`, `legalForm`, `legalFormCode`, `status` | `Siemens Healthineers AG`, `Aktiengesellschaft`, `6QQB`, `ACTIVE` |
| `registeredAs`, `registerAuthority`, `jurisdiction` | `HRB 237558`, `Handelsregister – Amtsgericht München`, `DE` |
| `street`, `postalCode`, `city`, `region`, `country` | legal address |
| `hqStreet`, `hqPostalCode`, `hqCity`, `hqCountry` | `Siemensstr. 3`, `91301`, `Forchheim`, `DE` |
| `foundedOn`, `successorLei` | `2017-12-11`, LEI of the successor after a merger |
| `directParentName`, `directParentLei`, `ultimateParentName`, `ultimateParentLei`, `directSubsidiaries` | `Siemens Aktiengesellschaft`, `W38RGI023J3WT1HWRP32`, …, `88` |
| `directParentNote`, `ultimateParentNote` | e.g. `controlled by natural persons (no parent company)` when there is no parent |
| `lei`, `leiStatus`, `leiRegisteredOn`, `leiNextRenewal`, `dataCorroboration`, `bic` | `529900QBVWXMWANH7H45`, `ISSUED`, … |
| `gleifUrl` | link to the official GLEIF record |

### Pricing (pay per event)

**$2 per 1,000 companies** ($0.002 each). Queries without a match, skipped sole proprietors and errors are free.

### Coverage and limits

GLEIF contains companies that have an LEI. That includes most banks, insurers, listed companies, funds, larger GmbHs and AGs and many companies that trade securities or take part in public procurement, but **not every small company**. No managing directors, shareholders or financial statements are returned. Source: GLEIF Global LEI Index, CC0.

### FAQ

**Why is a company missing?** It probably has no LEI. The row says "not found" and is free.

**Which register number format works?** German format such as `HRB 6684`, `HRA 1234`, `GnR 12`, `VR 345`, ideally with `country` = `DE`. If several courts use the same number, all matches are returned with their register court.

**Something wrong or missing?** Open an issue on the Actor page. We usually answer within one business day.

***

### Kurz auf Deutsch

Firmen prüfen und anreichern aus der **offiziellen LEI-Datenbank (GLEIF)**: Suche nach **Firmenname, Handelsregisternummer (z. B. HRB 6684) oder LEI**. Ausgabe: amtlicher Name, Rechtsform, Status, Registernummer und Registergericht, Anschrift, Gründungsdatum, **Mutter- und oberste Konzerngesellschaft** sowie Zahl der Tochterfirmen. Listen-Modus für alle Firmen mit LEI in einer Stadt. Keine Personendaten (Einzelunternehmer werden übersprungen). 2 $ pro 1.000 Firmen, Fehltreffer kostenlos.

***

**Anbieter / Impressum (Angaben gemäß § 5 DDG):** Michael Schönherr · Am Spiegelwald 1 · 08344 Grünhain-Beierfeld · Deutschland · E-Mail: toolmaster@tuta.io

# Changelog

This Actor's version history is a separate document: https://apify.com/michael80/company-lookup-lei-gleif/changelog.md

# Actor input Schema

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

One company per line: a company name (e.g. 'Siemens Healthineers AG'), a German register number (e.g. 'HRB 6684') or a 20-character LEI. Register numbers work best together with 'Country'.

## `country` (type: `string`):

Optional two-letter country code of the company's legal address, e.g. 'DE', 'AT', 'FR'. Narrows name and register-number searches and lists.

## `includeGroupStructure` (type: `boolean`):

Adds the direct and ultimate parent company (with LEI and country) and the number of direct subsidiaries, from the official GLEIF relationship data.

## `onlyActive` (type: `boolean`):

Skips companies whose legal entity status is not ACTIVE (e.g. dissolved or merged).

## `maxMatchesPerQuery` (type: `integer`):

How many candidates to return for each company name (best match first, with a match score). Use more than 1 when names are ambiguous.

## `city` (type: `string`):

Leave 'Companies' empty and set a city (plus 'Country') to get a list of all companies with an LEI whose legal or head-office address is in that city, e.g. 'Chemnitz' or 'München'. Useful for lead lists.

## `postalCode` (type: `string`):

Optional postal code (or its beginning, e.g. '091') for list mode. Can be used instead of or together with 'City'.

## `legalFormCode` (type: `string`):

Optional ISO 20275 legal form code to narrow the list, e.g. '2HBR' for the German GmbH. The 'legalFormCode' column of any result shows the code.

## `maxResults` (type: `integer`):

Stops after this many companies in total.

## `maxConcurrency` (type: `integer`):

How many companies are looked up at the same time.

## `selfTest` (type: `boolean`):

Looks up one fixed company to check that everything works. Ignores the other fields.

## Actor input object example

```json
{
  "companies": [
    "Siemens Healthineers AG",
    "HRB 6684",
    "529900QBVWXMWANH7H45"
  ],
  "country": "DE",
  "includeGroupStructure": true,
  "onlyActive": false,
  "maxMatchesPerQuery": 1,
  "maxResults": 1000,
  "maxConcurrency": 5,
  "selfTest": false
}
```

# Actor output Schema

## `overview` (type: `string`):

Name, legal form, status, register, city, parent, LEI.

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

Complete rows incl. addresses, headquarters, LEI dates, BIC and group structure.

# 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 = {
    "companies": [
        "Siemens Healthineers AG",
        "HRB 6684",
        "529900QBVWXMWANH7H45"
    ],
    "country": "DE"
};

// Run the Actor and wait for it to finish
const run = await client.actor("michael80/company-lookup-lei-gleif").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 = {
    "companies": [
        "Siemens Healthineers AG",
        "HRB 6684",
        "529900QBVWXMWANH7H45",
    ],
    "country": "DE",
}

# Run the Actor and wait for it to finish
run = client.actor("michael80/company-lookup-lei-gleif").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 '{
  "companies": [
    "Siemens Healthineers AG",
    "HRB 6684",
    "529900QBVWXMWANH7H45"
  ],
  "country": "DE"
}' |
apify call michael80/company-lookup-lei-gleif --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,michael80/company-lookup-lei-gleif"
        }
    }
}
```

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/SZnNqogNnkFaCLw6Y/builds/VkNKMCpXS95hL57nQ/openapi.json
