# GLEIF LEI KYB Lookup – Company Name to LEI & Parent (`zhucl1006/gleif-lei-kyb-lookup`) Actor

Bulk resolve company legal names or LEI codes via the official GLEIF API. Returns KYB-ready fields: LEI, status, next renewal, jurisdiction, registration authority, direct/ultimate parent LEIs, and addresses. No API key required.

- **URL**: https://apify.com/zhucl1006/gleif-lei-kyb-lookup.md
- **Developed by:** [leo zhu](https://apify.com/zhucl1006) (community)
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 lei results

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

### What does GLEIF LEI KYB Lookup do?

**GLEIF LEI KYB Lookup** queries the official [GLEIF LEI API](https://www.gleif.org/en/lei-data/gleif-lei-api) (`https://api.gleif.org/api/v1/`) to resolve **company legal names** and/or **LEI codes** into a flat, KYB-friendly dataset. It is built for compliance, AML/KYB agencies, sales ops, and counterparty enrichment — without scraping or API keys.

Use it as a structured **LEI lookup** / **company name to LEI** / **GLEIF parent hierarchy** enrichment step in your pipelines.

### Why use this Actor?

Store LEI Actors often stop at a basic name match. This Actor focuses on **KYB workflows**:

- Bulk **name → LEI** and exact **LEI → record** resolve
- **Registration status** and **next renewal date** for freshness checks
- **Direct parent LEI** and **ultimate parent LEI** when GLEIF publishes the relationship
- Legal + headquarters addresses (organization-level only — no personal officer PII)
- Registration authority code and local registered ID for cross-registry joins
- Public GLEIF API — **no API key**, no login, no captcha

**Features**

- Keyless GLEIF JSON API (JSON:API)
- Defaults optimized for Apify Store auto-test (secret-free, non-empty dataset in seconds)
- Dedupes by LEI across names
- Optional registration-status filter (`ISSUED`, `LAPSED`, …)
- Pay-per-event ready (`lei-result` per dataset item when monetization is configured)
- Runs on Apify: scheduling, API, webhooks, integrations, monitoring

### What data can GLEIF LEI KYB Lookup extract?

| Field | Type | Description |
| --- | --- | --- |
| `lei` | string | 20-character Legal Entity Identifier |
| `legalName` | string | Entity legal name from GLEIF |
| `entityStatus` | string | Entity status (e.g. `ACTIVE`) |
| `registrationStatus` | string | Registration status (`ISSUED`, `LAPSED`, …) |
| `nextRenewalDate` | string | Next LEI renewal timestamp |
| `jurisdiction` | string | Entity jurisdiction (e.g. `US-WA`, `BE`) |
| `entityCategory` | string | e.g. `GENERAL` |
| `registrationAuthority` | string | GLEIF RA code |
| `registeredAs` | string | Local registry identifier |
| `managingLou` | string | Managing LOU LEI |
| `directParentLei` | string | Direct parent LEI when reported |
| `ultimateParentLei` | string | Ultimate parent LEI when reported |
| `legalAddress` / `legalCity` / `legalRegion` / `legalCountry` / `legalPostalCode` | string | Legal address fields |
| `hqAddress` / `hqCity` / `hqRegion` / `hqCountry` / `hqPostalCode` | string | Headquarters address fields |
| `bic` | string | Associated BIC code(s), if any |
| `gleifUrl` | string | Link to the record on GLEIF search |
| `queryName` / `queryLei` | string | Which input query produced the row |

### How to look up LEIs

1. Open the Actor in [Apify Console](https://console.apify.com) or on the Store page.
2. Keep the default **searchNames** `["Microsoft"]` for a quick test, or paste your company list.
3. Optionally add exact **leis** (20-character codes).
4. Set **maxResults** / **maxResultsPerName** (defaults are small and Store-safe).
5. Leave **includeParents** on to enrich direct/ultimate parent LEIs.
6. Click **Start** and download JSON, CSV, Excel, or HTML.

### How much will it cost?

This Actor calls the free public GLEIF API. Platform cost is mainly Apify compute units. Small name lists finish in seconds on 256–1024 MB. If the publisher enables pay-per-event pricing, the primary event is **`lei-result`** (one charge per dataset item) — check the Store pricing tab.

### Input

See the **Input** tab for the full form. Main fields:

- `searchNames` — list of legal names (default `["Microsoft"]`)
- `leis` — optional list of exact LEI codes
- `maxResults` — total cap (default `10`, max `500`)
- `maxResultsPerName` — per-name cap (default `5`)
- `includeParents` — include parent LEIs (default `true`)
- `registrationStatus` — optional filter (e.g. `ISSUED`)

### Output

Example item (shape may vary by entity):

```json
{
  "lei": "INR2EJN1ERAN0W5ZP974",
  "legalName": "MICROSOFT CORPORATION",
  "entityStatus": "ACTIVE",
  "registrationStatus": "ISSUED",
  "nextRenewalDate": "2027-05-04T00:00:00Z",
  "jurisdiction": "US-WA",
  "entityCategory": "GENERAL",
  "registrationAuthority": "RA000641",
  "registeredAs": "600 413 485",
  "managingLou": "213800WAVVOPS85N2205",
  "directParentLei": null,
  "ultimateParentLei": null,
  "legalCountry": "US",
  "hqCity": "REDMOND",
  "hqCountry": "US",
  "gleifUrl": "https://search.gleif.org/#/record/INR2EJN1ERAN0W5ZP974",
  "queryName": "Microsoft"
}
```

### Tips

- Prefer the **official legal name** when possible; GLEIF matching is substring-based and common brands can return many local entities.
- Use **leis** for exact KYB refresh of known counterparties.
- Filter to `ISSUED` when you only want currently renewed registrations.
- Combine with company-register Actors (e.g. UK Companies House) using `registeredAs` / jurisdiction.

### FAQ & disclaimer

#### Is an API key required?

No. The [GLEIF LEI API](https://www.gleif.org/en/lei-data/gleif-lei-api) is public and keyless for these lookups.

#### Does this export personal data / officers?

No. Output is organization LEI Level 1 reference data and parent LEI links. Personal officer names are not requested.

#### Source & accuracy

Data comes from GLEIF golden copy / LOU submissions. Always verify critical compliance decisions against primary sources and your policy.

> Our Actors are ethical and do not extract private user data beyond what GLEIF publishes for legal entities. You should not process personal data unless you have a legitimate reason. If unsure, consult your counsel. GDPR and other privacy laws may apply depending on your use case.

#### Support

Open an issue on the Actor page in Apify Console or contact the publisher.

# Actor input Schema

## `searchNames` (type: `array`):

Legal names to search in GLEIF (substring match on entity.legalName). Example: Microsoft, Alphabet Inc. Default is secret-free and returns results in seconds for Store auto-test.

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

Optional exact 20-character LEI codes to look up (e.g. INR2EJN1ERAN0W5ZP974 for Microsoft Corporation). Combined with searchNames; duplicates are deduped.

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

Hard cap on total dataset items across all names and LEIs. Keep small for Store auto-test.

## `maxResultsPerName` (type: `integer`):

Per legal-name search limit (GLEIF may return many subsidiaries / local entities for a common brand).

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

When true, populate directParentLei and ultimateParentLei using GLEIF relationship includes (no extra keys).

## `registrationStatus` (type: `string`):

Optional filter on GLEIF registration.status. Omit for all. ISSUED = current; LAPSED = expired renewal.

## Actor input object example

```json
{
  "searchNames": [
    "Microsoft"
  ],
  "maxResults": 10,
  "maxResultsPerName": 5,
  "includeParents": true
}
```

# Actor output Schema

## `leiRecords` (type: `string`):

Dataset of flat KYB-friendly GLEIF LEI records

# 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 = {
    "searchNames": [
        "Microsoft"
    ],
    "maxResults": 10,
    "maxResultsPerName": 5,
    "includeParents": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("zhucl1006/gleif-lei-kyb-lookup").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 = {
    "searchNames": ["Microsoft"],
    "maxResults": 10,
    "maxResultsPerName": 5,
    "includeParents": True,
}

# Run the Actor and wait for it to finish
run = client.actor("zhucl1006/gleif-lei-kyb-lookup").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 '{
  "searchNames": [
    "Microsoft"
  ],
  "maxResults": 10,
  "maxResultsPerName": 5,
  "includeParents": true
}' |
apify call zhucl1006/gleif-lei-kyb-lookup --silent --output-dataset

```

## MCP server setup

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

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/iVTki4bbZOSvMtYnN/builds/nKcqJkUDudS85GCcq/openapi.json
