# GLEIF Company Search & Corporate Parent API (`felixgoldwin/gleif-company-parent-api`) Actor

Look up exact company names and LEIs with direct or ultimate accounting parent links and reporting exceptions.

- **URL**: https://apify.com/felixgoldwin/gleif-company-parent-api.md
- **Developed by:** [Felix GoldWin](https://apify.com/felixgoldwin) (community)
- **Categories:** Developer tools, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 company records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## GLEIF Company Search & Corporate Parent API

Find a legal entity by exact company name or 20-character LEI. Export company legal name, jurisdiction, entity and LEI registration status, along with **reported direct and ultimate accounting-consolidation parents** and public reporting exceptions. Useful for corporate mapping and supplier identity checks; not an ultimate beneficial ownership or compliance-screening product.

### Try a lookup

```json
{"leis":["5493001KJTIIGC8Y1R12","HWUPKR0MPOU8FGXBT394"],"names":[],"includeParents":true}
```

Or search by exact legal name, for example `{"names":["Bloomberg Finance L.P."],"includeParents":false}`. Names are compared to returned legal names, case-insensitively; aliases and substring matches are not accepted or guessed. Provide up to eight inputs total; use an LEI for precise disambiguation. Duplicate entity rows are removed by LEI. Name searches check one bounded initial candidate page and may miss some exact matches. Default output cap is eight, maximum ten entities, and no more than 48 sequential public API calls.

### What parent statuses mean

- `reported_parent`: a published active accounting parent LEI and company name were verified from source records.
- `parent_record_unavailable`: the active published relationship exists, but the parent company record was not resolved; the unverified identifier is not emitted.
- `reporting_exception`: GLEIF exposed a coded exception (e.g. `NATURAL_PERSONS`). It is not a name or proof of no beneficial owner.
- `relationship_not_current`, `not_reported`, `relationship_resource_unavailable`, `exception_resource_unavailable`, or `conflicting_source_links`: do not assume no owner or no parent.
- `not_requested` or `parent_outside_company_scope`: no parent details were requested or approved by this Actor’s GENERAL-category scope.

The Actor accepts only records categorized GENERAL by GLEIF; it excludes SOLE_PROPRIETOR, branches, funds and unknown categories. It never emits street addresses, people, contacts, regulatory identification/screening conclusions, or source exception reference strings. Accounting consolidation is not a shareholding register or a natural-person beneficial ownership report. Check any important match against the original source. `entitySourceSnapshot` is the GLEIF Golden Copy date when provided for the entity lookup; it describes that lookup, not a guarantee parent records were all read from the same snapshot. `RUN_SUMMARY` gives run coverage, result caps, and skippable inputs by position. A failed or throttled run is not a negative result.

Data provenance: official [GLEIF API](https://www.gleif.org/en/lei-data/gleif-api), [LEI data access and licensing](https://www.gleif.org/en/lei-data/access-and-use-lei-data), [GLEIF LEI data terms for CC0 1.0](https://www.gleif.org/en/meta/lei-data-terms-of-use), and [Level 2 relationship data](https://www.gleif.org/en/lei-data/access-and-use-lei-data/level-2-data-who-owns-whom). No affiliation or endorsement asserted. No paid sources or API keys are required. Apify compute or storage may cost money under the user's plan.

```sh
npm ci
npm test
apify run --user-agent apify-codex-plugin/apify-actor-development
```

Put input JSON in `storage/key_value_stores/default/INPUT.json`; use fresh storage for each local run.

# Actor input Schema

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

Exact 20-character LEIs; 8 combined names and/or LEIs.

## `names` (type: `array`):

Exact legal company names; 8 combined names and/or LEIs. Not wildcards or alias lookups.

## `includeParents` (type: `boolean`):

Resolve reported direct and ultimate accounting parents or public reporting exceptions.

## `maxCompanies` (type: `integer`):

Maximum distinct matching entities across all inputs.

## `maxCandidatesPerName` (type: `integer`):

Inspect this many candidates from the first search page for each name.

## Actor input object example

```json
{
  "leis": [
    "5493001KJTIIGC8Y1R12",
    "HWUPKR0MPOU8FGXBT394"
  ],
  "includeParents": true,
  "maxCompanies": 8,
  "maxCandidatesPerName": 10
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `runSummary` (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"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("felixgoldwin/gleif-company-parent-api").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",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("felixgoldwin/gleif-company-parent-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).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"
  ]
}' |
apify call felixgoldwin/gleif-company-parent-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,felixgoldwin/gleif-company-parent-api"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/xEKEq0Z8TKL5lUhhA/builds/QS86w5LKYXOYmDwVg/openapi.json
