# OFAC Sanctions, UN AML & GLEIF LEI Screening Scraper API (`autotroph/sanctions-aml-gleif-normalizer`) Actor

Screen companies, individuals & corporate parents against US OFAC SDN/Consolidated, UN Sanctions & GLEIF Global LEI ownership trees in one call — catching sanctioned parents automatically. Built for KYC/KYB, fintech compliance & Apify MCP.

- **URL**: https://apify.com/autotroph/sanctions-aml-gleif-normalizer.md
- **Developed by:** [Shuma Fujino](https://apify.com/autotroph) (community)
- **Categories:** Business, Developer tools, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 normalized entity compliance records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## OFAC Sanctions, UN AML & GLEIF LEI Screening Scraper API

Screen companies, individuals, and corporate parents against **US Treasury OFAC SDN/Consolidated, UN Security Council Sanctions, and GLEIF LEI ownership trees** (OFAC 50%-Rule awareness) in one deterministic JSON API — **zero proxies, zero API keys, $0.00005 start fee (512 MB default), $0.005/entity ($5.00 / 1,000 entities)**. MCP-ready.

### Quickstart Input

```json
{
  "entities": ["Apple Inc.", "Sberbank", "Suex OTC"],
  "includeOfacSdn": true,
  "includeOfacConsolidated": true,
  "includeUnSanctions": true,
  "includeGleifLei": true,
  "screenParentEntities": true,
  "maxItems": 10
}
```

***

### What Data Sources Are Fused Live?

1. **US Treasury OFAC SDN List** (`SDN.CSV` + `ALT.CSV` + `ADD.CSV`):
   - Full live Specially Designated Nationals list (~18,000+ entities, individuals, vessels, and aircraft), all aliases (`ALT`), jurisdictions (`ADD`), program codes (`RUSSIA-EO14024`, `CYBER2`, `IRAN`, `DPRK`, `SDGT`, `VENEZUELA`, etc.), **Secondary Sanctions Risk** flags, IMO vessel numbers, and **sanctioned Digital Currency / Crypto wallet addresses**.
2. **US Treasury OFAC Non-SDN Consolidated Sanctions List** (`CONS_PRIM.CSV` + `CONS_ALT.CSV`):
   - Captures **Sectoral Sanctions (SSI / UKRAINE-EO13662)**, **Chinese Military-Industrial Complex (CMIC-EO13959)**, **CAPTA**, **HKAA**, and **NS-PLC** listings that SDN-only scrapers miss completely.
3. **UN Security Council Consolidated Sanctions List** (`scsanctions.un.org` official XML):
   - Live daily UN Security Council individuals and entities, official `REFERENCE_NUMBER`, `UN_LIST_TYPE`, `LISTED_ON` dates, nationalities, and all official aliases.
4. **GLEIF Global Legal Entity Identifier (LEI) Registry API v1** (`api.gleif.org`):
   - Resolves entity names or 20-character ISO 17442 LEI codes to authoritative corporate identity records (`lei`, `legal_name`, `entity_status`, `registration_status`, `jurisdiction`, `headquarters_country`, `registered_at_authority`, `registered_as_id`).
   - Follows published **`direct-parent`** and **`ultimate-parent`** corporate ownership links and automatically screens parent entities against all sanctions lists.

***

### Deterministic Risk Tiers & Audit Trail

Every screened entity receives:

- `risk_tier`:
  - `CRITICAL_SANCTIONED` — High-confidence match on OFAC SDN or UN Security Council list
  - `HIGH_CONSOLIDATED_OR_PARENT_HIT` — High-confidence match on OFAC Non-SDN Consolidated (SSI/CMIC/CAPTA) or a sanctioned Direct/Ultimate Parent entity
  - `MEDIUM_POTENTIAL_MATCH` — Fuzzy or alias match requiring compliance analyst review
  - `LOW_CLEAR_VERIFIED_LEI` — Zero sanctions hits and verified `ACTIVE` GLEIF LEI corporate identity
  - `CLEAR_NO_SANCTIONS_MATCH` — Zero sanctions hits across all checked lists (no active LEI bound)
- `risk_score`: deterministic `0–100` score
- `risk_flags`: structured flags (`SANCTIONS_SDN_OR_UN_MATCH`, `OFAC_NON_SDN_CONSOLIDATED_MATCH`, `PARENT_ENTITY_SANCTIONED_50PCT_RULE`, `SECONDARY_SANCTIONS_RISK`, `SANCTIONED_CRYPTO_WALLETS_LISTED`, `GLEIF_LEI_INACTIVE`)
- `audit_sha256`: deterministic 64-char SHA-256 compliance digest of query, verdict, matched IDs, LEI, and list vintage
- `integrity_valid` & `integrity_errors`: schema and consistency verification on every emitted row

***

### Pricing (Pay-Per-Event)

- **`apify-actor-start`**: `$0.00005` per run start (512 MB default — essentially free to test)
- **`entity-screened`**: `$0.005` per screened compliance record (`$5.00 / 1,000 entities`) with **zero proxy fees**, **no external API keys**, and automatic Apify max-charge budget limits.

> **Compliance Notice**: Data is sourced live from official public US Treasury OFAC, UN Security Council, and GLEIF registries for automated research and pre-screening workflows. Output is informational only and does not constitute legal advice or a standalone certified KYC/AML/OFAC compliance determination; verify matches with qualified compliance counsel before acting.

### MCP & AI Agent Integration

Connect this Actor directly to Claude Code, Cursor, VS Code, or any **Model Context Protocol (MCP)** client via Apify's hosted MCP server to eliminate LLM sanctions hallucinations against live US Treasury, UN Security Council, and GLEIF registry data:

```bash
claude mcp add --transport http sanctions-aml-gleif \
  "https://mcp.apify.com?tools=autotroph/sanctions-aml-gleif-normalizer" \
  --header "Authorization: Bearer YOUR_APIFY_TOKEN"
```

```json
{
  "mcpServers": {
    "sanctions-aml-gleif": {
      "type": "http",
      "url": "https://mcp.apify.com?tools=autotroph/sanctions-aml-gleif-normalizer",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

# Actor input Schema

## `entities` (type: `array`):

List of company names, individual names, or 20-character ISO 17442 LEI codes to screen and enrich.

## `includeOfacSdn` (type: `boolean`):

Download and match live official OFAC SDN.CSV + ALT.CSV (aliases) + ADD.CSV (jurisdictions), including Secondary Sanctions Risk and Digital Currency wallet extraction.

## `includeOfacConsolidated` (type: `boolean`):

Include official OFAC CONS_PRIM.CSV + CONS_ALT.CSV (Sectoral Sanctions, Chinese Military-Industrial Complex CMIC, CAPTA, HKAA, NS-PLC).

## `includeUnSanctions` (type: `boolean`):

Include live official UN Security Council Consolidated XML (all designated individuals, entities, aliases, nationalities, and reference numbers).

## `includeGleifLei` (type: `boolean`):

Resolve authoritative ISO 17442 LEI, legal name, active/inactive status, jurisdiction, registration authority/ID, and headquarters via api.gleif.org.

## `screenParentEntities` (type: `boolean`):

Follow GLEIF direct-parent and ultimate-parent ownership links when published and automatically screen parent entities against all active sanctions lists.

## `matchThreshold` (type: `number`):

Minimum normalized similarity score required to emit a sanctions match. Default 0.78 balances high recall on aliases/suffix variants with low false positives.

## `maxMatchesPerEntity` (type: `integer`):

Maximum number of top-ranked sanctions matches to attach per screened entity (1 to 20).

## `maxItems` (type: `integer`):

Maximum number of unique entities to screen in this run (1 to 1000).

## `maxConcurrency` (type: `integer`):

Parallel worker threads for GLEIF lookups and screening (1 to 10).

## `timeoutSeconds` (type: `number`):

Per-request timeout for official government feeds and GLEIF API calls.

## `strictValidation` (type: `boolean`):

If true, omit any record that fails deterministic compliance schema integrity checks.

## Actor input object example

```json
{
  "entities": [
    "Apple Inc.",
    "Sberbank",
    "Suex OTC"
  ],
  "includeOfacSdn": true,
  "includeOfacConsolidated": true,
  "includeUnSanctions": true,
  "includeGleifLei": true,
  "screenParentEntities": true,
  "matchThreshold": 0.78,
  "maxMatchesPerEntity": 5,
  "maxItems": 10,
  "maxConcurrency": 5,
  "timeoutSeconds": 15,
  "strictValidation": false
}
```

# Actor output Schema

## `entities` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "entities": [
        "Apple Inc.",
        "Sberbank",
        "Suex OTC"
    ],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("autotroph/sanctions-aml-gleif-normalizer").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "entities": [
        "Apple Inc.",
        "Sberbank",
        "Suex OTC",
    ],
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("autotroph/sanctions-aml-gleif-normalizer").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "entities": [
    "Apple Inc.",
    "Sberbank",
    "Suex OTC"
  ],
  "maxItems": 10
}' |
apify call autotroph/sanctions-aml-gleif-normalizer --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,autotroph/sanctions-aml-gleif-normalizer"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Qf6ad3cnUSSjkI91G/builds/HvKTAbUQbMhbgyIUE/openapi.json
