Screen for PEPs
curl --request GET \
--url https://api.compliapi.com/api/v1/screen/pep \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.compliapi.com/api/v1/screen/pep"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.compliapi.com/api/v1/screen/pep', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.compliapi.com/api/v1/screen/pep",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.compliapi.com/api/v1/screen/pep"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.compliapi.com/api/v1/screen/pep")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.compliapi.com/api/v1/screen/pep")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyScreening
Screen for PEPs
Screen a person’s name against the OpenSanctions politically exposed persons dataset
GET
/
screen
/
pep
Screen for PEPs
curl --request GET \
--url https://api.compliapi.com/api/v1/screen/pep \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.compliapi.com/api/v1/screen/pep"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.compliapi.com/api/v1/screen/pep', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.compliapi.com/api/v1/screen/pep",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.compliapi.com/api/v1/screen/pep"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.compliapi.com/api/v1/screen/pep")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.compliapi.com/api/v1/screen/pep")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyScreens a person’s name against the OpenSanctions politically exposed persons (PEPs) dataset with scored query-by-example matching — current and former public officials, their relatives and close associates. Use it during KYC onboarding or enhanced due diligence.
Unlike the other
Results are provided by OpenSanctions; each match’s
string
required
Full name of the person to screen (2–200 characters).
string
Birth date to sharpen matching —
YYYY-MM-DD, or partial (e.g. 1961).string
Country of citizenship or residence, by name or ISO code.
integer
Maximum candidates to return (1–10, default 5).
/screen/* endpoints, this is a live proxy of an external dataset rather than a query against our ingested lists, so it takes no lists filter and returns its own envelope instead of the shared screening envelope: each candidate carries a score (0–1), match is true when the score clears the 0.7 decision threshold, and the top-level pep is true when any candidate matches. PEP status is not a sanctions designation — screen names against sanctions lists with /search and the other /screen/* endpoints.
Example response
{
"value": "Saddam Hussein",
"pep": true,
"dataset": "peps",
"matches": [
{
"id": "Q1316",
"caption": "Saddam Hussein AL-TIKRITI",
"score": 0.98,
"match": true,
"topics": ["role.pep"],
"countries": ["iq"],
"birth_dates": ["1937-04-28"],
"positions": ["President of Iraq"],
"datasets": ["wikidata", "wd_peps"],
"source_url": "https://www.opensanctions.org/entities/Q1316/"
}
]
}
source_url links to its OpenSanctions entity page.
With x402 pay-per-request enabled, this endpoint is priced higher than the default per-call price (the upstream dataset is metered per query) — the amount in the 402 challenge is always authoritative.