Official Python SDK for Verifex - Real-time Sanctions Screening API
Project description
Verifex Python SDK
Official Python SDK for Verifex - Real-time Sanctions Screening API.
Screen persons and entities against OFAC, UN, EU, UK, Canada, and PEP lists in a single API call. 730,000+ entities across 9 data sources.
Installation
pip install verifex
Quick Start
from verifex import VerifexClient
client = VerifexClient("vfx_your_api_key")
# Screen a person
result = client.screen("Vladimir Putin", type="person")
print(result.risk_level) # RiskLevel.CRITICAL
print(result.total_matches) # 1
print(result.matches[0].name) # "PUTIN, Vladimir Vladimirovich"
print(result.matches[0].source) # "OFAC"
print(result.matches[0].confidence) # 100
Screening
Single screening
result = client.screen("John Doe")
if result.is_clear:
print("No matches found")
else:
print(f"Risk: {result.risk_level}")
for match in result.matches:
print(f" {match.name} ({match.source}, {match.confidence}%)")
With filters
# Filter by entity type
result = client.screen("Sberbank", type="entity")
# Filter by country
result = client.screen("Ali", country="Iran")
Batch screening
results = client.batch_screen([
{"name": "Vladimir Putin", "type": "person"},
{"name": "Jane Doe"},
{"name": "Sberbank", "type": "entity"},
])
for r in results.results:
status = "MATCH" if r.is_match else "CLEAR"
print(f"{r.query['name']}: {status} ({r.risk_level})")
Usage and Keys
# Check usage
usage = client.usage()
print(f"Plan: {usage.plan}")
print(f"Used: {usage.current_month_usage} / {usage.monthly_quota}")
print(f"Remaining: {usage.remaining}")
# Health check (no auth required)
health = client.health()
print(f"Status: {health.status}")
print(f"Total entries: {health.total_entries}")
Error Handling
from verifex import VerifexClient
from verifex.types import ApiError
client = VerifexClient("vfx_invalid_key")
try:
result = client.screen("test")
except ApiError as e:
print(e.code) # "UNAUTHORIZED"
print(e.error) # "Invalid or revoked API key"
print(e.status_code) # 401
Risk Levels
| Level | Confidence | Meaning |
|---|---|---|
critical |
90%+ | Exact or near-exact match |
high |
75-89% | Strong fuzzy match |
medium |
60-74% | Moderate similarity |
low |
40-59% | Weak match |
clear |
No matches | No matches found |
Requirements
- Python 3.9+
- No external dependencies (uses stdlib
urllib)
Links
- Website: verifex.dev
- API Docs: api.verifex.dev/docs
- Dashboard: verifex.dev/dashboard
- Get API Key: verifex.dev/auth/signup
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
verifex-0.1.0.tar.gz
(6.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file verifex-0.1.0.tar.gz.
File metadata
- Download URL: verifex-0.1.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c43b17ae8ef75124fd19d3be83dd7a80325c4abc86b959011eada000400c98a
|
|
| MD5 |
bcb3e348e0bb5d7a59f21e7623b1d2ca
|
|
| BLAKE2b-256 |
e496606f2760acc432a8f2d19c8fafeb6a229ed11c636827f2a263b62657d349
|
File details
Details for the file verifex-0.1.0-py3-none-any.whl.
File metadata
- Download URL: verifex-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60f85cb6fb254f74355adaf3a0978ca9a5da01df96d9e776f92cf66e6dbf6123
|
|
| MD5 |
b7c13ab34cf19e415db7aae4b3bd70b3
|
|
| BLAKE2b-256 |
cca821c9910488abe9e03b8568a2c6e8aa1da28cfc36cdd3c2c99e4f6e48cd30
|