<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->

# API Reference — Conducting Sanctions Screening

## OFAC

### Data Downloads

| File | URL |
|---|---|
| SDN List (CSV) | `https://www.treasury.gov/ofac/downloads/sdn.csv` |
| SDN List (XML) | `https://www.treasury.gov/ofac/downloads/sdn.xml` |
| Consolidated (CSV) | `https://www.treasury.gov/ofac/downloads/consolidated/cons_prim.csv` |
| Alt Names | `https://www.treasury.gov/ofac/downloads/sdn_alt.csv` |
| Addresses | `https://www.treasury.gov/ofac/downloads/add.csv` |

### Search API

| Endpoint | Description |
|---|---|
| `https://sanctionssearch.ofac.treas.gov/` | Web search interface |
| Parameters: name, type, program, list | Filterable search |

## EU Sanctions

| Resource | URL |
|---|---|
| Full XML List | `https://webgate.ec.europa.eu/fsd/fsf/public/files/xmlFullSanctionsList_1_1/content` |
| Sanctions Map | `https://www.sanctionsmap.eu/` |

## UN Security Council

| Resource | URL |
|---|---|
| Consolidated XML | `https://scsanctions.un.org/resources/xml/en/consolidated.xml` |
| Search Portal | `https://www.un.org/securitycouncil/sanctions/information` |

## Agent Script

```bash
node agent.js screen --name "John Doe" --type individual --lists OFAC,EU,UN
node agent.js fuzzy-match --name "Владимир" --threshold 85
node agent.js update-lists --lists OFAC
node agent.js batch-screen --input names.csv --lists OFAC,EU,UN
node agent.js --self-test
```
