# GLEIF LEI Company Lookup with Match Score (`sourcewise/gleif-lei-company-lookup`) Actor

Looks up each company name in the public GLEIF database and returns its LEI, legal form, jurisdiction, registration status, direct parent and last update, with a match confidence score and flags for companies with no LEI.

- **URL**: https://apify.com/sourcewise/gleif-lei-company-lookup.md
- **Developed by:** [Sourcewise](https://apify.com/sourcewise) (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 $2.10 / 1,000 results

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 Lookup with Match Score

Look up company names in the public GLEIF LEI database and receive the Legal Entity Identifier, legal form, jurisdiction, registration status, direct parent details, last update date, and a match confidence score. Companies that do not reach the minimum confidence threshold are flagged as “no‑lei‑found”.

**Who it’s for** – compliance officers, KYC/AML analysts, risk managers, supply‑chain teams, and investors who need fast, reliable LEI verification for counterparties or portfolio companies.

**Typical use cases**

- Batch screening of counterparties before onboarding
- Enriching CRM or ERP records with authoritative LEI data
- Ongoing monitoring of entity status changes (e.g., lapsed LEIs)
- Building a verified entity reference list for reporting

**Data source** – GLEIF LEI records via the public API (https://api.gleif.org/api/v1/lei-records). Data © GLEIF, licensed under the GLEIF Data License.

### Input

Provide a JSON object with the following fields:

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `companyNames` | array of strings | Yes | One legal or trading name per item, exactly as you would type it in a spreadsheet (e.g., `"Siemens Aktiengesellschaft"`). |
| `countryCode` | string | No | Two‑letter country code to restrict matches to a single country (e.g., `"DE"`). Leave empty to search all countries. |
| `minConfidence` | integer | No | Minimum match score (0‑100). Matches below this value are reported as `no-lei-found`. Default is `70`. |

**Example input** (tested and returns data today):

{
"companyNames": \["Siemens Aktiengesellschaft", "Equinor ASA", "Apple Inc."],
"minConfidence": 80,
"maxItems": 100
}

### Output

Each input name produces one record with the fields below. When `status` is `matched`, the LEI and related details are present; when `status` is `no-lei-found`, only `inputName`, `status`, and `confidence` are returned.

| Field | Type | Description |
|-------|------|-------------|
| `inputName` | string | The company name exactly as entered. |
| `status` | string | `matched` or `no-lei-found`. |
| `confidence` | number | Match score 0‑100 for the best candidate. |
| `lei` | string | 20‑character Legal Entity Identifier (present only when matched). |
| `legalName` | string | Registered legal name in GLEIF. |
| `legalForm` | string | Legal form code or name as registered. |
| `jurisdiction` | string | Country or region of legal registration (ISO‑3166‑1 alpha‑2). |
| `registrationStatus` | string | LEI status such as `ISSUED` or `LAPSED`. |
| `directParentLei` | string | LEI of the direct parent, or `null` if none reported. |
| `directParentName` | string | Legal name of the direct parent, or `null` if none reported. |
| `lastUpdated` | string | Date GLEIF last updated the record, formatted `YYYY-MM-DD`. |

**Example output** (real data from the example input):

\[
{
"inputName": "Siemens Aktiengesellschaft",
"status": "matched",
"confidence": 100,
"lei": "W38RGI023J3WT1HWRP32",
"legalName": "Siemens Aktiengesellschaft",
"legalForm": "6QQB",
"jurisdiction": "DE",
"registrationStatus": "ISSUED",
"directParentLei": null,
"directParentName": null,
"lastUpdated": "2026-09-01"
},
{
"inputName": "Equinor ASA",
"status": "matched",
"confidence": 100,
"lei": "OW6OFBNCKXC4US5C7523",
"legalName": "EQUINOR ASA",
"legalForm": "IQGE",
"jurisdiction": "NO",
"registrationStatus": "ISSUED",
"directParentLei": null,
"directParentName": null,
"lastUpdated": "2026-09-16"
}
]

### Pricing

Approximately **$3 per 1,000 results** (pay‑per‑result). No subscription required; you are charged only for the records returned.

### Limits & considerations

- The actor calls the public GLEIF API, which enforces its own rate limits (typically a few dozen requests per second). The actor automatically throttles to stay within those limits.
- Results are limited to the `maxItems` parameter (default 100) per run.
- No authentication, API keys, or personal data are required.
- Only publicly available legal‑entity data is processed; no private‑individual information is accessed.

***

*Ready to verify your counterparties? Run the actor with your company list and get authoritative LEI data in seconds.*

### Example output

```json
[
  {
    "inputName": "Siemens Aktiengesellschaft",
    "status": "matched",
    "confidence": 100,
    "lei": "W38RGI023J3WT1HWRP32",
    "legalName": "Siemens Aktiengesellschaft",
    "legalForm": "6QQB",
    "jurisdiction": "DE",
    "registrationStatus": "ISSUED",
    "directParentLei": null,
    "directParentName": null,
    "lastUpdated": "2026-09-01"
  },
  {
    "inputName": "Equinor ASA",
    "status": "matched",
    "confidence": 100,
    "lei": "OW6OFBNCKXC4US5C7523",
    "legalName": "EQUINOR ASA",
    "legalForm": "IQGE",
    "jurisdiction": "NO",
    "registrationStatus": "ISSUED",
    "directParentLei": null,
    "directParentName": null,
    "lastUpdated": "2026-09-16"
  }
]
```

# Actor input Schema

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

One legal or trading name per item, as you would type it in a spreadsheet (example: Siemens, Equinor). Paste a CSV column here.

## `countryCode` (type: `string`):

Two-letter country code to narrow matches to one country (example: DE, NO, US). Leave empty to search all countries.

## `minConfidence` (type: `integer`):

Matches scoring below this 0 to 100 value are reported as no LEI found (example: 80). Default is 70.

## `maxItems` (type: `integer`):

Stop after this many results (you pay per result).

## Actor input object example

```json
{
  "companyNames": [
    "Siemens Aktiengesellschaft",
    "Equinor ASA",
    "Apple Inc."
  ],
  "minConfidence": 80,
  "maxItems": 100
}
```

# Actor output Schema

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

One item per result, with: inputName, status, confidence, lei, legalName, legalForm, jurisdiction, registrationStatus, directParentLei, directParentName, lastUpdated.

## `summary` (type: `string`):

How many results the run returned, and when it finished.

# 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 Aktiengesellschaft",
        "Equinor ASA",
        "Apple Inc."
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("sourcewise/gleif-lei-company-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 = { "companyNames": [
        "Siemens Aktiengesellschaft",
        "Equinor ASA",
        "Apple Inc.",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("sourcewise/gleif-lei-company-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 '{
  "companyNames": [
    "Siemens Aktiengesellschaft",
    "Equinor ASA",
    "Apple Inc."
  ]
}' |
apify call sourcewise/gleif-lei-company-lookup --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,sourcewise/gleif-lei-company-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/W3r8vVtVSCIcD3C49/builds/p6GgCDfmoO3t10O34/openapi.json
