{
  "openapi": "3.0.1",
  "info": {
    "title": "OFAC Sanctions List Search & Alerts: SDN Screening",
    "description": "Screen names, wallets and IDs against the OFAC SDN and consolidated sanctions lists with fuzzy matching, or get alerts when the list changes (new designations, updates, delistings). Straight from the U.S. Treasury, flat JSON, no API key.",
    "version": "0.1",
    "x-build-id": "ujNyKqUTm9DVjhaL8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/radiant_opuntia~ofac-sanctions-alerts/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-radiant_opuntia-ofac-sanctions-alerts",
        "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/radiant_opuntia~ofac-sanctions-alerts/runs": {
      "post": {
        "operationId": "runs-sync-radiant_opuntia-ofac-sanctions-alerts",
        "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/radiant_opuntia~ofac-sanctions-alerts/run-sync": {
      "post": {
        "operationId": "run-sync-radiant_opuntia-ofac-sanctions-alerts",
        "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": {
          "searchNames": {
            "title": "Names to screen",
            "type": "array",
            "description": "People, companies, vessels or aliases to look up, e.g. 'Sberbank' or 'Vladimir Putin'. Names are matched in any word order, ignoring accents and punctuation, against the primary name and all aliases (a.k.a.). Leave empty to list or monitor the whole list.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "matchMode": {
            "title": "Match mode",
            "enum": [
              "fuzzy",
              "contains",
              "exact"
            ],
            "type": "string",
            "description": "Fuzzy tolerates typos and different spellings (recommended for compliance screening). Contains finds the text anywhere in a name. Exact only returns identical names.",
            "default": "fuzzy"
          },
          "minMatchScore": {
            "title": "Minimum fuzzy score (0-100)",
            "minimum": 50,
            "maximum": 100,
            "type": "integer",
            "description": "For fuzzy matching, only return names scoring at least this. Lower = more candidates and more false positives. 85 is a good start.",
            "default": 85
          },
          "identifiers": {
            "title": "Identifiers (passport, tax ID, IMO, crypto address...)",
            "type": "array",
            "description": "Search the free-text identifiers and addresses on each entry, e.g. a crypto wallet address, an IMO vessel number, a passport or tax ID number, an email or a street. Matches return a score of 100.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "lists": {
            "title": "Lists",
            "type": "array",
            "description": "SDN is the main OFAC blocking list. Consolidated holds the non-SDN lists (sectoral sanctions, foreign sanctions evaders, non-SDN Palestinian Legislative Council and others).",
            "items": {
              "type": "string",
              "enum": [
                "sdn",
                "consolidated"
              ],
              "enumTitles": [
                "SDN list (Specially Designated Nationals)",
                "Consolidated non-SDN lists"
              ]
            },
            "default": [
              "sdn"
            ]
          },
          "entityTypes": {
            "title": "Entity types",
            "type": "array",
            "description": "Leave empty for all types.",
            "items": {
              "type": "string",
              "enum": [
                "individual",
                "entity",
                "vessel",
                "aircraft"
              ],
              "enumTitles": [
                "Individuals",
                "Companies and organizations",
                "Vessels",
                "Aircraft"
              ]
            },
            "default": []
          },
          "programs": {
            "title": "Sanctions programs",
            "type": "array",
            "description": "OFAC program tags, e.g. RUSSIA-EO14024, SDGT, IRAN, CUBA, DPRK, VENEZUELA, CYBER2, NPWMD. A prefix also matches (IRAN matches IRAN-HR and IRAN-EO13846). Leave empty for all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Keep entries with an address, nationality or vessel flag in these countries, e.g. 'Russia', 'Iran', 'Hong Kong'.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "onlyNew": {
            "title": "Only list changes since last run (alerts mode)",
            "type": "boolean",
            "description": "Compare today's list with the snapshot saved by the previous run and output only entries that were added, updated or removed. Use with a daily Schedule and an email/Slack/webhook integration. The first run saves a baseline and returns nothing (unless you tick the option below).",
            "default": false
          },
          "alertOn": {
            "title": "Alert on",
            "type": "array",
            "description": "Used with 'Only list changes'. Which changes to output.",
            "items": {
              "type": "string",
              "enum": [
                "added",
                "updated",
                "removed"
              ],
              "enumTitles": [
                "Newly sanctioned (added)",
                "Entry changed (new aliases, addresses, IDs, remarks)",
                "Delisted (removed)"
              ]
            },
            "default": [
              "added",
              "updated"
            ]
          },
          "emitAllOnFirstRun": {
            "title": "Output everything on the first run",
            "type": "boolean",
            "description": "In alerts mode, the first run normally just records a baseline. Tick this to output all matching entries once on that first run.",
            "default": false
          },
          "stateKey": {
            "title": "Alert name (optional)",
            "type": "string",
            "description": "Separate memory for each alert, e.g. 'russia-new-designations'. Use a different name for each Schedule so they don't share a baseline."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Stop after this many entries. In alerts mode, changes beyond this cap are not output and are not re-sent on the next run, so keep it high for alerts.",
            "default": 1000
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}