# Map corporate ownership from a parent LEI

**Use case:** 

Runs the `subsidiaries` mode for one or more anchor LEI codes and returns every entity that the anchor directly owns, up to 500 — each row tagged with the anchor LEI it belongs to. Switch `mode` to `parents` to walk ownership upward instead. Replace `parentLeiCodes` with the 20-character LEI codes you're investigating.

## Input

```json
{
  "mode": "subsidiaries",
  "countries": "DE",
  "entityStatus": "",
  "registrationStatus": "",
  "entityCategory": "",
  "searchQuery": "deutsche bank",
  "leiCodes": "5493001KJTIIGC8Y1R12, 254900OPPU84GM83MG36",
  "parentLeiCodes": "5493001KJTIIGC8Y1R12",
  "maxResults": 500,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "lei": {
    "label": "LEI",
    "format": "text"
  },
  "legalName": {
    "label": "Legal Name",
    "format": "text"
  },
  "entityStatus": {
    "label": "Status",
    "format": "text"
  },
  "jurisdiction": {
    "label": "Jurisdiction",
    "format": "text"
  },
  "legalCountry": {
    "label": "Country",
    "format": "text"
  },
  "legalCity": {
    "label": "City",
    "format": "text"
  },
  "registrationStatus": {
    "label": "LEI Status",
    "format": "text"
  },
  "nextRenewalDate": {
    "label": "Next Renewal",
    "format": "text"
  },
  "url": {
    "label": "GLEIF Link",
    "format": "link"
  }
}
```

## About this Actor

This example demonstrates how to use [LEI Records Scraper](https://apify.com/parsebird/lei-records-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/parsebird/lei-records-scraper.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/parsebird/lei-records-scraper.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`).
