# GLEIF Global LEI Index (Legal Entity Identifier Registry) (`gettingtechnicl/gleif-org`) Actor

Extract company data from GLEIF Global LEI Index (Legal Entity Identifier Registry) via its official public JSON API. Fetch the full dataset and export 54 structured fields per company as JSON, CSV or Excel - reliable, with no fragile HTML scraping.

- **URL**: https://apify.com/gettingtechnicl/gleif-org.md
- **Developed by:** [Terry Gluff](https://apify.com/gettingtechnicl) (community)
- **Categories:** Lead generation, Business
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 verified record extracteds

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 Registry (Global Legal Entity Identifier Foundation)

Extract company data from GLEIF LEI Registry (Global Legal Entity Identifier Foundation) via its official public JSON API. Search by legal name, full-text search, lei and export 46 structured fields per company as JSON, CSV or Excel - reliable, with no fragile HTML scraping.

### What you get

Every record is delivered as a clean, structured row you can export to **JSON, CSV, or Excel**. Fields include:

- `type`
- `id`
- `attributes_lei`
- `legal_name_name`
- `legal_name_language`
- `other_names_name`
- `other_names_language`
- `other_names_type`
- `legal_address_language`
- `legal_address_address_lines`
- `legal_address_city`
- `legal_address_region`
- `legal_address_country`
- `legal_address_postal_code`
- `headquarters_address_language`
- `headquarters_address_address_lines`
- `headquarters_address_mail_routing`
- `headquarters_address_city`
- `headquarters_address_region`
- `headquarters_address_country`
- `headquarters_address_postal_code`
- `registered_at_id`
- `registered_as`
- `jurisdiction`
- `category`
- `legal_form_id`
- `legal_form_other`
- `entity_status`
- `creation_date`
- `group_type`
- `validation_documents`
- `effective_date`
- `recorded_date`
- `events_type`
- `events_status`
- `initial_registration_date`
- `registration_status`
- `next_renewal_date`
- `managing_lou`
- `corroboration_level`

### Input

Configure the run with these options (all optional -- leave blank to fetch everything):

- **Legal name** — Exact legal name of the entity (GLEIF matches the full registered name), e.g. SIEMENS AG.
- **Full-text search** — Search across names, addresses and LEIs, e.g. siemens.
- **LEI** — A 20-character Legal Entity Identifier.
- **Country (legal address)** — ISO 3166-1 alpha-2 code, e.g. DE, US, GB.
- **Entity category** — Kind of legal entity. Pick from a dropdown of valid values.
- **Entity status** — Active or inactive entity. Pick from a dropdown of valid values.
- **LEI registration status** — Status of the LEI record. Pick from a dropdown of valid values.
- **Maximum results** — cap how many records to return.

### How to use

1. Click **Start** (or call the Actor via the [Apify API](https://docs.apify.com/api/v2) or a client SDK).
2. Set any filters you need and run it.
3. Download the results as JSON, CSV, or Excel from the run's dataset.

### Pricing

This Actor uses **pay-per-result** pricing: you are billed only for the records it returns, with no monthly subscription.

### Notes

This Actor collects publicly available data. Please use it responsibly and in line with the source website's terms of service.

# Actor input Schema

## `legal_name` (type: `string`):

Exact legal name of the entity (GLEIF matches the full registered name), e.g. SIEMENS AG.

## `fulltext` (type: `string`):

Search across names, addresses and LEIs, e.g. siemens.

## `lei` (type: `string`):

A 20-character Legal Entity Identifier.

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

ISO 3166-1 alpha-2 code, e.g. DE, US, GB.

## `category` (type: `string`):

Kind of legal entity.

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

Active or inactive entity.

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

Status of the LEI record.

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

Maximum number of records to fetch and push to the dataset.

## `proxyConfiguration` (type: `object`):

Apify Proxy configuration. Defaults to Apify Proxy (datacenter): many sites serve REDUCED or blocked content to Apify's bare platform IP but full content through a proxy (BuyRentKenya returned 5 vs 25 listings, run 41307), so a proxy is used by default for complete, reliable results. Switch to Residential here if a site also blocks datacenter IPs.

## Actor input object example

```json
{
  "legal_name": "SIEMENS AG",
  "max_items": 3,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "legal_name": "SIEMENS AG",
    "max_items": 3,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("gettingtechnicl/gleif-org").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 = {
    "legal_name": "SIEMENS AG",
    "max_items": 3,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("gettingtechnicl/gleif-org").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 '{
  "legal_name": "SIEMENS AG",
  "max_items": 3,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call gettingtechnicl/gleif-org --silent --output-dataset

```

## MCP server setup

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

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/Mi2uSVYtiKQAt6yHy/builds/EBFAmGeu0l6jwENe8/openapi.json
