Skip to main content

Crate verifex

Crate verifex 

Source
Expand description

§Verifex

Official Rust SDK for the Verifex sanctions screening API.

Screen persons and entities against OFAC, UN, EU, UK + 23 more sanctions lists and 878K+ PEPs in a single API call.

§Quick Start

use verifex::{Verifex, ScreenRequest};

#[tokio::main]
async fn main() -> Result<(), verifex::VerifexError> {
    let client = Verifex::new("vfx_your_api_key");

    let result = client.screen(ScreenRequest {
        name: "Vladimir Putin".into(),
        ..Default::default()
    }).await?;

    if result.is_clear() {
        println!("No sanctions match");
    } else {
        println!("Risk: {} ({} matches)", result.risk_level, result.total_matches);
    }
    Ok(())
}

Structs§

ApiKeyCreated
Returned when a new API key is created.
ApiKeyInfo
API key metadata.
BatchScreenResult
Result of batch screening.
DailyUsage
Usage for a single day.
HealthResponse
API health status.
ListInfo
Per-source list metadata.
Match
A single sanctions list match.
ScreenRequest
Request to screen a single entity.
ScreenResult
Result of screening a single entity.
UsageStats
API usage statistics.
Verifex
Verifex sanctions screening API client.

Enums§

VerifexError
Errors returned by the Verifex SDK.