> ## Documentation Index
> Fetch the complete documentation index at: https://docs.algoreg.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Name search

> undefined

## Body parameters

**company\_input\_data** `ScanFirmInput`

**properties**

**company\_name** `string`

**countries** `string[]`

**entity\_type** `integer`

Mandatory. 1 means Individual, 2 means Firm

**exact\_match** `boolean`

**keep\_results\_under\_threshold** `boolean`

Returns results under threashold defined by the post-filtering alias (or 50% by default).

**page\_size** `integer`

**page\_token** `string`

Optional. Set to empty string or don't set for first page.

**person\_input\_data** `ScanIndividualInput`

**properties**

**AllowNamesInversion** `boolean`

If set to true then we will also look for results when first and last names are inverted.

**countries** `string[]`

**date\_of\_birth** `string`

Format should be YYYY-MM-DD or YYYY-MM or YYYY or YYYY-00-00 or YYYY-MM-00

**domicile\_code** `string`

ISO3 or ISO2, only if post\_filtering\_alias is set to non-null

**exact\_date\_of\_birth** `boolean`

**first\_name** `string`

**last\_name** `string`

**nationality\_code** `string`

ISO3 or ISO2, only if post\_filtering\_alias is set to non-null

**post\_filtering\_alias** `string`

null to not use any post-filtering, empty string to use the default post-filtering settings, or use an alias.

**query** `string`

Deprecated. Use ScanIndividualInput or ScanFirmInput instead.

## Response body

> [tab] 200
>
> **next\_page\_token** `string`
>
> **results** `ScanOutput[]`
>
> **properties**
>
> **associates** `DJAssociateRecordIDHolder[]`
>
> **properties**
>
> **list\_id** `string`
>
> **company\_name\_scores** `ScoreAndExplanation[]`
>
> **properties**
>
> **candidate** `string`
>
> **explanations** `string[]`
>
> **query** `string`
>
> **score** `integer`
>
> **concat\_name\_scores** `ScoreAndExplanation[]`
>
> **properties**
>
> **candidate** `string`
>
> **explanations** `string[]`
>
> **query** `string`
>
> **score** `integer`
>
> **first\_name\_scores** `ScoreAndExplanation[]`
>
> **properties**
>
> **candidate** `string`
>
> **explanations** `string[]`
>
> **query** `string`
>
> **score** `integer`
>
> **is\_pep** `boolean`
>
> Politically Exposed Person
>
> **is\_rca** `boolean`
>
> Relative or Close Associate to a sanctioned record
>
> **is\_rca\_pep** `boolean`
>
> Relative or Close Associate to Politically Exposed Person
>
> **is\_rca\_san** `boolean`
>
> **is\_rca\_sie** `boolean`
>
> Relative or Close Associate to Special Interest Entity
>
> **is\_rca\_sip** `boolean`
>
> Relative or Close Associate to Special Interest Person
>
> **is\_rca\_soe** `boolean`
>
> **is\_rca\_sop** `boolean`
>
> **is\_san** `boolean`
>
> **is\_sie** `boolean`
>
> Special Interest Entity
>
> **is\_sip** `boolean`
>
> Special Interest Person
>
> **is\_soe** `boolean`
>
> **is\_sop** `boolean`
>
> **last\_name\_scores** `ScoreAndExplanation[]`
>
> **properties**
>
> **candidate** `string`
>
> **explanations** `string[]`
>
> **query** `string`
>
> **score** `integer`
>
> **list\_name** `string`
>
> Name of the source list
>
> **list\_profile** `DJRecord`
>
> **properties**
>
> **addresses** `DJAddress[]`
>
> **properties**
>
> **address\_city** `string`
>
> **address\_country** `string`
>
> **address\_line** `string`
>
> **url** `string`
>
> **birth\_place** `string[]`
>
> **company\_details** `DJCompanyDetail[]`
>
> **properties**
>
> **address\_city** `string`
>
> **address\_country** `string`
>
> **address\_line** `string`
>
> **url** `string`
>
> **countries** `DJCountry[]`
>
> **properties**
>
> **codes** `string[]`
>
> **country\_type** `string`
>
> See CountryTypes
>
> **country\_type\_code** `integer`
>
> See CountryTypes
>
> **iso3\_codes** `string[]`
>
> **names** `string[]`
>
> **date** `string`
>
> Record update date
>
> **date\_formated** `string`
>
> Record update date formatted
>
> **dates** `DJDate[]`
>
> **properties**
>
> **date\_type** `string`
>
> See DateTypes
>
> **date\_type\_code** `integer`
>
> See DateTypes
>
> **date\_values** `DJDateValue[]`
>
> **properties**
>
> **day** `string`
>
> **dnote** `string`
>
> **formated** `string`
>
> **month** `string`
>
> **year** `string`
>
> **deceased** `boolean`
>
> **descriptions** `DJDescriptions`
>
> **properties**
>
> **descriptions1** `DJDescription[]`
>
> **properties**
>
> **id** `string`
>
> **text** `string`
>
> **descriptions2** `DJDescription[]`
>
> **properties**
>
> **id** `string`
>
> **text** `string`
>
> **descriptions3** `DJDescription[]`
>
> **properties**
>
> **id** `string`
>
> **text** `string`
>
> **gender** `string`
>
> **id\_number\_type** `DJID[]`
>
> **properties**
>
> **id\_type** `string`
>
> **id\_values** `DJIDValue[]`
>
> **properties**
>
> **id\_notes** `string`
>
> **value** `string`
>
> **images** `string[]`
>
> **list\_id** `string`
>
> **names** `DJName[]`
>
> **properties**
>
> **name\_type** `string`
>
> See NameTypes
>
> **name\_type\_code** `integer`
>
> See NameTypes
>
> **name\_values** `DJNameValue[]`
>
> **properties**
>
> **entity\_name** `string[]`
>
> Name of the firm or non-individual entity
>
> **first\_name** `string[]`
>
> null or list of strings
>
> **maiden\_name** `string[]`
>
> null or list of strings
>
> **middle\_name** `string[]`
>
> null or list of strings
>
> **original\_script\_name** `string[]`
>
> Name in original alphabet
>
> **single\_string\_name** `string[]`
>
> All names concatenated in one string
>
> **suffix** `string[]`
>
> **surname** `string[]`
>
> null or list of strings
>
> **title\_honorific** `string[]`
>
> null or list of strings
>
> **profile\_notes** `string`
>
> Additional notes
>
> **roles** `DJRole[]`
>
> **properties**
>
> **occupations** `DJOccupation[]`
>
> **properties**
>
> **category** `string`
>
> **code** `string`
>
> **since\_day** `string`
>
> **since\_formated** `string`
>
> **since\_month** `string`
>
> **since\_year** `string`
>
> **title** `string`
>
> **to\_day** `string`
>
> **to\_formated** `string`
>
> **to\_month** `string`
>
> **to\_year** `string`
>
> **role\_type** `string`
>
> See RoleTypes
>
> **role\_type\_code** `integer`
>
> See RoleTypes
>
> **sanctions** `DJSanction[]`
>
> **properties**
>
> **reference** `string`
>
> **since\_day** `string`
>
> **since\_formated** `string`
>
> **since\_month** `string`
>
> **since\_year** `string`
>
> **to\_day** `string`
>
> **to\_formated** `string`
>
> **to\_month** `string`
>
> **to\_year** `string`
>
> **sources** `string[]`
>
> Source url, newspaper links etc
>
> **status** `string`
>
> **type** `string`
>
> **vessels** `DJVessel[]`
>
> **properties**
>
> **vessel\_call\_sign** `string`
>
> **vessel\_flag** `string`
>
> **vessel\_grt** `string`
>
> **vessel\_owner** `string`
>
> **vessel\_tonnage** `string`
>
> **vessel\_type** `string`
>
> **list\_types** `string[]`
>
> **middle\_name\_scores** `ScoreAndExplanation[]`
>
> **properties**
>
> **candidate** `string`
>
> **explanations** `string[]`
>
> **query** `string`
>
> **score** `integer`
>
> **over\_threshold** `boolean`
>
> **score** `integer`
>
> Overall match score between 0 and 100
>
> **trading\_name\_scores** `ScoreAndExplanation[]`
>
> **properties**
>
> **candidate** `string`
>
> **explanations** `string[]`
>
> **query** `string`
>
> **score** `integer`
>
> **total** `integer`

> [tab] default
>
> unexpected error
>
> **errors** `APIError[]`
>
> Will contain both "v1" (deprecated, or soon to be) errors and "v2" errors. When possible, prefer errors that are not deprecated.
>
> **properties**
>
> **code** `string`
>
> **deprecated** `boolean`
>
> **message** `string`
>
> **will\_be\_deprecated** `boolean`

```json JSON
{
  "company_input_data": {
    "company_name": "string",
    "countries": [
      "string"
    ]
  },
  "entity_type": "integer",
  "exact_match": "boolean",
  "keep_results_under_threshold": "boolean",
  "page_size": "integer",
  "page_token": "string",
  "person_input_data": {
    "AllowNamesInversion": "boolean",
    "countries": [
      "string"
    ],
    "date_of_birth": "string",
    "domicile_code": "string",
    "exact_date_of_birth": "boolean",
    "first_name": "string",
    "last_name": "string",
    "nationality_code": "string"
  },
  "post_filtering_alias": "string",
  "query": "string"
}
```

```javascript JavaScript

  const response = await fetch(
    "POST /api/v1/scan/namesearch",
    {
      method: "post",
      headers: {
        "Content-Type": "application/json",
        "Authorization": `Bearer {token}`
      },
      body: JSON.stringify({
  "company_input_data": {
    "company_name": "string",
    "countries": [
      "string"
    ]
  },
  "entity_type": "integer",
  "exact_match": "boolean",
  "keep_results_under_threshold": "boolean",
  "page_size": "integer",
  "page_token": "string",
  "person_input_data": {
    "AllowNamesInversion": "boolean",
    "countries": [
      "string"
    ],
    "date_of_birth": "string",
    "domicile_code": "string",
    "exact_date_of_birth": "boolean",
    "first_name": "string",
    "last_name": "string",
    "nationality_code": "string"
  },
  "post_filtering_alias": "string",
  "query": "string"
})
    }
  );
            
          
```

```json 200
{
  "next_page_token": "string",
  "results": [
    {
      "associates": [
        {
          "list_id": "string"
        }
      ],
      "company_name_scores": [
        {
          "candidate": "string",
          "explanations": [
            "string"
          ],
          "query": "string",
          "score": "integer"
        }
      ],
      "concat_name_scores": [
        {
          "candidate": "string",
          "explanations": [
            "string"
          ],
          "query": "string",
          "score": "integer"
        }
      ],
      "first_name_scores": [
        {
          "candidate": "string",
          "explanations": [
            "string"
          ],
          "query": "string",
          "score": "integer"
        }
      ],
      "is_pep": "boolean",
      "is_rca": "boolean",
      "is_rca_pep": "boolean",
      "is_rca_san": "boolean",
      "is_rca_sie": "boolean",
      "is_rca_sip": "boolean",
      "is_rca_soe": "boolean",
      "is_rca_sop": "boolean",
      "is_san": "boolean",
      "is_sie": "boolean",
      "is_sip": "boolean",
      "is_soe": "boolean",
      "is_sop": "boolean",
      "last_name_scores": [
        {
          "candidate": "string",
          "explanations": [
            "string"
          ],
          "query": "string",
          "score": "integer"
        }
      ],
      "list_name": "string",
      "list_profile": {
        "addresses": [
          {
            "address_city": "string",
            "address_country": "string",
            "address_line": "string",
            "url": "string"
          }
        ],
        "birth_place": [
          "string"
        ],
        "company_details": [
          {
            "address_city": "string",
            "address_country": "string",
            "address_line": "string",
            "url": "string"
          }
        ],
        "countries": [
          {
            "codes": [
              "string"
            ],
            "country_type": "string",
            "country_type_code": "integer",
            "iso3_codes": [
              "string"
            ],
            "names": [
              "string"
            ]
          }
        ],
        "date": "string",
        "date_formated": "string",
        "dates": [
          {
            "date_type": "string",
            "date_type_code": "integer",
            "date_values": [
              {
                "day": "string",
                "dnote": "string",
                "formated": "string",
                "month": "string",
                "year": "string"
              }
            ]
          }
        ],
        "deceased": "boolean",
        "descriptions": {
          "descriptions1": [
            {
              "id": "string",
              "text": "string"
            }
          ],
          "descriptions2": [
            {
              "id": "string",
              "text": "string"
            }
          ],
          "descriptions3": [
            {
              "id": "string",
              "text": "string"
            }
          ]
        },
        "gender": "string",
        "id_number_type": [
          {
            "id_type": "string",
            "id_values": [
              {
                "id_notes": "string",
                "value": "string"
              }
            ]
          }
        ],
        "images": [
          "string"
        ],
        "list_id": "string",
        "names": [
          {
            "name_type": "string",
            "name_type_code": "integer",
            "name_values": [
              {
                "entity_name": [
                  "string"
                ],
                "first_name": [
                  "string"
                ],
                "maiden_name": [
                  "string"
                ],
                "middle_name": [
                  "string"
                ],
                "original_script_name": [
                  "string"
                ],
                "single_string_name": [
                  "string"
                ],
                "suffix": [
                  "string"
                ],
                "surname": [
                  "string"
                ],
                "title_honorific": [
                  "string"
                ]
              }
            ]
          }
        ],
        "profile_notes": "string",
        "roles": [
          {
            "occupations": [
              {
                "category": "string",
                "code": "string",
                "since_day": "string",
                "since_formated": "string",
                "since_month": "string",
                "since_year": "string",
                "title": "string",
                "to_day": "string",
                "to_formated": "string",
                "to_month": "string",
                "to_year": "string"
              }
            ],
            "role_type": "string",
            "role_type_code": "integer"
          }
        ],
        "sanctions": [
          {
            "reference": "string",
            "since_day": "string",
            "since_formated": "string",
            "since_month": "string",
            "since_year": "string",
            "to_day": "string",
            "to_formated": "string",
            "to_month": "string",
            "to_year": "string"
          }
        ],
        "sources": [
          "string"
        ],
        "status": "string",
        "type": "string",
        "vessels": [
          {
            "vessel_call_sign": "string",
            "vessel_flag": "string",
            "vessel_grt": "string",
            "vessel_owner": "string",
            "vessel_tonnage": "string",
            "vessel_type": "string"
          }
        ]
      },
      "list_types": [
        "string"
      ],
      "middle_name_scores": [
        {
          "candidate": "string",
          "explanations": [
            "string"
          ],
          "query": "string",
          "score": "integer"
        }
      ],
      "over_threshold": "boolean",
      "score": "integer",
      "trading_name_scores": [
        {
          "candidate": "string",
          "explanations": [
            "string"
          ],
          "query": "string",
          "score": "integer"
        }
      ]
    }
  ],
  "total": "integer"
}
```

```json default
{
  "errors": [
    {
      "code": "string",
      "deprecated": "boolean",
      "message": "string",
      "will_be_deprecated": "boolean"
    }
  ]
}
```



This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.