# LEI Lookup & LEI Renewal Checker (GLEIF) - Lapsed LEI, KYC (`kotablue-tools/gleif-lei-renewal-checker`) Actor

Bulk LEI lookup and LEI renewal check from the public GLEIF register: legal name, entity and registration status, next renewal date, days left, and lapsed / due-soon flags for KYC and counterparty lists. Invalid LEIs are caught free by checksum.

- **URL**: https://apify.com/kotablue-tools/gleif-lei-renewal-checker.md
- **Developed by:** [KotaBlue Toolsmith](https://apify.com/kotablue-tools) (community)
- **Categories:** Developer tools, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

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

## LEI Lookup & LEI Renewal Checker (GLEIF) - Lapsed LEI, KYC

**Paste a list of Legal Entity Identifiers (or company names) and get one clean, spreadsheet-ready row per LEI: legal name, entity and registration status (ISSUED, LAPSED, RETIRED...), next renewal date, days until renewal, and clear lapsed-LEI and due-soon flags, straight from the public GLEIF register.**

Up to 10,000 LEIs per run from the free official GLEIF API. No API key, code, browser, scraping or login needed. Built for KYC, onboarding, counterparty and vendor-master checks, and EMIR / MiFID II reporting prep.

### What does this LEI lookup do?

- **LEI to entity record.** Accepts 20-character LEIs with or without spaces, dashes or lowercase. Looked up 100 per GLEIF request, so 1,000 LEIs take about 15 seconds.
- **Catches typos before any lookup.** Every LEI is checked against the ISO 17442 check digits (MOD 97-10) first. Invalid LEIs are flagged with a reason and are never sent to GLEIF.
- **Renewal flags you can filter on:** `renewalStatus` (LAPSED / OVERDUE / DUE_SOON / OK / NOT_RENEWABLE / OTHER), `isLapsed`, `isDueSoon`, `needsAttention`, and `daysUntilRenewal`.
- **Company name search (optional).** Give legal names and get the best matching LEI record(s), labelled `EXACT` or `SIMILAR`.
- **Every problem input gets a row.** Invalid, not-found and errored inputs are kept with a clear `status` and `message`.

### Who is this for?

- **KYC / AML and client onboarding teams.** Confirm a new client's or counterparty's LEI is valid, ISSUED and not lapsed before onboarding.
- **Trade and transaction reporting teams (EMIR, MiFID II / MiFIR, SFTR, Dodd-Frank).** Screen counterparty lists for lapsed, retired or merged LEIs before reports go out.
- **Lapsed-LEI remediation projects.** Pull every `LAPSED` and `OVERDUE` LEI from a client book, with days past renewal and the managing LOU, so you know whom to chase.
- **Treasury, legal-entity management and ops teams.** Firms holding their own LEIs (subsidiaries, funds) can schedule a monthly run as a renewal reminder list.
- **Fund administrators and asset managers.** Check the LEIs of funds, sub-funds, investors and service providers in one batch.
- **Procurement, finance and vendor-master teams.** Clean a supplier or counterparty master file: catch typos, fill in legal names and countries, flag INACTIVE entities.
- **Data vendors and reference-data teams.** Enrich or reconcile entity reference data with GLEIF status and renewal fields.
- **Auditors and compliance testers.** Sample-test LEI data quality: counts of invalid, not-found, lapsed and due-soon LEIs are in the run summary.

### How to use it

1. Open the Actor and paste LEIs into **LEIs**, one per line. Spaces, dashes and lowercase are fine.
2. Optionally add **Company names** and set **Matches per company name** (default 1, up to 10).
3. Set **Flag renewals due within (days)** (default 30). Turn on **Only output LEIs that need attention** if you only want the rows to fix.
4. Click **Start**.
5. Open the **Output** tab, filter on `needsAttention` or `renewalStatus`, and export as CSV, Excel or JSON.
6. Schedule the Actor (for example monthly) to keep data current, or call it from the Apify API.

### Input

| Field | Type | Default | Notes |
|---|---|---|---|
| `leis` | list of strings | | One LEI per line. Spaces, dashes and lowercase are fine. Duplicates are checked once. Up to 10,000 per run. |
| `companyNames` | list of strings | none | Optional. Legal names to look up when you don't have the LEI. Up to 500 per run. |
| `maxMatchesPerName` | integer 1–10 | 1 | How many LEI records to return for each name, best match first. |
| `dueWithinDays` | integer | 30 | Renewals due within this many days are flagged `DUE_SOON`. |
| `onlyNeedsAttention` | boolean | false | Output only lapsed, overdue, due-soon, retired / annulled / merged, inactive, invalid and not-found rows. |

Example input:

```json
{
  "leis": [
    "HWUPKR0MPOU8FGXBT394",
    "254900KZR24L5GN8TE52",
    "HWUPKR0MPOU8FGXBT395"
  ],
  "maxMatchesPerName": 1,
  "dueWithinDays": 30,
  "onlyNeedsAttention": false
}
```

### Output (dataset, one row per LEI or name match)

`input, matchedBy (LEI | NAME), nameMatch (EXACT | SIMILAR), status (FOUND | NOT_FOUND | INVALID | ERROR), message, lei, legalName, entityStatus, registrationStatus, renewalStatus, isLapsed, isDueSoon, needsAttention, nextRenewalDate, daysUntilRenewal, lastUpdateDate, initialRegistrationDate, corroborationLevel, managingLou, managingLouName, jurisdiction, legalCountry, hqCountry, legalForm, category, retrievedAt`

Below are real rows from a cloud run on Nov 3, 2026 with the example input above. `daysUntilRenewal` is counted from the run date.

A lapsed LEI that needs attention (shortened):

```json
{
  "input": "254900KZR24L5GN8TE52",
  "matchedBy": "LEI",
  "status": "FOUND",
  "lei": "254900KZR24L5GN8TE52",
  "legalName": "Apple Ford, Inc.",
  "entityStatus": "ACTIVE",
  "registrationStatus": "LAPSED",
  "renewalStatus": "LAPSED",
  "isLapsed": true,
  "isDueSoon": false,
  "needsAttention": true,
  "nextRenewalDate": "2021-04-08T19:09:41Z",
  "daysUntilRenewal": -2035,
  "initialRegistrationDate": "2020-04-08T19:09:41Z",
  "managingLouName": "Bloomberg Finance L.P.",
  "jurisdiction": "US-DE",
  "legalCountry": "US",
  "hqCountry": "US",
  "retrievedAt": "2026-11-03T06:19:55.580Z"
}
```

A current, issued LEI (shortened):

```json
{
  "input": "HWUPKR0MPOU8FGXBT394",
  "status": "FOUND",
  "lei": "HWUPKR0MPOU8FGXBT394",
  "legalName": "Apple Inc.",
  "entityStatus": "ACTIVE",
  "registrationStatus": "ISSUED",
  "renewalStatus": "OK",
  "isLapsed": false,
  "needsAttention": false,
  "nextRenewalDate": "2027-03-08T17:27:20Z",
  "daysUntilRenewal": 125,
  "initialRegistrationDate": "2012-06-06T15:53:00Z",
  "managingLouName": "Bloomberg Finance L.P.",
  "jurisdiction": "US-CA"
}
```

In the same run, the typo `HWUPKR0MPOU8FGXBT395` came back `INVALID`: "Check digits do not match (ISO 17442 / MOD 97-10). Probably a typo."

Possible `status` values:

- **FOUND**: the LEI record was returned from the GLEIF register.
- **NOT_FOUND**: a valid-format LEI isn't in the register, or no record matches the company name.
- **INVALID**: wrong length, characters or check digits.
- **ERROR**: the GLEIF request failed after retries.

A run summary is saved to the key-value store as `OUTPUT`: counts of found, lapsed, overdue, due-soon, not-renewable, inactive, invalid, not-found and errored LEIs, the GLEIF golden-copy date, and whether the run stopped at your spending limit.

#### What the renewal statuses mean

| `renewalStatus` | Meaning |
|---|---|
| `LAPSED` | GLEIF registration status is LAPSED: the renewal deadline was missed. |
| `OVERDUE` | Still ISSUED, but the next renewal date has already passed. |
| `DUE_SOON` | Renewal is due within `dueWithinDays`. |
| `OK` | Renewal is further away. |
| `NOT_RENEWABLE` | RETIRED, ANNULLED, DUPLICATE or MERGED: the LEI is no longer maintained. |
| `OTHER` | Any other status, such as PENDING_TRANSFER or PENDING_ARCHIVAL. |

`needsAttention` is true for LAPSED, OVERDUE, DUE_SOON and NOT_RENEWABLE, and for entities GLEIF lists as INACTIVE.

### Pricing

- **This Actor is currently free to use.** There is no Actor fee; you only use your normal Apify platform credits for compute (the 3-LEI cloud test run above used about $0.00016 of platform usage).

### Limits and performance

- Up to 10,000 LEIs and 500 company names per run; up to 10 matches per name.
- Default memory is 128 MB; it uses no browser and needs no proxy (the test run above peaked at about 54 MB).
- GLEIF allows 60 requests per minute per user (https://api.gleif.org/docs). The Actor sends at most about 55.
- LEIs are looked up 100 per request, about 5,000 LEIs per minute. Company names take one request each, about 55 names per minute.
- HTTP 429 (honouring `retry-after`), 5xx errors and timeouts are retried with backoff. If a batch still fails, its LEIs are returned as `ERROR` rows.

### FAQ

**What is a lapsed LEI?**
An LEI must be renewed with its LEI issuer every year. If the renewal date passes, GLEIF sets the registration status to LAPSED. The LEI still points to the same entity, but its data is no longer confirmed as current. This Actor shows `renewalStatus: LAPSED` and `isLapsed: true` for those records.

**What is the difference between LAPSED and OVERDUE?**
`LAPSED` means GLEIF has set the registration status to LAPSED. `OVERDUE` means it is still ISSUED, but the next renewal date has passed. Both set `needsAttention`.

**How fresh is the data?**
Each run reads the GLEIF API live. The run summary includes `gleifGoldenCopyDate` (the GLEIF data date) and every row carries `retrievedAt`. `daysUntilRenewal` is counted from the run time, so re-run or schedule it for current numbers.

**How do I get a renewal reminder list for my own LEIs?**
Add your LEIs, set `dueWithinDays` to your lead time (for example 60 or 90), turn on `onlyNeedsAttention`, and schedule a monthly run. Each run then returns only the LEIs that need action.

**How does the company name search work? Is it exact?**
It uses GLEIF's legal-name filter, best matches first, up to `maxMatchesPerName`. Rows are labelled `nameMatch: EXACT` when the legal name matches your input (ignoring case and punctuation), otherwise `SIMILAR`. Review similar matches; lookup by LEI is more reliable.

**What happens with invalid, unknown or duplicate LEIs?**
They get a row with `status` `INVALID` or `NOT_FOUND` and a short `message`; invalid ones are never sent to GLEIF. A repeated LEI is checked once and counted under duplicates in the run summary. One bad LEI never breaks the batch.

**Which export formats are supported? Can I use the API?**
Any format Apify datasets support, including CSV, Excel, JSON, JSONL, XML and HTML, from the Output tab or the dataset API. You can also start runs from the Apify API or client libraries, schedule them, or connect them to Make, Zapier, n8n or webhooks.

**Is this an official GLEIF service? Can I rely on it for regulatory filings?**
No. It is an independent tool that reads the public GLEIF API. The renewal flags and day counts are computed by this Actor. Confirm critical results in the GLEIF register before using them for regulatory filings.

### Related tools

Other free tools for public official data from the same publisher:

- [ISIN / CUSIP / Ticker to FIGI + LEI Mapper](https://apify.com/kotablue-tools/figi-lei-identifier-mapper): map ISIN, CUSIP, SEDOL, ticker or FIGI identifiers to OpenFIGI and GLEIF LEI records.
- [SEC EDGAR Company Lookup](https://apify.com/kotablue-tools/sec-edgar-company-lookup): turn tickers or CIK numbers into company profiles with latest 10-K, 10-Q and 8-K filings.
- [Bulk VIN Decoder & Recall Checker (NHTSA)](https://apify.com/kotablue-tools/nhtsa-vin-decoder): decode VINs in bulk to make, model and year, with NHTSA recall campaigns.
- [ClinicalTrials.gov NCT Lookup](https://apify.com/kotablue-tools/clinicaltrials-study-status-checker): bulk trial status, sponsor portfolios and a results-due estimate for lists of NCT numbers.

### Data source, licence and disclaimer

- LEI records come from the **Global Legal Entity Identifier Foundation (GLEIF)** API (https://api.gleif.org), provided free under **CC0 1.0** (https://www.gleif.org/en/meta/lei-data-terms-of-use/).
- **This Actor is independent. It is not provided, supported, authorized or endorsed by GLEIF or any LEI issuing organization (LOU), and has no relationship with GLEIF or the GLEIS.**
- The renewal flags, day counts, name-match labels and checksum results are **computed by this Actor**. They are not GLEIF data.
- Data is returned as GLEIF provides it, with no warranty. GLEIF itself notes that LEI data is based on information supplied by third parties. Confirm critical results in the GLEIF register before using them for regulatory filings.

### Free Apify plan users

This Actor works on the Apify free plan with the same limits as paid plans. Runs count against your monthly Apify usage credit.

# Actor input Schema

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

One 20-character Legal Entity Identifier per line (spaces and dashes are ignored). Check digits are validated first, so typos are flagged for free. Duplicates are checked once. Max 10,000 per run.

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

Optional. Legal names to look up in the GLEIF register when you don't have the LEI. Each name returns its best match(es) with a nameMatch flag (EXACT or SIMILAR), so review similar matches before relying on them. Max 500 per run.

## `maxMatchesPerName` (type: `integer`):

How many LEI records to return for each company name (best matches first). Each returned record counts as one checked LEI.

## `dueWithinDays` (type: `integer`):

LEIs whose next renewal date is within this many days are flagged DUE_SOON.

## `onlyNeedsAttention` (type: `boolean`):

If on, healthy LEIs are left out of the dataset and only lapsed, overdue, due-soon, retired/annulled/merged, inactive, invalid and not-found rows are output. They still count in the summary.

## Actor input object example

```json
{
  "leis": [
    "HWUPKR0MPOU8FGXBT394",
    "529900T8BM49AURSDO55",
    "254900KZR24L5GN8TE52"
  ],
  "maxMatchesPerName": 1,
  "dueWithinDays": 30,
  "onlyNeedsAttention": false
}
```

# Actor output Schema

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

One row per LEI (or company-name match) with legal name, statuses, next renewal date, days until renewal and lapsed / due-soon flags.

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

Counts of found, lapsed, overdue, due-soon, invalid, not-found and errored LEIs.

# 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": [
        "HWUPKR0MPOU8FGXBT394",
        "529900T8BM49AURSDO55",
        "254900KZR24L5GN8TE52"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kotablue-tools/gleif-lei-renewal-checker").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": [
        "HWUPKR0MPOU8FGXBT394",
        "529900T8BM49AURSDO55",
        "254900KZR24L5GN8TE52",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("kotablue-tools/gleif-lei-renewal-checker").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": [
    "HWUPKR0MPOU8FGXBT394",
    "529900T8BM49AURSDO55",
    "254900KZR24L5GN8TE52"
  ]
}' |
apify call kotablue-tools/gleif-lei-renewal-checker --silent --output-dataset

```

## MCP server setup

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

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/6zvwMttgdAy9x2Hbq/builds/zS7rEyrrcdMzoCuk4/openapi.json
