# LEI lookup of example companies

**Use case:** 

Example: look up Legal Entity Identifiers in the official GLEIF database, with legal name, registered address, status and parent companies.

## Input

```json
{
  "leis": [
    "W38RGI023J3WT1HWRP32",
    "KY37LUS27QQX7BB93L28"
  ],
  "maxMatchesPerName": 3,
  "minMatchScore": 80,
  "includeParents": true,
  "parentsAsRows": false,
  "includeChildren": true,
  "childrenDepth": 1,
  "maxChildren": 5,
  "childrenAsRows": true,
  "includeIsins": false
}
```

## Output

```json
{
  "lei": {
    "label": "LEI",
    "format": "string"
  },
  "legalName": {
    "label": "Legal name",
    "format": "string"
  },
  "role": {
    "label": "Role",
    "format": "string"
  },
  "matchScore": {
    "label": "Match score",
    "format": "integer"
  },
  "jurisdiction": {
    "label": "Jurisdiction",
    "format": "string"
  },
  "legalFormName": {
    "label": "Legal form",
    "format": "string"
  },
  "entityStatus": {
    "label": "Entity status",
    "format": "string"
  },
  "registrationStatus": {
    "label": "LEI registration status",
    "format": "string"
  },
  "nextRenewalDate": {
    "label": "Next renewal",
    "format": "string"
  },
  "directParent.legalName": {
    "label": "Direct parent",
    "format": "string"
  },
  "ultimateParent.legalName": {
    "label": "Ultimate parent",
    "format": "string"
  },
  "directChildrenTotal": {
    "label": "Direct subsidiaries (total)",
    "format": "integer"
  },
  "headquartersAddressText": {
    "label": "Headquarters (one line)",
    "format": "string"
  },
  "error": {
    "label": "Error code",
    "format": "string"
  },
  "errorMessage": {
    "label": "Message",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The LEI Corporate Tree: GLEIF Parents & Subsidiaries Actor is ready to run with the inputs already set for "LEI lookup of example companies". [Sign up or log in](https://console.apify.com/create-task-from-example/aWnWN06D8clBuoFQo) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "LEI lookup of example companies" task

The LEI Corporate Tree: GLEIF Parents & Subsidiaries Actor will start running based on the input automatically. You can also change all the input fields, like LEIs, matches per name, and more, to match your specific use case.

### 3. Receive the "LEI lookup of example companies" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as LEI, legal name, role, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "LEI lookup of example companies" task via API](https://apify.com/offerastudio/gleif-lei-corporate-tree.md).

## About this Actor

This example demonstrates how to use [LEI Corporate Tree: GLEIF Parents & Subsidiaries](https://apify.com/offerastudio/gleif-lei-corporate-tree.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/offerastudio/gleif-lei-corporate-tree.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/offerastudio/gleif-lei-corporate-tree.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
