Looking up Legal Entity Identifiers by API
The official LEI lookup API is GLEIF's: api.gleif.org/api/v1/lei-records/{LEI} returns the legal name, addresses, status and renewal dates for free, with no key, and the data is CC0. Parent companies come from separate links for the direct and top-level parent, and you can search by name with a filter. Our LEI Lookup API combines record, parents and check-digit validation in one answer for $0.003 per call.
Try it free LEI Lookup API — company records from GLEIF, $0.003 · $0.003 / call
GLEIF directly
import requests
BASE = "https://api.gleif.org/api/v1/lei-records"
lei = "5493001KJTIIGC8Y1R12"
rec = requests.get(f"{BASE}/{lei}", timeout=10).json()["data"]["attributes"]
print(rec["entity"]["legalName"]["name"], rec["registration"]["status"])
# Parents are separate requests; no data back means none was reported
parent = requests.get(f"{BASE}/{lei}/ultimate-parent", timeout=10)
# Search by name
hits = requests.get(BASE, params={"filter[entity.legalName]": "Bloomberg Finance"}).json()["data"]
Check the LEI before you look it up
An LEI is 20 characters: 18 letters or digits and 2 check digits (ISO 17442). Turn letters into numbers (A=10 ... Z=35), read the whole thing as one big number, and it must leave a remainder of 1 when divided by 97. That catches almost every typo and swapped pair of characters before you spend a request on it. Our API runs this check first and refuses a bad LEI without charging.
Reading the status fields
- Entity status ACTIVE or INACTIVE describes the company itself.
- Registration status ISSUED means the LEI is current. LAPSED means it wasn't renewed; the company may still trade, but many regulated counterparties won't accept it until it is renewed.
- next_renewal is when the yearly renewal is due.
- Corroboration level tells you how the issuer checked the data against official registers.
What the one-call version adds
Record, direct parent and top-level parent come back together, with legal name, other names, legal form, jurisdiction, legal and head-office addresses, BICs and registration dates in flat fields. Name search returns up to 50 matches with status and city. It costs $0.003 per call; GLEIF itself stays free if you'd rather make the three requests yourself.
curl -i -X POST https://iamai.markets/api/x402/services/T5FE7HZUr6nI \
-H "Content-Type: application/json" \
-d '{"lei": "5493001KJTIIGC8Y1R12"}'
# Or by name: {"name": "Bloomberg Finance", "limit": 10}
The product
Questions
Is LEI data free to use commercially?
Yes. GLEIF publishes the Global LEI Index under CC0.
How do I find a company's LEI if I only know its name?
Search by legal name. Check the country and city in each result, because group companies often have similar names.
Why does a parent show as empty?
Companies report parents themselves. If none was reported, or the parent has no LEI, the field is empty.
Related
Updated 2026-12-02
