By SanctionsAI team · Updated 2026-08-09

Screen names against OFAC SDN in Python

Screen any person or company name against 19,000+ SDN entries.

Name screening

import requests

def screen_name(name):
    resp = requests.get(
        "https://sanctionsai.dev/sanctions",
        params={"name": name}, timeout=5
    )
    return resp.json()

result = screen_name("Oleg Deripaska")
if result["blocked"]:
    print(f"MATCH: {result['matches']}")

Batch screening from CSV

import csv, requests

with open("customers.csv") as f:
    for row in csv.DictReader(f):
        result = screen_name(row["company_name"])
        if result["blocked"]:
            print(f"BLOCKED: {row['company_name']}")
            # Log to audit file
            with open("blocked.csv", "a") as out:
                writer = csv.writer(out)
                writer.writerow([row["company_name"], result["matches"]])

Screen your agent's next payment

Check any wallet, name, or entity against OFAC, EU, UN sanctions lists in real time.

Free wallet checker

Frequently Asked Questions

Is the SanctionsAI API free?
Yes. Free tier: 5 checks/day by IP, no API key. Dev: $19/mo for 10,000 checks. Team: $99/mo for 100,000.
How fast is the API?
Sub-200ms for wallet and name checks. Suitable for real-time payment flows.
Can I use this in production?
Yes. Production-grade with 99.9% uptime. Use Dev or Team plan for production volume.
What happens if the API is down?
Fail safe: block the transaction and log the error. Never proceed without a clean screening result.

← Back to examples · SanctionsAI