AML Screening
Retrieve a PEP and Sanction Screening Search
Retrieves an already verified PEP and Sanction List Search verification record by its verification ID.
GET
/
v2
/
api
/
verifications
/
aml-checks
/
{verificationId}
Retrieve a PEP and Sanction Screening Search
curl --request GET \
--url https://api.youverify.co/v2/api/verifications/aml-checks/{verificationId} \
--header 'token: <api-key>'import requests
url = "https://api.youverify.co/v2/api/verifications/aml-checks/{verificationId}"
headers = {"token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {token: '<api-key>'}};
fetch('https://api.youverify.co/v2/api/verifications/aml-checks/{verificationId}', 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.youverify.co/v2/api/verifications/aml-checks/{verificationId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"token: <api-key>"
],
]);
$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.youverify.co/v2/api/verifications/aml-checks/{verificationId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("token", "<api-key>")
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.youverify.co/v2/api/verifications/aml-checks/{verificationId}")
.header("token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.youverify.co/v2/api/verifications/aml-checks/{verificationId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"statusCode": 200,
"message": "AML Check retrieved successfully!",
"data": {
"categoryCount": {
"sanctions": 0,
"pep": 1,
"crime": 0,
"debarment": 0,
"financial_services": 0,
"government": 0,
"role": 0,
"religion": 0,
"military": 0,
"frozen_asset": 0,
"personOfInterest": 0
},
"status": "review_required",
"parentId": null,
"isSubjectConsent": true,
"type": "all",
"sanctions": [],
"pep": [
{
"title": [
"MUHAMMED GUDAJI"
],
"entityType": "Person",
"datasets": [
"everypolitician",
"wikidata",
"wd_peps"
],
"birthDate": [
"1972-01-01T00:00:00.000Z"
],
"name": [
"Muhammed Gudaji",
"MUHAMMED GUDAJI"
],
"position": [
"member of the House of Representatives of Nigeria (2019-)",
"member of the House of Representatives of Nigeria",
"House of Representatives (member, 2015-)"
],
"topics": [
"role.pep"
],
"nationality": [
"ng"
],
"gender": [
"male"
],
"alias": [
"Muhammed Kazaure Gudaji",
"Muhammad Aliyu Gudaji",
"MUHAMMED KAZAURE GUDAJI",
"Muhammed Gudaji",
"Muhammed Gudaji Kazaure"
],
"keywords": [
"National government"
],
"country": [
"ng"
],
"notes": [
"Nigerian politician"
],
"phone": [
"+2347037730852"
]
}
],
"crime": [],
"debarment": [],
"financial_services": [],
"government": [],
"role": [],
"religion": [],
"military": [],
"frozen_asset": [],
"personOfInterest": [],
"totalEntity": 1,
"queriedWith": "Identity Number",
"query": "+2347037730852",
"businessId": "628b38f03ae28a14f52d4bf7",
"requestedAt": "2023-08-11T05:15:12.297Z",
"requestedById": "628b38f03ae28a5a122d4bf3",
"createdAt": "2023-08-11T05:15:12.483Z",
"lastModifiedAt": "2023-08-11T05:15:12.483Z",
"id": "64d5c3dfdf93fda73eeff33e",
"requestedBy": {
"firstName": "API",
"lastName": "User",
"middleName": "",
"id": "628b38f03ae28a5a122d4bf3"
}
},
"links": []
}{
"success": false,
"statusCode": 401,
"message": "Permission denied",
"name": "UnauthorizedError",
"data": {}
}{
"success": false,
"statusCode": 404,
"message": "Not found",
"name": "ResourceNotFoundError",
"data": {}
}{
"success": false,
"statusCode": 429,
"message": "Too many requests",
"name": "RateLimitError",
"data": {}
}{
"success": false,
"statusCode": 500,
"message": "Internal Server Error",
"name": "Error",
"data": {}
}⌘I
Retrieve a PEP and Sanction Screening Search
curl --request GET \
--url https://api.youverify.co/v2/api/verifications/aml-checks/{verificationId} \
--header 'token: <api-key>'import requests
url = "https://api.youverify.co/v2/api/verifications/aml-checks/{verificationId}"
headers = {"token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {token: '<api-key>'}};
fetch('https://api.youverify.co/v2/api/verifications/aml-checks/{verificationId}', 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.youverify.co/v2/api/verifications/aml-checks/{verificationId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"token: <api-key>"
],
]);
$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.youverify.co/v2/api/verifications/aml-checks/{verificationId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("token", "<api-key>")
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.youverify.co/v2/api/verifications/aml-checks/{verificationId}")
.header("token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.youverify.co/v2/api/verifications/aml-checks/{verificationId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"statusCode": 200,
"message": "AML Check retrieved successfully!",
"data": {
"categoryCount": {
"sanctions": 0,
"pep": 1,
"crime": 0,
"debarment": 0,
"financial_services": 0,
"government": 0,
"role": 0,
"religion": 0,
"military": 0,
"frozen_asset": 0,
"personOfInterest": 0
},
"status": "review_required",
"parentId": null,
"isSubjectConsent": true,
"type": "all",
"sanctions": [],
"pep": [
{
"title": [
"MUHAMMED GUDAJI"
],
"entityType": "Person",
"datasets": [
"everypolitician",
"wikidata",
"wd_peps"
],
"birthDate": [
"1972-01-01T00:00:00.000Z"
],
"name": [
"Muhammed Gudaji",
"MUHAMMED GUDAJI"
],
"position": [
"member of the House of Representatives of Nigeria (2019-)",
"member of the House of Representatives of Nigeria",
"House of Representatives (member, 2015-)"
],
"topics": [
"role.pep"
],
"nationality": [
"ng"
],
"gender": [
"male"
],
"alias": [
"Muhammed Kazaure Gudaji",
"Muhammad Aliyu Gudaji",
"MUHAMMED KAZAURE GUDAJI",
"Muhammed Gudaji",
"Muhammed Gudaji Kazaure"
],
"keywords": [
"National government"
],
"country": [
"ng"
],
"notes": [
"Nigerian politician"
],
"phone": [
"+2347037730852"
]
}
],
"crime": [],
"debarment": [],
"financial_services": [],
"government": [],
"role": [],
"religion": [],
"military": [],
"frozen_asset": [],
"personOfInterest": [],
"totalEntity": 1,
"queriedWith": "Identity Number",
"query": "+2347037730852",
"businessId": "628b38f03ae28a14f52d4bf7",
"requestedAt": "2023-08-11T05:15:12.297Z",
"requestedById": "628b38f03ae28a5a122d4bf3",
"createdAt": "2023-08-11T05:15:12.483Z",
"lastModifiedAt": "2023-08-11T05:15:12.483Z",
"id": "64d5c3dfdf93fda73eeff33e",
"requestedBy": {
"firstName": "API",
"lastName": "User",
"middleName": "",
"id": "628b38f03ae28a5a122d4bf3"
}
},
"links": []
}{
"success": false,
"statusCode": 401,
"message": "Permission denied",
"name": "UnauthorizedError",
"data": {}
}{
"success": false,
"statusCode": 404,
"message": "Not found",
"name": "ResourceNotFoundError",
"data": {}
}{
"success": false,
"statusCode": 429,
"message": "Too many requests",
"name": "RateLimitError",
"data": {}
}{
"success": false,
"statusCode": 500,
"message": "Internal Server Error",
"name": "Error",
"data": {}
}