# GLEIF LEI Lookup — Legal Entity Search (`phobia82/gleif-lei-lookup`) Actor

Look up Legal Entity Identifiers (LEIs) and legal names in the official GLEIF API. No API key. Returns status, address, and parent LEIs.

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

## Pricing

$1.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

## GLEIF LEI Lookup — Legal Entity Search

Look up official **Legal Entity Identifiers (LEIs)** and legal names in the [GLEIF](https://www.gleif.org/) public API. Resolve a 20-character LEI, or search by legal name, and get registration status, entity status, legal form, jurisdiction, legal address, renewal dates, and parent LEIs. No API key is required. Useful for KYC, entity resolution, and payment or counterpart-party workflows.

### Data source and freshness

Records come from the official GLEIF LEI API at `https://api.gleif.org/api/v1/lei-records`, queried at run time (filter by LEI or by `entity.legalName`). This is the public Legal Entity Identifier system operated by the Global Legal Entity Identifier Foundation. Results are as current as the GLEIF API at the time of the run. The Actor returns legal-entity registry fields, not personal contact data.

### Input

Provide at least one LEI in `leis` or a `legalName` search string (or both). LEIs are looked up first; a name search runs afterward if you still have room under `maxItems`.

| Field | Type | Required | Description | Example |
| --- | --- | --- | --- | --- |
| `leis` | array of strings | no (one of this or `legalName`) | 20-character Legal Entity Identifier codes. Case-insensitive. | `["5493001KJTIIGC8Y1R12"]` |
| `legalName` | string | no | Legal name to search (for example a bank or corporate name). Combined with `maxItems`. | `"Bloomberg Finance"` |
| `maxItems` | integer | no | Maximum LEI records to emit (default `25`, min `1`, max `200`). | `25` |

### Output

Each item is one LEI record, including legal name, other names, registration and entity status, legal form, jurisdiction, category, legal address, registration dates, managing LOU, BIC list when GLEIF provides it, and direct/ultimate parent LEIs.

Example item from a real local test run:

```json
{
  "lei": "5493001KJTIIGC8Y1R12",
  "legal_name": "Bloomberg Finance L.P.",
  "other_names": [],
  "registration_status": "ISSUED",
  "entity_status": "ACTIVE",
  "legal_form": "T91T",
  "jurisdiction": "US-DE",
  "category": "GENERAL",
  "legal_address_country": "US",
  "legal_address_city": "Wilmington",
  "legal_address_region": "US-DE",
  "legal_address_postal_code": "19808",
  "initial_registration_date": "2012-12-06T20:55:22Z",
  "last_update_date": "2026-01-05T14:20:40Z",
  "next_renewal_date": "2027-01-25T16:50:02Z",
  "managing_lou": "5493001KJTIIGC8Y1R12",
  "bic": [],
  "direct_parent_lei": null,
  "ultimate_parent_lei": null
}
```

### Pricing

This Actor is **priced per result** at **$1.00 per 1,000 results** (one `result` event for each LEI record written to the dataset). For example, 10 records cost **$0.01** in result charges ($0.001 per record).

Apify also bills **platform usage** (compute and storage) for the run according to your Apify plan. Result charges and platform usage appear separately on the run.

### Use cases

- Validate that an LEI is issued and the legal entity is active.
- Resolve a 20-character LEI to legal name, jurisdiction, and legal address.
- Search GLEIF by legal name when you do not yet have the LEI.
- Read next renewal dates and registration status for KYC refresh cycles.
- Follow direct or ultimate parent LEIs for group-structure context.
- Let an AI agent enrich a counterpart list from the official GLEIF API.

### How to use

You can run this Actor from the Apify Console, via the API, from Python or JavaScript, or from an AI agent that speaks MCP.

#### API

```bash
curl "https://api.apify.com/v2/acts/phobia82~gleif-lei-lookup/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{"leis":["5493001KJTIIGC8Y1R12"],"maxItems":5}'
```

Replace `YOUR_API_TOKEN` with an API token from [Apify Console → Settings → Integrations](https://console.apify.com/account/integrations). For longer jobs, start a run with [the Run Actor endpoint](https://docs.apify.com/api/v2/act-runs-post) and read the dataset when it finishes.

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("phobia82/gleif-lei-lookup").call(run_input={"leis": ["5493001KJTIIGC8Y1R12"], "maxItems": 5})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

#### JavaScript

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });
const run = await client.actor('phobia82/gleif-lei-lookup').call({ leis: ["5493001KJTIIGC8Y1R12"], maxItems: 5 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### AI agents and MCP

Connect the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp) to an MCP client such as Claude, Cursor, or another compatible agent, then call Actor `phobia82/gleif-lei-lookup` with the same JSON input as the API. The agent receives the dataset items as structured results.

### FAQ

**Is this legal to use?** Yes. The Actor calls the official public GLEIF LEI API. It does not log in and returns legal-entity registry fields, not personal contact data or a harvested contact list.

**Do I need an API key?** No.

**What if an LEI is not found?** That code is skipped and a warning is written to the log. Unlike a screening tool, this Actor does not emit a dedicated “no match” row for unknown LEIs.

**How broad is a name search?** It uses GLEIF’s `filter[entity.legalName]` on page 1, with a page size of at most 15 (or the remaining `maxItems`, whichever is smaller). It is not a full-text crawl of every legal entity worldwide.

**Are BIC codes always present?** Only when GLEIF includes them on the record. Many LEI records have an empty `bic` array.

**Is this a replacement for a commercial entity-data vendor?** No. It is a convenient wrapper around the public GLEIF API. Coverage and fields are those of GLEIF, not a paid golden-record product.

### Limits and known issues

- `maxItems` is capped at 200.
- Name search requests only the first page (up to 15 records for that page).
- Duplicate LEIs in the input are emitted once.
- Parent LEIs are included when GLEIF exposes them on the record; relationship detail endpoints are not followed further.
- HTTP errors for a single LEI are logged and that code is skipped; a name-search HTTP error will fail the run.

### Support

Questions, incorrect data, or a feature request? Open a ticket on this Actor's **Issues** tab in [Apify Console](https://console.apify.com) or on the Actor's Store page. Built by **Clearfield Data**.

# Actor input Schema

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

20-character Legal Entity Identifier codes. Example: 5493001KJTIIGC8Y1R12. Matching is case-insensitive.

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

Optional legal name to search (for example a bank or corporate name). Combined with maxItems.

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

Maximum LEI records to emit.

## Actor input object example

```json
{
  "leis": [
    "5493001KJTIIGC8Y1R12"
  ],
  "maxItems": 25
}
```

# Actor output Schema

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

Default dataset items produced by this Actor.

# 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"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("phobia82/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": ["5493001KJTIIGC8Y1R12"] }

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

```

## MCP server setup

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