# LEI Status Check (GLEIF) (`kinako_muse/lei-status-check`) Actor

Already have a list of LEIs? Paste it in and check every code against the official GLEIF database: status (issued / lapsed), renewal date with days left, an OK / Attention verdict with the reason spelled out, and field-level changes since your last check.

- **URL**: https://apify.com/kinako_muse/lei-status-check.md
- **Developed by:** [Kinako](https://apify.com/kinako_muse) (community)
- **Categories:** Automation, 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.00 / 1,000 lei checkeds

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

## LEI Status Check (GLEIF)

**Already have a list of LEIs? Paste it in — every code is checked against the official GLEIF database.** One run takes up to 2,000 LEI codes — from a contract, an onboarding batch, a client list, a portfolio spreadsheet — and returns, for each entity:

- Legal name and registration status (**active** or **lapsed**, plus the raw GLEIF entity and registration statuses)
- Legal form (ELF code), jurisdiction and registration authority
- Initial registration date, last update, **next renewal date and the number of days left until it**
- Registered office address and BIC (where the record carries one)
- A plain verdict: `OK` or `Attention` — with the reason spelled out in words on every row
- What changed since your last check, field by field
- A link to the record in the GLEIF search

No API key is needed, and no account with GLEIF is required.

### Why this one

- **A status check, not a data dump.** Scrapers sell you the whole registry record for every entity. This tool answers the question you actually have about a list you already hold: is each LEI still valid, and which ones need attention?
- **Reasons you can show an auditor.** There is no score and no black box. A row is flagged only for stated reasons — the registration has lapsed, the entity is not active, the renewal date has passed, or renewal is due within 90 days — and the reason is written on the row itself.
- **Built for the monthly re-check.** Run the same list again next month and every row tells you whether anything changed since your last check, field by field (for example `status: active -> lapsed`). You only review the rows that changed.
- **Renewal dates on every row.** Each result carries the next renewal date and `days_until_renewal`, so upcoming expiries are visible before they turn into lapsed LEIs.
- **You only pay for real checks.** Lines that are not valid LEI format are reported but never charged, and the summary row is free.

### What you can use it for

- **Verify a counterparty's LEI before trading** — confirm the LEI on a contract or invoice is real, belongs to the named entity, and is still issued (not lapsed) before you book the trade.
- **Check LEIs during KYC and onboarding** — run a whole onboarding batch through one check instead of looking up each client on the GLEIF website one by one.
- **Monitor renewal dates across a portfolio** — LEIs must be renewed annually; re-run the same list and the built-in change tracking flags every LEI that has lapsed or whose record changed since your last check, while `days_until_renewal` shows what expires next.
- **Refresh records before regulatory reporting** — MiFID II, EMIR and other reporting regimes require valid LEIs; a bulk pass over your reference data finds the lapsed or missing ones before the report is due.

### How it works

1. Paste LEI codes (20 alphanumeric characters), one per line — up to 2,000 per run.
2. Codes are looked up live in the official GLEIF API, in batches.
3. A row is `Attention` when the registration has lapsed, the entity is not active, the renewal date has already passed, or renewal falls due within 90 days — the reasons are spelled out on every row.
4. Run the same list again later and every row tells you whether anything changed since your last check.

### What it does not return

Legal-entity data only — the same public LEI record anyone can see in the GLEIF search. No personal data, no relationship (parent/child) data, and no contact details.

### Pricing

**No monthly plan.** You pay only for the LEIs you actually check, in the months you actually check them — nothing in the months you don't run a check.

- Paid plans: $0.002 per LEI checked ($2.00 per 1,000).
- Free plan: $0.02 per LEI checked.
- Malformed lines are not charged, and the summary row is free.

### Data source and licence

Data comes from the GLEIF API (api.gleif.org). LEI data is published by GLEIF under the CC0 licence. This is an independent tool: it is not provided, endorsed or certified by GLEIF or by any Local Operating Unit, and it has no affiliation with them.

# Actor input Schema

## `leis` (type: `string`):

Legal Entity Identifiers (20 alphanumeric characters), one per line or separated by commas (up to 2,000 per run). Leave empty to run the built-in sample check.

## Actor input object example

```json
{
  "leis": "HWUPKR0MPOU8FGXBT394"
}
```

# 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 = {
    "leis": "HWUPKR0MPOU8FGXBT394"
};

// Run the Actor and wait for it to finish
const run = await client.actor("kinako_muse/lei-status-check").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" }

# Run the Actor and wait for it to finish
run = client.actor("kinako_muse/lei-status-check").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"
}' |
apify call kinako_muse/lei-status-check --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kinako_muse/lei-status-check"
        }
    }
}
```

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/ex2tl4KycF4Pe4kdp/builds/ZJyHOmUBbX867E2nO/openapi.json
