# findLegalEntityByIdentifier

**Identifier:** `gleif_findLegalEntityByIdentifier`

**Provider:** [GLEIF](https://kirha.com/providers/gleif.md)

Find the LEI and legal entity behind an ISIN, a BIC, a national registration number (SIREN, UK company number, HRB...) or an OpenCorporates ID. Use it to go from a security, a bank code or a registry number to the issuer or company, across countries.

## Run it with the CLI

```bash
kirha tools run gleif_findLegalEntityByIdentifier \
  --input '{}'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "gleif_findLegalEntityByIdentifier",
  "input": {}
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "bic": {
      "description": "8 or 11 characters, e.g., BNPAFRPP",
      "pattern": "^[A-Za-z0-9]{8}([A-Za-z0-9]{3})?$",
      "type": "string"
    },
    "isin": {
      "description": "e.g., FR0000120271",
      "pattern": "^[A-Za-z]{2}[A-Za-z0-9]{9}\\d$",
      "type": "string"
    },
    "openCorporatesId": {
      "description": "Jurisdiction/number, e.g., fr/542051180, gb/00102498",
      "type": "string"
    },
    "registrationNumber": {
      "description": "As in the national registry, e.g., 542051180, 00102498",
      "minLength": 2,
      "type": "string"
    }
  },
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "entities": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "city": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "entityStatus": {
            "type": "string"
          },
          "legalName": {
            "type": "string"
          },
          "lei": {
            "type": "string"
          },
          "leiStatus": {
            "type": "string"
          },
          "registrationNumber": {
            "type": "string"
          }
        },
        "required": [
          "lei"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "leis": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "total": {
      "type": "number"
    }
  },
  "required": [
    "context",
    "total",
    "entities",
    "leis"
  ],
  "type": "object"
}
```

-----

[All GLEIF tools](https://kirha.com/providers/gleif.md) · [< Back to tools list](https://kirha.com/tools.md)