{
  "openapi": "3.0.1",
  "info": {
    "title": "Official Sanctions Screener — OFAC, UK, UN & EU",
    "description": "Screen company names against official OFAC, UK FCDO, UN Security Council and EU financial sanctions lists. Organisation-first matching, aliases, fuzzy scores, and optional full-list export. No OpenSanctions.",
    "version": "1.0",
    "x-build-id": "b8QZuVtbb2wM8irGo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/immemorial_damask~official-sanctions-screener/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-immemorial_damask-official-sanctions-screener",
        "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/immemorial_damask~official-sanctions-screener/runs": {
      "post": {
        "operationId": "runs-sync-immemorial_damask-official-sanctions-screener",
        "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/immemorial_damask~official-sanctions-screener/run-sync": {
      "post": {
        "operationId": "run-sync-immemorial_damask-official-sanctions-screener",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "screen_names",
              "export_list"
            ],
            "type": "string",
            "description": "screen_names checks each name in names against the selected official lists. export_list writes flattened official records, optionally filtered by programme, country or search text.",
            "default": "screen_names"
          },
          "names": {
            "title": "Names to screen",
            "type": "array",
            "description": "Company or organisation names to screen (and individual names only if entityType is individual or all). Blank values are skipped and never charged.",
            "items": {
              "type": "string"
            },
            "default": [
              "AEROCARIBBEAN AIRLINES",
              "BANCO NACIONAL DE CUBA",
              "Spotify AB"
            ]
          },
          "lists": {
            "title": "Official lists",
            "type": "array",
            "description": "Official sources to load. EU is always probed; if the official EU file server is down the run continues and reports EU in sourcesUnavailable / listsUnavailable instead of failing.",
            "items": {
              "type": "string",
              "enum": [
                "OFAC",
                "UK",
                "UN",
                "EU"
              ],
              "enumTitles": [
                "US OFAC (SDN + Consolidated Non-SDN)",
                "UK FCDO Sanctions List",
                "UN Security Council Consolidated List",
                "EU Financial Sanctions Files"
              ]
            },
            "default": [
              "OFAC",
              "UK",
              "UN",
              "EU"
            ]
          },
          "entityType": {
            "title": "Entity type",
            "enum": [
              "organization",
              "individual",
              "all"
            ],
            "type": "string",
            "description": "Defaults to organisation / company screening (KYB). Choose individual or all only if you intend to screen natural-person names from the official lists. You are the controller for any personal screening you run.",
            "default": "organization"
          },
          "matchThreshold": {
            "title": "Match threshold",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Score (0-100) at or above which a result is MATCH. Scores between max(50, threshold-20) and the threshold are POTENTIAL_MATCH. Uses deterministic normalisation, alias comparison, token-set / Dice and Levenshtein scoring.",
            "default": 80
          },
          "maxMatchesPerName": {
            "title": "Maximum matches per name",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Highest-scoring official-list hits returned in the matches array.",
            "default": 5
          },
          "programs": {
            "title": "Programme filter (export mode)",
            "type": "array",
            "description": "Optional case-insensitive programme / regime substrings used in export_list mode, e.g. CUBA or Russia.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "countries": {
            "title": "Country filter (export mode)",
            "type": "array",
            "description": "Optional case-insensitive country substrings used in export_list mode, e.g. Cuba or Russia.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "searchText": {
            "title": "Search text (export mode)",
            "type": "string",
            "description": "Optional case-insensitive text matched against names, aliases, reference IDs, programmes, countries and remarks in export_list mode."
          },
          "includeOfacConsolidated": {
            "title": "Include OFAC Consolidated Non-SDN list",
            "type": "boolean",
            "description": "When OFAC is selected, also load the official OFAC Consolidated Sanctions List (Non-SDN). Default is on.",
            "default": true
          },
          "cacheHours": {
            "title": "List cache hours",
            "minimum": 0,
            "maximum": 168,
            "type": "integer",
            "description": "Parsed official lists are cached in the Apify Key-Value Store sanctions-lists-cache. Repeat runs within this window skip re-downloading and typically finish in a couple of seconds. Use 0 to force a fresh download.",
            "default": 6
          },
          "maxItems": {
            "title": "Maximum output records",
            "minimum": 0,
            "maximum": 50000,
            "type": "integer",
            "description": "Hard cap on dataset rows written (names in screen_names, records in export_list). Also respects the run's PPE budget (ChargingManager). Default 100.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}