# Global Company Registry, KYB Ownership & LEI Lookup (GLEIF) (`grimbles/global-corporate-lei-ownership-leads`) Actor

Extract global corporate entities and KYB ownership trees from the official GLEIF Legal Entity Identifier (LEI) REST API v1. Filter by country, legal name, or status to get 20-char LEIs, jurisdictions, legal/HQ addresses, BIC codes, registration numbers, and direct/ultimate parent entities.

- **URL**: https://apify.com/grimbles/global-corporate-lei-ownership-leads.md
- **Developed by:** [Grimbles Data Labs](https://apify.com/grimbles) (community)
- **Categories:** Lead generation, Automation, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.35 / 1,000 global corporate lei entity extracteds

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/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

## Global Corporate LEI Registry & Ownership Scraper (GLEIF)

**Extract verified global corporate legal entities, 20-character LEI codes, national business registration numbers, BIC codes, legal/headquarters addresses, and Level 2 direct/ultimate parent ownership hierarchies directly from the official GLEIF Legal Entity Identifier (LEI) REST API v1.**

Built for **FinTech KYB/KYC compliance automation, AML/sanctions screening pipelines, enterprise B2B account hierarchy mapping, M\&A analysts, and AI research agents (MCP / n8n)** — backed by the G20 / Financial Stability Board statutory Global LEI Index (`CC0` public data, zero API key required).

***

### Key Features

- **100% Official Statutory Global Registry**: Queries `https://api.gleif.org/api/v1/lei-records` with `Accept: application/vnd.api+json`.
- **Level 2 Corporate Ownership Trees**: Automatically resolves `direct-parent` and `ultimate-parent` consolidating parent LEIs and legal names when reported.
- **Cross-Border Registry Linking**: Extracts `registrationAuthorityId`, `registrationNumber` (e.g., SEC CIK, UK Companies House, SIREN, Handelsregister), and `bicCodes`.
- **KYB Completeness Score (`0–100`)**: Scores entities based on `ISSUED` / `ACTIVE` status, national registry IDs, BICs, and parent hierarchy linkage.

***

### Sample Output JSON

```json
{
  "lei": "5493001KJTIIGC8Y1R12",
  "legalName": "ACME GLOBAL HOLDINGS INC.",
  "country": "US",
  "city": "WILMINGTON",
  "region": "US-DE",
  "postalCode": "19801",
  "legalAddressLine": "1209 ORANGE STREET",
  "hqCountry": "US",
  "hqCity": "NEW YORK",
  "entityStatus": "ACTIVE",
  "registrationStatus": "ISSUED",
  "entityCategory": "GENERAL",
  "legalFormCode": "XTIQ",
  "registrationAuthorityId": "RA000602",
  "registrationNumber": "4829103",
  "bicCodes": ["ACMEUS33XXX"],
  "initialRegistrationDate": "2014-05-12T00:00:00Z",
  "nextRenewalDate": "2027-05-12T00:00:00Z",
  "directParentLei": "549300PARENT00000001",
  "directParentName": "ACME PARENT CORP",
  "ultimateParentLei": "549300ULTIMATE000001",
  "ultimateParentName": "ACME GROUP WORLDWIDE LTD",
  "kybCompletenessScore": 100,
  "gleifUrl": "https://search.gleif.org/#/record/5493001KJTIIGC8Y1R12"
}
```

***

### AI Agent (MCP) & n8n Automation Integration

#### Apify MCP Server (Claude Desktop / Cursor / Windsurf)

```json
{
  "mcpServers": {
    "global-corporate-lei-ownership-leads": {
      "url": "https://mcp.apify.com/?tools=grimbles/global-corporate-lei-ownership-leads",
      "headers": {
        "Authorization": "Bearer <YOUR_APIFY_API_TOKEN>"
      }
    }
  }
}
```

#### n8n / Make HTTP Run-Sync Integration

```json
{
  "method": "POST",
  "url": "https://api.apify.com/v2/acts/grimbles~global-corporate-lei-ownership-leads/run-sync-get-dataset-items",
  "headers": {
    "Authorization": "Bearer <YOUR_APIFY_API_TOKEN>",
    "Content-Type": "application/json"
  },
  "body": {
    "query": "Stripe",
    "countries": ["US", "IE", "GB"],
    "registrationStatus": "ISSUED",
    "enrichParentOwnership": true,
    "maxResults": 25
  }
}
```

# Actor input Schema

## `query` (type: `string`):

Optional legal name or fulltext keyword filter (e.g. 'Stripe', 'Siemens', 'OpenAI'). Leave empty to retrieve latest entities in target countries.

## `countries` (type: `array`):

Filter by 2-letter ISO 3166-1 country codes of entity legal address (e.g. \['US', 'GB']). Defaults to \['US'].

## `registrationStatus` (type: `string`):

Filter by GLEIF registration status (ISSUED, LAPSED, RETIRED, or ALL).

## `enrichParentOwnership` (type: `boolean`):

Fetch direct consolidating parent and ultimate parent corporate entities via GLEIF Level 2 relationship endpoints.

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

Maximum number of global corporate LEI records to extract.

## Actor input object example

```json
{
  "query": "",
  "countries": [
    "US"
  ],
  "registrationStatus": "ISSUED",
  "enrichParentOwnership": true,
  "maxResults": 25
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing extracted GLEIF corporate LEI records and parent ownership relationships.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("grimbles/global-corporate-lei-ownership-leads").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("grimbles/global-corporate-lei-ownership-leads").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 '{}' |
apify call grimbles/global-corporate-lei-ownership-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,grimbles/global-corporate-lei-ownership-leads"
        }
    }
}
```

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/gWD8Oy71BrzUYYPgB/builds/V2cDNE9mjdr48sv8o/openapi.json
