GLEIF Entity Resolver avatar

GLEIF Entity Resolver

Pricing

from $50.00 / 1,000 entity resolveds

Go to Apify Store
GLEIF Entity Resolver

GLEIF Entity Resolver

Resolves legal company names or LEI codes to GLEIF records in bulk: LEI, legal name, legal form, registered address, entity status and registration status, with punctuation-tolerant name matching.

Pricing

from $50.00 / 1,000 entity resolveds

Rating

0.0

(0)

Developer

Jason Ramirez

Jason Ramirez

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a day ago

Last modified

Categories

Features

Limited permissions

Share

GLEIF Company Entity Resolver

An Apify Actor for compliance, KYC, and finance-data teams resolving counterparties in bulk. It accepts legal names or LEI codes and writes one dataset item per input. It uses the public GLEIF API at https://api.gleif.org/api/v1, with no API key configured.

API endpoint behavior and payload shapes are based on BRIEF.md and synthetic fixtures. Live API compatibility has not been verified in this build.

Input

{
"companies": [
{ "value": "Example Holdings Ltd", "country": "GB" },
{ "value": "529900T8BM49AURSDO55" }
],
"includeCandidates": true
}

The examples are illustrative, not verified entity identities. Supply 1 to 500 company objects. Country is optional and must be a two-letter code; it filters name searches only. Names are trimmed and repeated whitespace is collapsed. LEI detection checks 20-character ISO 17442 format, including two trailing numeric check digits; it does not validate the checksum. Lowercase LEI input is normalized to uppercase. includeCandidates defaults to true. Invalid company entries yield individual error items; an invalid top-level input stops the run before requests.

Matching rules

  • exact: a direct LEI lookup returned an identifiable record, or one legal name matched case-insensitively after whitespace normalization. Exact name equality does not establish that this is the intended counterparty.
  • top-candidate: a name search returned only one identifiable, nonexact candidate. This is a suggestion, never a certain match.
  • ambiguous: more than one exact name, or more than one nonexact candidate in the returned page. All multiple nonexact results are conservatively considered close enough to require review. No primary entity is selected; entity fields are null or empty. Candidates remain in API order, with exact names promoted first, up to five. Setting includeCandidates false hides the list but preserves ambiguity.
  • not-found: no identifiable result, including a direct LEI lookup returning HTTP 404. API and input failures also use this matchType with an error field; consumers must inspect error before interpreting an item as a clean miss.

Search requests ask for five results. Ranking prefers exact legal names and otherwise preserves GLEIF ordering. It performs no additional fuzzy scoring or pagination. Ambiguous and clean not-found outcomes are normal outputs, not errors.

Output

FieldShape and meaning
inputOriginal company object
inputTypelei or name; null if input normalization failed
matchTypeexact, top-candidate, ambiguous, or not-found
leiSelected record identifier or null
legalNameLegal name or null
otherNamesUp to three alternative name strings; empty when absent
legalFormLegal form identifier, falling back to free text; null if absent
registeredAt{ locality, country } from legal address, each nullable
entityStatusEntity status or null
registrationStatusLEI registration status or null
registrationAuthorityEntity registered-at authority identifier or null
initialRegistrationDateRegistration timestamp string or null
lastUpdateDateUpdate timestamp string or null
nextRenewalDateRenewal timestamp string or null
managingLouManaging LOU identifier or null
candidatesOnly for ambiguous outcomes when enabled: up to five { lei, legalName, country } objects
resolvedAtProcessing timestamp in ISO format, including misses and failures
errorPresent on individual failures; message string

Missing scalar fields become null. Missing alternative names become an empty array. Results are written sequentially. Individual HTTP, fetch, JSON, and company-validation failures are isolated. Dataset or key-value storage failures stop the run rather than silently losing results.

LAST_RUN_SUMMARY stores { runAt, inputsRequested, resolved, ambiguous, notFound, failed }. Counts are mutually exclusive: resolved includes exact and top-candidate items; failed includes error items and excludes them from notFound. runAt is the start timestamp. The summary is written after all dataset writes complete.

Limits

GLEIF covers LEI-registered entities only. According to the supplied product brief, a not-found usually means the company has no LEI; this is an asserted coverage expectation, not a verified diagnosis of any company. Spelling, filters, and returned-page coverage can also affect results. Review suggested and ambiguous matches before using them.

Requests run one at a time with a 250 ms delay before each request and a 30-second fetch timeout. There are no automatic retries. At most 500 inputs are accepted. The small delay is a local reasonable-use choice, not a verified GLEIF rate allowance.

Local run

Use Node.js 22, as selected in the Dockerfile. In an environment where dependency installation and network access are permitted:

npm install
mkdir -p storage/key_value_stores/default

Save the input JSON to storage/key_value_stores/default/INPUT.json, then run:

npm start

The entrypoint uses Apify SDK v3 lifecycle, dataset, and key-value store APIs. SDK installation, local storage behavior, container build, and live API calls have not been exercised here. The previous unrelated root package lock was removed because it described the prior application; generate a new lock after an authorized dependency installation.

Run fixture-based checks with no dependency installation or network calls:

npm test

The suite uses Node's built-in test runner and injected fetch/delay functions. test/fixtures/gleif.json contains ASSERTED synthetic payloads, including single, exact search, near search, empty, and API error cases.

Publication gate

This build does not configure billing, publish, deploy, or charge events. Pay-per-event charging per resolved input is a publication-time requirement in BRIEF.md. The owner must confirm current platform billing mechanics and configure that requirement before publication; no pricing is asserted here.