To use the Legal Entity Identifier to link company records across datasets, match each record to its LEI once, store the LEI beside your own record key and join every dataset on it. Match on the business register and registration number first, then on legal name and country, and use GLEIF relationship records to roll subsidiaries up to their parents.
This guide sets out the GLEIF sources behind each step, the API calls that run them, a worked match on an illustrative company and the coverage and quality limits to check before a join is trusted. Every GLEIF page and API response cited here was read on 15 November 2026.
How do you use the Legal Entity Identifier to link company records across datasets?
An LEI is a 20-character code that names one legal entity, so two datasets that both carry it join without guessing from names. When a dataset does not carry it, the work is entity resolution: find the right LEI for each record, keep the evidence for the match, then join and roll up.
The code follows ISO 17442. GLEIF describes the LEI as a unique 20-character alphanumeric code, and the ISO technical committee for financial services, TC 68, sets out its form: 18 alphanumeric characters followed by two numeric check digits calculated under ISO/IEC 7064 (MOD 97-10).

The method runs in five steps:
- Validate any LEI a dataset already holds: 20 characters, check digits that pass and a record that exists in GLEIF.
- Match records without an LEI on the register and registration number, then on legal name and country.
- Store the LEI, the basis of the match and its date in a bridge table keyed on your own record ID.
- Read the Level 2 relationship records to find each entity's direct and ultimate parent.
- Join on the entity's LEI for entity-level figures, or on the ultimate parent's LEI for group totals.
Where is the GLEIF LEI search API documentation?
The GLEIF API documentation sits at api.gleif.org/docs, which on 15 November 2026 redirected to a reference hosted on Postman. GLEIF's API page adds a demo application and says the API is built on the GLEIF Golden Copy, with filters, full-text and single-field searches and fuzzy matching.
The same page lists lookups by mapped identifiers such as BIC and ISIN, and dates the production release to autumn 2020. The GLEIF Level 2 page says anyone can search the full LEI data pool free of charge and without registration, and every call in this guide ran without a key.
The paths below are the ones this guide uses, all under api.gleif.org/api/v1. Each returns JSON, and each response we read named the Golden Copy publish time it was served from.
| Path | What it returns |
|---|---|
/lei-records?filter[entity.legalName]=...&filter[entity.legalAddress.country]=... | LEI records that match the field filters, 15 to a page by default |
/lei-records?filter[entity.registeredAs]=... | Records that carry a given registration number |
/fuzzycompletions?field=entity.legalName&q=... | Near matches on a name, each linked to its LEI record |
/lei-records/{lei} | One full Level 1 record |
/lei-records/{lei}/direct-parent-relationship | The relationship record to the direct parent |
/lei-records/{lei}/ultimate-parent | The Level 1 record of the ultimate parent |
/lei-records/{lei}/ultimate-parent-reporting-exception | The reason no ultimate parent is reported |
/lei-records/{lei}/direct-children | The direct children, paged with page[size] |
/lei-records/{lei}/isins | The ISINs mapped to the entity |
How do you match a company record to an LEI?
Match a company record to an LEI in order of strength: the business register and registration number first, then the exact registered legal name with the country, then a fuzzy name search whose hits go to review. Record the basis of each match, because a register match and a name match deserve different levels of trust.
Registration number and register
Each Level 1 record we read carries registeredAt, a register code, and registeredAs, the entity's number in that register. The codes come from the GLEIF Registration Authorities List. GLEIF published version 1.9 of the list in September 2026, and it covers almost 1,200 business registers and other authorities in more than 230 jurisdictions.
A number on its own is half a key. A search for HRB 6684 among German records returned two entities on 15 November 2026: Siemens Aktiengesellschaft under register RA000304 and DR Holding GmbH under RA000325. Match the register code and the number as a pair.
https://api.gleif.org/api/v1/lei-records?filter[entity.registeredAs]=HRB%206684&filter[entity.legalAddress.country]=DELegal name and country
GLEIF's Level 1 page defines the legal name as the official name recorded in the official registers, so a trading name or a short form can miss. A legal-name filter for "Siemens AG" in Germany returned four records, among them Siemens Healthineers AG and Siemens Energy AG, and none of the four was the parent company.
The full registered name, Siemens Aktiengesellschaft, returned one record, with the LEI W38RGI023J3WT1HWRP32. Expand legal-form abbreviations before you search, or compare the legal form code each record carries (6QQB on that record) in place of the suffix. For names registered in another script, the records also hold otherNames and transliteratedOtherNames.
https://api.gleif.org/api/v1/lei-records?filter[entity.legalName]=Siemens%20AG&filter[entity.legalAddress.country]=DE
https://api.gleif.org/api/v1/lei-records?filter[entity.legalName]=Siemens%20Aktiengesellschaft&filter[entity.legalAddress.country]=DEFuzzy search, for review only
The fuzzycompletions call returns near matches on a name, each linked to an LEI record. For "Siemens AG" its first two suggestions were SIEMENS AS and Siemens Aktiebolag, so a fuzzy hit is a candidate for a person or a stricter rule to confirm.
https://api.gleif.org/api/v1/fuzzycompletions?field=entity.legalName&q=Siemens%20AGHow do GLEIF Level 1 data and Level 2 relationship records work in the API?
GLEIF Level 1 data answers who is who: each entity's registered legal name, registered address, country of formation and registration details. Level 2 data answers who owns whom: each entity's direct and ultimate accounting consolidating parent, served by the API as LEI relationship records, or as a reporting exception that gives the reason no parent is reported.

GLEIF's Level 2 page says the principles were set in a Regulatory Oversight Committee policy of March 2016. When a parent has an LEI, the link shows on the child's record and on the parent's.
The relationship record linking De Novo Software, LLC to Siemens Aktiengesellschaft, read on 15 November 2026, held a type, IS_DIRECTLY_CONSOLIDATED_BY, a status, ACTIVE, the child and parent LEIs, an accounting period, a relationship period and a corroboration level of FULLY_CORROBORATED resting on an accounts filing.
Where no parent is reported, the API returns a reporting exception. The ultimate parent exception for Siemens Aktiengesellschaft gave the reason NO_KNOWN_PERSON. The Fokals guide to linking brands and subsidiaries to a listed parent lists the reasons and compares the LEI relationship records with other ownership sources.
Rolling subsidiaries up to their parents
To roll up, walk upward from each matched record with the ultimate-parent call, then use the children lists to check what the walk missed. Children lists can be long: Siemens Aktiengesellschaft had 462 direct children on 15 November 2026, served 15 to a page unless page[size] asks for more.
https://api.gleif.org/api/v1/lei-records/529900YQP0HHGTCX1K98/direct-parent-relationship
https://api.gleif.org/api/v1/lei-records/W38RGI023J3WT1HWRP32/ultimate-parent-reporting-exception
https://api.gleif.org/api/v1/lei-records/W38RGI023J3WT1HWRP32/direct-children?page[size]=100Date each link. A relationship record carries its own dates and periods, so a bridge table used for back-tests should hold the dates a link was in force and the date you read it.
How do you check GLEIF LEI data quality before a join?
Check GLEIF data quality at two levels before a join. For the system as a whole, GLEIF publishes a monthly Global LEI Data Quality Report and a report for each LEI issuer. For each record, read the registration status, next renewal date, corroboration level and Policy Conformity Flag that the API returns.
The GLEIF data quality reports page lists a Total Data Quality Score per country and the top five failing checks among the contents of each report. The latest report listed on 15 November 2026 covered October 2026.
The Policy Conformity Flag marks a record as conforming when its registration is current and its parents are reported, or an acceptable reason is given. GLEIF states its limit plainly: "The Policy Conformity Flag is not a data quality indicator."
Run the fields below, taken from the records we read, as a per-record test before a match drives a join.
| Field in the API | What to check |
|---|---|
registration.status | ISSUED, the value on the current records we read |
registration.nextRenewalDate | A date in the future |
registration.corroborationLevel | FULLY_CORROBORATED |
registration.validatedAs | Agrees with registeredAs |
entity.status | ACTIVE |
conformityFlag | CONFORMING |
entity.successorEntity | Empty, or a successor to follow |
A worked example: matching Acme Robotics records to LEIs
Assumptions: Acme Robotics is an invented company and every name, register code, number, LEI and count below is illustrative. Its records sit in the three datasets in the table, and GLEIF returns the candidates described in each step.
| Dataset | Record as held | Keys it carries |
|---|---|---|
| CRM | Acme Robotics Inc, United States, acmerobotics.example | Name, country, domain |
| Supplier file | ACME ROBOTICS, INC., register RA-X, number 7700123 | Register, number, name |
| Job postings | acmerobotics.example, 30 open postings | Domain |
- The register match. Number 7700123 in the United States returns two records under different registers. Only Acme Robotics, Inc. (LEI A) sits under RA-X, so the supplier record takes LEI A.
- The name match. The name filter returns Acme Robotics, Inc. (LEI A), Acme Robotics Holdings, Inc. (LEI B) and Acme Robotics Services LLC (LEI C). Only LEI A matches the full name and legal form, and it agrees with the register match, so the CRM record takes LEI A.
- The domain. The Level 1 records we read carry no website field, so the job postings reach LEI A through the domain on the CRM account. A second account, Acme Robotics Services LLC with 12 open postings, matches LEI C the same way.
- The parent. LEI A and LEI C each have a direct parent relationship to LEI B, type
IS_DIRECTLY_CONSOLIDATED_BY. LEI B returns an ultimate parent reporting exception, so LEI B is the top of the group. - The roll-up. Joined on the entity LEI, LEI A shows 30 open postings. Joined on the ultimate parent, the group shows 30 plus 12, or 42.
| Source record | LEI | Match basis | Ultimate parent |
|---|---|---|---|
| Supplier file, 7700123 | LEI A | Register and number | LEI B |
| CRM, Acme Robotics Inc | LEI A | Name, legal form and country, agreeing with the register | LEI B |
| Job postings, acmerobotics.example | LEI A | Domain through the CRM account | LEI B |
The rule of thumb: accept a match without review when the register and number match as a pair, or when two independent bases agree, and send every fuzzy hit to review. The Fokals guide to the identifiers that make company data joinable sets out the same order: identifiers first, then domain, then name and country last.

LEI linking best practices for company identifiers across datasets
The best practices for linking datasets on LEIs come down to keeping every match explainable and dated. Validate the code, match on register and number before name, store the basis and date of each match, read parents from relationship records and keep unmatched records visible so that coverage can be reported.
- Store the LEI as 20 upper-case characters and test the check digits before any lookup.
- Keep the match basis, the Golden Copy publish time and the date read on every bridge row.
- Give each row the dates the link was in force, taken from the relationship record.
- Rerun the per-record quality test at each refresh.
- Report the share of records matched on each basis and the share left unmatched.
What an LEI cannot link
An LEI links only legal entities that have registered for one. A brand, a website or a trading name has no LEI of its own and reaches one only through the entity that owns it.
Level 2 records show accounting consolidation, so a stake the holder does not consolidate is absent. Ownership below that line needs another source, such as the SEC subsidiary lists the Fokals parent-linking guide compares.
The daily ISIN-to-LEI relationship files, started by GLEIF and ANNA as a pilot in April 2019, link newly issued ISINs from the numbering agencies taking part, out of 116 that issue ISINs. GLEIF states plans to extend them to legacy ISINs, so a mapping for an older security may be missing.
GLEIF's LEI Data Terms of Use say the data are provided under the CC0 licence, with conditions of use of their own. The Fokals review of open company data for commercial use reads those terms beside other open sources. That is general information, and product questions belong with your counsel.

Where Fokals company data fits
Fokals sells firmographic, technographic, hiring and intent data on public and private companies worldwide, refreshed daily and delivered by REST API or as bulk files. The Fokals datasets carry a stable company ID on every company row, the same in every dataset.
A listed company carries its ticker, MIC, ISIN, LEI and share-class FIGI, and its SEC CIK where it has one. A brand or subsidiary carries the identifiers of its listed parent, so a brand or subsidiary in Fokals data reaches the parent's LEI without a second match on your side.
Frequently asked questions
Is the GLEIF API free to use?
GLEIF says anyone can search the full LEI data pool free of charge and without registration, and every call in this guide ran without a key on 15 November 2026. GLEIF's LEI Data Terms of Use, read on 15 November 2026, say the data are provided under the CC0 licence and add conditions of use of their own. Read the terms on GLEIF's own page before you build on them, and take questions about a specific product to your counsel.
Can one company have more than one LEI?
GLEIF states that every LEI is unique and can represent only one entity. A group is a different matter, because each legal entity in it can hold its own LEI. Siemens Aktiengesellschaft had 462 direct children with LEIs in GLEIF on 15 November 2026, so a group total comes from rolling those entities up through their Level 2 records.
Should datasets be joined on the LEI or on the ISIN?
Join on the LEI when the data describes a legal entity, and on the ISIN when it describes a security. The LEI names the issuer and the ISIN names one instrument, so one LEI can map to several ISINs: Siemens Aktiengesellschaft had four ISINs mapped to its LEI on 15 November 2026. The GLEIF mapping files and the isins call move a record between the two.
How often should a bridge table be checked against GLEIF?
Each API response we read names the Golden Copy publish time it was served from, and the ISIN-to-LEI files are published daily, so a bridge table can be checked as often as your joins need. Store the publish time with each match. When a registration is not renewed, a parent changes or an entity merges, the stored time shows which version of the record a past join used.
What does a reporting exception mean for a roll-up?
A reporting exception means the entity gave a reason in place of naming a parent. The roll-up stops at that entity, which becomes the top of its group in your bridge table. Keep the reason on the row, since a stated reason tells you something about the entity, while a missing parent with no reason is a gap to report in your coverage figures.
How do you match a company registered in a non-Latin script?
The Level 1 records we read hold the legal name with a language code, plus fields for other names and transliterated other names. Compare your record with the transliterated forms as well as the legal name. Where your record carries a registration number, match the register code and number as a pair, since neither depends on the script of the name.
The queries and code on this page are examples to adapt. Test them in your own environment before you rely on them.
What this page says about the products it names was checked against their public documentation on 16 November 2026. Product and company names are trademarks of their owners. Fokals is not affiliated with them or endorsed by them.