# LEI Lookup & Watch – Bulk Validate, Enrich & Monitor (`adamplaenitz/lei-lookup-watch`) Actor

Validate and enrich lists of LEIs or company names with official GLEIF data: status, renewal date, register ID, addresses, direct and ultimate parent. Watch mode reports status changes, lapsed LEIs and upcoming renewals. No personal data.

- **URL**: https://apify.com/adamplaenitz/lei-lookup-watch.md
- **Developed by:** [Adam Plänitz](https://apify.com/adamplaenitz) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 lei records

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

## LEI Lookup & Watch – Bulk Validate, Enrich & Monitor

**Validate and enrich lists of Legal Entity Identifiers (LEIs) or company names with the official GLEIF data – status, renewal date, register ID, addresses, direct and ultimate parent – and monitor them for changes.** Export as JSON, CSV or Excel, or connect to Google Sheets, Make, Zapier, n8n, Slack or webhooks.

*Deutsche Kurzfassung weiter unten.*

### What does it do?

- **Bulk LEI lookup:** paste hundreds or thousands of LEIs. Each LEI is checked for format and **ISO 17442 checksum**, then enriched with the current GLEIF record (200 LEIs per API request, so 1,000 LEIs take seconds).
- **Company name → LEI:** resolves legal names to LEIs with a match score (0–1). Legal forms are normalised (`AG` = `Aktiengesellschaft`, `GmbH` = `G.m.b.H.`), optional country filter, up to 5 candidates per name. Issued LEIs are preferred over duplicates or retired records.
- **Group structure:** direct and ultimate accounting-consolidation parent (LEI, name, country, status).
- **Watch mode:** remembers the last state of every LEI. Later runs return **only what changed** – field by field with old and new value – plus **lapsed LEIs** and **renewals due** within your warning window. Add a schedule (e.g. daily or weekly) and an integration, and you have an LEI monitoring service.

### Who is it for?

- **KYC / onboarding and compliance teams** checking counterparties, suppliers or customers.
- **Regulatory reporting** (EMIR, MiFIR, SFTR, AnaCredit): make sure every counterparty LEI is valid and not lapsed before you report.
- **Finance, procurement and data teams** enriching CRM or ERP master data with registered names, addresses and group parents.

### Input

| Field | Example |
|---|---|
| LEIs | `529900D6BF99LW9R2E68` |
| Company names | `Deutsche Bahn AG`, `Siemens AG` |
| Country filter for names | `DE` |
| Minimum name match score | `0.6` |
| Matches per name | `1` (up to 5) |
| Include direct and ultimate parent | yes |
| Renewal warning (days) | `30` |
| Watch mode / watch list name | on / `suppliers` |

You can also put LEIs into the names field – they are detected automatically.

### Output example (shortened)

```json
{
  "query": "SAP Deutschland SE & Co. KG",
  "matchType": "name",
  "matchScore": 1,
  "found": true,
  "lei": "5299000X9VHK01Y9R563",
  "legalName": "SAP Deutschland SE & Co. KG",
  "registrationStatus": "ISSUED",
  "entityStatus": "ACTIVE",
  "legalFormCode": "8Z6G",
  "jurisdiction": "DE",
  "registrationAuthorityId": "RA000296",
  "registeredAs": "HRA 350654",
  "legalAddress": { "addressLines": ["Hasso-Plattner-Ring 7"], "city": "Walldorf", "region": "DE-BW", "postalCode": "69190", "country": "DE" },
  "nextRenewalDate": "2027-01-26",
  "daysUntilRenewal": 75,
  "renewalDueSoon": false,
  "isLapsed": false,
  "directParent": { "lei": "529900D6BF99LW9R2E68", "legalName": "SAP SE", "country": "DE", "registrationStatus": "ISSUED" },
  "ultimateParent": { "lei": "529900D6BF99LW9R2E68", "legalName": "SAP SE", "country": "DE", "registrationStatus": "ISSUED" },
  "gleifUrl": "https://search.gleif.org/#/record/5299000X9VHK01Y9R563",
  "license": "CC0 1.0"
}
```

In watch mode each item also has `watchStatus` (`new`, `changed`, `lapsed`, `renewal-due`) and `changes`, e.g. `[{ "field": "registrationStatus", "oldValue": "ISSUED", "newValue": "LAPSED" }]`.

Inputs that cannot be resolved (invalid checksum, unknown LEI, no name match) get a row with `found: false` and the reason – **free of charge**. You can switch these rows off.

### Pricing and speed

See the **Pricing** tab for the current price. Typical run times: 1,000 LEIs without parents ≈ 15 seconds. GLEIF allows 60 API requests per minute, so parent lookups (about 1 second per entity that reports a parent) and name searches (about 2 seconds per name) take longer for very large lists.

### Data source, licence and privacy

- Data: **GLEIF LEI data** via the public GLEIF API, available under **CC0 1.0** ([GLEIF terms](https://www.gleif.org/en/meta/lei-data-terms-of-use)). Each item contains an attribution.
- **This Actor is an independent tool and is not affiliated with, endorsed by or sponsored by GLEIF.**
- **No personal data:** entities registered as sole proprietors (GLEIF category `SOLE_PROPRIETOR`) and German registered merchants (`e.K.`) are never output, because their legal name is a person's name. Parents of that kind are omitted as well.

### Limits

- Parent companies are those reported to GLEIF as accounting-consolidation parents. Where an entity reports an exception (e.g. no parent or natural-person owners), `directParent` / `ultimateParent` is `null`.
- Name matching depends on how companies registered their legal name. Check `matchScore`, or raise the minimum score for stricter matching.

Questions or feature requests? Please open an issue in the **Issues** tab – usually answered within 1–2 working days.

***

### Deutsch (Kurzfassung)

**LEI-Prüfung und -Überwachung mit den offiziellen GLEIF-Daten:**

- **Prüfung:** LEI-Listen auf Format und Prüfziffer prüfen.
- **Anreicherung:** Status, Verlängerungsdatum, Registernummer (z. B. HRB), Adressen sowie Mutter- und Endmutterkonzern ergänzen.
- **Namenssuche:** Firmennamen in LEIs auflösen („AG“ = „Aktiengesellschaft“).
- **Überwachung:** Der Überwachungsmodus meldet nur Änderungen, abgelaufene LEIs und anstehende Verlängerungen.

Für KYC, Lieferantenprüfung und Meldewesen (EMIR, MiFIR, AnaCredit). Daten: GLEIF, CC0 1.0. Keine Verbindung zu GLEIF. Keine personenbezogenen Daten: Einzelunternehmer und e.K. werden nicht ausgegeben.

# Actor input Schema

## `leis` (type: `array`):

Legal Entity Identifiers (20 characters). Format and ISO 17442 checksum are validated; invalid LEIs are reported free of charge.

## `names` (type: `array`):

Legal entity names to resolve to an LEI (fuzzy match against GLEIF legal and other names). Legal forms are normalised, e.g. 'AG' = 'Aktiengesellschaft'.

## `nameCountry` (type: `string`):

Only accept name matches with a legal address in this country, e.g. DE, AT, CH, FR. Leave empty for all countries.

## `minMatchScore` (type: `string`):

Similarity between 0 and 1 (default 0.6). Higher = stricter.

## `maxMatchesPerName` (type: `integer`):

Return up to this many candidate LEIs per name, best first (1–5).

## `includeParents` (type: `boolean`):

Adds the accounting-consolidation parents reported to GLEIF (LEI, name, country, status). Needs one extra API request per entity with a reported parent.

## `renewalWarningDays` (type: `integer`):

Flag LEIs whose next renewal date is within this many days (field renewalDueSoon).

## `watchMode` (type: `boolean`):

Remembers the last state of every LEI. The first run returns all records; later runs return only changed records (with a field-by-field list), lapsed LEIs and upcoming renewals. Combine with a schedule for daily or weekly monitoring.

## `watchListName` (type: `string`):

Use different names to keep separate watch lists (letters, digits, dashes).

## `includeNotFound` (type: `boolean`):

Adds a free row with found=false and the reason for every input that could not be resolved.

## Actor input object example

```json
{
  "leis": [
    "529900D6BF99LW9R2E68",
    "7LTWFZYICNSX8D621K86"
  ],
  "names": [
    "Deutsche Bahn AG"
  ],
  "minMatchScore": "0.6",
  "maxMatchesPerName": 1,
  "includeParents": true,
  "renewalWarningDays": 30,
  "watchMode": false,
  "watchListName": "default",
  "includeNotFound": true
}
```

# Actor output Schema

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

One item per resolved LEI (plus free rows for inputs that were not found).

## `summary` (type: `string`):

Counts of queries, matches, watch-mode changes and API requests.

# 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 = {
    "leis": [
        "529900D6BF99LW9R2E68",
        "7LTWFZYICNSX8D621K86"
    ],
    "names": [
        "Deutsche Bahn AG"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("adamplaenitz/lei-lookup-watch").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 = {
    "leis": [
        "529900D6BF99LW9R2E68",
        "7LTWFZYICNSX8D621K86",
    ],
    "names": ["Deutsche Bahn AG"],
}

# Run the Actor and wait for it to finish
run = client.actor("adamplaenitz/lei-lookup-watch").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 '{
  "leis": [
    "529900D6BF99LW9R2E68",
    "7LTWFZYICNSX8D621K86"
  ],
  "names": [
    "Deutsche Bahn AG"
  ]
}' |
apify call adamplaenitz/lei-lookup-watch --silent --output-dataset

```

## MCP server setup

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

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/0LeX9b2g2mrrDhDpF/builds/leK5FNu0eHh2t0iyb/openapi.json
