LEI entity search
Legal entities in the global LEI register (GLEIF): search any text or the legal name, and filter by legal-address or headquarters country, jurisdiction, city, entity status, registration status, category, legal form (ELF code), registry number, BIC or ISIN. Each result has LEI, names, status, category, legal form, jurisdiction, registry and number, creation date, legal and headquarters addresses, registration dates and status and BIC codes. Pass next_page back as page; null on the last page.
Every response includes credits_used: the credits this call cost.
Parameters
| name | type | description |
|---|---|---|
q | string | Any text (names, addresses, ids). Optional when a filter is given. Example: apple |
name | string | Legal name (exact words). |
country | string | Legal-address country, 2-letter ISO code. Example: US |
hq_country | string | Headquarters country, 2-letter ISO code. |
jurisdiction | string | Jurisdiction, ISO code such as US-DE or GB. |
city | string | Legal-address city. |
status | active | inactive | Entity status. Example: active |
registration_status | issued | lapsed | pending_transfer | pending_archival | retired | merged | annulled | duplicate | transferred | pending_validation | cancelled | LEI registration status. |
category | general | branch | fund | sole_proprietor | international_organization | residentgovernmententity | Entity category. |
legal_form | string | ELF legal form code (4 characters). |
registered_as | string | Number in the local business register. |
bic | string | BIC (8 or 11 characters). |
isin | string | ISIN (12 characters): the issuer of that security. |
sort | name | -name | created | -created | registered | -registered | updated | -updated | Sort order (default relevance). |
limit | integer | Results per page, 1-200. Example: 50 |
page | integer | Page number, starting at 1. Pass next_page back as page; it is null on the last page. Example: 1 |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/gleif/v1/search?q=apple" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/gleif/v1/search",
params={"q": "apple"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/gleif/v1/search");
url.searchParams.set("q", "apple");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).