LEI lookup API: find a Legal Entity Identifier by ticker, CIK or name
Look up Legal Entity Identifiers from the GLEIF Golden Copy by ticker, CIK, name or LEI, see the SEC company behind an LEI, and walk from a subsidiary to its direct and ultimate parent.
The Legal Entity Identifier (LEI) is the 20 character code that regulators ask for in trade, fund and swap reporting. GLEIF publishes every LEI as a free bulk file. The /v1/lei endpoint loads that file and adds the link back to SEC filers, so you can go from a ticker to an LEI and from an LEI to a CIK in one call.
Setup
import os
import requests
H = {"Authorization": "Bearer " + os.environ["SECFEED_KEY"]}
BASE = "https://secfeedapi.com/v1"
Ticker to LEI
e = requests.get(BASE + "/lei", headers=H, params={"ticker": "MSFT"}).json()["entities"][0]
print(e["lei"], e["name"], e["status"], e["jurisdiction"])
print(e["sec"])
Output from a real run:
INR2EJN1ERAN0W5ZP974 MICROSOFT CORPORATION ACTIVE US-WA
{'cik': '0000789019', 'ticker': 'MSFT', 'match': 'exact_name'}
The same call works with cik=789019 or lei=INR2EJN1ERAN0W5ZP974. Each record also has the legal and headquarters address, the registration status, the legal form code and the business registry id.
Search by name
name is a prefix search (3 letters or more), optionally narrowed with country:
r = requests.get(BASE + "/lei", headers=H, params={"name": "linkedin", "size": 3}).json()
for e in r["entities"]:
print(e["lei"], e["name"], e["jurisdiction"])
5493001S6ND3ULAKYF67 LINKEDIN CORPORATION US-DE
3358001LCKTSYRV9ZF75 LINKEDIN INDIA SALES PRIVATE LIMITED IN
549300RZ6VN2Y8WIYZ07 LINKEDIN IRELAND UNLIMITED COMPANY IE
From a subsidiary to its parent
GLEIF also publishes which entity consolidates which. /v1/lei/parents returns the direct and the ultimate parent, each with its SEC link when it has one:
p = requests.get(BASE + "/lei/parents", headers=H, params={"lei": "549300RZ6VN2Y8WIYZ07"}).json()
for k in ("directParent", "ultimateParent"):
x = p[k]
print(k, x["lei"], x["name"], x.get("sec", {}).get("ticker"))
directParent INR2EJN1ERAN0W5ZP974 MICROSOFT CORPORATION MSFT
ultimateParent INR2EJN1ERAN0W5ZP974 MICROSOFT CORPORATION MSFT
So an Irish entity in a counterparty file resolves to a US listed parent, with its CIK and ticker, in two calls.
What to keep in mind
- The SEC link is an exact match on the normalised legal name (
match: exact_name). A company whose LEI record uses a different legal name than its SEC filings gets no link, and/v1/lei?ticker=answers with no result. - A top level company returns
nullfor both parents. An entity can also report an exception to GLEIF instead of naming a parent, so anullparent does not always mean there is none. - Sole proprietors are not included, and there is no full list download: look entities up one query at a time.
- Source: GLEIF Golden Copy, released under CC0.