LEI check
Check the length and check digits of a Legal Entity Identifier (ISO 17442).
- Version 1
- Checked against 1 published value
- Free, no sign-up
Examples
Example: A well-formed LEI
| Valid Whether the LEI passes every check. |
yes |
|---|---|
| Normalized The number as it was checked: separators removed, letters in upper case. |
5493001KJTIIGC8Y1R12 |
| Message The result in a sentence, naming the rule that failed. |
A well-formed LEI. |
| Lou prefix The first four characters: the prefix of the issuing organisation (LOU). |
5493 |
| Check digits The last two characters. |
12 |
| Expected check digits The check digits the first 18 characters give. |
12 |
Calculator check/lei@1.
How it is calculated
read A as 10 … Z as 35; the whole number must leave remainder 1 when divided by 97; check digits = 98 − (first 18 characters + 00) mod 97Checks a Legal Entity Identifier as ISO 17442 defines it: 20 letters and digits, the last two being check digits worked out with MOD 97-10. The first four characters identify the organisation that issued the LEI.
- The number is checked by arithmetic alone. Nothing is looked up, so a valid result means the number is well formed, not that the account, company or security exists.
- Whether an LEI is issued and current is in GLEIF's public database, which is not consulted.
References
Results follow each calculator's documented rules and the sources listed. They are not financial, tax or legal advice. Check that the rules fit your case before you rely on a result. See the terms.
Use it from your code
curl https://api.curatedapi.com/v1/calc/check/lei \
-H "Authorization: Bearer $CURATEDAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"number": "5493001KJTIIGC8Y1R12"
}'
The same call in Python
import os
import requests
payload = {
"number": "5493001KJTIIGC8Y1R12",
}
response = requests.post(
"https://api.curatedapi.com/v1/calc/check/lei",
headers={"Authorization": f"Bearer {os.environ['CURATEDAPI_KEY']}"},
json=payload,
timeout=10,
)
print(response.json()["result"])
The same call in JavaScript
const payload = {
"number": "5493001KJTIIGC8Y1R12",
};
const response = await fetch("https://api.curatedapi.com/v1/calc/check/lei", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.CURATEDAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify(payload),
});
console.log((await response.json()).result);
MCP tool calc_check_lei at https://mcp.curatedapi.com.
Inputs, outputs and errors in the API reference.
Put it on your website
<div data-curatedapi-widget="check/lei" data-key="capi_public_…"></div>
<script src="https://widgets.curatedapi.com/v1/widget.js" async></script>
Use a public key registered for your site. Calculations are billed like API calls. How widgets work.
Related calculators
- Australian Business Number (ABN) check
- BIC (SWIFT code) check
- CUSIP check
- GSTIN check (India)
- IBAN check
- ISIN check
- PAN check (India)
- US bank routing number check
- VAT number check
Add this calculator to your website
Paste two lines into your page and your visitors get this calculator. Each use counts as one call on your plan, the same as the API.
Free for up to 1,000 uses a month. 50,000 uses a month cost $9.00 on the Starter plan.