# GLEIF API

> Returns legal entity records from the GLEIF LEI index: names, status, country, address, renewal dates and parent or child relationships.

Category: Government & Open Data. Region: global. 9 endpoints at `https://api.hoshime.com/v1/gleif/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/gleif
## GET /v1/gleif/search

Legal entities whose legal name matches the text, with their LEI, status and country.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `name` | string | yes | Legal name or part of it, such as Ubisecure. (e.g. Ubisecure) |
| `limit` | integer | no | Items per page, 1 to 100. (default 10; e.g. 5) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `city` (string), `country` (string), `jurisdiction` (string), `legalName` (string), `lei` (string), `registrationStatus` (string), `status` (string)

```bash
curl "https://api.hoshime.com/v1/gleif/search?name=Ubisecure&limit=5" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/gleif/record

The full LEI record of one legal entity: its names, address, status and renewal dates.

Scope: `social:read` · Units: 1 · Cached: 360 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `lei` | string | yes | Legal entity identifier, 20 characters. (e.g. 529900T8BM49AURSDO55) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `addressLines` (Line[]), `addressLines[].text` (string), `category` (string), `city` (string), `corroborationLevel` (string), `country` (string), `initialRegistrationAt` (string), `jurisdiction` (string), `lastUpdateAt` (string), `legalForm` (string), `legalName` (string), `lei` (string), `managingLou` (string), `nextRenewalAt` (string), `postalCode` (string), `registrationStatus` (string), `status` (string)

```bash
curl "https://api.hoshime.com/v1/gleif/record?lei=529900T8BM49AURSDO55" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/gleif/suggest

Legal names the GLEIF index suggests for a partial or misspelt name, with their LEI.

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Part of a legal name, such as apple. (e.g. apple) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `lei` (string), `name` (string)

```bash
curl "https://api.hoshime.com/v1/gleif/suggest?query=apple" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/gleif/children

The legal entities that report the given entity as their direct parent, with their LEI and status.

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `lei` | string | yes | Legal entity identifier of the parent, 20 characters. (e.g. HWUPKR0MPOU8FGXBT394) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `city` (string), `country` (string), `jurisdiction` (string), `legalName` (string), `lei` (string), `registrationStatus` (string), `status` (string)

```bash
curl "https://api.hoshime.com/v1/gleif/children?lei=HWUPKR0MPOU8FGXBT394" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/gleif/ultimateChildren

Every legal entity in the ownership chain under the given entity, direct and indirect.

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `lei` | string | yes | Legal entity identifier of the ultimate parent, 20 characters. (e.g. HWUPKR0MPOU8FGXBT394) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `city` (string), `country` (string), `jurisdiction` (string), `legalName` (string), `lei` (string), `registrationStatus` (string), `status` (string)

```bash
curl "https://api.hoshime.com/v1/gleif/ultimateChildren?lei=HWUPKR0MPOU8FGXBT394" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/gleif/directParent

The full LEI record of the direct parent of a legal entity. The source answers not found when the entity has no reported parent.

Scope: `social:read` · Units: 1 · Cached: 360 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `lei` | string | yes | Legal entity identifier of the child, 20 characters. (e.g. 2549008YU9EOMHFUA249) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `addressLines` (Line[]), `addressLines[].text` (string), `category` (string), `city` (string), `corroborationLevel` (string), `country` (string), `initialRegistrationAt` (string), `jurisdiction` (string), `lastUpdateAt` (string), `legalForm` (string), `legalName` (string), `lei` (string), `managingLou` (string), `nextRenewalAt` (string), `postalCode` (string), `registrationStatus` (string), `status` (string)

```bash
curl "https://api.hoshime.com/v1/gleif/directParent?lei=2549008YU9EOMHFUA249" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/gleif/ultimateParent

The full LEI record of the ultimate parent at the top of a legal entity's ownership chain. The source answers not found when the entity reports no parent.

Scope: `social:read` · Units: 1 · Cached: 360 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `lei` | string | yes | Legal entity identifier of the child, 20 characters. (e.g. 2549008YU9EOMHFUA249) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `addressLines` (Line[]), `addressLines[].text` (string), `category` (string), `city` (string), `corroborationLevel` (string), `country` (string), `initialRegistrationAt` (string), `jurisdiction` (string), `lastUpdateAt` (string), `legalForm` (string), `legalName` (string), `lei` (string), `managingLou` (string), `nextRenewalAt` (string), `postalCode` (string), `registrationStatus` (string), `status` (string)

```bash
curl "https://api.hoshime.com/v1/gleif/ultimateParent?lei=2549008YU9EOMHFUA249" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/gleif/managedFunds

The investment funds whose manager is the given legal entity, with their LEI and status.

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `lei` | string | yes | Legal entity identifier of the manager, 20 characters. (e.g. HWUPKR0MPOU8FGXBT394) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `city` (string), `country` (string), `jurisdiction` (string), `legalName` (string), `lei` (string), `registrationStatus` (string), `status` (string)

```bash
curl "https://api.hoshime.com/v1/gleif/managedFunds?lei=HWUPKR0MPOU8FGXBT394" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/gleif/fieldModifications

The changes GLEIF recorded on one LEI record, newest first: which field changed, when, and its old and new value.

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `lei` | string | yes | Legal entity identifier, 20 characters. (e.g. HWUPKR0MPOU8FGXBT394) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `changedAt` (string), `field` (string), `new` (string), `old` (string), `type` (string)

```bash
curl "https://api.hoshime.com/v1/gleif/fieldModifications?lei=HWUPKR0MPOU8FGXBT394" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
