LEI, CIK or Wikidata ID: which company identifier?
A practical guide for agents and developers: what LEIs, SEC CIKs and Wikidata IDs identify, who issues them, how to resolve each, and when to link them.
Overview
Use the LEI to identify a legal entity anywhere in the world, the SEC CIK to find a filer’s records in EDGAR, and a Wikidata ID to reach a community-maintained description that can corroborate a value but not prove it. Link two identifiers only when a primary record names both of them.
Key points
- An LEI is a 20-character ISO 17442 code from the global LEI system; a CIK is a 10-digit number the US SEC assigns to filers; a Wikidata ID (QID) labels an item in a community-edited knowledge base.
- Each answers a different question, so a good agent keeps them apart and records which one each value came from.
- Wikidata stores LEIs under property P1278 and CIKs under P5531, which makes it a useful lead. Community data should corroborate a value, not prove it.
- Join an LEI and a CIK only when a primary record names both. In our tests, Apple’s LEI record and SEC record did not name each other, so they were kept apart.
Ask an AI agent about a company and it will usually reach for a name. Names are where identity goes wrong: they change, they repeat, and they are spelt differently in every system. Identifiers fix that, but only if the agent knows which identifier answers which question. Here are the three an agent meets most often when it researches companies, and the rule for linking them.
The three identifiers at a glance
| Identifier | Issued by | Format | What it identifies | Access |
|---|---|---|---|---|
| LEI | The global LEI system, overseen by GLEIF | 20 characters, ISO 17442 | A legal entity, anywhere in the world | Free; published under CC0 |
| SEC CIK | The US Securities and Exchange Commission | 10 digits with leading zeros | A person or company that files with the SEC | Free; no key; fair-access rate limits |
| Wikidata ID (QID) | Wikidata, a community-edited knowledge base | “Q” followed by digits | An item, which may describe a company | Free; structured data under CC0 |
They overlap, but they are not interchangeable. A company can have an LEI and no CIK (most companies outside the US securities markets), a CIK and no LEI, or both. A Wikidata item can exist for any of them, and its claims are only as good as the edits behind them.
When to use which
- “Which legal entity is this?” Start with the LEI. Its record gives the legal name, the jurisdiction the entity was formed in, its legal form and, for nearly every entity, its parents.
- “What has this company filed?” Use the CIK. The SEC’s data APIs need no authentication or key, update throughout the day as filings are disseminated, and address companies by the 10-digit CIK, for example
https://data.sec.gov/submissions/CIK0000320193.json. The SEC asks automated clients to declare a user agent and to stay under 10 requests a second. - “What else is known, and does anyone disagree?” Use the Wikidata item. It is a fast way to find candidate identifiers: it stores LEIs under property P1278 and CIKs under property P5531. Treat what it says as corroboration, not proof.
Can you link them?
Only when a primary record names both. This is the rule that separates a careful agent from a confident one.
In IKAG’s tests on captured public records, Apple’s LEI record and its SEC record did not name each other. Wikidata linked them, but Wikidata is community data, so the capability kept the two identifiers apart and said why. The SPDR S&P 500 ETF Trust was different: its LEI record names its CIK, so the two could be joined on the strength of a primary record.
| Situation | Join them? | Why |
|---|---|---|
| A primary record names both identifiers | Yes | The issuer of the record made the link |
| Only a community source links them | No, not yet | A lead to confirm, not a fact |
| The names match | No | Different entities often share names |
Pitfalls that produce wrong answers
- Unpadded CIKs. “320193” and “0000320193” are the same CIK, but the SEC’s APIs expect the ten-digit form.
- Names as identifiers. A name search returns candidates. In one of our tests, a fund’s name matched three entities in the LEI register, one of them inactive.
- Lapsed is not closed. A lapsed LEI means the registration was not renewed, not that the company stopped operating.
- Silent conflicts. When sources disagree, the conflict is the answer. Report both values and their records rather than picking one quietly.
What an agent should return
For each identifier it uses, an agent should say where it came from: the issuing source, the record, and whether a primary record or only a community source supports any link to another identifier. That small amount of bookkeeping is what lets a reader, or another agent, check the answer in seconds instead of starting again.
Questions
Which identifier should an agent prefer?
The one issued by the authority for the question. For “which legal entity is this?”, the LEI. For “what has this company filed with the SEC?”, the CIK. Wikidata is best used to find candidates and to check agreement.
Why does a CIK sometimes have leading zeros?
The SEC’s data APIs address companies by a 10-digit CIK with leading zeros, for example 0000320193 for Apple Inc. Pad shorter numbers to ten digits before you build a request.
Is Wikidata reliable enough to link identifiers?
It is a good lead and often right, but anyone can edit it. Use it to find a candidate link, then confirm the link in a primary record before you treat two identifiers as the same company.
Can one company have several LEIs?
A legal entity should have one LEI, but a corporate group has one per legal entity. A parent, its subsidiaries and its funds each have their own, linked through parent relationships in the LEI data.
Sources
- GLEIF: Introducing the Legal Entity Identifier
- SEC: EDGAR application programming interfaces
- SEC: Accessing EDGAR data (fair access)
- Wikidata: property P1278, Legal Entity Identifier
- Wikidata: property P5531, Central Index Key
- Wikidata: licensing (structured data under CC0)
- GLEIF: LEI data terms of use (CC0)
Share this article