---
title: "Search Pep"
method: POST
path: "/pep/searches"
tags: ["PEP"]
---

# Search Pep

`POST /pep/searches`

Search for Politically Exposed Persons (PEP) matches by name.

## Request body

- V1PEPSearchRequest — Request model for PEP search operations. This model defines the structure for PEP search API requests.
  - `name` string, required — The name to search for in the PEP database
  - `similarity_threshold` number — Similarity threshold for the search (0.0 to 1.0). Defaults to 0.9.
  - `limit` integer — The number of results to return. Max 50. Defaults to 1.

## Response `200`

Successful Response

- V1PEPSearchResponse — Response model for PEP search operations. This model defines the structure for PEP search API responses.
  - `matches` V1PEPMatch[] — The list of PEP matches.
    - `name` string, required — The primary name of the PEP entity.
    - `alternative_names` string[] — Alternative names associated with the PEP entity.
    - `addresses` string[] — Addresses associated with the PEP entity.
    - `similarity_score` number, required — The similarity score between the search term and the matched entity name/aliases.
    - `record_type` 'PERSON' | 'ORGANIZATION' — Enumeration of record types associated with Politically Exposed Persons (PEPs). Derived from the types used in the PEP data source.
    - `gender` 'M' | 'F'
    - `date_of_birth` string, date, nullable — Date of birth for individuals.
    - `first_name` string, nullable — First name of the person, when broken out by the source.
    - `middle_name` string, nullable — Middle name of the person, when broken out by the source.
    - `last_name` string, nullable — Last name of the person, when broken out by the source.
    - `title` string, nullable — Honorific title of the person.
    - `classification` string, nullable — PEP tier classification from the source dataset.
    - `political_party` string, nullable — Political party affiliation.
    - `birth_place` string, nullable — Place (or country) of birth.
    - `death_date` string, date, nullable — Date of death, if the person is deceased.
    - `notes` string, nullable — Free-text notes or biography from the source dataset.
    - `wikidata_id` string, nullable — Public Wikidata QID of the person, useful for disambiguation.
    - `positions` PEPPosition[] — Positions (occupancies) held by the person.
      - `name` string, required — The name of the position held.
      - `country` 'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AO' | 'AQ' | 'AR' | 'AS' | 'AT' | 'AU' | 'AW' | 'AX' | 'AZ' | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BL' | 'BM' | 'BN' | 'BO' | 'BQ' | 'BR' | 'BS' | 'BT' | 'BV' | 'BW' | 'BY' | 'BZ' | 'CA' | 'CC' | 'CD' | 'CF' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CR' | 'CU' | 'CV' | 'CW' | 'CX' | 'CY' | 'CZ' | 'DE' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ' | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET' | 'FI' | 'FJ' | 'FK' | 'FM' | 'FO' | 'FR' | 'GA' | 'GB' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GQ' | 'GR' | 'GS' | 'GT' | 'GU' | 'GW' | 'GY' | 'HK' | 'HM' | 'HN' | 'HR' | 'HT' | 'HU' | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IR' | 'IS' | 'IT' | 'JE' | 'JM' | 'JO' | 'JP' | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KP' | 'KR' | 'KW' | 'KY' | 'KZ' | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'LY' | 'MA' | 'MC' | 'MD' | 'ME' | 'MF' | 'MG' | 'MH' | 'MK' | 'ML' | 'MM' | 'MN' | 'MO' | 'MP' | 'MQ' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ' | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NI' | 'NL' | 'NO' | 'NP' | 'NR' | 'NU' | 'NZ' | 'OM' | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PN' | 'PR' | 'PS' | 'PT' | 'PW' | 'PY' | 'QA' | 'RE' | 'RO' | 'RS' | 'RU' | 'RW' | 'SA' | 'SB' | 'SC' | 'SD' | 'SE' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SL' | 'SM' | 'SN' | 'SO' | 'SR' | 'SS' | 'ST' | 'SV' | 'SX' | 'SY' | 'SZ' | 'TC' | 'TD' | 'TF' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TL' | 'TM' | 'TN' | 'TO' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ' | 'UA' | 'UG' | 'UM' | 'US' | 'UY' | 'UZ' | 'VA' | 'VC' | 'VE' | 'VG' | 'VI' | 'VN' | 'VU' | 'WF' | 'WS' | 'XK' | 'YE' | 'YT' | 'ZA' | 'ZM' | 'ZW' — Enumeration of ISO 3166-1 alpha-2 country codes. Attributes: (Various country codes like Andorra = "AD", etc.)
      - `subnational_area` string, nullable — State, province, or region of the office held.
      - `categories` PEPRiskCategory[] — Risk categories associated with the position.
      - `start_date` string, date, nullable — Date the person assumed the position.
      - `end_date` string, date, nullable — Date the person left the position.
      - `status` 'CURRENT' | 'ENDED' | 'UNKNOWN' — Whether a PEP currently holds a position, per the OpenSanctions occupancy `status` values (current / ended / unknown).
    - `risks` PEPRiskCategory[] — Associated risk categories.
    - `associated_countries` ISO2CountryCode[] — ISO2 country codes associated with the entity.
    - `emails` string[] — Email addresses associated with the entity.
    - `phone_numbers` string[] — Phone numbers associated with the entity.
    - `websites` string[] — Websites associated with the entity.
    - `source_links` string[] — Links to source information.
  - `total_matches` integer, required — The total number of PEP matches.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/baselayer/apis/baselayer-api-service.md) · [All operations](https://skmtc.net/baselayer/apis/baselayer-api-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/baselayer/baselayer-api-service/revisions/0cc89938bc26/schema)
