Check the setup
- Python 3.10 or newer
- A notebook environment such as Jupyter or Google Colab
- An internet connection
Global legal-entity identifiers and reference data for building company lookup, ownership, and sanctions-screening tools.
From source to product signal
GLEIF publishes Legal Entity Identifiers and reference data under CC0. Start with one known LEI rather than the concatenated golden copy. LEI coverage is not universal, reference data can lag the entity's own filings, and an LEI is not a credit, sanctions, or beneficial-ownership decision.
Install the packages, then run the notebook cell.
python -m pip install pandas requests
import pandas as pd
import requests
response = requests.get(
"https://api.gleif.org/api/v1/lei-records",
params={"filter[lei]": "5493001KJTIIGC8Y1R12"},
headers={"Accept": "application/vnd.api+json"},
timeout=30,
)
response.raise_for_status()
records = pd.json_normalize(response.json()["data"])
print(records.filter(regex="id|legalName|jurisdiction|status").head())Test a useful signal
Test whether GLEIF can power a company-identity card from a single identifier.
Global Legal Entity Identifier Foundation is a nonprofit source. Last verified 2026-08-18. Temporal coverage: current LEI records with daily golden copies.