---
title: "LEI Lookup API: Autocomplete entity names | Perceptlayer"
description: "Up to 10 legal entity names in the Global LEI Index completing a partial name, prefix or fuzzy (typo-tolerant), each with its LEI where one is linked."
url: https://perceptlayer.com/apis/lei/autocomplete
---

[APIs](https://perceptlayer.com/apis) / [LEI Lookup](https://perceptlayer.com/apis/lei) / Autocomplete entity names

# LEI Lookup: Autocomplete entity names

Up to 10 legal entity names in the Global LEI Index completing a partial name, prefix or fuzzy (typo-tolerant), each with its LEI where one is linked.

GET `/v1/lei/autocomplete`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `query` | string | Required | Up to 100 characters Partial entity name. |
| `mode` | string | Optional | prefix, fuzzy prefix (default) completes the words typed; fuzzy tolerates misspellings. |

## Example request

LEI Lookup

GET /v1/lei/autocomplete?query=apple+in 

```
{
  "success": true,
  "data": {
    "count": 10,
    "items": [
      {
        "name": "APPLE INN",
        "lei": "64886E905REV38LP9S76"
      },
      {
        "name": "Apple Inc.",
        "lei": "HWUPKR0MPOU8FGXBT394"
      },
      {
        "name": "APPLE GROVE INN"
      }
    ]
  },
  "meta": {
    "request_id": "req_f7de5158bb9e4c9080f3213f1c10cddf",
    "credits_charged": 1,
    "credits_remaining": 155
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

[Run this endpoint in the playground](https://perceptlayer.com/apis/lei?try=autocomplete#playground) with your own parameters. 1 credit per successful call; failed calls are free.

## Response fields

Each item in `data.items` has these 2 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

| Field | Type |
| --- | --- |
| `name` | string |
| `lei` | string |
