# GLEIF LEI Lookup — Legal Entity Identifiers with Parents (`alauddinburki/gleif-lei`) Actor

Look up or search the global LEI register: legal name, addresses, LEI status and renewal date, overdue renewals, BIC codes, and direct and ultimate parent companies. Official GLEIF open data, no key.

- **URL**: https://apify.com/alauddinburki/gleif-lei.md
- **Developed by:** [Alauddin burki](https://apify.com/alauddinburki) (community)
- **Categories:** Lead generation, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 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

## GLEIF LEI Lookup — Legal Entity Identifiers with Parents

Look up any **Legal Entity Identifier**, or search the global LEI register, straight from **GLEIF's official API**:
legal name, legal and headquarters addresses, LEI status and next renewal date, BIC codes, and — optionally — each
entity's **direct and ultimate parent**. CC0 open data, no key.

### Use it for

- **KYC / onboarding:** confirm a counterparty's LEI is valid, ISSUED and not overdue for renewal.
- **Group structure:** who owns this entity, all the way up.
- **Lists:** every ISSUED LEI in a country or city, or matching a name.

### Input

| Field | Example |
|---|---|
| `leis` | `["5493001KJTIIGC8Y1R12"]` (bulk, 200 per call; bad check digits are reported, not sent) |
| `query`, `legalName` | `siemens` |
| `countries`, `city`, `jurisdiction` | `["DE"]` |
| `registrationStatuses`, `entityStatus`, `categories` | `["ISSUED"]`, `ACTIVE`, `["FUND"]` |
| `registeredAs` | the entity's national register number |
| `includeParents` | adds direct and ultimate parent (two lookups per record) |

### Output

| Field | Example |
|---|---|
| `lei`, `legalName` | 5493001KJTIIGC8Y1R12 · Bloomberg Finance L.P. |
| `registrationStatus`, `nextRenewal`, `renewalOverdue` | ISSUED · 2027-01-25 · false |
| `legalAddress`, `legalCountry`, `hqAddress` | one-line addresses |
| `jurisdiction`, `registeredAs`, `legalFormCode` | US-DE · … |
| `bic` | SWIFT codes |
| `directParentName`, `ultimateParentName` (+ LEIs) | Bloomberg Inc. |
| `gleifUrl` | the official record |

`renewalOverdue` flags records still marked ISSUED whose renewal date has passed — lapsed in practice, before GLEIF
changes the status.

### Pricing

Pay per result: **$0.0005 per row**. Plus a start fee of $0.0001 per GB of allocated memory (minimum one event).
One row is one LEI record.

### Good to know

- GLEIF allows 60 requests a minute. Search returns 200 records per request; parents cost two requests per record,
  so 100 records with parents take about 4 minutes.
- A missing parent means none was reported to GLEIF (an entity may declare a reporting exception).

### Verification status (2026-11-11, local)

- ✅ 5 unit tests on live fixtures: ISO 17442 check digits, filters, row mapping, overdue renewals, parents.
- ✅ Live: 3 LEIs (one with a bad check digit, reported) + "siemens" in DE with parents → 8 records, parents resolved
  (Siemens subsidiaries → Siemens Aktiengesellschaft), 0 schema mismatches, 20 s.

# Actor input Schema

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

20-character Legal Entity Identifiers. Spaces and lower case are fine; invalid check digits are reported.

## `query` (type: `string`):

Full-text search over names and identifiers, e.g. siemens.

## `legalName` (type: `string`):

Match on the legal name.

## `countries` (type: `array`):

ISO 3166 2-letter codes of the legal address, e.g. DE, FR, US.

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

Legal-address city.

## `jurisdiction` (type: `string`):

e.g. US-DE, GB, FR.

## `registeredAs` (type: `string`):

The entity's number in its national register, e.g. a SIREN or HRB number.

## `entityStatus` (type: `string`):

Whether the legal entity still exists.

## `registrationStatuses` (type: `array`):

ISSUED (current), LAPSED (not renewed), RETIRED, MERGED, …

## `categories` (type: `array`):

GENERAL, FUND, BRANCH, SOLE_PROPRIETOR, …

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

Two extra lookups per record (slower: GLEIF allows 60 requests a minute).

## `maxItems` (type: `integer`):

Stop after this many records.

## Actor input object example

```json
{
  "leis": [
    "5493001KJTIIGC8Y1R12"
  ],
  "entityStatus": "ANY",
  "includeParents": true,
  "maxItems": 20
}
```

# Actor output Schema

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

Every row of the run, in the dataset (fields as listed under Output in the README).

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

Counts, items not found and other notes for the run.

# 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": [
        "5493001KJTIIGC8Y1R12"
    ],
    "includeParents": true,
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("alauddinburki/gleif-lei").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": ["5493001KJTIIGC8Y1R12"],
    "includeParents": True,
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("alauddinburki/gleif-lei").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": [
    "5493001KJTIIGC8Y1R12"
  ],
  "includeParents": true,
  "maxItems": 20
}' |
apify call alauddinburki/gleif-lei --silent --output-dataset

```

## MCP server setup

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

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/NfR1e7acfH6Blu6sd/builds/7HwF7y9uhJZ6M493b/openapi.json
