# Official Sanctions Screener — OFAC, UK, UN & EU (`immemorial_damask/official-sanctions-screener`) Actor

Screen company names against official OFAC, UK FCDO, UN Security Council and EU financial sanctions lists. Organisation-first matching, aliases, fuzzy scores, and optional full-list export. No OpenSanctions.

- **URL**: https://apify.com/immemorial_damask/official-sanctions-screener.md
- **Developed by:** [Linus Holmgren](https://apify.com/immemorial_damask) (community)
- **Categories:** Lead generation, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 sanction checks

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

## Official Sanctions Screener — OFAC, UK, UN & EU

Screen **company and organisation names** against official government and United Nations sanctions lists, or export a flattened official-list extract. This Actor talks only to **public official files**. It does **not** use OpenSanctions or any other non-commercial third-party bulk dataset.

**Recommended Apify Store price:** `$2.50 / 1,000` checks or records (`sanction-check` event at `$0.0025` each), plus the standard `apify-actor-start` event. Blank inputs, filtered rows, and download or parse failures are never charged.

### Official sources

| List | Official file | Notes |
| --- | --- | --- |
| **US OFAC SDN** | [sdn.xml](https://www.treasury.gov/ofac/downloads/sdn.xml) (fallback: [OFAC Sanctions List Service](https://sanctionslistservice.ofac.treas.gov/api/PublicationPreview/exports/SDN.XML)) | Specially Designated Nationals and Blocked Persons List |
| **US OFAC Consolidated Non-SDN** | [consolidated.xml](https://www.treasury.gov/ofac/downloads/consolidated/consolidated.xml) | Optional (on by default when OFAC is selected) |
| **UK FCDO** | [UK-Sanctions-List.csv](https://sanctionslist.fcdo.gov.uk/docs/UK-Sanctions-List.csv) | Current official UK Sanctions List |
| **UN Security Council** | [consolidated.xml](https://scsanctions.un.org/resources/xml/en/consolidated.xml) | Consolidated sanctions list |
| **EU Financial Sanctions Files** | [FSF XML 1.1](https://webgate.ec.europa.eu/fsd/fsf/public/files/xmlFullSanctionsList_1_1/content?token=dG9rZW4tMjAxNw) | Official public file. If the Commission file server returns HTTP 500, the run **does not fail**: EU is reported in `listsUnavailable` / `sourcesUnavailable` and the other lists are still screened |

Every output record includes a clear `sourceAttribution` and the official `sourceUrl`.

This is **not** a wrap of the US BIS Entity List or other non-OFAC export-control lists. It screens official financial / designations lists published by OFAC, the UK FCDO, the UN Security Council and (when the file server is up) the European Commission.

### Why this Actor

- Official lists only, with legal commercial reuse of those public files and honest attribution.
- **Organisation-first by default** (`entityType: "organization"`), so a first run is a KYB screen rather than a sweep of natural-person names.
- Deterministic matching: lowercase, diacritics and punctuation stripped, legal suffixes such as Ltd / LLC / Inc / GmbH / AB / SA / JSC / OJSC / OOO removed, then exact, alias, token-set, Dice and Levenshtein scores.
- Parsed lists are cached for 6 hours in the Apify Key-Value Store `sanctions-lists-cache`, so repeat runs typically finish in a couple of seconds.
- Built for humans, schedulers, and **AI / MCP agents**.

### Input highlights

| Field | What it does |
| --- | --- |
| `mode` | `screen_names` (default) or `export_list` |
| `names` | Names to screen. Prefill includes two official sanctioned organisations and `Spotify AB` as a negative control |
| `lists` | `OFAC`, `UK`, `UN`, `EU` (default: all) |
| `entityType` | `organization` (default), `individual`, or `all` |
| `matchThreshold` | Default `80`. Scores at or above this are `MATCH`; scores down to `max(50, threshold-20)` are `POTENTIAL_MATCH` |
| `maxMatchesPerName` | Default `5` |
| `programs` / `countries` / `searchText` | Optional filters for `export_list` |
| `cacheHours` | Default `6`. Use `0` to force a fresh official download |
| `maxItems` | Default `100`. Also honors the run’s PPE budget cap |

#### Example input — first-run company screen

```json
{
  "mode": "screen_names",
  "names": ["AEROCARIBBEAN AIRLINES", "BANCO NACIONAL DE CUBA", "Spotify AB"],
  "lists": ["OFAC", "UK", "UN", "EU"],
  "entityType": "organization",
  "matchThreshold": 80,
  "maxMatchesPerName": 5,
  "cacheHours": 6,
  "maxItems": 100
}
```

#### Example input — export OFAC organisations mentioning Cuba

```json
{
  "mode": "export_list",
  "lists": ["OFAC"],
  "entityType": "organization",
  "programs": ["CUBA"],
  "maxItems": 100
}
```

### Example output (`screen_names`)

```json
{
  "queryName": "AEROCARIBBEAN AIRLINES",
  "matchStatus": "MATCH",
  "topMatchScore": 100,
  "matchCount": 1,
  "bestMatchName": "AEROCARIBBEAN AIRLINES",
  "bestMatchList": "OFAC",
  "bestMatchEntityType": "organization",
  "bestMatchPrograms": ["CUBA"],
  "bestMatchCountries": ["Cuba"],
  "bestMatchReferenceId": "36",
  "matches": [],
  "listsChecked": ["OFAC", "UK", "UN"],
  "listsUnavailable": ["EU"],
  "sourceAttribution": "Source: U.S. Department of the Treasury, Office of Foreign Assets Control (OFAC) Specially Designated Nationals and Blocked Persons List. Official public data. Retrieved from https://www.treasury.gov/ofac/downloads/sdn.xml.",
  "checkedAt": "2026-11-24T01:00:00.000Z"
}
```

`matches` is populated with the top official hits (reference ID, aliases, programmes, score and attribution). A `STATS` object in the default key-value store reports `sourcesLoaded`, `sourcesUnavailable`, cache hits and charge-cap status.

### Pricing

Pay-per-event, no usage add-on:

- `apify-actor-start` — `$0.00005` once at start
- `sanction-check` — `$0.0025` for each name screened, or each exported official record (`$2.50 / 1,000`)

Failed official-file downloads, empty names, and filtered-out export rows are not billed.

### Legal and responsible use

Official lists are published for reuse (OFAC is a US government work; the UK list is an official FCDO publication; the UN list is published by the Security Council; the EU list is published for reuse under the Commission reuse notice when the file is available). The lists themselves contain **names of designated individuals**.

This Actor defaults to **organisation screening**. If you set `entityType` to `individual` or `all`, you are the **controller** for that personal-data processing. The Actor does not add extra personal data, does not scrape private individuals, and is not a substitute for legal advice or a regulated screening vendor’s assurance report. Always verify a match against the official source URL before you act.

**Do not use this Actor as a wrap of OpenSanctions.** OpenSanctions bulk data is CC BY-NC for commercial use.

### Attribution

Please retain the `sourceAttribution` field when you reuse results, and cite the official issuer of each list.

# Changelog

This Actor's version history is a separate document: https://apify.com/immemorial_damask/official-sanctions-screener/changelog.md

# Actor input Schema

## `mode` (type: `string`):

screen_names checks each name in names against the selected official lists. export_list writes flattened official records, optionally filtered by programme, country or search text.

## `names` (type: `array`):

Company or organisation names to screen (and individual names only if entityType is individual or all). Blank values are skipped and never charged.

## `lists` (type: `array`):

Official sources to load. EU is always probed; if the official EU file server is down the run continues and reports EU in sourcesUnavailable / listsUnavailable instead of failing.

## `entityType` (type: `string`):

Defaults to organisation / company screening (KYB). Choose individual or all only if you intend to screen natural-person names from the official lists. You are the controller for any personal screening you run.

## `matchThreshold` (type: `integer`):

Score (0-100) at or above which a result is MATCH. Scores between max(50, threshold-20) and the threshold are POTENTIAL_MATCH. Uses deterministic normalisation, alias comparison, token-set / Dice and Levenshtein scoring.

## `maxMatchesPerName` (type: `integer`):

Highest-scoring official-list hits returned in the matches array.

## `programs` (type: `array`):

Optional case-insensitive programme / regime substrings used in export_list mode, e.g. CUBA or Russia.

## `countries` (type: `array`):

Optional case-insensitive country substrings used in export_list mode, e.g. Cuba or Russia.

## `searchText` (type: `string`):

Optional case-insensitive text matched against names, aliases, reference IDs, programmes, countries and remarks in export_list mode.

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

When OFAC is selected, also load the official OFAC Consolidated Sanctions List (Non-SDN). Default is on.

## `cacheHours` (type: `integer`):

Parsed official lists are cached in the Apify Key-Value Store sanctions-lists-cache. Repeat runs within this window skip re-downloading and typically finish in a couple of seconds. Use 0 to force a fresh download.

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

Hard cap on dataset rows written (names in screen_names, records in export_list). Also respects the run's PPE budget (ChargingManager). Default 100.

## Actor input object example

```json
{
  "mode": "screen_names",
  "names": [
    "AEROCARIBBEAN AIRLINES",
    "BANCO NACIONAL DE CUBA",
    "Spotify AB"
  ],
  "lists": [
    "OFAC",
    "UK",
    "UN",
    "EU"
  ],
  "entityType": "organization",
  "matchThreshold": 80,
  "maxMatchesPerName": 5,
  "programs": [],
  "countries": [],
  "includeOfacConsolidated": true,
  "cacheHours": 6,
  "maxItems": 100
}
```

# Actor output Schema

## `results` (type: `string`):

In screen_names mode: one row per query with MATCH / POTENTIAL_MATCH / NO_MATCH. In export_list mode: flattened official list records.

## `stats` (type: `string`):

Loaded official lists, unavailable sources (for example EU FSF HTTP 500), match counts, cache hits, and whether the PPE budget cap was reached.

# 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 = {
    "names": [
        "AEROCARIBBEAN AIRLINES",
        "BANCO NACIONAL DE CUBA",
        "Spotify AB"
    ],
    "lists": [
        "OFAC",
        "UK",
        "UN",
        "EU"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("immemorial_damask/official-sanctions-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 = {
    "names": [
        "AEROCARIBBEAN AIRLINES",
        "BANCO NACIONAL DE CUBA",
        "Spotify AB",
    ],
    "lists": [
        "OFAC",
        "UK",
        "UN",
        "EU",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("immemorial_damask/official-sanctions-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 '{
  "names": [
    "AEROCARIBBEAN AIRLINES",
    "BANCO NACIONAL DE CUBA",
    "Spotify AB"
  ],
  "lists": [
    "OFAC",
    "UK",
    "UN",
    "EU"
  ]
}' |
apify call immemorial_damask/official-sanctions-screener --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,immemorial_damask/official-sanctions-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/iSXGa75hiGv6tezoZ/builds/b8QZuVtbb2wM8irGo/openapi.json
