# OFAC Sanctions Change Digest | SDN List Monitor (`taroyamada/sanctions-change-digest`) Actor

Monitor the OFAC SDN (Specially Designated Nationals) sanctions list for additions and removals. Summary-first digest per configured watch with snapshot-backed change detection, watch-term name alerts, and program/type filtering.

- **URL**: https://apify.com/taroyamada/sanctions-change-digest.md
- **Developed by:** [太郎 山田](https://apify.com/taroyamada) (community)
- **Categories:** Business, News, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## OFAC Sanctions Change Digest | SDN List Monitor

Monitor the OFAC SDN (Specially Designated Nationals) sanctions list for additions and removals. Summary-first digest per configured watch with snapshot-backed change detection, watch-term name alerts, and program/type filtering.

### Store Quickstart

- Start with `store-input.example.json` for a two-watch (SDGT entities + Cuba programs) dataset run.
- If that matches your workflow, switch to `store-input.templates.json` and pick one of:
  - `SDGT Quickstart (2-program starter)` for first-run validation
  - `Named Entity Watch` for counterparty name-screening against the SDN list
  - `Russia & Iran Program Digest` for geo-targeted sanctions tracking
  - `Individuals-Only Watch` for people-focused screening
  - `Webhook Upgrade` for compliance automation with action-needed handoff

### Key Features

- 📋 **Summary-first output** — 1 watch = 1 digest row; raw SDN entries nested under `entries`
- 🔄 **Change detection** — snapshot-backed diff flags new additions and list removals between runs
- 🔍 **Name screening** — watch-term matching across SDN entry names and all aliases (case-insensitive)
- 🗂️ **Program & type filtering** — scope any watch to OFAC program codes or entity types
- 🪝 **Webhook delivery** — route action-needed digests to Slack, compliance tools, or any HTTP endpoint
- ✅ **No auth required** — OFAC publishes the SDN XML as a public feed

### Use Cases

| Who | Why |
|-----|-----|
| Compliance teams | Daily/weekly digest of SDN additions for counterparty screening |
| AML/KYC workflows | Name-match alerting when specific entities appear on the list |
| Risk systems | Track geo-targeted programs (Russia, Iran, Cuba) for jurisdictional exposure |
| Procurement & finance | Verify vendors/suppliers haven't been added to the SDN list |

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| watches | array | — | One entry per watch target. Each watch produces one summary digest row. Set programs and/or sdnTypes to narrow the scope |
| sdnXmlUrl | string | `"https://www.treasury.gov/ofac/downloads/sdn.xml"` | Override the OFAC SDN XML feed URL. The default legacy URL (https://www.treasury.gov/ofac/downloads/sdn.xml) redirects t |
| maxEntriesPerWatch | integer | `50` | Default upper bound on SDN entries in the nested output per watch. Can be overridden per-watch with the maxEntries field |
| requestTimeoutSeconds | integer | `60` | Timeout for the SDN XML fetch. The file is several MB so allow at least 60 seconds. |
| delivery | string | `"dataset"` | dataset stores results in the Apify dataset. webhook posts the digest JSON to webhookUrl. |
| webhookUrl | string | — | POST target for the digest payload. Leave empty for dataset delivery. |
| datasetMode | string | `"all"` | all emits every watch digest row. action_needed emits only watches with name-match hits. new_only emits only watches wit |
| snapshotKey | string | `"sanctions-change-digest-state"` | Stable key used to persist seen SDN entry UIDs across recurring runs so new_only and action_needed modes stay comparable |

#### Input Example

```json
{
  "watches": [
    {
      "id": "sdgt-entities",
      "name": "SDGT Entities",
      "programs": "SDGT",
      "sdnTypes": "Entity",
      "maxEntries": 20
    },
    {
      "id": "name-screen",
      "name": "Counterparty Screen",
      "watchTerms": "Acme Corp,Example Bank",
      "maxEntries": 10
    }
  ],
  "delivery": "dataset",
  "datasetMode": "all",
  "snapshotKey": "sanctions-change-digest-state"
}
````

### Output

| Field | Type | Description |
|-------|------|-------------|
| `meta` | object |  |
| `errors` | array |  |
| `digests` | array |  |
| `digests[].watchId` | string |  |
| `digests[].watchName` | string |  |
| `digests[].programs` | array |  |
| `digests[].sdnTypes` | array |  |
| `digests[].watchTerms` | array |  |
| `digests[].checkedAt` | timestamp |  |
| `digests[].status` | string |  |
| `digests[].newEntryCount` | number |  |
| `digests[].removedEntryCount` | number |  |
| `digests[].totalMatchCount` | number |  |
| `digests[].changedSinceLastRun` | boolean |  |
| `digests[].actionNeeded` | boolean |  |
| `digests[].recommendedAction` | string |  |
| `digests[].signalTags` | array |  |
| `digests[].watchTermHits` | array |  |
| `digests[].typeBreakdown` | object |  |
| `digests[].programBreakdown` | object |  |
| `digests[].removedUids` | array |  |
| `digests[].entries` | array |  |
| `digests[].error` | null |  |

#### Output Example

```json
{
  "meta": {
    "generatedAt": "2026-04-03T12:00:00.000Z",
    "sdnPublishDate": "04/03/2026",
    "sdnRecordCount": 18698,
    "newEntries": 3,
    "actionNeededCount": 0,
    "executiveSummary": {
      "overallStatus": "watch",
      "brief": "3 new SDN addition(s) and 0 removal(s) detected across 2 watch(es)."
    }
  },
  "digests": [
    {
      "watchId": "sdgt-entities",
      "status": "watch",
      "newEntryCount": 3,
      "removedEntryCount": 0,
      "totalMatchCount": 1847,
      "entries": [...]
    }
  ]
}
```

### API Usage

Run this actor programmatically using the Apify API. Replace `YOUR_API_TOKEN` with your token from [Apify Console → Settings → Integrations](https://console.apify.com/account/integrations).

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/taroyamada~sanctions-change-digest/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "watches": [ { "id": "sdgt-entities", "name": "SDGT Entities", "programs": "SDGT", "sdnTypes": "Entity", "maxEntries": 20 }, { "id": "name-screen", "name": "Counterparty Screen", "watchTerms": "Acme Corp,Example Bank", "maxEntries": 10 } ], "delivery": "dataset", "datasetMode": "all", "snapshotKey": "sanctions-change-digest-state" }'
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("taroyamada/sanctions-change-digest").call(run_input={
  "watches": [
    {
      "id": "sdgt-entities",
      "name": "SDGT Entities",
      "programs": "SDGT",
      "sdnTypes": "Entity",
      "maxEntries": 20
    },
    {
      "id": "name-screen",
      "name": "Counterparty Screen",
      "watchTerms": "Acme Corp,Example Bank",
      "maxEntries": 10
    }
  ],
  "delivery": "dataset",
  "datasetMode": "all",
  "snapshotKey": "sanctions-change-digest-state"
})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

#### JavaScript / Node.js

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

const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });
const run = await client.actor('taroyamada/sanctions-change-digest').call({
  "watches": [
    {
      "id": "sdgt-entities",
      "name": "SDGT Entities",
      "programs": "SDGT",
      "sdnTypes": "Entity",
      "maxEntries": 20
    },
    {
      "id": "name-screen",
      "name": "Counterparty Screen",
      "watchTerms": "Acme Corp,Example Bank",
      "maxEntries": 10
    }
  ],
  "delivery": "dataset",
  "datasetMode": "all",
  "snapshotKey": "sanctions-change-digest-state"
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

### Tips & Limitations

- Run daily for active watchlists; weekly for passive monitoring.
- Webhook delivery works well for compliance team Slack channels — include docket URL for 1-click access.
- Use `watchKeywords` generously — false positives are cheap to triage, false negatives miss filings.
- Pair with `regulatory-change-monitor` for cross-agency coverage.
- Archive Dataset rows weekly for long-term compliance evidence retention.

### FAQ

**How far back does history go?**

This actor monitors forward-only — new items since first run. For historical data, use the agency's own search tool.

**What timezones are used?**

All timestamps are UTC. Use your downstream pipeline to convert to agency-local time if needed.

**Does it translate non-English content?**

No — original language is preserved. Use downstream translation services if needed.

**Is the data official?**

Yes — sourced directly from official government websites and feeds. Not a third-party aggregator.

**Can I use this for legal research?**

For alerting and monitoring, yes. For litigation research, cross-verify with primary sources (agency websites) — this actor is a monitoring tool, not a legal database.

### Related Actors

Government & Regulatory cluster — explore related Apify tools:

- [EPA Enforcement Digest | ECHO Compliance Risk Monitor](https://apify.com/taroyamada/epa-enforcement-digest) — Monitor EPA ECHO all-media facility search, corporate compliance screener, and enforcement case feeds with one summary-first digest row per watched company, facility, or case feed.
- [FDA Warning Letters Digest | Summary-First Feed](https://apify.com/taroyamada/fda-warning-letter-digest) — Monitor public FDA warning letters with one summary-first digest row per configured feed.
- [Federal Register Digest | Agency Rule & Notice Monitor](https://apify.com/taroyamada/federal-register-digest) — Monitor Federal Register documents — rules, proposed rules, and notices — per configured agency feed.
- [Government Contract Award Monitor | Award & Competitor Watch](https://apify.com/taroyamada/government-contract-award-monitor) — Monitor public-sector contract award notices for new wins, notable awardees, incumbent recompetes, and competitor signals — one digest row per configured feed without brittle broad crawling.
- [Grants.gov Funding Digest | Opportunity Watch & Signal Digest](https://apify.com/taroyamada/grants-gov-funding-digest) — Monitor Grants.
- [NHTSA Vehicle Recall Digest | Recalls + Complaints Watch](https://apify.com/taroyamada/nhtsa-vehicle-recall-digest) — Monitor official NHTSA vehicle recall and complaint endpoints for watched model-family, VIN, and manufacturer feeds.
- [Product Safety Recall Digest | CPSC + openFDA Alerts](https://apify.com/taroyamada/product-safety-recall-digest) — Monitor CPSC saferproducts.
- [Regulatory Change Monitor API](https://apify.com/taroyamada/regulatory-change-monitor) — Monitor official regulator update feeds, government bulletin pages, and public compliance notices with one action-oriented digest row per monitored source.
- [Tariff Trade Change Digest | Federal Register + HTS Monitor](https://apify.com/taroyamada/tariff-trade-change-digest) — Monitor U.
- [Treasury Fiscal Data Digest | Debt, Rates & Budget Monitor](https://apify.com/taroyamada/treasury-fiscal-data-digest) — Monitor the U.
- [USPTO Patent Monitor API | JSON + Webhook](https://apify.com/taroyamada/uspto-patent-scraper) — Search and monitor US patent filings with multi-source fallback.
- [Campaign Finance & Lobbying Digest | FEC + LDA Watch](https://apify.com/taroyamada/campaign-finance-lobbying-digest) — Monitor official FEC OpenFEC committee reports and LDA.

### Cost

**Pay Per Event**:

- `actor-start`: $0.01 (flat fee per run)
- `dataset-item`: $0.003 per output item

**Example**: 1,000 items = $0.01 + (1,000 × $0.003) = **$3.01**

No subscription required — you only pay for what you use.

# Actor input Schema

## `watches` (type: `array`):

One entry per watch target. Each watch produces one summary digest row. Set programs and/or sdnTypes to narrow the scope; add watchTerms for name-match alerting. If omitted, a single all-programs default watch is used.

## `sdnXmlUrl` (type: `string`):

Override the OFAC SDN XML feed URL. The default legacy URL (https://www.treasury.gov/ofac/downloads/sdn.xml) redirects to the current sanctions list service endpoint. Change only if the URL moves.

## `maxEntriesPerWatch` (type: `integer`):

Default upper bound on SDN entries in the nested output per watch. Can be overridden per-watch with the maxEntries field.

## `requestTimeoutSeconds` (type: `integer`):

Timeout for the SDN XML fetch. The file is several MB so allow at least 60 seconds.

## `delivery` (type: `string`):

dataset stores results in the Apify dataset. webhook posts the digest JSON to webhookUrl.

## `webhookUrl` (type: `string`):

POST target for the digest payload. Leave empty for dataset delivery.

## `datasetMode` (type: `string`):

all emits every watch digest row. action\_needed emits only watches with name-match hits. new\_only emits only watches with entries not seen in the previous run.

## `snapshotKey` (type: `string`):

Stable key used to persist seen SDN entry UIDs across recurring runs so new\_only and action\_needed modes stay comparable. Use the same key across scheduled runs.

## `notifyOnNoNew` (type: `boolean`):

When true, every watch always produces a digest row even if no new entries were found. When false, watches with no new entries are omitted from the output.

## `dryRun` (type: `boolean`):

Fetch and process without persisting state or posting webhooks. Safe for testing input shapes.

## `nowIso` (type: `string`):

Set to a fixed ISO timestamp to make runs deterministic against fixture data.

## `fixturePath` (type: `string`):

Local XML or JSON fixture for offline tests. When set, the live OFAC SDN URL is not fetched.

## Actor input object example

```json
{
  "sdnXmlUrl": "https://www.treasury.gov/ofac/downloads/sdn.xml",
  "maxEntriesPerWatch": 50,
  "requestTimeoutSeconds": 60,
  "delivery": "dataset",
  "datasetMode": "all",
  "snapshotKey": "sanctions-change-digest-state",
  "notifyOnNoNew": true,
  "dryRun": false
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("taroyamada/sanctions-change-digest").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("taroyamada/sanctions-change-digest").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call taroyamada/sanctions-change-digest --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=taroyamada/sanctions-change-digest",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "OFAC Sanctions Change Digest | SDN List Monitor",
        "description": "Monitor the OFAC SDN (Specially Designated Nationals) sanctions list for additions and removals. Summary-first digest per configured watch with snapshot-backed change detection, watch-term name alerts, and program/type filtering.",
        "version": "0.1",
        "x-build-id": "sLjJhOTm3vEXvI3Hn"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/taroyamada~sanctions-change-digest/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-taroyamada-sanctions-change-digest",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/taroyamada~sanctions-change-digest/runs": {
            "post": {
                "operationId": "runs-sync-taroyamada-sanctions-change-digest",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/taroyamada~sanctions-change-digest/run-sync": {
            "post": {
                "operationId": "run-sync-taroyamada-sanctions-change-digest",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "watches": {
                        "title": "Watch configurations",
                        "type": "array",
                        "description": "One entry per watch target. Each watch produces one summary digest row. Set programs and/or sdnTypes to narrow the scope; add watchTerms for name-match alerting. If omitted, a single all-programs default watch is used.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "id": {
                                    "title": "Watch ID",
                                    "description": "Stable identifier used in snapshots and output rows.",
                                    "type": "string"
                                },
                                "name": {
                                    "title": "Watch name",
                                    "description": "Human-readable label for this watch in the digest output.",
                                    "type": "string"
                                },
                                "watchTerms": {
                                    "title": "Watch terms (name search)",
                                    "description": "Comma-separated names or keywords to search in SDN entry names and aliases. Matching entries receive a watch_term_hit signal tag. Leave empty to match all entries in scope.",
                                    "type": "string"
                                },
                                "programs": {
                                    "title": "OFAC program codes",
                                    "description": "Comma-separated OFAC program codes to include, e.g. SDGT,IRAN,CUBA,RUSSIA-EO14024. Leave empty for all programs.",
                                    "type": "string"
                                },
                                "sdnTypes": {
                                    "title": "SDN entry types",
                                    "description": "Comma-separated entry types to include: Individual, Entity, Vessel, Aircraft. Leave empty for all types.",
                                    "type": "string"
                                },
                                "maxEntries": {
                                    "title": "Max entries in output (per watch)",
                                    "description": "Upper bound on SDN entries nested in the digest output for this watch. Counts and summaries reflect the full matched set; this cap only limits the nested entries array.",
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 500,
                                    "default": 50
                                }
                            }
                        }
                    },
                    "sdnXmlUrl": {
                        "title": "OFAC SDN XML URL",
                        "type": "string",
                        "description": "Override the OFAC SDN XML feed URL. The default legacy URL (https://www.treasury.gov/ofac/downloads/sdn.xml) redirects to the current sanctions list service endpoint. Change only if the URL moves.",
                        "default": "https://www.treasury.gov/ofac/downloads/sdn.xml"
                    },
                    "maxEntriesPerWatch": {
                        "title": "Global max entries per watch",
                        "minimum": 1,
                        "maximum": 500,
                        "type": "integer",
                        "description": "Default upper bound on SDN entries in the nested output per watch. Can be overridden per-watch with the maxEntries field.",
                        "default": 50
                    },
                    "requestTimeoutSeconds": {
                        "title": "HTTP request timeout (seconds)",
                        "minimum": 5,
                        "maximum": 300,
                        "type": "integer",
                        "description": "Timeout for the SDN XML fetch. The file is several MB so allow at least 60 seconds.",
                        "default": 60
                    },
                    "delivery": {
                        "title": "Delivery mode",
                        "enum": [
                            "dataset",
                            "webhook"
                        ],
                        "type": "string",
                        "description": "dataset stores results in the Apify dataset. webhook posts the digest JSON to webhookUrl.",
                        "default": "dataset"
                    },
                    "webhookUrl": {
                        "title": "Webhook URL (required when delivery=webhook)",
                        "type": "string",
                        "description": "POST target for the digest payload. Leave empty for dataset delivery."
                    },
                    "datasetMode": {
                        "title": "Dataset output mode",
                        "enum": [
                            "all",
                            "action_needed",
                            "new_only"
                        ],
                        "type": "string",
                        "description": "all emits every watch digest row. action_needed emits only watches with name-match hits. new_only emits only watches with entries not seen in the previous run.",
                        "default": "all"
                    },
                    "snapshotKey": {
                        "title": "Snapshot key for recurring state",
                        "type": "string",
                        "description": "Stable key used to persist seen SDN entry UIDs across recurring runs so new_only and action_needed modes stay comparable. Use the same key across scheduled runs.",
                        "default": "sanctions-change-digest-state"
                    },
                    "notifyOnNoNew": {
                        "title": "Emit digest even when no new entries found",
                        "type": "boolean",
                        "description": "When true, every watch always produces a digest row even if no new entries were found. When false, watches with no new entries are omitted from the output.",
                        "default": true
                    },
                    "dryRun": {
                        "title": "Dry run (skip snapshot writes and webhook delivery)",
                        "type": "boolean",
                        "description": "Fetch and process without persisting state or posting webhooks. Safe for testing input shapes.",
                        "default": false
                    },
                    "nowIso": {
                        "title": "Override current time (ISO string, for testing)",
                        "type": "string",
                        "description": "Set to a fixed ISO timestamp to make runs deterministic against fixture data."
                    },
                    "fixturePath": {
                        "title": "Fixture file path (testing)",
                        "type": "string",
                        "description": "Local XML or JSON fixture for offline tests. When set, the live OFAC SDN URL is not fetched."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
