# GLEIF LEI Lookup - verify Legal Entity Identifiers, parents (`edgarfinance/gleif-lei-lookup`) Actor

Verify LEI codes in bulk from official GLEIF data: status, renewal date, legal form, addresses, parents. Search by name or SIREN. $1.50 per 1,000 found.

- **URL**: https://apify.com/edgarfinance/gleif-lei-lookup.md
- **Developed by:** [Edgar Finance](https://apify.com/edgarfinance) (community)
- **Features:** 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 legal entity founds

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: verify Legal Entity Identifiers, legal data and parents

Check and enrich Legal Entity Identifiers (LEI) from the official global LEI database. Paste LEI codes, company registration numbers or legal names, or give a country to list its entities. You get one row per legal entity with the legal name, LEI status and renewal date, legal form, registered and headquarters addresses, registration number and register, BIC codes, and the direct and ultimate parent companies.

The data comes from the **GLEIF API** (Global Legal Entity Identifier Foundation), based on the daily GLEIF Golden Copy, published under the **CC0 1.0** licence. No scraping, no login, no API key.

### Why this Actor

- **Verify LEIs in bulk**: check digits are validated locally (ISO 17442) before any request, then up to 100 LEIs are looked up per request. You see at once which LEIs are valid, lapsed, retired or unknown.
- **Four ways to search**: LEI code, registration number (SIREN, Companies House number, HRB...), legal name, or a whole country with filters.
- **Corporate structure**: direct and ultimate accounting consolidation parents (LEI, name, country), or the reason declared by the entity when no parent is reported.
- **Readable legal forms**: ISO 20275 codes are translated into their local names (for example `K65D` = "SA à conseil d'administration").
- **Legal entities only**: LEI records of natural persons (sole proprietors) are never returned. See "Privacy rule" below.
- **Stable output**: every row has the same 53 fields in the same order, whether the entity was found or not. Easy to load into Excel, a CRM, a KYC tool or a database.
- **Easy for AI agents**: every input has a precise description, allowed values and examples, and every output field is described in the dataset schema.
- **Polite and reliable**: respects the GLEIF limit of 60 requests per minute, retries automatically on rate limits and network errors.
- **Pay only for what you get**: you are charged only for legal entities found. Not found, invalid, excluded and duplicate inputs are free.

### Use cases

- KYC / KYB and counterparty checks: is the LEI valid, issued and up to date, who is the ultimate parent?
- EMIR, MiFID II and other regulatory reporting: verify the LEIs of your counterparties before reporting, and find the ones that are about to lapse (`nextRenewalDate`).
- Match a list of companies (registration numbers or names) to their LEI.
- Build lists of funds, branches or public bodies in a country.

### Input

| Field | Type | Description |
|---|---|---|
| `leis` | list of strings | LEI codes to verify (20 characters). |
| `registrationNumbers` | list of strings | National registration numbers, exact match on the GLEIF field `registeredAs`. |
| `names` | list of strings | Legal names (word match, best match first). |
| `country` | ISO alpha-2 code | Legal address country for searches. Alone, it lists the entities of the country. |
| `nameMatch` | `legal_name` or `all_names` | Search in the legal name only, or also in other names. |
| `maxMatchesPerSearch` | integer, 1 to 200, default 3 | Matches returned per name or registration number. |
| `entityStatus` | `any`, `active`, `inactive` | Filter for searches and listings. |
| `registrationStatuses` | list | `ISSUED`, `LAPSED`, `PENDING_TRANSFER`, `PENDING_ARCHIVAL`, `RETIRED`, `MERGED`, `ANNULLED`, `DUPLICATE`. |
| `entityCategories` | list | `GENERAL`, `BRANCH`, `FUND`, `RESIDENT_GOVERNMENT_ENTITY`, `INTERNATIONAL_ORGANIZATION`. |
| `includeParents` | boolean, default true | Add direct and ultimate parents (up to 2 extra requests per entity). |
| `includeExceptionReasons` | boolean, default false | Fetch the reason when no parent is reported. |
| `includeLegalFormNames` | boolean, default true | Translate legal form codes into names. |
| `maxResults` | integer, 1 to 100,000, default 1000 | Maximum number of entities found (billed rows). |
| `maxRequestsPerMinute` | integer, 1 to 60, default 50 | Politeness limit towards the GLEIF API. |

Example:

```json
{
    "leis": ["969500KMUQ2B6CBAF162", "213800ZGSSJXTYW1LN38"],
    "registrationNumbers": ["552032534"],
    "names": ["Danone"],
    "country": "FR",
    "maxMatchesPerSearch": 3,
    "includeParents": true
}
```

Filters (`entityStatus`, `registrationStatuses`, `entityCategories`, `country`) apply to name searches, registration number searches and country listings. An LEI lookup always returns the record of that LEI, whatever its status, because that is what you want to verify.

### Output

One row per LEI, and one row per match for names and registration numbers. Example (real record, shortened):

```json
{
    "input": "213800ZGSSJXTYW1LN38",
    "inputType": "lei",
    "status": "found",
    "lei": "213800ZGSSJXTYW1LN38",
    "legalName": "INTERNATIONAL NUTRITION CO. LTD. A/S",
    "otherNames": ["INTERNATIONAL NUTRITION RESEARCH INSTITUTE DENMARK LTD. A/S"],
    "entityStatus": "ACTIVE",
    "entityCategory": "GENERAL",
    "legalFormCode": "ZRPO",
    "legalFormName": "Aktieselskab",
    "jurisdiction": "DK",
    "registeredAs": "14874798",
    "registrationAuthorityId": "RA000170",
    "legalAddress": "RØRMOSEVEJ 2A",
    "legalAddressCity": "ALLEROD",
    "legalAddressPostalCode": "3450",
    "legalAddressCountry": "DK",
    "registrationStatus": "ISSUED",
    "initialRegistrationDate": "2018-03-01T00:00:00Z",
    "nextRenewalDate": "2027-03-01T00:00:00Z",
    "corroborationLevel": "FULLY_CORROBORATED",
    "directParentStatus": "reporting_exception",
    "directParentExceptionReason": "NO_LEI",
    "ultimateParentStatus": "reported",
    "ultimateParentLei": "969500KMUQ2B6CBAF162",
    "ultimateParentName": "DANONE",
    "ultimateParentCountry": "FR",
    "gleifUrl": "https://search.gleif.org/#/record/213800ZGSSJXTYW1LN38",
    "source": "GLEIF - Global Legal Entity Identifier Foundation, LEI data under CC0 1.0 (via api.gleif.org)",
    "error": null
}
```

A row that is not found keeps the same fields, with `status` set to `not_found`, `invalid_input`, `excluded_natural_person` or `error` and a readable reason in `error`:

```json
{"input": "969500KMUQ2B6CBAF163", "inputType": "lei", "status": "invalid_input", "lei": null, "error": "Invalid LEI (check digits failed)"}
```

#### All fields

- **Input and match**: `input`, `inputType`, `status`, `matchRank`, `matchTotal`, `error`.
- **Identity**: `lei`, `legalName`, `legalNameLanguage`, `otherNames`, `entityStatus`, `entityCategory`, `entitySubCategory`, `bic`.
- **Legal form and register**: `legalFormCode` (ISO 20275), `legalFormName`, `legalFormOther`, `jurisdiction`, `registeredAs`, `registrationAuthorityId`.
- **Addresses**: `legalAddress`, `legalAddressCity`, `legalAddressRegion`, `legalAddressPostalCode`, `legalAddressCountry`, and the same five fields for `headquarters...`.
- **Life cycle**: `entityCreationDate`, `entityExpirationDate`, `entityExpirationReason`, `successorLei`.
- **LEI registration**: `registrationStatus`, `initialRegistrationDate`, `lastUpdateDate`, `nextRenewalDate`, `managingLou`, `corroborationLevel`, `conformityFlag`.
- **Parents**: `directParentStatus`, `directParentLei`, `directParentName`, `directParentCountry`, `directParentExceptionReason`, and the same five fields for `ultimateParent...`.
- **Provenance**: `gleifUrl`, `source`.

Dates are ISO 8601 date-times in UTC, as published by GLEIF. The dataset has four views: Overview, Legal form and addresses, Parents, Not found and errors. A `SUMMARY` record with counters is saved in the key-value store.

### Privacy rule: legal entities only

A small share of LEIs (about 130,000 records) belong to natural persons acting as a business (sole proprietors). Their legal name is the name of a person. This Actor returns **no data** about them. A record is treated as a natural person when any of these is true:

1. its GLEIF entity category is `SOLE_PROPRIETOR`;
2. its legal form is a sole trader form (a list of ISO 20275 codes such as French "Entrepreneur individuel", German "Einzelunternehmen", Dutch "Eenmanszaak", and the English-language "sole trader" and "sole proprietorship" forms);
3. its free-text legal form names a sole trader form;
4. its legal name starts with a civil title (Mr, Mrs, Monsieur, Madame, Herr, Frau...).

Such records are skipped in searches and listings (counted in `SUMMARY`), and a direct LEI lookup returns a free row with `status: "excluded_natural_person"` and no data. The same rule applies to parents. The rule is strict on purpose; a few legal entities with a person's name in a sole trader form can be excluded too.

### Pricing

Pay per event: **$1.50 per 1,000 legal entities found** ($0.0015 per found entity), plus the standard Apify run start fee. Rows with status `not_found`, `invalid_input`, `excluded_natural_person` or `error` are free, and duplicate inputs are processed only once. For names and registration numbers, each returned match counts as one entity found.

You can set a maximum cost per run in Apify: the Actor stops cleanly when it is reached and keeps everything already delivered.

### FAQ

**How fast is it?** GLEIF allows 60 requests per minute. LEI lookups go 100 per request, so 10,000 LEIs without parents take about 5 to 10 minutes (legal form names add one request per distinct code). Parents cost up to 2 requests per entity: 1,000 entities with parents take about 40 to 50 minutes. Turn `includeParents` off when you only need to verify LEIs.

**How good is name matching?** GLEIF returns records whose name contains your words, best match first. It is not a fuzzy match. Add `country` and check `matchTotal`. For exact results, use the LEI or the registration number.

**Why is my registration number not found?** It must be written as the register writes it (spaces and letters included, for example "HRB 12345"). Try with and without spaces, and add `country`.

**What do the parent statuses mean?** `reported`: the parent has an LEI and is given. `reporting_exception`: the entity declared why it does not report a parent (turn on `includeExceptionReasons` to get the reason, for example `NATURAL_PERSONS` or `NON_CONSOLIDATING`). `not_reported`: no information.

**Why is a date the evening before?** GLEIF publishes dates in UTC. A creation date of 1 January in Paris appears as `...-12-31T23:00:00Z`.

### Limits

- 60 requests per minute (GLEIF limit), shared by all requests of the run.
- Name searches are word matches, not fuzzy matches.
- Up to 50,000 inputs and 100,000 found entities per run.
- The Actor reads the public API; if GLEIF is down, rows are returned with `status: "error"` after several retries instead of failing the whole run.

### Data source and licence

Data: **GLEIF, Global Legal Entity Identifier Foundation** (https://www.gleif.org), through the official GLEIF API (https://api.gleif.org/api/v1, documentation https://api.gleif.org/docs). According to the LEI Data Terms of Use (https://www.gleif.org/en/meta/lei-data-terms-of-use), the data available through the GLEIF access service is provided **free of charge under the CC0 licence** (https://creativecommons.org/publicdomain/zero/1.0/): you may copy, modify and use it, including commercially, without asking permission. The terms ask users not to claim rights on the LEI data, not to circumvent technical restrictions, and not to suggest that GLEIF endorses their services. Every row carries the source in the `source` field.

This Actor is an independent tool. It is not affiliated with, or endorsed by, GLEIF or any LEI issuer.

# Actor input Schema

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

Legal Entity Identifiers (ISO 17442): 20 characters, 18 letters or digits then 2 check digits. Spaces and dashes are ignored and the check digits are verified before any request. Up to 100 LEIs are looked up per request, so long lists are fast. Example: \["969500KMUQ2B6CBAF162"].

## `registrationNumbers` (type: `array`):

Numbers of the entity in its national business register (for example French SIREN 552032534, UK company number 00102498, German HRB number), written as the register writes them. Exact match on the GLEIF field "registeredAs". Combine with "country" to avoid matches in other countries.

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

Names of legal entities. GLEIF finds records whose name contains these words (not a fuzzy match), best match first. Combine with "country" and "Matches per search" to control the results. Example: \["Danone"].

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

Optional ISO 3166-1 alpha-2 code of the legal address country, for example FR, DE, US. Applies to name and registration number searches. If no LEI, registration number or name is given, the Actor lists the legal entities of this country (up to "Maximum results").

## `nameMatch` (type: `string`):

"legal_name": only the official legal name. "all_names": the legal name plus other names (trading names, previous names, transliterations).

## `maxMatchesPerSearch` (type: `integer`):

For names and registration numbers: how many best matches to return per input (each match found is one billed result). LEI lookups always return one row.

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

For searches and country listings: "active" keeps entities that legally exist, "inactive" keeps dissolved or merged entities, "any" keeps both. LEI lookups are not filtered.

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

For searches and country listings: keep only these LEI statuses. ISSUED = valid and renewed; LAPSED = not renewed in time. Several values are combined with OR. Leave empty for all.

## `entityCategories` (type: `array`):

For searches and country listings: keep only these GLEIF categories. Several values are combined with OR. Leave empty for all legal entity categories. Sole proprietors are always excluded (privacy rule).

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

Add the direct and ultimate accounting consolidation parents (LEI, name, country) when the entity reports them. Costs up to 2 extra requests per entity: turn off for faster runs.

## `includeExceptionReasons` (type: `boolean`):

When an entity declares a reporting exception instead of a parent, fetch the reason (for example NATURAL_PERSONS, NON_CONSOLIDATING, NO_KNOWN_PERSON). One extra request per exception.

## `includeLegalFormNames` (type: `boolean`):

Translate the ISO 20275 legal form code into its local name (for example K65D = SA à conseil d'administration). One request per distinct code, cached for the run.

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

Stop after this many found entities (billed results). Rows not found, invalid or excluded do not count. Example: 1000.

## `maxRequestsPerMinute` (type: `integer`):

Politeness limit towards the GLEIF API, whose announced limit is 60 requests per minute per user. Lower it if you run several copies at the same time.

## Actor input object example

```json
{
  "leis": [
    "969500KMUQ2B6CBAF162",
    "213800ZGSSJXTYW1LN38"
  ],
  "registrationNumbers": [
    "552032534"
  ],
  "names": [
    "Danone"
  ],
  "nameMatch": "legal_name",
  "maxMatchesPerSearch": 3,
  "entityStatus": "any",
  "includeParents": true,
  "includeExceptionReasons": false,
  "includeLegalFormNames": true,
  "maxResults": 1000,
  "maxRequestsPerMinute": 50
}
```

# Actor output Schema

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

One JSON item per input or match: input, status (found, not_found, invalid_input, excluded_natural_person, error), lei, legalName, entityStatus, registrationStatus, nextRenewalDate, legalFormCode, legal and headquarters addresses, registeredAs, direct and ultimate parents, gleifUrl.

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

JSON record with counters: inputs, duplicates, found, not_found, invalid_input, excluded_natural_person, naturalPersonsSkippedInSearches, error, rows, stoppedByMaxResults, stoppedByBudget.

# 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": [
        "969500KMUQ2B6CBAF162",
        "213800ZGSSJXTYW1LN38"
    ],
    "registrationNumbers": [
        "552032534"
    ],
    "names": [
        "Danone"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("edgarfinance/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": [
        "969500KMUQ2B6CBAF162",
        "213800ZGSSJXTYW1LN38",
    ],
    "registrationNumbers": ["552032534"],
    "names": ["Danone"],
}

# Run the Actor and wait for it to finish
run = client.actor("edgarfinance/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": [
    "969500KMUQ2B6CBAF162",
    "213800ZGSSJXTYW1LN38"
  ],
  "registrationNumbers": [
    "552032534"
  ],
  "names": [
    "Danone"
  ]
}' |
apify call edgarfinance/gleif-lei-lookup --silent --output-dataset

```

## MCP server setup

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