Check the setup
- Python 3.10 or newer
- A notebook environment such as Jupyter or Google Colab
- An internet connection
Treasury blocked-party names for building bounded sanctions-screening alerts that stay inside OFAC matching limits.
From source to product signal
OFAC publishes the SDN list as CSV and XML. Start with the primary names file and a handful of exact-string checks. A name match is not a confirmed hit, aliases live in a separate file, and this extract is not a screening product or legal advice.
Install the packages, then run the notebook cell.
python -m pip install pandas
import pandas as pd
columns = [
"ent_num",
"sdn_name",
"sdn_type",
"program",
"title",
"call_sign",
"vess_type",
"tonnage",
"grt",
"vess_flag",
"vess_owner",
"remarks",
]
sdn = pd.read_csv(
"https://www.treasury.gov/ofac/downloads/sdn.csv",
names=columns,
dtype=str,
)
sdn["retrieved_at_utc"] = pd.Timestamp.now(tz="UTC")
print(sdn[["ent_num", "sdn_name", "sdn_type", "program"]].head(20))Test a useful signal
Test whether a small authorized name list can be checked against primary SDN names.
Office of Foreign Assets Control is a government source. Last verified 2026-08-17. Temporal coverage: continuously updated designations.