# GLEIF LEI Lookup & Validator (Legal Entity Identifier) (`zriil/gleif-lei-lookup`) Actor

Look up Legal Entity Identifiers in the official GLEIF index or find a company LEI by name. Bulk-validates LEIs (ISO 17442), flags lapsed registrations, returns legal name, jurisdiction, addresses and optional direct / ultimate parent. 200 LEIs per request.

- **URL**: https://apify.com/zriil/gleif-lei-lookup.md
- **Developed by:** [zriil](https://apify.com/zriil) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.40 / 1,000 legal entity

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/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 & Validator (Legal Entity Identifier API)

Look up **Legal Entity Identifiers (LEI)** in the official **GLEIF Global LEI Index**, or find a company's LEI by name. Validate LEI lists in bulk, check whether registrations have lapsed, and optionally add the **direct and ultimate parent company**.

Uses GLEIF's official public API. The LEI data is published by GLEIF under **CC0** (free for any use).

#### Use cases

- KYC / onboarding: confirm a counterparty's legal name, jurisdiction and registered address
- MiFID II / EMIR / SFTR reporting: find lapsed LEIs (`registrationStatus: LAPSED`) before they break your reports
- Data cleaning: validate a column of LEIs (ISO 17442 checksum) and enrich it in one run
- Corporate structure: who is the parent / ultimate parent of an entity

#### Input

- `leis`: LEI codes, looked up **200 per request**, so 10,000 LEIs take minutes, not hours
- `names`: company names in any language (e.g. `台灣積體電路`, `Siemens`)
- `includeParents`: add direct and ultimate parent (slower)

#### Output

```json
{
  "query": "549300KB6NK5SBD14S87",
  "lei": "549300KB6NK5SBD14S87",
  "legalName": "台灣積體電路製造股份有限公司",
  "otherNames": ["Taiwan Semiconductor Manufacturing Company Limited (...)"],
  "entityStatus": "ACTIVE",
  "jurisdiction": "TW",
  "registeredAs": "22099131",
  "legalAddress": { "lines": "...", "city": "...", "country": "TW" },
  "registrationStatus": "ISSUED",
  "nextRenewalDate": "2027-...",
  "renewalOverdue": false,
  "bic": [],
  "gleifUrl": "https://search.gleif.org/#/record/549300KB6NK5SBD14S87"
}
```

#### What it costs

**$0.002 per legal entity returned.** Invalid LEIs, unknown LEIs and names without matches are skipped and **not charged** (turn on *Also return queries with no match* to see them).

#### Good to know

- Data: GLEIF Global LEI Index via api.gleif.org, CC0 1.0. Updated by GLEIF several times a day.
- Requests are paced politely (about one every 2 seconds) within GLEIF's published limits.
- This Actor is not affiliated with or endorsed by GLEIF.

# Actor input Schema

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

20-character Legal Entity Identifiers, one per line. Checked with the ISO 17442 checksum first, then looked up 200 at a time. Up to 20,000 per run.

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

Search the global LEI index by legal or other name (any language, e.g. Taiwan Semiconductor, 台灣積體電路, Siemens). Up to 500 names per run.

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

Best matches returned for each name (1-50).

## `activeOnly` (type: `boolean`):

Skip dissolved / merged entities when searching by name.

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

Adds the parent LEI and name from GLEIF relationship data. Slower: two extra requests per record, first 200 records only.

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

Off: invalid or unknown LEIs and names without matches are skipped and not charged. On: they are returned with found=false and a reason (charged like any result).

## Actor input object example

```json
{
  "leis": [
    "549300KB6NK5SBD14S87",
    "315700DHB47UOCE2LE29"
  ],
  "maxResultsPerName": 5,
  "activeOnly": false,
  "includeParents": false,
  "includeNotFound": false
}
```

# Actor output Schema

## `results` (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 = {
    "leis": [
        "549300KB6NK5SBD14S87",
        "315700DHB47UOCE2LE29"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("zriil/gleif-lei-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 = { "leis": [
        "549300KB6NK5SBD14S87",
        "315700DHB47UOCE2LE29",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("zriil/gleif-lei-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 '{
  "leis": [
    "549300KB6NK5SBD14S87",
    "315700DHB47UOCE2LE29"
  ]
}' |
apify call zriil/gleif-lei-lookup --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zriil/gleif-lei-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/TUuilFxpCw4IjXkvA/builds/uxZZy97dn3Xza3lWe/openapi.json
