# Global Counterparty KYB, GLEIF LEI & OFAC Sanctions Screener (`jacobianflux/global-counterparty-kyb-lei-screener`) Actor

Verify global companies in 200+ countries via the official GLEIF Legal Entity Identifier (LEI) API and screen them against live US Treasury OFAC SDN & AKA sanctions lists in one call. Returns a 0-100 KYB score, APPROVE/REVIEW/BLOCK decision, BIC codes, and parent links. Errors free.

- **URL**: https://apify.com/jacobianflux/global-counterparty-kyb-lei-screener.md
- **Developed by:** [Jacobian Flux Labs](https://apify.com/jacobianflux) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.20 / 1,000 entities screened

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/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

## Global Counterparty KYB, GLEIF LEI & OFAC Sanctions Screener

[![Actor Status](https://apify.com/actor-badge?actor=jacobianflux/global-counterparty-kyb-lei-screener)](https://apify.com/jacobianflux/global-counterparty-kyb-lei-screener)

**Verify legal entities across 200+ countries via the official GLEIF Legal Entity Identifier (LEI) Registry and cross-screen them against fresh US Treasury OFAC SDN & AKA sanctions lists in one API or MCP call — returning a deterministic `0–100` KYB Trust Score and `APPROVE` / `REVIEW` / `BLOCK` verdict.**

Standalone sanctions tools check fuzzy names without proving whether a company legally exists, is active, or where it is incorporated. **Global Counterparty KYB, GLEIF LEI & OFAC Sanctions Screener** unifies official ISO 17442 Legal Entity verification with live OFAC SDN + Alias screening for fintech onboarding, crypto OTC desks, trade finance, ERP vendor onboarding, and AI compliance agents.

***

### Why Compliance & Automation Teams Use This Actor

1. **Official GLEIF LEI Verification (2.7M+ Global Entities):** Resolves exact 20-character LEIs or company names across the US, EU, UK, India, and APAC — extracting `legalName`, `entityStatus`, `registrationStatus` (`ISSUED` vs `LAPSED`), `corroborationLevel`, local registry IDs (`registrationAuthorityEntityId`), legal & HQ addresses, SWIFT/BIC codes, and renewal runway.
2. **Fresh US Treasury OFAC SDN + AKA Screening:** Downloads official `sdn.csv` and `alt.csv` feeds directly from `treasury.gov` during each run and screens both the submitted query and resolved GLEIF legal name with legal-suffix normalization (`Inc.`, `LLC`, `Ltd.`, `GmbH`, `Pvt.`) to suppress false positives.
3. **Deterministic Underwriting Decision:** Outputs `kybScore` (`0–100`), `sanctionsRisk` (`CLEAR`, `POTENTIAL_MATCH`, `HIGH_MATCH`), `complianceDecision` (`APPROVE`, `REVIEW`, `BLOCK`), and explicit `complianceFlags`.
4. **Zero-Waste Pay-Per-Event Billing:** API failures or blank inputs are never charged.

***

### Input Parameters

| Field | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `queries` | `array<string>` | `["Apple Inc."]` *(UI prefill: `["Apple Inc.", "5493001KJTIIGC8Y1R12"]`)* | Company names or exact 20-character LEI codes to verify and screen. |
| `country` | `string` | `""` | Optional ISO-2 country filter (`US`, `GB`, `DE`, `IN`, `SG`). |
| `includeOfacScreening` | `boolean` | `true` | Screen every entity against live US Treasury OFAC SDN & AKA lists. |
| `maxResults` | `integer` | `20` | Maximum entities to screen in a single run (`1`–`1000`). |

***

### Sample Output JSON

```json
{
  "query": "Apple Inc.",
  "lei": "HWUPKR0MPOU8FGXBT394",
  "legalName": "Apple Inc.",
  "otherNames": [],
  "entityStatus": "ACTIVE",
  "registrationStatus": "ISSUED",
  "corroborationLevel": "FULLY_CORROBORATED",
  "jurisdictionCountry": "US",
  "legalJurisdiction": "US-CA",
  "legalFormCode": "XTIQ",
  "registrationAuthorityId": "RA000602",
  "registrationAuthorityEntityId": "C0806592",
  "legalAddress": "One Apple Park Way, Cupertino, US-CA, 95014, US",
  "headquartersAddress": "One Apple Park Way, Cupertino, US-CA, 95014, US",
  "bicCodes": [],
  "initialRegistrationDate": "2012-06-06",
  "nextRenewalDate": "2027-02-15",
  "daysUntilRenewal": 84,
  "managingLou": "EVK05KS7XY1DEII3R011",
  "gleifRecordUrl": "https://search.gleif.org/#/record/HWUPKR0MPOU8FGXBT394",
  "sanctionsRisk": "CLEAR",
  "ofacMatchCount": 0,
  "ofacMatches": [],
  "kybScore": 100,
  "complianceDecision": "APPROVE",
  "complianceFlags": [
    "LEI_VERIFIED",
    "ACTIVE_ENTITY",
    "LEI_ISSUED",
    "FULLY_CORROBORATED",
    "OFAC_CLEAR"
  ],
  "screenedAt": "2026-11-23T15:45:00+00:00",
  "error": null
}
```

***

### Integrations (`apify-client`, Claude / Cursor MCP & `n8n`)

#### Python (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run = client.actor("jacobianflux/global-counterparty-kyb-lei-screener").call(
    run_input={
        "queries": ["Apple Inc.", "5493001KJTIIGC8Y1R12"],
        "country": "",
        "includeOfacScreening": True,
        "maxResults": 20,
    }
)

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(f"[{item['complianceDecision']}] {item['legalName']} (LEI: {item['lei']}) | OFAC: {item['sanctionsRisk']} | Score: {item['kybScore']}")
```

#### Claude Desktop / Cursor / Windsurf (Apify MCP Server)

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com?actors=jacobianflux/global-counterparty-kyb-lei-screener",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

#### `n8n` / Make.com KYB Onboarding Flow

1. Trigger when a new merchant, supplier, or institutional client submits onboarding details.
2. Call **Apify -> Run Actor** (`jacobianflux/global-counterparty-kyb-lei-screener`).
3. Branch on `complianceDecision`: auto-approve `APPROVE`, alert compliance officer on `REVIEW` (`LEI_LAPSED`, `POTENTIAL_MATCH`), and halt onboarding on `BLOCK` (`OFAC_HIGH_MATCH`, `INACTIVE_ENTITY`).

***

### Ready-to-Run Example Tasks

Try this Actor immediately with pre-configured inputs, output previews, and copy-paste AI prompts:

- **[Verify global companies with GLEIF LEI and OFAC check](https://apify.com/jacobianflux/global-counterparty-kyb-lei-screener/examples/verify-global-company-lei-ofac-sanctions)** — Pre-configured input & live output schema preview
- **[Screen B2B suppliers against US Treasury OFAC SDN list](https://apify.com/jacobianflux/global-counterparty-kyb-lei-screener/examples/screen-b2b-vendors-us-treasury-ofac-sdn)** — Pre-configured input & live output schema preview

***

### Transparent Pay-Per-Event Pricing & Store Discounts

Predictable pay-per-event pricing with **Apify Store subscription discounts** enabled (Free Plan users can test up to **10 results per run** automatically; Apify's `$5` monthly Free credit covers **~830 counterparties screened**):

| Event | Free Plan | Bronze (-10%) | Silver (-20%) | Gold (-30%) | Billing Rule |
| :--- | :---: | :---: | :---: | :---: | :--- |
| `entity-screened` | **$0.006** / entity | **$0.0054** | **$0.0048** | **$0.0042** | Upstream errors and blank inputs are **$0 (free)**. |
| `apify-actor-start` | `$0.00005` | `$0.00005` | `$0.00005` | `$0.00005` | Standard Apify container start event. |

***

### Frequently Asked Questions

#### How fresh is the OFAC sanctions data used during screening?

Every run downloads the live official US Treasury `sdn.csv` and `alt.csv` (AKA alias) lists directly from `treasury.gov` and screens both your raw input query and the resolved GLEIF legal name.

#### What if a company does not have an LEI registered in GLEIF?

Even without a GLEIF LEI record, the Actor still completes live OFAC SDN/AKA screening and flags `NO_LEI_FOUND` with a deterministic `REVIEW` or `BLOCK` verdict.

#### How many counterparties can I screen with $5 in Apify credits?

At $0.006/entity (down to $0.0042 on Gold), $5 covers ~830 global KYB + OFAC screenings.

***

### More Actors by Jacobian Flux Labs

Build end-to-end compliance, finance, and public-registry automation by chaining our deterministic Actors via **Apify MCP** or **n8n**:

| Actor | Capability |
| :--- | :--- |
| **[B2B Website Compliance, WCAG & Lead Auditor](https://apify.com/jacobianflux/b2b-compliance-accessibility-auditor)** | WCAG 2.2, HSTS/CSP security headers, GDPR banners, CMS & contacts |
| **[Financial PDF Table Reconciler & Invoice Verifier](https://apify.com/jacobianflux/financial-pdf-table-reconciler)** | Deterministic Qty × UnitPrice invoice/PO/BOQ math + LLM Markdown |
| **[US Multi-State Contractor License & Bond Verifier](https://apify.com/jacobianflux/us-contractor-license-verifier)** | Official OR, TX, WA, CT & CA license, bond & insurance standing |
| **[India GeM & CPPP Government Tender Intelligence](https://apify.com/jacobianflux/gem-cppp-tender-intelligence)** | Live Indian GeM BidPlus & CPPP eProcure tenders & corrigendums |
| **[India State RERA Project & Promoter Verifier](https://apify.com/jacobianflux/india-rera-project-verifier)** | Official Maharashtra MahaRERA & Tamil Nadu TNRERA verification |
| **[EU Accessibility Act (EAA) & ADA Exposure Scanner](https://apify.com/jacobianflux/eu-accessibility-act-eaa-compliance-scanner)** | Multi-page EAA / EN 301 549 Annex V statements & 14 WCAG checks |

Need a custom schema field, new regional registry, or enterprise SLA? Open a ticket on the **Issues** tab — `<24h` response time.

# Actor input Schema

## `queries` (type: `array`):

List of company names (e.g. 'Apple Inc.', 'Tata Consultancy Services') or exact 20-character LEI codes (e.g. '5493001KJTIIGC8Y1R12') to verify and screen.

## `country` (type: `string`):

Optional 2-letter ISO country code to narrow GLEIF legal entity searches (e.g. 'US', 'GB', 'DE', 'IN', 'SG'). Leave blank for global search.

## `includeOfacScreening` (type: `boolean`):

Download fresh US Treasury OFAC SDN and Alias (AKA) lists during the run and screen every queried and resolved counterparty.

## `maxResults` (type: `integer`):

Maximum number of counterparties to verify and screen in a single run (1 to 1,000).

## Actor input object example

```json
{
  "queries": [
    "Apple Inc.",
    "5493001KJTIIGC8Y1R12"
  ],
  "country": "",
  "includeOfacScreening": true,
  "maxResults": 20
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing verified LEI registrations, legal/HQ addresses, BIC codes, OFAC sanctions matches, KYB scores, and APPROVE/REVIEW/BLOCK decisions.

# 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 = {
    "queries": [
        "Apple Inc.",
        "5493001KJTIIGC8Y1R12"
    ],
    "country": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("jacobianflux/global-counterparty-kyb-lei-screener").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 = {
    "queries": [
        "Apple Inc.",
        "5493001KJTIIGC8Y1R12",
    ],
    "country": "",
}

# Run the Actor and wait for it to finish
run = client.actor("jacobianflux/global-counterparty-kyb-lei-screener").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 '{
  "queries": [
    "Apple Inc.",
    "5493001KJTIIGC8Y1R12"
  ],
  "country": ""
}' |
apify call jacobianflux/global-counterparty-kyb-lei-screener --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jacobianflux/global-counterparty-kyb-lei-screener"
        }
    }
}
```

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/wo4uqb2w34N69CnMi/builds/JPlcekbPbVdgkfQNl/openapi.json
