# OFAC Sanctions Search (`bite-sized-insights/ofac-sanctions-search`) Actor

Screen names against the US Treasury OFAC Specially Designated Nationals (SDN) list and get back structured matches including aliases, programs, addresses, and identifying details.

- **URL**: https://apify.com/bite-sized-insights/ofac-sanctions-search.md
- **Developed by:** [bite-sized-insights](https://apify.com/bite-sized-insights) (community)
- **Categories:** Business, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 94.4% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.65 / 1,000 match returneds

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/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

***Screen names against the US Treasury OFAC Specially Designated Nationals (SDN) list and get back structured matches - aliases, sanctions programs, addresses, and identifying details.***

Simply provide a list of names and get back every SDN entry whose name or a recorded alias matches, with optional filters for program, country, entity type, and date of birth.

No login required. No cookies needed. Pay-per-event pricing.

### Why Choose This Actor?

**"Screen names against the OFAC SDN list in seconds"**

Our OFAC Sanctions Search actor provides:

- **Official OFAC Data**: Built from the official OFAC SDN list, not a third-party mirror
- **Name and Alias Matching**: A search term is matched against both the primary name and every recorded a.k.a. - no need to know which one is on file
- **Rich Filtering**: Narrow by sanctions program, country, entity type, or date-of-birth range, combined with your name search
- **Very Fast Responses**: Parallel processing for large batches
- **Cost-Effective**: Pay per name screened plus a small fee per match: `$0.003 / name`, `$0.001 / match`

### Quick Start

1. Open the actor on Apify and go to the **Input** tab.
2. Paste the example input below (or edit the prefilled list).
3. Click **Start** and wait for the run to finish.
4. Open the **Output** (dataset) tab to view or export the results as JSON, CSV or Excel.

```json
{
  "names": ["Rosneft"]
}
```

### Usage Examples

#### Screen a Single Name

```json
{
  "names": ["Rosneft"]
}
```

#### Screen Multiple Names

```json
{
  "names": ["Rosneft", "Lukashenko", "Bank Markazi"]
}
```

#### Narrow by Sanctions Program

```json
{
  "names": ["Bank"],
  "program": "IRAN"
}
```

#### Narrow by Country and Entity Type

```json
{
  "names": ["Trading"],
  "country": "Russia",
  "entityType": "entity"
}
```

#### Narrow by Date-of-Birth Range

```json
{
  "names": ["Ahmed"],
  "dobFrom": "1970-01-01",
  "dobTo": "1985-12-31"
}
```

### Input Parameters

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `names` | array | Yes | - | List of names to screen (1-100 per run, each up to 1000 characters; more than 100 is rejected) |
| `program` | string | No | - | Only return matches whose program tag contains this text |
| `country` | string | No | - | Only return matches whose country of address contains this text |
| `entityType` | string | No | - | Only return matches of this type: `individual`, `entity`, `vessel`, `aircraft` |
| `dobFrom` | string | No | - | Only return individuals with a date of birth on or after this date (`YYYY-MM-DD`) |
| `dobTo` | string | No | - | Only return individuals with a date of birth on or before this date (`YYYY-MM-DD`) |
| `limit` | integer | No | 100 | Maximum matches to return per name searched (1-1000) |

### Filtering Details

- Each name in `names` is matched as a **case-insensitive substring** against both the `name` and `aliases` columns - "bank" matches "Bank Markazi Jomhouri Islami Iran" and "First National Bank" alike
- `program`/`country` are also substring matches; `entityType` is an exact match
- All filters are combined with **AND logic**: a `program` or `country` filter narrows every name search, it doesn't add more results
- `dobFrom`/`dobTo` compare against dates normalized to `YYYY-MM-DD` where the source data allows it - a handful of SDN entries record only a partial or approximate year and won't sort reliably by date
- `dobFrom`/`dobTo` must be real dates in `YYYY-MM-DD` format (e.g. `1970-01-01`), otherwise the run fails; both bounds are inclusive
- `program` and `country` accept up to 1000 characters; longer values fail the run
- A match found via both `name` and `aliases`, or matched by more than one of your search names, is de-duplicated automatically

### Output Example

```json
{
  "id": "OFAC-18299",
  "source_list": "OFAC",
  "source_reference": "18299",
  "name": "ROSNEFT TRADING S.A.",
  "entity_type": "entity",
  "aliases": "",
  "programs": "UKRAINE-EO13662|VENEZUELA-EO13850",
  "countries": "Switzerland",
  "nationalities": "",
  "dates_of_birth": "",
  "place_of_birth": "",
  "addresses": "Rue Place du Lac 2, 1204, Geneva, Switzerland",
  "id_documents": "Tax ID No. CHE-309.842.573|Registration Number CH-660.0.257.011-8|Secondary sanctions risk: Ukraine-/Russia-Related Sanctions Regulations, 31 CFR 589.201 and/or 589.209|Executive Order 13662 Directive Determination - Subject to Directive 2|Executive Order 13662 Directive Determination - Subject to Directive 4|Website www.rosneft.com",
  "listed_on": "",
  "remarks": "",
  "error": null
}
```

### Output Fields

| Field | Type | Description |
|-------|------|-------------|
| `id` | string | Unique record ID (`OFAC-` + OFAC's own numeric uid) |
| `source_list` | string | Always `"OFAC"` for this actor |
| `source_reference` | string | OFAC's own unique numeric ID (uid) for this entry |
| `name` | string | Primary name of the sanctioned individual or entity |
| `entity_type` | string | `individual`, `entity`, `vessel`, or `aircraft` |
| `aliases` | string | Known aliases / a.k.a. names (pipe-separated) |
| `programs` | string | OFAC sanctions program tags, e.g. `CUBA`, `SDGT`, `DPRK3` (pipe-separated) |
| `countries` | string | Countries associated with known addresses (pipe-separated) |
| `nationalities` | string | Recorded nationalities, individuals only (pipe-separated) |
| `dates_of_birth` | string | Recorded dates of birth, individuals only, normalized to `YYYY-MM-DD` where possible (pipe-separated) |
| `place_of_birth` | string | Recorded place(s) of birth, individuals only |
| `addresses` | string | Known addresses (pipe-separated) |
| `id_documents` | string | Recorded identification documents/numbers (pipe-separated) |
| `listed_on` | string | Not populated by OFAC's SDN export - always empty for this dataset |
| `remarks` | string | Free-text notes (e.g. title/position), truncated to 2000 characters |
| `error` | null/string | Error message if the search failed |

### Free plan

Free-plan users get 5 runs in total. Each free run processes only the first 10 names in your input (the rest is ignored without an error) and returns at most 10 results.

### Pricing

| Event | Price | Charged |
|-------|-------|---------|
| Actor start | $0.002 | Once per run |
| Name screened | $0.003 | For every name you submit whose search completes, whether or not it matches |
| Match returned | $0.001 | For each matching sanctions entry returned |

| Event | Free | Bronze | Silver | Gold+ |
|---|---|---|---|---|
| Name screened | $0.003 | $0.00285 | $0.00255 | $0.00195 |
| Match returned | $0.001 | $0.00095 | $0.00085 | $0.00065 |

Gold, Platinum and Diamond share one price. The price depends on your Apify subscription plan and applies automatically.

Example costs (start + names screened + matches returned):

| Run | Cost |
|-----|------|
| 1 name, 1 match | $0.006 |
| 100 names, 20 matches in total | $0.322 |

A run takes up to 100 names. A name with no match is still charged as a screened name (but returns no matches to pay for). A name whose search fails is not charged. If you set a maximum cost per run and it is reached, the actor stops and only the names already screened are returned.

### API Integration

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/bite-sized-insights~ofac-sanctions-search/runs?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "names": ["Rosneft", "Lukashenko"],
    "entityType": "individual"
  }'
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")

run = client.actor("bite-sized-insights/ofac-sanctions-search").call(
    run_input={
        "names": ["Rosneft", "Lukashenko"]
    }
)

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(f"{item['name']} ({item['entity_type']}) - programs: {item['programs']}")
```

#### JavaScript

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

const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });

const run = await client.actor('bite-sized-insights/ofac-sanctions-search').call({
    names: ['Rosneft', 'Lukashenko'],
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach(item => {
    console.log(`${item.name} (${item.entity_type}) - programs: ${item.programs}`);
});
```

### Use Cases

- **KYC/AML Screening**: Screen customers, vendors, or counterparties against the US sanctions list before onboarding
- **Ongoing Monitoring**: Re-run periodically against your customer list to catch new designations
- **Transaction Compliance**: Screen payment/transaction parties before processing
- **Watchlist Research**: Look up known SDN entries, their aliases, and associated programs

### FAQ

#### Is this the official OFAC data?

Yes - the dataset is built from OFAC's official SDN list. It is refreshed weekly, not in real time.

#### Does this do fuzzy/phonetic name matching?

Matching is case-insensitive substring matching against the name and every recorded alias, not phonetic fuzzy-matching (e.g. Soundex/Levenshtein). It will find "Rosneft" inside "ROSNEFT TRADING S.A." but won't catch a misspelling like "Rosnaft" unless it happens to also be a recorded alias. For a compliance program that requires fuzzy matching, run this actor's substring search first, then apply your own fuzzy-matching layer on the (much smaller) result set.

#### Can I search only entities, not individuals?

Yes - set `entityType` to `entity` (or `vessel`/`aircraft`).

#### What if I need EU or UK sanctions lists too?

See our [Global Sanctions Search](https://apify.com/bite-sized-insights/global-sanctions-search) actor, which searches OFAC together with the EU and UK consolidated lists in one call.

#### What if a name doesn't match anything?

No error - that name simply contributes no records to the output. Names are all screened independently in the same run.

### Related Actors

- [global sanctions search](https://apify.com/bite-sized-insights/global-sanctions-search) - OFAC, EU and UK lists in one query.
- [validate IBAN and BIC numbers](https://apify.com/bite-sized-insights/bulk-email-phone-iban-bic-validator) - Bulk bank detail checks.
- [German website legal notice scraper](https://apify.com/bite-sized-insights/impressum) - Structured data from Impressum pages.

### Disclaimer

This actor provides access to publicly available US government sanctions data (OFAC's SDN list) for screening and research purposes. It is **not** legal advice, and using it does **not** guarantee compliance with OFAC regulations or any other sanctions regime. Matching is substring-based, not a certified fuzzy/phonetic match against the SDN list, and the underlying data is refreshed weekly rather than in real time - always verify a potential match against OFAC's own live tools before taking any compliance action. You are responsible for your own organization's sanctions compliance program and its specific requirements.

### Going broader?

Looking for more than just the US list? Check out our other actor:

- [Global Sanctions Search](https://apify.com/bite-sized-insights/global-sanctions-search) - OFAC + EU + UK sanctions lists in one search

***

**Need help?** Open an issue on the actor's repository or contact support through Apify Console.

# Actor input Schema

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

List of individual or entity names to screen against the OFAC SDN list. Matches both primary names and recorded aliases (partial, case-insensitive).

## `program` (type: `string`):

Only return matches tagged with a program containing this text (e.g. "CUBA", "SDGT", "DPRK3").

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

Only return matches whose country of address contains this text (e.g. "Iran", "Russia"). Country names are in English.

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

Only return matches of this type.

## `dobFrom` (type: `string`):

Only return individuals with a recorded date of birth on or after this date (YYYY-MM-DD). Best-effort: OFAC dates of birth are normalized to ISO format where the source data allows it, but some entries record only a partial/approximate year.

## `dobTo` (type: `string`):

Only return individuals with a recorded date of birth on or before this date (YYYY-MM-DD). Same best-effort caveat as Date of Birth From.

## `limit` (type: `integer`):

Maximum number of matches to return per name searched (1-1000).

## Actor input object example

```json
{
  "names": [
    "Rosneft",
    "Lukashenko"
  ],
  "limit": 100
}
```

# Actor output Schema

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

Matching OFAC SDN entries including aliases, programs, addresses, and identifying details

# 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": [
        "Rosneft",
        "Lukashenko"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("bite-sized-insights/ofac-sanctions-search").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": [
        "Rosneft",
        "Lukashenko",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("bite-sized-insights/ofac-sanctions-search").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": [
    "Rosneft",
    "Lukashenko"
  ]
}' |
apify call bite-sized-insights/ofac-sanctions-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bite-sized-insights/ofac-sanctions-search"
        }
    }
}
```

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/M8a0fJKCPI9FmgXWh/builds/PWELlo2XEx5Eq3N9j/openapi.json
