# LEI Records Scraper: New Entities (GLEIF Data) (`plain-build/gleif-lei-records-scraper`) Actor

New Legal Entity Identifier (LEI) records from GLEIF's open API: legal name, LEI, legal form, category, city, postcode, country, company number and register, registration and renewal dates. By registration date, country and category. No key; no sole traders, partnerships or person names.

- **URL**: https://apify.com/plain-build/gleif-lei-records-scraper.md
- **Developed by:** [Plain Build](https://apify.com/plain-build) (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.55 / 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

## LEI Records Scraper: New Entities (GLEIF Data)

This LEI scraper returns new Legal Entity Identifier records from GLEIF's open API: one row per legal entity with LEI, legal name, legal form, category, city, postcode, country, company number and register, and registration and renewal dates. Filter by registration date, country and category, or run it daily for new LEIs only. No login, no key; USD 3.00 per 1,000 results (USD 2.55 on Silver and above). Sole traders, partnerships and names that read as a person's are left out. Not affiliated with GLEIF.

### What it does

New Legal Entity Identifier (LEI) records from GLEIF's open API: legal name, LEI, legal form, category, city, postcode, country, company number and register, registration and renewal dates. By registration date, country and category. No key; no sole traders, partnerships or person names.

The data comes from GLEIF (Global Legal Entity Identifier Foundation) through its official API (https://documenter.getpostman.com/view/7679680/SVYrrxuU). This Actor is not affiliated with, endorsed by or sponsored by GLEIF (Global Legal Entity Identifier Foundation). It reads only that API, one request at a time, and it checks robots.txt before the first request to each host.

### Who it is for

- Sales and onboarding teams at banks, brokers and payment firms, who look for newly registered legal entities in their markets every day.
- Compliance and KYC teams who need the LEI, legal form, company number and registering authority of new counterparties.
- Fund administrators and data vendors who track new funds and their LEIs by country.
- Developers who want LEI records as JSON or CSV without paging the GLEIF API themselves.

### Key features

- One row per LEI record: LEI, legal name, Latin transliteration, legal form (ELF code), category, entity status, jurisdiction, legal and headquarters city, region, postcode and country.
- Company number and the register that holds it, registration status, first registration, last update and next renewal dates, issuer (LOU), corroboration level and BIC codes.
- Filters: first registration date (at most 366 days back; 30 days with new_since_last_run on), two-letter countries of the legal address and GLEIF's entity categories.
- Option new_since_last_run delivers and charges only LEIs you have not had for the same countries and categories.
- GLEIF's open LEI API, data under CC0 1.0, no login, no key, no street lines.
- Errors and empty results go to a separate errors dataset and are not charged.

### How it works

The Actor calls GLEIF's open LEI API (api.gleif.org/api/v1/lei-records), which serves the Global LEI System's data as of GLEIF's last Golden Copy publication. It asks for the records first registered in your window, newest first, 200 a request, with your countries and categories, and leaves sole proprietors out in the API's own filter; then it follows the API's next-page cursor. Each record becomes one row: LEI, legal name and its Latin transliteration, legal form code, category, entity status, jurisdiction, the city, region, postcode and country of the legal address and the headquarters, the company number and its register, the registration status and its dates, the issuer and the BIC codes. Street lines are never read. A record is left out by the register rule when its legal form is a sole trader's or a partnership's, or when its legal name reads as a person's; the run counts these in one uncharged item. One request at a time, 2 seconds after the answer to the one before (GLEIF allows 60 a minute); after a 429 or 503 answer the run waits the seconds the API names in Retry-After and tries again; it fails after 3 retries, or at once when the API asks for more than 2 minutes, without sending early.

### How to try it

1. Open the Input tab. The prefilled input returns the 25 newest LEI records first registered in the last 7 days with a legal address in Germany.
2. Click Start. A run reads 200 records every 2 seconds, newest first, so the prefilled run usually finishes in under a minute; a week of new LEIs in all countries (about 5,500 after the API's own filter) is about 28 requests.
3. Open the Output tab to see the results as a table, or export them as JSON, CSV or Excel.

To get new legal entities every day, schedule a daily run with `new_since_last_run` on and `registered_after` empty. Each run then delivers and charges only LEI records you have not had from this Actor for the same countries and categories.

- A record held back by `max_items` or your spending limit comes in a later run only after all newer records, because the API reads newest first: a run whose `max_items` is lower than the new records since the run before (about 730 a day without filters, 5,079 from 11 to 17 Nov 2026) does not catch up. After 30 days held-back records are no longer read, and the run says so in one uncharged error item (`held_back_dropped`). Raise `max_items`, add filters (countries, categories) or run more often.
- If runs stop for a while, the next run goes back to two days before the last run that finished with nothing held back, at most 30 days: the Actor remembers the last 50,000 records it delivered, and a longer window could deliver one twice.
- The window is on the day an LEI was first registered. A record that changes later (a new address, a lapsed registration) is not delivered again.
- Each combination of `countries` and `categories` has its own memory, a key-value store named `gleif-lei-records-scraper-state` in your account. Delete it to start again.
- Two runs at the same time can deliver and charge the same record, so leave a gap between scheduled runs.

GLEIF registers about 840 new LEIs a day (12-18 Nov 2026). The API serves GLEIF's Golden Copy as of its last publication, which each answer names (19 Nov 2026 16:00 UTC at 21:00 UTC), so the newest records are some hours old.

The name check uses derived data, not official statistics: Statistics Norway (SSB) table 10501 and the Finnish Digital and Population Data Services Agency (DVV) first names, both CC BY 4.0, and Czech Statistical Office data, plus hand-written names; also the Office for National Statistics' baby names for England and Wales (Open Government Licence v3.0). For the ONS names: Contains public sector information licensed under the Open Government Licence v3.0 (https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/).

The LEI data is published by GLEIF under CC0 1.0. This Actor is not provided, supported or authorised by GLEIF, an LEI issuer or the Global LEI System, and is not associated with them.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `registered_after` | string | "" | Date as YYYY-MM-DD, at most 366 days back (30 days with new_since_last_run on). GLEIF filters on the day an LEI was first registered. Leave empty for the last 7 days. |
| `countries` | array | \[] | Two-letter ISO country codes of the legal address, for example DE or GB. Leave empty for every country. |
| `categories` | array | \[] | GLEIF's entity categories: GENERAL (companies and most other entities), FUND, BRANCH, RESIDENT_GOVERNMENT_ENTITY or INTERNATIONAL_ORGANIZATION. Leave empty for all of them. Sole proprietors are never delivered. |
| `new_since_last_run` | boolean | false | Deliver and charge only LEI records this Actor has not delivered to you before for the same countries and categories. A record held back by Maximum results or your spending limit comes in a later run, after all newer records (the API reads newest first); after 30 days it is no longer read, and the run says so in an uncharged error item. Delivered records are remembered in a key-value store named gleif-lei-records-scraper-state in your account. |
| `max_items` | integer | 10 | How many results to return at most, from 1 to 10000. |

### Output

Each result has these fields. Missing values are `null`, never a different type.

| Field | Type | Description |
|---|---|---|
| `item_type` | string | Always `lei_record` |
| `source_id` | string | gleif: and the LEI, for example gleif:529900UPD2LG508R2403 |
| `lei` | string | The 20-character Legal Entity Identifier |
| `legal_name` | string | The entity's registered legal name |
| `transliterated_name` | string or null | A Latin transliteration of a name in another script, when GLEIF gives one |
| `category` | string or null | GLEIF's entity category: GENERAL, FUND, BRANCH, RESIDENT_GOVERNMENT_ENTITY or INTERNATIONAL_ORGANIZATION |
| `sub_category` | string or null | GLEIF's sub-category, for government entities |
| `legal_form_code` | string or null | The ISO 20275 legal form code (ELF), for example 2HBR for a German GmbH; 8888 for another form, 9999 when not given |
| `entity_status` | string or null | ACTIVE or INACTIVE |
| `jurisdiction` | string or null | The legal jurisdiction, a country or country-region code, for example DE or US-DE |
| `legal_city` | string or null | City of the legal address |
| `legal_region` | string or null | Region of the legal address, ISO 3166-2, for example DE-BY |
| `legal_postal_code` | string or null | Postcode of the legal address |
| `legal_country` | string or null | Country of the legal address, two-letter code |
| `hq_city` | string or null | City of the headquarters address |
| `hq_country` | string or null | Country of the headquarters address, two-letter code |
| `register_code` | string or null | GLEIF's code of the register that holds the company number, for example RA000242 |
| `registration_number` | string or null | The entity's number in that register |
| `registration_status` | string or null | The LEI's status, for example ISSUED, LAPSED or PENDING_TRANSFER |
| `initial_registration_date` | string | When the LEI was first registered, ISO time in UTC |
| `last_update_date` | string or null | When the LEI record last changed, ISO time in UTC |
| `next_renewal_date` | string or null | When the LEI must be renewed, ISO time in UTC |
| `managing_lou` | string or null | The LEI of the LEI issuer (LOU) that manages the record |
| `corroboration_level` | string or null | How the issuer checked the data, for example FULLY_CORROBORATED |
| `bic_codes` | string or null | BIC codes mapped to the LEI, comma separated |
| `record_url` | string | The record's page in GLEIF's LEI search |
| `api_url` | string | The record in GLEIF's API |
| `source_url` | string | The record on the source site |
| `fetched_at` | string | When the record was fetched, ISO 8601 UTC |
| `actor_version` | string | The build that produced the record |

Example item:

```json
{
  "item_type": "lei_record",
  "source_id": "<source_id>",
  "lei": "<lei>",
  "legal_name": "<legal_name>",
  "transliterated_name": "<transliterated_name>",
  "category": "<category>",
  "sub_category": "<sub_category>",
  "legal_form_code": "<legal_form_code>",
  "entity_status": "<entity_status>",
  "jurisdiction": "<jurisdiction>",
  "legal_city": "<legal_city>",
  "legal_region": "<legal_region>",
  "legal_postal_code": "<legal_postal_code>",
  "legal_country": "<legal_country>",
  "hq_city": "<hq_city>",
  "hq_country": "<hq_country>",
  "register_code": "<register_code>",
  "registration_number": "<registration_number>",
  "registration_status": "<registration_status>",
  "initial_registration_date": "<initial_registration_date>",
  "last_update_date": "<last_update_date>",
  "next_renewal_date": "<next_renewal_date>",
  "managing_lou": "<managing_lou>",
  "corroboration_level": "<corroboration_level>",
  "bic_codes": "<bic_codes>",
  "record_url": "<record_url>",
  "api_url": "<api_url>",
  "source_url": "<source_url>",
  "fetched_at": "2026-11-04T09:30:00Z",
  "actor_version": "0.1.1"
}
```

Free-text fields are cleaned before delivery: email addresses, phone numbers, @handles and person names introduced by words such as "contact", "recruiter", "founder" or "manager" are replaced with `[removed]`. The cleaning follows fixed rules, so a name written elsewhere in the text, or in lower case, can remain.

### What it does not do

- New registrations: the window filters on the day an LEI was first registered, not on its last update, so a run does not find records that only changed. Records come from GLEIF's API as of its last Golden Copy publication, which the answer names: the newest are some hours old.
- The register rule leaves records out: sole proprietors (GLEIF's category, also filtered by the API) and every legal form of a sole trader or a partnership, in any language and script (general and limited partnerships, GmbH & Co. KG, US and UK limited partnerships, sociétés civiles, Greek O.E. and E.E., Japanese gōmei and gōshi kaisha, Russian and Chinese individual entrepreneurs, French SLP and SCP, Austrian GesbR, Korean, Thai and Vietnamese partnerships; 591 of GLEIF's 3,599 ISO 20275 forms, listed in src/legal-forms.ts; a free-text form SLP is read as a partnership, also where it means a Spanish professional limited company). Single-owner company forms such as the Latin American Empresa Individual de Responsabilidad Limitada and Empresa Unipersonal are left out as sole traders too. Lithuanian small partnerships (MB) are left out as partnerships. Belgian farming companies (société agricole) and Belgian companies or associations without legal personality are left out as partnerships; North Macedonian branches of foreign companies are left out because their form code also holds branches of foreign individual traders (0 issued records on 20 Nov 2026). A Chinese name that ends in its partnership form, （有限合伙）, （普通合伙） or （特殊普通合伙） (also in traditional characters, in other brackets or none, before a place in brackets or a full stop), is left out whatever its form code, as many Chinese investment partnerships are filed under the generic enterprise form. Limited liability partnerships and partnerships limited by shares (KGaA, SCA) are companies and stay.
- Names are left out when the legal name or its Latin transliteration reads as a person's (the shared first-name list), has a title such as Mr, Dr, Sir, Docteur or Mme, is a UK first name and a surname before a company form (Gareth Evans Ltd), or names a person's or a family's trust or vehicle (Family Trust, Will Trust, Settlement, family foundation, Hindu Undivided Family, CRUT, SIPP, SSAS, super fund, a Russian ИП). In records without a specific legal form (ELF 8888 or 9999) and in trust, foundation, estate and pension forms (120 forms), initials (J W Smith, Smith G.J.), Lady or Lord and UK first names (from the ONS baby names) count too. So companies named after their founder (Andreas Roe GmbH), names with a first name or a title-like abbreviation (Nova Allestimenti S.R.L., MS Holding GmbH), a two-word brand that starts with a UK first name (India Example Ltd) and investment funds set up as limited partnerships are left out too. On 2,000 new LEIs of 5-18 Nov 2026, 1,504 would be delivered: 161 sole proprietors, 179 partnerships and 156 names were left out.
- A founder's name that is not exactly a UK first name and a surname before the company form is read as a company's and delivered: with a trade word (Gareth Evans Trading GmbH, Gareth Evans Consulting Ltd), with a middle initial (Gareth T Evans Ltd) or with the surname first (Evans Gareth Ltd).
- On the safe side, some organisations are left out too: US statutory and business trusts named after a firm (Morgan Stanley Capital I Trust), titles used as brands (Monsieur Bricolage SAS), trade words the lists do not know in other languages (Vardaan Vastgoed B.V.), companies named after their founder, investment funds set up as limited partnerships, a trust whose name has a single letter before a word (letter labels such as H Block or Q Street read like Trustees of J Smith; the article a is not read as an initial, so Trustees of A Smith is not caught this way), and Chinese law practices, whose form code also holds state-funded law firms.
- Names are checked with the shared first-name list (Norway and Finland from their statistics offices, Czech, English, Italian, French, Spanish, Portuguese, German, Polish and Dutch names written by hand) and, for records without a specific legal form, the UK first-name list; a first name on neither (Rajesh, Wei), and a name in another script without a Latin transliteration (Cyrillic, Greek, Chinese), is not known, so such a name can still be delivered.
- Addresses: city, region, postcode and country only; street lines and c/o lines are not returned, a city with a digit or a recipient (c/o, attn) is left empty, and a postcode needs a digit and at most 10 characters. Parent and child companies (GLEIF's relationship data) need one more request per record and are not read.
- Values are as the entity or its LEI issuer registered them: GLEIF does not guarantee that they are accurate or up to date.
- This Actor is not provided, supported or authorised by GLEIF, an LEI issuer or the Global LEI System, and is not associated with them. The LEI data is published under CC0 1.0.

### How much it costs

You pay per result delivered to the default dataset. Errors and empty results are written to a separate `errors` dataset and are never charged.

| Plan tier | Price per 1,000 results |
|---|---|
| Free and Bronze | USD 3.00 |
| Silver and above | USD 2.55 |

Example: a run that delivers 1,000 results costs USD 3.00 on the Free and Bronze tiers and USD 2.55 on Silver and above, plus the platform's start event of USD 0.00005. If you set a maximum cost per run, the Actor stops before it would go over it and delivers nothing it cannot charge for.

### Other Actors in this family

This Actor is part of a family of job and public-data scrapers built on the same core: one result per charge, a separate uncharged errors dataset, and no person fields. Links follow as the other Actors are published.

### FAQ and support

- **Is there personal data in the output?** No personal data by design. The output holds facts about legal entities from the Global LEI System. Sole proprietors are filtered out by the API, records with a sole trader's or a partnership's legal form are left out, and so are records whose legal name reads as a person's or names a person's trust. Street lines are never read. The run counts the records left out in one uncharged dropped item, never their names.
- **Is the data accurate?** The data comes from GLEIF's open LEI API as GLEIF publishes it. Accuracy is not guaranteed. Entities and their LEI issuers register the values, so a name, address or status can be out of date.
- **Who runs this Actor?** It is not affiliated with GLEIF (Global Legal Entity Identifier Foundation).
- **How is the data collected?** The official API or open data is used where the source offers it. This Actor uses only the official GLEIF (Global Legal Entity Identifier Foundation) API.
- **How do I get newly registered legal entities every day?** Schedule a daily run with new_since_last_run on, registered_after empty and your countries. Each run reads at least the last 7 days and delivers and charges only LEIs you have not had for the same countries and categories.
- **Why is an entity I know missing?** Sole traders, partnerships and records whose legal name reads as a person's are left out by the register rule, also when the entity is a company named after its founder. The run counts them in one uncharged dropped item. An entity is also missing when its LEI was first registered before your window.
- **Do I need an API key?** No. GLEIF's LEI API is open and needs no login and no key. GLEIF allows 60 requests a minute; this Actor sends at most 30.
- **Can I use the data commercially?** GLEIF publishes the LEI data under CC0 1.0. Its terms of use ask users not to give the impression that their products are provided, supported or authorised by GLEIF or associated with it, and name liquidated damages for a breach. This Actor is not affiliated with GLEIF. This is an open reading, not a legal opinion.
- **What may I do with the data?** You are responsible for complying with the law and with the source's terms when you use the data.
- **Something is broken.** Open an issue on the Issues tab with the run link and your input. Issues are answered by the automated maintainer.

# Changelog

This Actor's version history is a separate document: https://apify.com/plain-build/gleif-lei-records-scraper/changelog.md

# Actor input Schema

## `registered_after` (type: `string`):

Date as YYYY-MM-DD, at most 366 days back (30 days with new_since_last_run on). GLEIF filters on the day an LEI was first registered. Leave empty for the last 7 days.

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

Two-letter ISO country codes of the legal address, for example DE or GB. Leave empty for every country.

## `categories` (type: `array`):

GLEIF's entity categories: GENERAL (companies and most other entities), FUND, BRANCH, RESIDENT_GOVERNMENT_ENTITY or INTERNATIONAL_ORGANIZATION. Leave empty for all of them. Sole proprietors are never delivered.

## `new_since_last_run` (type: `boolean`):

Deliver and charge only LEI records this Actor has not delivered to you before for the same countries and categories. A record held back by Maximum results or your spending limit comes in a later run, after all newer records (the API reads newest first); after 30 days it is no longer read, and the run says so in an uncharged error item. Delivered records are remembered in a key-value store named gleif-lei-records-scraper-state in your account.

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

How many results to return at most. You pay per result delivered.

## Actor input object example

```json
{
  "registered_after": "",
  "countries": [
    "DE"
  ],
  "categories": [],
  "new_since_last_run": false,
  "max_items": 25
}
```

# Actor output Schema

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

One item per lei record.

## `errors` (type: `string`):

Records that could not be delivered, and queries with no results. Not charged.

# 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 = {
    "countries": [
        "DE"
    ],
    "max_items": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("plain-build/gleif-lei-records-scraper").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 = {
    "countries": ["DE"],
    "max_items": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("plain-build/gleif-lei-records-scraper").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 '{
  "countries": [
    "DE"
  ],
  "max_items": 25
}' |
apify call plain-build/gleif-lei-records-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,plain-build/gleif-lei-records-scraper"
        }
    }
}
```

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/HXslTCUPty5YLnIbI/builds/WmRfZpDTAdJXqok03/openapi.json
