# GLEIF LEI Company Registry Lookup (`plainkitbin/gleif-lei-company-registry`) Actor

Look up legal entities in the GLEIF Legal Entity Identifier (LEI) registry by LEI code, company name, country or registration status. Returns corporate registry facts as structured JSON rows. Not affiliated with GLEIF.

- **URL**: https://apify.com/plainkitbin/gleif-lei-company-registry.md
- **Developed by:** [PlainKit bin](https://apify.com/plainkitbin) (community)
- **Categories:** Business, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.50 / 1,000 gleif 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.
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 Company Registry Lookup

### Introduction

Compliance and KYC teams, fintech and banking developers, procurement and vendor-risk analysts, data engineers and market researchers who need Legal Entity Identifier (LEI) data as clean rows can run this Actor instead of writing their own client. It reads the public Global LEI Index API of the Global Legal Entity Identifier Foundation (GLEIF), which needs no API key, and returns one JSON row per legal entity: LEI, legal name, former names, legal and registration status, registration, update and renewal dates, managing Local Operating Unit (LOU), jurisdiction, legal form code, country, city, postal code of the legal address, BIC codes and a link to the source record.

Typical uses:

- Check whether the LEI of a counterparty is still `ISSUED` or has `LAPSED` before you sign or trade.
- Find the LEI of a company by its legal name, optionally narrowed to one country.
- Enrich your own customer, vendor or counterparty list with LEI, jurisdiction, legal form and BIC codes.
- List all lapsed or retired LEI records of one country to chase renewals.

One run returns up to the row limit you set, at most 500 rows. The Actor returns corporate registry fields only. It returns no street line, no phone number, no e-mail address and no personal contact data.

This Actor is not affiliated with GLEIF. The LEI data is published by GLEIF under the CC0 1.0 Universal licence (public domain dedication), see the [GLEIF LEI data terms of use](https://www.gleif.org/en/meta/lei-data-terms-of-use). GLEIF provides the data "as is" and "as available"; this Actor only passes on what the API returns on the day of the run. API documentation: https://api.gleif.org/docs

### Input and output examples

#### Example input

```json
{
  "lei_codes": ["HWUPKR0MPOU8FGXBT394"],
  "max_items": 5
}
```

#### Example output

```json
{
  "lei": "HWUPKR0MPOU8FGXBT394",
  "legal_name": "Apple Inc.",
  "other_names": ["Apple Computer, Inc."],
  "legal_status": "ACTIVE",
  "registration_status": "ISSUED",
  "initial_registration_date": "2012-06-06T15:53:00Z",
  "last_update_date": "2026-03-03T16:34:33Z",
  "next_renewal_date": "2027-03-08T17:27:20Z",
  "managing_lou": "5493001KJTIIGC8Y1R12",
  "jurisdiction": "US-CA",
  "legal_form_id": "H1UM",
  "country": "US",
  "city": "Glendale",
  "postal_code": "91203",
  "bic_codes": ["APLEUS66XXX"],
  "source_url": "https://api.gleif.org/api/v1/lei-records/HWUPKR0MPOU8FGXBT394"
}
```

Dates are ISO 8601 timestamps as GLEIF publishes them. A field the API does not return is an empty string, or an empty list for `other_names` and `bic_codes`. `country`, `city` and `postal_code` belong to the legal address of the entity.

### Pricing

The price is **$0.005** per delivered record on the `FREE` tier of Apify Pay-Per-Event (event name: `lei-record`).

- FREE: $0.005 per row
- BRONZE: $0.0045 per row
- SILVER: $0.004 per row
- GOLD: $0.0035 per row
- PLATINUM: $0.0035 per row
- DIAMOND: $0.003 per row

#### Charge contract

Each row is pushed to the dataset first and charged right after the push.

- A refused charge stops the work at once; the row that was pushed stays delivered and uncharged.
- A reached spending limit stops the work after the row that was charged.
- Failed requests push nothing and charge nothing.
- If the platform restarts a run, rows that are already in the dataset are recognised by their LEI and are never pushed or charged twice. If the dataset cannot be read, the run stops with `DATASET_READ_FAILED` before anything is pushed or charged.

### Tutorial

1. Open the Actor and leave the prefilled input, or enter one or more LEI codes, a company name, a two-letter country code or a registration status.
2. Filters are combined: `company_name` with `country` and `registration_status` narrows the result.
3. Set `max_items` to the number of rows you want. Start with 5 to see the shape of the data.
4. Start the run and open the dataset. Export it as JSON, CSV or Excel, or read it through the Apify API.

The Actor asks the API for pages of up to 200 records, at most one request every half second, and stops at the row limit, at the last page, or at a page cap that follows from the row limit. It checks `robots.txt` before the first request and follows no redirects. Temporary API errors and rate-limit answers are retried a few times with a growing pause, then the run stops with a clear error.

### Actor recommendations

Use the LEI as the key when you join these rows with your own tables or with other GLEIF data. Run the Actor on a schedule to watch `registration_status` and `next_renewal_date` of your counterparties. For other public registers and datasets, see the other data Actors of the same publisher.

### FAQ and support

**Which entities are returned?** Legal entities in the Global LEI Index. Without a status filter all registration statuses are returned: `ISSUED`, `LAPSED`, `MERGED`, `RETIRED`, `DUPLICATE`, `PENDING_TRANSFER` and `PENDING_ARCHIVAL`.

**How does the company name search work?** The name is passed to the GLEIF `entity.legalName` filter, which also returns close matches. Check `legal_name` in each row.

**What if an LEI does not exist?** The API answers with no data, the run delivers no rows and charges nothing.

**Why are there no street lines, phone numbers or e-mail addresses?** The Actor leaves them out on purpose and returns corporate registry facts only.

**How current is the data?** The API answers with the state of the GLEIF golden copy at the time of the request; `last_update_date` shows the date of the last record update.

**Data source and licence.** Data from the Global LEI Index of GLEIF, CC0 1.0 Universal. Not affiliated with, endorsed by or supported by GLEIF or any LOU.

**Support.** Open an issue on the Actor page with your input and the run link.

### Configuration

| Field | Type | Description | Default |
| --- | --- | --- | --- |
| `lei_codes` | Array of strings | LEI codes of 20 letters or digits, up to 100. | none |
| `company_name` | String | Legal name searched in the registry. | `""` |
| `country` | String | Two-letter ISO country code of the legal address, for example `US`, `GB`, `DE`, `JP`. | `""` |
| `registration_status` | String | One of `ISSUED`, `LAPSED`, `MERGED`, `RETIRED`, `DUPLICATE`, `PENDING_TRANSFER`, `PENDING_ARCHIVAL`. | all |
| `max_items` | Integer (1-500) | Maximum number of rows. | `25` |

Give at least one of `lei_codes`, `company_name`, `country` or `registration_status`.

### Use as an MCP Tool (AI Agents)

AI agents and MCP clients (such as Claude Desktop or Cursor) can invoke `plainkitbin/gleif-lei-company-registry` directly via `@apify/actors-mcp-server` over `stdio`:

```bash
APIFY_TOKEN=<YOUR_APIFY_TOKEN> npx -y @apify/actors-mcp-server --actors plainkitbin/gleif-lei-company-registry
```

Hosted (Streamable HTTP): connect to `https://mcp.apify.com?tools=plainkitbin/gleif-lei-company-registry` using OAuth or the header `Authorization: Bearer <YOUR_APIFY_TOKEN>`.

Example MCP client configuration (`mcpServers`):

```json
{
  "mcpServers": {
    "gleif-lei-company-registry": {
      "command": "npx",
      "args": [
        "-y",
        "@apify/actors-mcp-server",
        "--actors",
        "plainkitbin/gleif-lei-company-registry"
      ],
      "env": {
        "APIFY_TOKEN": "<YOUR_APIFY_TOKEN>"
      }
    }
  }
}
```

Example JSON tool call matching `.actor/input_schema.json`:

```json
{
  "lei_codes": ["HWUPKR0MPOU8FGXBT394"],
  "max_items": 5
}
```

Catalog and registry: browse all Actors at [PlainKitBin](https://plainkitbin.com/) or discover the multi-Actor server `com.plainkitbin/public-data-actors` in the MCP Registry.

# Actor input Schema

## `lei_codes` (type: `array`):

Legal Entity Identifier codes of 20 letters or digits, for example HWUPKR0MPOU8FGXBT394. Up to 100 codes. Can be combined with the other filters.

## `company_name` (type: `string`):

Legal name searched in the GLEIF registry, for example Apple Inc. Leave empty to skip.

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

Two-letter ISO country code of the legal address, for example US, GB, DE or JP. Leave empty to skip.

## `registration_status` (type: `string`):

Only return records with this LEI registration status. Leave empty for all statuses.

## `max_items` (type: `integer`):

Maximum number of LEI record rows to output (default 25, at most 500).

## Actor input object example

```json
{
  "lei_codes": [
    "HWUPKR0MPOU8FGXBT394"
  ],
  "company_name": "",
  "country": "",
  "registration_status": "ISSUED",
  "max_items": 5
}
```

# Actor output Schema

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

Dataset items produced by this 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 = {
    "lei_codes": [
        "HWUPKR0MPOU8FGXBT394"
    ],
    "company_name": "",
    "country": "",
    "registration_status": "ISSUED",
    "max_items": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("plainkitbin/gleif-lei-company-registry").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 = {
    "lei_codes": ["HWUPKR0MPOU8FGXBT394"],
    "company_name": "",
    "country": "",
    "registration_status": "ISSUED",
    "max_items": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("plainkitbin/gleif-lei-company-registry").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 '{
  "lei_codes": [
    "HWUPKR0MPOU8FGXBT394"
  ],
  "company_name": "",
  "country": "",
  "registration_status": "ISSUED",
  "max_items": 5
}' |
apify call plainkitbin/gleif-lei-company-registry --silent --output-dataset

```

## MCP server setup

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

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/eTcFoE8OKy1yL2gpp/builds/XGoohPEjdLQtrmPyN/openapi.json
