# GLEIF LEI Relationship Records Scraper (`automation-lab/gleif-lei-relationship-records-scraper`) Actor

Map GLEIF LEI direct and ultimate parent relationships for KYC, AML, vendor risk, and entity ownership workflows.

- **URL**: https://apify.com/automation-lab/gleif-lei-relationship-records-scraper.md
- **Developed by:** [Stas Persiianenko](https://apify.com/automation-lab) (community)
- **Categories:** Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## GLEIF LEI Relationship Records Scraper

Extract direct and ultimate parent ownership relationships from the public GLEIF API. Use it to turn LEI codes or company names into compliance-ready parent relationship records with parent LEIs, legal names, relationship validity dates, registration status, corroboration details, and source URLs.

### What does GLEIF LEI Relationship Records Scraper do?

This Apify actor queries `api.gleif.org/api/v1` and saves one dataset row for each requested Legal Entity Identifier (LEI) and relationship scope.

It can:

- 🔎 Resolve company legal names to GLEIF LEI records.
- 🧭 Fetch direct parent relationship records.
- 🏢 Fetch ultimate parent relationship records.
- ✅ Hydrate parent legal names from parent LEI records.
- 📎 Preserve GLEIF source URLs for audit trails.
- 🧾 Save relationship status, relationship type, validity periods, and registration metadata.
- ⚠️ Save a row when no relationship record is published, so you know the LEI was checked.

### Who is it for?

#### Compliance and KYC teams

Use the actor to map counterparty ownership and parent consolidation relationships before onboarding vendors, clients, issuers, or funds.

#### AML and sanctions operations

Enrich watchlist or customer files with direct and ultimate parent LEIs so analysts can identify corporate control relationships.

#### Procurement and third-party risk teams

Batch-check supplier LEIs or legal names and store parent relationship evidence alongside vendor due-diligence documents.

#### Financial data teams

Create repeatable relationship snapshots from GLEIF for internal master data, entity resolution, or reference-data QA pipelines.

### Why use this actor?

GLEIF publishes relationship records through a public JSON API, but operational users often need a repeatable batch workflow, not one API call at a time. This actor handles name resolution, relationship endpoint selection, parent-name hydration, dataset exports, charging, and Apify integrations.

### How much does it cost to extract GLEIF LEI parent relationship records?

The actor uses pay-per-event pricing. You pay a small start charge when the run begins and a per-result charge for each relationship row saved.

A relationship row is one subject LEI plus one scope, such as direct parent or ultimate parent. If you enable both scopes, each resolved LEI can produce up to two dataset rows.

| Charge event | When it is charged | Price |
| --- | --- | --- |
| Run started | Once when a run starts | $0.005 |
| Item extracted — FREE tier | Each saved dataset row | $0.000056183 |
| Item extracted — BRONZE tier | Each saved dataset row | $0.000048855 |
| Item extracted — SILVER tier | Each saved dataset row | $0.000038107 |
| Item extracted — GOLD tier | Each saved dataset row | $0.000029313 |
| Item extracted — PLATINUM tier | Each saved dataset row | $0.000019542 |
| Item extracted — DIAMOND tier | Each saved dataset row | $0.000013679 |

Example cost on the FREE tier:

| Input shape | Expected rows | Estimated actor charge |
| --- | ---: | ---: |
| 10 LEIs, direct parent only | up to 10 | about $0.0056 |
| 10 LEIs, direct + ultimate parent | up to 20 | about $0.0061 |
| 50 resolved LEIs, direct + ultimate parent | up to 100 | about $0.0106 |

The free Apify plan includes monthly platform credits that can cover many small compliance checks. For example, a 100-row FREE-tier run is roughly one cent in actor charges before normal Apify platform usage costs, so you can test the workflow with the default `maxResults` before scheduling larger monitoring jobs.

### Input options

| Field | Type | Description |
| --- | --- | --- |
| `leis` | array | LEI codes to inspect directly. |
| `companyNames` | array | Company legal names to resolve through GLEIF before relationship lookup. |
| `maxResolvedLeisPerName` | integer | Maximum resolved LEI records per company name. |
| `maxResults` | integer | Maximum relationship rows saved to the dataset. |
| `includeDirectParent` | boolean | Fetch direct parent relationship records. |
| `includeUltimateParent` | boolean | Fetch ultimate parent relationship records. |
| `hydrateParentNames` | boolean | Fetch parent LEI records to include parent legal names. |

### Example input

```json
{
  "leis": ["5493001KJTIIGC8Y1R12", "HWUPKR0MPOU8FGXBT394"],
  "companyNames": ["Apple Inc."],
  "maxResolvedLeisPerName": 5,
  "maxResults": 20,
  "includeDirectParent": true,
  "includeUltimateParent": true,
  "hydrateParentNames": true
}
````

### Output data

Each dataset item contains a relationship lookup result.

| Field | Description |
| --- | --- |
| `inputType` | Whether the subject came from a direct LEI or a company-name search. |
| `inputValue` | Original LEI or company name. |
| `resolvedLei` | Subject LEI used for relationship lookup. |
| `resolvedLegalName` | Subject legal name from GLEIF. |
| `resolvedJurisdiction` | Subject jurisdiction. |
| `resolvedEntityStatus` | Subject entity status. |
| `relationshipScope` | `direct-parent` or `ultimate-parent`. |
| `relationshipRecordId` | GLEIF relationship record ID, when published. |
| `relationshipType` | Relationship type such as `IS_DIRECTLY_CONSOLIDATED_BY`. |
| `relationshipStatus` | Relationship status from GLEIF. |
| `parentLei` | Parent LEI from the relationship end node. |
| `parentLegalName` | Parent legal name when hydration is enabled. |
| `relationshipValidFrom` | Relationship validity start. |
| `relationshipValidTo` | Relationship validity end, when provided. |
| `relationshipPeriods` | GLEIF relationship and accounting periods. |
| `registrationStatus` | Relationship registration status. |
| `corroborationLevel` | GLEIF corroboration level. |
| `corroborationDocuments` | Corroboration document category. |
| `sourceUrl` | GLEIF relationship endpoint URL. |
| `subjectRecordUrl` | Subject LEI record URL. |
| `parentRecordUrl` | Parent LEI record URL. |
| `noRelationshipReason` | Explanation when no published relationship record exists. |
| `scrapedAt` | Timestamp when the row was saved. |

### Example output

```json
{
  "inputType": "lei",
  "inputValue": "5493001KJTIIGC8Y1R12",
  "resolvedLei": "5493001KJTIIGC8Y1R12",
  "resolvedLegalName": "Bloomberg Finance L.P.",
  "relationshipScope": "direct-parent",
  "relationshipType": "IS_DIRECTLY_CONSOLIDATED_BY",
  "relationshipStatus": "ACTIVE",
  "parentLei": "549300B56MD0ZC402L06",
  "parentLegalName": "Bloomberg L.P.",
  "registrationStatus": "PUBLISHED",
  "sourceUrl": "https://api.gleif.org/api/v1/lei-records/5493001KJTIIGC8Y1R12/direct-parent-relationship"
}
```

### How to run

1. Open the actor on Apify.
2. Enter one or more LEI codes, company names, or both.
3. Choose direct parent, ultimate parent, or both relationship scopes.
4. Set `maxResults` to control spend.
5. Run the actor.
6. Download the dataset as JSON, CSV, Excel, XML, or through the Apify API.

### Tips for better results

- Use exact legal names when resolving company names.
- Prefer LEI codes when you already have them; this avoids ambiguous company-name matches.
- Keep `maxResolvedLeisPerName` low for common words such as “Bank”.
- Enable parent-name hydration when a human analyst will read the dataset.
- Disable parent-name hydration for very large monitoring jobs when LEI-only output is enough.
- Use both relationship scopes for ownership mapping and only one scope for focused QA checks.

### Monitoring workflow

Run this actor on a schedule to detect parent relationship changes:

1. Store your vendor or counterparty LEIs in the actor input.
2. Schedule a daily, weekly, or monthly run.
3. Export results to your database.
4. Compare `relationshipRecordId`, `relationshipStatus`, `parentLei`, `relationshipValidFrom`, and `lastUpdateDate` against the previous run.
5. Alert analysts when a parent LEI or status changes.

### KYC workflow

A common KYC workflow is:

1. Resolve the client legal name to candidate LEIs.
2. Review candidate jurisdiction and legal name.
3. Fetch direct and ultimate parent relationships.
4. Store source URLs for evidence.
5. Join parent LEIs to sanctions, PEP, adverse media, or credit-risk workflows.

### Procurement workflow

Procurement teams can use the actor to enrich suppliers:

- Add supplier legal names or known LEIs.
- Fetch parent ownership records.
- Attach output to third-party risk files.
- Flag suppliers whose ultimate parent is in a restricted jurisdiction or risk category.

### Integrations

You can connect results to:

- Google Sheets for analyst review.
- Snowflake, BigQuery, or PostgreSQL for master data.
- Slack or email alerts for relationship changes.
- CRM and vendor management systems through Apify webhooks.
- Custom KYC applications through the Apify API.

### API usage with Node.js

```js
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('automation-lab/gleif-lei-relationship-records-scraper').call({
  leis: ['5493001KJTIIGC8Y1R12'],
  includeDirectParent: true,
  includeUltimateParent: true,
  maxResults: 10
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

### API usage with Python

```python
from apify_client import ApifyClient
import os

client = ApifyClient(os.environ['APIFY_TOKEN'])
run = client.actor('automation-lab/gleif-lei-relationship-records-scraper').call(run_input={
    'companyNames': ['Apple Inc.'],
    'maxResolvedLeisPerName': 3,
    'maxResults': 6,
})
items = client.dataset(run['defaultDatasetId']).list_items().items
print(items)
```

### API usage with cURL

```bash
curl -X POST \
  "https://api.apify.com/v2/acts/automation-lab~gleif-lei-relationship-records-scraper/runs?token=$APIFY_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"leis":["5493001KJTIIGC8Y1R12"],"maxResults":2}'
```

### MCP integration

Use this actor from Claude Desktop, Claude Code, or other MCP clients through Apify MCP.

MCP server URL:

```text
https://mcp.apify.com/?tools=automation-lab/gleif-lei-relationship-records-scraper
```

Claude Code setup:

```bash
claude mcp add apify-gleif-lei-relationships --transport http https://mcp.apify.com/?tools=automation-lab/gleif-lei-relationship-records-scraper
```

Claude Desktop JSON configuration:

```json
{
  "mcpServers": {
    "apify-gleif-lei-relationships": {
      "url": "https://mcp.apify.com/?tools=automation-lab/gleif-lei-relationship-records-scraper"
    }
  }
}
```

Cursor setup:

1. Open Cursor settings.
2. Go to MCP servers.
3. Add a server named `apify-gleif-lei-relationships`.
4. Use the HTTP URL above.

VS Code setup:

1. Install an MCP-capable extension or use the built-in MCP configuration if available in your VS Code version.
2. Add an HTTP MCP server with the same Apify MCP URL.
3. Save the configuration and select the actor tool in chat.

Example prompts:

- “Run the GLEIF LEI Relationship Records Scraper for these supplier LEIs and summarize ultimate parents.”
- “Resolve Apple Inc. through GLEIF and list direct and ultimate parent relationship records.”
- “Check whether these counterparties have published parent relationship records and return source URLs.”

### Data source

The actor uses the public GLEIF API:

- `GET /lei-records/{lei}`
- `GET /lei-records?filter[entity.legalName]=...`
- `GET /lei-records/{lei}/direct-parent-relationship`
- `GET /lei-records/{lei}/ultimate-parent-relationship`

### Legality

GLEIF data is public reference data. You are responsible for using the output in compliance with your policies, laws, and any GLEIF terms that apply to your use case. The actor does not bypass login, paywalls, or access controls.

### FAQ

#### Is this actor a generic LEI lookup tool?

No. It includes basic subject fields for context, but it is focused on direct and ultimate parent relationship records. Use [GLEIF LEI Bulk Lookup](https://apify.com/automation-lab/gleif-lei-bulk-lookup) when you only need generic LEI profile data.

#### Does the actor need a GLEIF API key?

No. It uses public GLEIF API endpoints that do not require a login or API key.

### Troubleshooting

#### Why did I get rows with no parent LEI?

GLEIF may not publish a direct or ultimate parent relationship record for every LEI. The actor saves a row with `noRelationshipReason` so you can prove the LEI and relationship scope were checked.

#### Why did a company name return multiple LEIs?

Company-name matching can produce multiple entities, branches, jurisdictions, or similarly named records. Use exact LEIs when possible, or review `resolvedLegalName` and `resolvedJurisdiction` before using downstream.

#### Why are parent names missing?

Parent names require `hydrateParentNames: true`. If hydration is disabled, the actor saves parent LEIs and source URLs without extra parent record lookups.

### Related scrapers

- [GLEIF LEI Bulk Lookup](https://apify.com/automation-lab/gleif-lei-bulk-lookup) — generic LEI profile lookup at scale.
- [Website Contact Finder](https://apify.com/automation-lab/website-contact-finder) — enrich company websites with contact details.
- [Company Data Scrapers by Automation Lab](https://apify.com/automation-lab) — more business data actors.

### Changelog

#### 0.1

- Initial release focused on GLEIF direct and ultimate parent relationship records.

### Support

If you need a field from the GLEIF API that is not currently exposed, open an Apify issue on the actor page and include a sample LEI plus the target field.

# Actor input Schema

## `leis` (type: `array`):

Legal Entity Identifiers to inspect for direct and ultimate parent relationship records.

## `companyNames` (type: `array`):

Optional company legal names to resolve through /lei-records before fetching relationship records.

## `maxResolvedLeisPerName` (type: `integer`):

Maximum GLEIF LEI records to resolve for each company name query.

## `maxResults` (type: `integer`):

Maximum relationship rows to save to the dataset. Each subject can produce one direct-parent and one ultimate-parent row.

## `includeDirectParent` (type: `boolean`):

Fetch /direct-parent-relationship for each resolved LEI.

## `includeUltimateParent` (type: `boolean`):

Fetch /ultimate-parent-relationship for each resolved LEI.

## `hydrateParentNames` (type: `boolean`):

Fetch each parent LEI record to include parent legal names in the output.

## Actor input object example

```json
{
  "leis": [
    "5493001KJTIIGC8Y1R12",
    "HWUPKR0MPOU8FGXBT394"
  ],
  "companyNames": [
    "Apple Inc.",
    "Bloomberg Finance L.P."
  ],
  "maxResolvedLeisPerName": 10,
  "maxResults": 20,
  "includeDirectParent": true,
  "includeUltimateParent": true,
  "hydrateParentNames": true
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "leis": [
        "5493001KJTIIGC8Y1R12",
        "HWUPKR0MPOU8FGXBT394"
    ],
    "companyNames": [
        "Apple Inc.",
        "Bloomberg Finance L.P."
    ],
    "maxResolvedLeisPerName": 10,
    "maxResults": 20,
    "includeDirectParent": true,
    "includeUltimateParent": true,
    "hydrateParentNames": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("automation-lab/gleif-lei-relationship-records-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "leis": [
        "5493001KJTIIGC8Y1R12",
        "HWUPKR0MPOU8FGXBT394",
    ],
    "companyNames": [
        "Apple Inc.",
        "Bloomberg Finance L.P.",
    ],
    "maxResolvedLeisPerName": 10,
    "maxResults": 20,
    "includeDirectParent": True,
    "includeUltimateParent": True,
    "hydrateParentNames": True,
}

# Run the Actor and wait for it to finish
run = client.actor("automation-lab/gleif-lei-relationship-records-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "leis": [
    "5493001KJTIIGC8Y1R12",
    "HWUPKR0MPOU8FGXBT394"
  ],
  "companyNames": [
    "Apple Inc.",
    "Bloomberg Finance L.P."
  ],
  "maxResolvedLeisPerName": 10,
  "maxResults": 20,
  "includeDirectParent": true,
  "includeUltimateParent": true,
  "hydrateParentNames": true
}' |
apify call automation-lab/gleif-lei-relationship-records-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=automation-lab/gleif-lei-relationship-records-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "GLEIF LEI Relationship Records Scraper",
        "description": "Map GLEIF LEI direct and ultimate parent relationships for KYC, AML, vendor risk, and entity ownership workflows.",
        "version": "0.1",
        "x-build-id": "VhboCjuu23Ku6vXyR"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/automation-lab~gleif-lei-relationship-records-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-automation-lab-gleif-lei-relationship-records-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/automation-lab~gleif-lei-relationship-records-scraper/runs": {
            "post": {
                "operationId": "runs-sync-automation-lab-gleif-lei-relationship-records-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/automation-lab~gleif-lei-relationship-records-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-automation-lab-gleif-lei-relationship-records-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "leis": {
                        "title": "LEI codes",
                        "type": "array",
                        "description": "Legal Entity Identifiers to inspect for direct and ultimate parent relationship records.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "companyNames": {
                        "title": "Company names",
                        "type": "array",
                        "description": "Optional company legal names to resolve through /lei-records before fetching relationship records.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxResolvedLeisPerName": {
                        "title": "Max LEIs per company name",
                        "minimum": 1,
                        "maximum": 100,
                        "type": "integer",
                        "description": "Maximum GLEIF LEI records to resolve for each company name query.",
                        "default": 10
                    },
                    "maxResults": {
                        "title": "Maximum relationship rows",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Maximum relationship rows to save to the dataset. Each subject can produce one direct-parent and one ultimate-parent row.",
                        "default": 100
                    },
                    "includeDirectParent": {
                        "title": "Include direct parent",
                        "type": "boolean",
                        "description": "Fetch /direct-parent-relationship for each resolved LEI.",
                        "default": true
                    },
                    "includeUltimateParent": {
                        "title": "Include ultimate parent",
                        "type": "boolean",
                        "description": "Fetch /ultimate-parent-relationship for each resolved LEI.",
                        "default": true
                    },
                    "hydrateParentNames": {
                        "title": "Hydrate parent legal names",
                        "type": "boolean",
                        "description": "Fetch each parent LEI record to include parent legal names in the output.",
                        "default": true
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
