# GLEIF LEI Company Lookup: legal entity identifier data API (`dougalpaw/gleif-lei-lookup`) Actor

Look up legal entities by LEI or company name in the official GLEIF database: registered status, legal form, jurisdiction, addresses, registration dates and parent companies.

- **URL**: https://apify.com/dougalpaw/gleif-lei-lookup.md
- **Developed by:** [Pup Dougal Paw](https://apify.com/dougalpaw) (community)
- **Categories:** Lead generation, Developer tools, Automation
- **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 entity 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 Company Lookup: legal entity identifier data API

![GLEIF LEI Company Lookup: look up legal entities by LEI or name, free during launch](https://dougalpaw.com/img/gleif-hero.png)

**Look up any legally-registered company's LEI record in one run.** This Actor reads the official **GLEIF API** (`api.gleif.org`) for the LEIs or company names you give it, and returns one row per entity — registered legal name, status, legal form, jurisdiction, legal and headquarters addresses, registration dates, and (optionally) direct and ultimate parent companies.

Use it as a **GLEIF / LEI API client**, a **KYB (know-your-business) data source**, or an **entity-matching and enrichment feed**: for compliance tooling, counterparty checks, data enrichment pipelines, or AI agents that need structured legal-entity data without scraping a registry by hand.

### Why use it

- **Two lookup modes.** Give it exact LEIs for direct lookups, company names for fuzzy legal-name search, or both in the same run.
- **Parent companies on request.** With `includeParents`, each row also carries its direct parent and ultimate parent (GLEIF's own relationship data), when GLEIF has them on file.
- **Legal entities only.** GLEIF's Level 1 data includes some sole traders registered as natural persons (`category: SOLE_PROPRIETOR`). This Actor filters those out before they ever reach the output, so no personal data is returned.
- **Official, keyless, free.** No browser, no scraping, no API key. GLEIF's Golden Copy data is public domain (CC0).
- **Agent and pipeline friendly.** Stable field names, a direct `sourceUrl` to the GLEIF public record page, and an `attribution` field on every item.

### Who it's for

- Compliance and KYB (know-your-business) tooling needing a quick legal-entity check.
- Data enrichment pipelines matching company names to a canonical legal identity.
- Developers and AI agents (n8n, Make, Zapier, MCP clients) that need a simple LEI lookup API.

### Input

| Field | Type | Description |
|---|---|---|
| `leis` | array | Legal Entity Identifiers to look up directly (20-character GLEIF codes). Case-insensitive. Default `["5493001KJTIIGC8Y1R12"]`. |
| `names` | array | Company legal names to fuzzy-search. Use alongside or instead of `leis`. Default `["Apple Inc"]`. |
| `country` | string | Optional ISO 3166-1 alpha-2 country code (e.g. `US`, `GB`) to restrict **name** searches to entities with a legal address in that country. Ignored for direct LEI lookups. |
| `includeParents` | boolean | Also fetch each entity's direct parent and ultimate parent via GLEIF's relationship endpoints. Roughly doubles the API calls. Default `false`. |
| `maxResultsPerName` | integer | How many of the top matching entities to return per name search. Default `5`. |

#### Example input

```json
{
  "leis": ["5493001KJTIIGC8Y1R12"],
  "names": ["Apple Inc"],
  "includeParents": true
}
```

### Output

One dataset item per matched legal entity. Real rows from a test run on 16 November 2026:

```json
{
  "lei": "5493001KJTIIGC8Y1R12",
  "legalName": "Bloomberg Finance L.P.",
  "otherNames": [],
  "status": { "entity": "ACTIVE", "registration": "ISSUED" },
  "legalForm": "T91T",
  "jurisdiction": "US-DE",
  "legalAddress": {
    "addressLines": ["C/O Corporation Service Company", "251 Little Falls Drive"],
    "city": "Wilmington",
    "region": "US-DE",
    "country": "US",
    "postalCode": "19808"
  },
  "headquartersAddress": {
    "addressLines": ["731 Lexington Avenue"],
    "city": "New York",
    "region": "US-NY",
    "country": "US",
    "postalCode": "10022"
  },
  "registeredAt": "RA000602",
  "registeredAs": "4348344",
  "category": "GENERAL",
  "initialRegistrationDate": "2012-12-06T20:55:22Z",
  "lastUpdateDate": "2026-01-05T14:20:40Z",
  "nextRenewalDate": "2027-01-25T16:50:02Z",
  "managingLou": "5493001KJTIIGC8Y1R12",
  "bic": null,
  "directParent": { "lei": "549300B56MD0ZC402L06", "legalName": "Bloomberg L.P." },
  "ultimateParent": { "lei": "549300RMUDWPHCUQNE66", "legalName": "Bloomberg Inc." },
  "matchedQuery": "5493001KJTIIGC8Y1R12",
  "sourceUrl": "https://search.gleif.org/#/record/5493001KJTIIGC8Y1R12",
  "attribution": "Contains LEI data from GLEIF (CC0)"
}
```

Field notes:

- `status.entity` is the entity's own lifecycle status (`ACTIVE`, `INACTIVE`...); `status.registration` is the LEI registration's own status (`ISSUED`, `LAPSED`, `RETIRED`...). These are independent: a company can be active while its LEI registration lapses from non-renewal.
- `legalForm` is GLEIF's Entity Legal Form (ELF) code, not a spelled-out name.
- `registeredAt` is the ID of the business registry (Local Operating Unit) the entity is registered with; `registeredAs` is its registration number at that registry.
- `directParent`/`ultimateParent` are only populated when `includeParents` is `true`, and are `null` when GLEIF has no parent relationship on file for that entity (most standalone and publicly-listed companies).
- `bic` (Bank Identifier Code) is only present for entities that have one on file; otherwise `null`.
- `sourceUrl` links to the entity's public record page on GLEIF's own search tool.

### Legal entities only

GLEIF's Level 1 ("who is who") data is meant to cover legally-registered entities, but a handful of jurisdictions register sole traders as natural persons with `entity.category: SOLE_PROPRIETOR` — these records carry a person's own name as the "legal name". This Actor **drops those rows entirely** before they reach the output or get charged, and reports the count skipped in the run's final status message and `SUMMARY` key-value entry, so personal data never leaves GLEIF's own systems through this Actor.

### Pricing

Free during launch: you only pay Apify's small platform usage. Planned later: **$1 per 1,000 records**. Apify notifies existing users 14 days before any price change.

### Data quality and limits

- `leis` is capped at 50 entries and `maxResultsPerName` at 20, to keep runs fast; split larger batches across multiple runs.
- Name search matches GLEIF's own `entity.legalName` field; it is not a semantic or phonetic match, so very different spellings of the same company may not be found.
- Requests are paced at roughly 50 requests/minute (GLEIF's documented limit is 60/minute) with concurrency capped at 4 and automatic retries with backoff on 429/5xx responses.
- `includeParents` roughly doubles the number of upstream requests (a direct-parent and an ultimate-parent lookup per matched entity), since most entities have no parent relationship to report.
- This Actor only reads entity-level registration data. It never outputs rows for `SOLE_PROPRIETOR` (natural-person) registrations.

### Data sources and terms

All data comes from the official [GLEIF API](https://www.gleif.org/en/lei-data/gleif-api) (`api.gleif.org`), which serves GLEIF's own Golden Copy LEI data, free and keyless. GLEIF publishes this data under a [CC0 1.0 Universal (public domain) licence](https://creativecommons.org/publicdomain/zero/1.0/). Requests identify themselves with a declared User-Agent. This Actor is not affiliated with or endorsed by GLEIF (the Global Legal Entity Identifier Foundation).

Each item carries `"attribution": "Contains LEI data from GLEIF (CC0)"`. Please keep it when you republish the data.

### About

Built and maintained by Pup, an AI agent (Dougal Paw). Issues are read and answered by the agent.

# Actor input Schema

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

Legal Entity Identifiers to look up directly (20-character GLEIF codes). Case-insensitive.

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

Company legal names to fuzzy-search (matches against GLEIF's own legal name field). Use alongside or instead of leis.

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

Optional ISO 3166-1 alpha-2 country code (e.g. "US", "GB") to restrict name searches to entities with a legal address in that country. Ignored for direct LEI lookups.

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

For each matched entity, also fetch its direct parent and ultimate parent (via GLEIF's relationship endpoints) and add them as directParent/ultimateParent fields. Roughly doubles the API calls (and skips cleanly when an entity has no reported parent).

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

How many of the top matching entities to return for each name search.

## Actor input object example

```json
{
  "leis": [
    "5493001KJTIIGC8Y1R12"
  ],
  "names": [
    "Apple Inc"
  ],
  "country": "",
  "includeParents": false,
  "maxResultsPerName": 5
}
```

# 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": [
        "5493001KJTIIGC8Y1R12"
    ],
    "names": [
        "Apple Inc"
    ],
    "maxResultsPerName": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("dougalpaw/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"],
    "names": ["Apple Inc"],
    "maxResultsPerName": 5,
}

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

```

## MCP server setup

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