# GLEIF LEI Lookup: Legal Entity Identifier Records API (`jayraj0975/gleif-lei-lookup`) Actor

Look up GLEIF legal entity records by LEI or name: legal name, status, jurisdiction, legal address. Official GLEIF public API. Pay per result.

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

## Pricing

$3.00 / 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 Company Lookup (Legal Entity Identifier)

Look up or search public legal entities in the GLEIF LEI (Global Legal Entity Identifier Foundation) database, using only the public GLEIF API v1. No API key, no login, no captchas.

### What it does

- Accepts one or more **legal names** and/or **LEI codes**.
- For each LEI, performs a direct lookup (`/lei-records/{lei}`).
- For each legal name, performs a paginated search (`?filter[entity.legalName]=...`).
- Returns one dataset item per LEI with normalized fields, ISO-8601 dates, and dedupe by LEI.
- Politely rate-limited to **1 request per second**.

### Input

| Field | Type | Description |
|-------|------|-------------|
| `legalNames` | array of strings | Legal names to search (e.g. `["Apple", "Siemens AG"]`). |
| `leis` | array of strings | Optional direct lookups by 20-char LEI code. Resolved before name searches. |
| `maxItems` | integer | Max total items to return (default `100`, max `1000`). |

Provide at least one of `legalNames` or `leis`.

### Output sample

Example record (illustrative; values vary):

```json
// Illustrative output — actual values depend on the live GLEIF record.
{
  "lei": "335800LUOBQQY1UPKZ54",
  "legalName": "APPLE IMPRESSION",
  "status": "ACTIVE",
  "jurisdiction": "IN",
  "legalAddressCity": "Pulwama",
  "legalAddressCountry": "IN",
  "headquartersAddressCity": "PULWAMA",
  "headquartersAddressCountry": "IN",
  "registrationAuthority": "RA000754",
  "registeredAs": "01ALUPB8144K1ZZ",
  "entityCategory": "SOLE_PROPRIETOR",
  "initialRegistrationDate": "2026-09-29T11:07:19Z",
  "lastUpdateDate": "2026-09-29T11:07:19Z",
  "nextRenewalDate": "2027-09-28T18:30:00Z"
}
```

### Pricing

**$3 per 1,000 results**, billed per dataset item pushed (the default Apify dataset push event — no manual charging in the code).

**Every row pushed to the dataset is a billed result.** This includes rows for LEIs that were not found, name searches that returned no match, and invalid-input rows that could not be resolved. If you only want successfully matched records, filter the dataset after the run; billing is based on the rows pushed, not on matches.

### Limits

- Only 20-character LEIs and legal-name searches are supported.
- Address fields are reduced to **city + country only** (full street addresses are not emitted).
- Maximum of **1000** items per run.
- Requests are throttled to 1 per second to be polite to the public GLEIF API.
- When the GLEIF API layout changes, the actor **fails loudly** with a `LayoutChangedError` instead of writing empty or malformed items.
- GLEIF publishes LEI data under its public data licence; confirm the applicable licence terms before redistributing this data commercially.

### Disclaimer

This is an **unofficial** actor. It is **not affiliated with or endorsed by GLEIF**. All data is fetched from the **public** GLEIF API (`https://api.gleif.org/api/v1/lei-records`), and the actor relies on **public data only**. No personal data is scraped, no login is required, and no captchas are solved. Data is provided **as-is, with no guarantee of accuracy, completeness, or availability**; please refer to GLEIF for authoritative records.

Information returned is not a substitute for GLEIF's authoritative records and must not be relied on for KYC/AML, regulatory filing, or legal-identity decisions without independent verification against GLEIF.

# Actor input Schema

## `legalNames` (type: `array`):

One or more legal names to search in the GLEIF LEI database (e.g. 'Apple', 'Siemens AG', 'Microsoft'). Up to 100 names.

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

Optional list of 20-character Legal Entity Identifier codes to look up directly. Resolved before name searches.

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

Maximum number of LEI records to return in total across all names/LEIs.

## Actor input object example

```json
{
  "leis": [
    "HWUPKR0MPOU8FGXBT394"
  ],
  "maxItems": 10
}
```

# 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": [
        "HWUPKR0MPOU8FGXBT394"
    ],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("jayraj0975/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": ["HWUPKR0MPOU8FGXBT394"],
    "maxItems": 10,
}

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

```

## MCP server setup

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