# GLEIF LEI Lookup – Legal Entity Identifier Search (`nordic-data/gleif-lei-lookup`) Actor

Look up Legal Entity Identifiers (LEI) by code, company name or national registration number via the official GLEIF API. Legal name, addresses, status, renewal date and parent companies. $0.0019 per record.

- **URL**: https://apify.com/nordic-data/gleif-lei-lookup.md
- **Developed by:** [Niklas Bergström](https://apify.com/nordic-data) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.90 / 1,000 lei 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 Lookup – Legal Entity Identifier Search

Look up **Legal Entity Identifiers (LEI)** in bulk from the official [GLEIF](https://www.gleif.org/) Global LEI Index — by LEI code, by company name, or by national business registration number. Each record comes back flat and ready for a spreadsheet: legal name, other and previous names, legal and headquarters address, entity status, LEI registration status (ISSUED / LAPSED …), next renewal date, legal form, and optionally the direct and ultimate parent company.

**$0.0019 per LEI record.** Invalid LEIs (checksum fails), unknown LEIs, searches with no match and duplicates are free.

### What you can do

- **Validate LEIs:** check that counterparty LEIs exist, are `ISSUED` and not `LAPSED`, and when they must be renewed (MiFID II, EMIR, KYC).
- **Find a company's LEI** from its name or its org number (Swedish org nr, Finnish Y-tunnus, Norwegian org nr, UK company number …).
- **Map corporate groups:** add the direct and ultimate accounting parent from GLEIF Level 2 data.
- **Enrich CRM or supplier lists** with official legal names and registered addresses.

### Input example

```json
{
  "leis": ["549300MLUDYVRQOOXS22", "529900T8BM49AURSDO55"],
  "companyNames": ["Spotify"],
  "registrationNumbers": ["556074-3089"],
  "countries": ["SE", "LU"],
  "onlyActive": false,
  "maxResultsPerSearch": 10,
  "includeParents": true
}
```

Use any mix of the three lists. `countries`, `onlyActive` and `maxResultsPerSearch` apply to the searches.

### Output example

```json
{
  "recordType": "lei",
  "lei": "5299003QF94FZCIIRP54",
  "legalName": "Volvo Personvagnar Aktiebolag",
  "status": "ACTIVE",
  "registrationStatus": "ISSUED",
  "country": "SE",
  "city": "GÖTEBORG",
  "registrationNumber": "556074-3089",
  "legalFormId": "XJHM",
  "entityCreationDate": "1960-10-10",
  "legalAddress": {"addressLines": ["Avd. 50090 HB3S"], "city": "GÖTEBORG", "postalCode": "405 31", "country": "SE", "formatted": "Avd. 50090 HB3S, 405 31 GÖTEBORG, SE"},
  "nextRenewalDate": "2027-03-01",
  "directParent": {"lei": "…", "name": "Volvo Car AB (publ.)", "country": "SE"},
  "ultimateParent": {"lei": "…", "name": "…", "country": "CN"},
  "query": "556074-3089",
  "queryType": "registrationNumber",
  "gleifUrl": "https://search.gleif.org/#/record/5299003QF94FZCIIRP54"
}
```

(Example values; the Golden Copy is updated daily.)

### How it works

The Actor calls the public GLEIF REST API (`api.gleif.org`), which is free and needs no key. LEIs are batched 100 per request; requests are paced to respect GLEIF's rate limit. GLEIF data is published under CC0, so you can reuse it freely.

### Related Actors

- [Nordic Company Registry](https://apify.com/nordic-data/nordic-company-registry): official Swedish, Norwegian, Danish and Finnish registry data.
- [European Company Registry](https://apify.com/nordic-data/european-company-registry)
- [Website Contact Details Extractor](https://apify.com/nordic-data/website-contact-details-extractor)

# Changelog

This Actor's version history is a separate document: https://apify.com/nordic-data/gleif-lei-lookup/changelog.md

# Actor input Schema

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

20-character Legal Entity Identifiers to look up. Checked against the ISO 17442 checksum first; invalid or unknown codes are free.

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

Full-text search over legal names, trading names and previous names, e.g. 'Volvo Car' or 'Spotify'.

## `registrationNumbers` (type: `array`):

National company numbers as registered with GLEIF (e.g. Swedish org nr 556074-3089, Finnish Y-tunnus 1748721-4, UK 00445790). Finds the LEI for a known company.

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

ISO 3166 two-letter codes of the legal address, e.g. SE, NO, DK, FI, DE. Applies to name and registration-number searches.

## `onlyActive` (type: `boolean`):

Skip retired, merged or dissolved entities in searches.

## `maxResultsPerSearch` (type: `integer`):

Cap on records returned for each name or registration-number search (1-1000).

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

Add the direct and ultimate accounting parent (LEI, name, country) from GLEIF Level 2 data. Slower: 2 extra API calls per record, same price.

## Actor input object example

```json
{
  "leis": [
    "549300MLUDYVRQOOXS22",
    "529900T8BM49AURSDO55"
  ],
  "onlyActive": false,
  "maxResultsPerSearch": 10,
  "includeParents": false
}
```

# Actor output Schema

## `results` (type: `string`):

Main results (view: Overview).

## `runStats` (type: `string`):

Counts of delivered, hidden, invalid, duplicate and failed inputs.

# 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": [
        "549300MLUDYVRQOOXS22",
        "529900T8BM49AURSDO55"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("nordic-data/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": [
        "549300MLUDYVRQOOXS22",
        "529900T8BM49AURSDO55",
    ] }

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

```

## MCP server setup

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