# GLEIF LEI Company Scraper: Legal Entity Records (`datadesk-io/gleif-lei-company-scraper`) Actor

Scrape company records from the official GLEIF LEI API: LEI, legal name, status, legal form, register number, legal & HQ address, LEI status/renewal, BIC and parent companies. Search by name, country or LEI. Alerts. $1 per 1,000 records.

- **URL**: https://apify.com/datadesk-io/gleif-lei-company-scraper.md
- **Developed by:** [DataDesk](https://apify.com/datadesk-io) (community)
- **Categories:** Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 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/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 Scraper

Scrape **legal entity records** from the **official GLEIF API** (Global Legal Entity Identifier Foundation): **2.8M+ companies, funds and banks in 200+ countries**. Each record has **LEI, legal name, other names, status, legal form, jurisdiction, local register number, legal and HQ address, LEI registration/renewal dates, corroboration level, BIC** and optionally **direct and ultimate parent companies**. Search by **company name, country, register number or LEI list**. No login, no key. **$1 per 1,000 records.**

### Try it now (one click)

1. Click **Start**. The prefilled input is a small test: in our latest check (Nov 13, 2026) it returned **20 records in about 2 seconds**.
2. Change the input to what you need (search terms, filters, max results).
3. Download the results as CSV, Excel or JSON, or get them via API, webhooks, Make or Zapier.

**Price example:** 100 records = **$0.105**, 1,000 records = **$1.005** ($1.00 per 1,000 records + $0.005 per run). Silver and Gold plan users pay 10% and 20% less per record. Apify's free plan includes $5 of usage every month, enough for about 4,995 records. Runs that find nothing are not charged.

#### Sample of real results

*Real rows from a local test run on Nov 13, 2026 (some columns). Each record also includes a link to the source and the other fields listed below.*

| Legal name | LEI | Status | Jurisdiction | Registered as |
|---|---|---|---|---|
| Siemens Advanta Solutions GmbH | 529900VGZ27M5ZHAEZ97 | ACTIVE | DE | HRB 209510 |
| Siemens Beteiligungen Europa GmbH | 5299004HJB6D966Q0P96 | ACTIVE | DE | HRB 266700 |
| SHC Trust e.V. | 529900F7Z5XQOD26N948 | ACTIVE | DE | VR 207480 |

### What you get

| Field group | Fields |
|---|---|
| Identity | lei, legalName, otherNames, status, category, legalFormId, jurisdiction, registeredAs, registrationAuthorityId, bic |
| Addresses | legalAddress, legalCity, legalCountry, legalPostalCode, hqAddress, hqCity, hqCountry |
| LEI lifecycle | entityCreatedAt, leiRegisteredAt, leiUpdatedAt, leiStatus, nextRenewalAt, corroborationLevel, successorLei |
| Ownership (optional) | directParentLei, directParentName, ultimateParentLei, ultimateParentName |

### Sources and coverage

| Source | Coverage | Data |
|---|---|---|
| **GLEIF API** (`api.gleif.org/api/v1`) | Global LEI golden copy, updated several times a day, 200+ jurisdictions | Entity identity, addresses, register IDs, parents |

### How to use it

1. Click **Try for free** (or **Start**): the prefilled input runs a quick test.
2. Adjust the filters (see examples below).
3. Click **Start** and wait a few seconds.
4. Open the **Output** tab and export as **JSON, CSV, Excel, XML or HTML**, or read the dataset via API.

### Input examples

**Search a company in Germany:**

```json
{"companyNames": ["Siemens"], "countries": ["DE"], "maxRecords": 20}
```

**Look up LEIs with parents:**

```json
{"leis": ["529900VGZ27M5ZHAEZ97"], "includeParents": true}
```

**All active LEI holders in Ecuador:**

```json
{"countries": ["EC"], "status": "ACTIVE", "maxRecords": 2000}
```

**Banks named Santander worldwide:**

```json
{"companyNames": ["Banco Santander"], "maxRecords": 200}
```

#### Input fields

| Field | Type | Description |
|---|---|---|
| `companyNames` | array | Full-text search over legal and other names, e.g. Siemens, Banco Santander. |
| `leis` | array | 20-character LEI codes to look up directly. |
| `countries` | array | ISO 3166 alpha-2 codes, e.g. DE, US, GB, EC, BR. Alone = all entities in those countries. |
| `status` | string | Filter by entity status. |
| `registeredAs` | string | Local business register number, e.g. HRB 209510. |
| `includeParents` | boolean | Also fetch direct and ultimate parent LEI + name (2 extra requests per record, slower). |
| `maxRecords` | integer | Stop after this many LEI records. |
| `onlyNewRecords` | boolean | Return only records not seen in previous runs with the same alerts key. Schedule daily for alerts. |
| `alertsKey` | string | Name for this alert memory (use a different key per saved search). |

### Output example

*Example values from a local test run.*

```json
{
  "source": "gleif",
  "lei": "529900LJGGS18OSC2T46",
  "legalName": "Siemens Healthineers Holding II GmbH",
  "status": "INACTIVE",
  "category": "GENERAL",
  "legalFormId": "2HBR",
  "jurisdiction": "DE",
  "registeredAs": "HRB 268055",
  "legalAddress": "Werner-von Siemens-Str. 1, 80333, München, DE-BY, DE",
  "legalCountry": "DE",
  "entityCreatedAt": "2021-07-26T22:00:00Z",
  "leiStatus": "RETIRED",
  "nextRenewalAt": "2023-09-08T15:11:46Z",
  "url": "https://search.gleif.org/#/record/529900LJGGS18OSC2T46"
}
```

#### Output fields

| Field | Description |
|---|---|
| `lei` | 20-character Legal Entity Identifier |
| `legalName` | Registered legal name |
| `registeredAs` | Local business register number |
| `legalFormId` | ISO 20275 ELF code |
| `leiStatus` | ISSUED, LAPSED, RETIRED... |
| `directParentName` | Direct parent (when includeParents) |
| `url` | GLEIF search page |

### Pricing

Pay-per-event: **$0.005** once per run that saves results + **$0.001 per record** ($1 / 1,000). Runs that save nothing are not charged.

| Records saved | Approx. cost |
|---|---|
| 20 | $0.025 |
| 100 | $0.105 |
| 1,000 | $1.005 |
| 10,000 | $10.005 |

### Use cases

- KYC / AML and supplier onboarding checks
- Corporate group mapping (parents and subsidiaries)
- B2B lead lists of regulated companies by country
- Data enrichment with register numbers and legal addresses

### Integrations / API

Works with the Apify API, Schedules, webhooks, Make, Zapier, n8n and MCP. Example:

```bash
curl "https://api.apify.com/v2/acts/datadesk-io~gleif-lei-company-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
  -d '{"companyNames": ["Siemens"], "countries": ["DE"], "maxRecords": 20}'
```

Python:

```python
from apify_client import ApifyClient
client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("datadesk-io/gleif-lei-company-scraper").call(run_input={"companyNames": ["Siemens"], "countries": ["DE"], "maxRecords": 20})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

### MCP

Use this Actor from an MCP client (Cursor, Claude Desktop, etc.) through the Apify MCP server (`datadesk-io/gleif-lei-company-scraper`).

### Alerts mode

Turn on the **Only new** option and schedule the Actor daily: each run returns only records not seen in earlier runs with the same alerts key (nothing is charged when there is nothing new).

### FAQ

**Is this official data?** Yes. GLEIF is the G20-backed global LEI system; data is public under CC0.

**How fast is it?** GLEIF asks for fair use (about 60 requests/min). The Actor pages 200 records per request; parents add 2 requests per record.

**Can I search by register number?** Yes, use `registeredAs` (exact).

### Limitations

- Only entities that hold an LEI (mostly companies dealing with financial markets, banks, funds and larger firms).
- Name search is full-text; add a country to narrow results.
- No phones/emails (not in the LEI system).

### Start now

Click **Start** to run the prefilled example, then adjust the input. Missing a field, filter or source? Open an issue on the **Issues** tab and tell us what you need.

### Support

Questions, bugs or a missing field? Email **datadesk.io@proton.me** or open an issue on the Actor page.

***

**ES:** Extrae registros de empresas de la API oficial **GLEIF (LEI)**: nombre legal, estado, número de registro, direcciones y matriz. **$1 / 1.000.**
**PT:** Extrai registros de empresas da API oficial **GLEIF (LEI)**: razão social, status, registro, endereços e controladora. **$1 / 1.000.**

# Actor input Schema

## `companyNames` (type: `array`):

Full-text search over legal and other names, e.g. Siemens, Banco Santander.

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

20-character LEI codes to look up directly.

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

ISO 3166 alpha-2 codes, e.g. DE, US, GB, EC, BR. Alone = all entities in those countries.

## `status` (type: `string`):

Filter by entity status.

## `registeredAs` (type: `string`):

Local business register number, e.g. HRB 209510.

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

Also fetch direct and ultimate parent LEI + name (2 extra requests per record, slower).

## `maxRecords` (type: `integer`):

Stop after this many LEI records.

## `onlyNewRecords` (type: `boolean`):

Return only records not seen in previous runs with the same alerts key. Schedule daily for alerts.

## `alertsKey` (type: `string`):

Name for this alert memory (use a different key per saved search).

## Actor input object example

```json
{
  "companyNames": [
    "Siemens"
  ],
  "leis": [
    "529900VGZ27M5ZHAEZ97"
  ],
  "countries": [
    "DE"
  ],
  "status": "ACTIVE",
  "registeredAs": "HRB 268055",
  "includeParents": true,
  "maxRecords": 20,
  "onlyNewRecords": false
}
```

# 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 = {
    "companyNames": [
        "Siemens"
    ],
    "countries": [
        "DE"
    ],
    "maxRecords": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("datadesk-io/gleif-lei-company-scraper").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 = {
    "companyNames": ["Siemens"],
    "countries": ["DE"],
    "maxRecords": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("datadesk-io/gleif-lei-company-scraper").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 '{
  "companyNames": [
    "Siemens"
  ],
  "countries": [
    "DE"
  ],
  "maxRecords": 20
}' |
apify call datadesk-io/gleif-lei-company-scraper --silent --output-dataset

```

## MCP server setup

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

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/CZuEVhmxHtMhk2cwG/builds/yxyXeoamiK4mhYc60/openapi.json
