{
  "openapi": "3.0.1",
  "info": {
    "title": "Canada FINTRAC MSB, Crypto & PSP KYB + Penalty Screener",
    "description": "Screen, enrich, and monitor 9,000+ Canadian & Foreign Money Services Businesses (MSBs), Virtual Currency (Crypto) firms, and Payment Service Providers (PSPs) from FINTRAC's official registry, cross-matched against $206M+ in FINTRAC AML Administrative Monetary Penalties.",
    "version": "1.0",
    "x-build-id": "Im6EhI2AdOo7m4JQx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/regpulse-data~canada-fintrac-msb-kyb-screener/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-regpulse-data-canada-fintrac-msb-kyb-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/regpulse-data~canada-fintrac-msb-kyb-screener/runs": {
      "post": {
        "operationId": "runs-sync-regpulse-data-canada-fintrac-msb-kyb-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/regpulse-data~canada-fintrac-msb-kyb-screener/run-sync": {
      "post": {
        "operationId": "run-sync-regpulse-data-canada-fintrac-msb-kyb-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": "Operating Mode",
            "enum": [
              "registry_search",
              "penalties_only",
              "watchlist_changes"
            ],
            "type": "string",
            "description": "Choose 'registry_search' to query and enrich FINTRAC MSB/Crypto/PSP records (cross-matched with AML fines), 'penalties_only' to extract all FINTRAC Administrative Monetary Penalties (AMPs), or 'watchlist_changes' to detect newly registered, revoked, expired, or newly fined entities since your previous run.",
            "default": "registry_search"
          },
          "searchQueries": {
            "title": "Search Queries (Company Names, Aliases, Domains, or MSB Reg #)",
            "type": "array",
            "description": "Optional list of search terms for batch KYB screening or targeted lookup. Matches against Legal Name, Operating Names, MSB Registration Number (e.g., M08992367), Incorporation Number, or Website domain (e.g., dahabshiil.ca). Leave empty to scan the entire registry.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "registrationStatuses": {
            "title": "MSB Registration Status Filter",
            "type": "array",
            "description": "Optional filter by FINTRAC registration status: 'Registered', 'Revoked', 'Expired', or 'Ceased'. Leave empty to include all statuses.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "servicesFilter": {
            "title": "Regulated Services Filter (OR Match)",
            "type": "array",
            "description": "Optional filter by regulated activities (e.g., 'Virtual Currency', 'PSP', 'Foreign Exchange', 'Money Transferring', 'Crowdfunding', 'Cheque Cashing', 'Issuing and Redeeming Money Orders', 'Armoured Cars', 'Private ABM acquirer services'). Records matching ANY listed service are returned.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "provincesOrCountries": {
            "title": "Province / State / Country Filter",
            "type": "array",
            "description": "Optional case-insensitive filter by Canadian province/territory, US state, or country name (e.g., 'Ontario', 'British Columbia', 'Quebec', 'United States').",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "foreignMsbOnly": {
            "title": "Foreign MSBs Only",
            "type": "boolean",
            "description": "If enabled, only return Foreign Money Services Businesses operating in Canada (Foreign MSB Indicator = Yes).",
            "default": false
          },
          "hasWebsiteOnly": {
            "title": "Require Corporate Website / Domain (Clay / Lead-Gen)",
            "type": "boolean",
            "description": "If enabled, only return entities that list a valid corporate website domain (ideal for Clay.com, Apollo, and B2B outbound enrichment).",
            "default": false
          },
          "hasPhoneOnly": {
            "title": "Require Main Office Phone Number",
            "type": "boolean",
            "description": "If enabled, only return entities with a listed main office telephone number.",
            "default": false
          },
          "onlyWithPenalties": {
            "title": "Only Entities Matched with FINTRAC AML Penalties",
            "type": "boolean",
            "description": "If enabled, only return MSB records cross-matched against FINTRAC's public Administrative Monetary Penalties (AMP) enforcement list.",
            "default": false
          },
          "minRiskLevel": {
            "title": "Minimum KYB Risk Tier",
            "enum": [
              "ANY",
              "LOW",
              "MEDIUM",
              "HIGH",
              "CRITICAL"
            ],
            "type": "string",
            "description": "Filter records at or above a computed KYB risk tier: ANY, LOW, MEDIUM, HIGH, or CRITICAL (CRITICAL = Revoked registration or FINTRAC AML penalty match).",
            "default": "ANY"
          },
          "expiringWithinDays": {
            "title": "License Expiring Within N Days (Renewal Lead Signal)",
            "minimum": 0,
            "maximum": 1095,
            "type": "integer",
            "description": "Set > 0 (e.g., 90) to return only active 'Registered' MSBs whose registration expires within the next N days. Set 0 to disable.",
            "default": 0
          },
          "registeredOrRevokedSince": {
            "title": "Approved or Revoked Since Date (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional ISO date (YYYY-MM-DD). Returns entities whose initial approval date OR revocation date is on or after this date (e.g., '2026-01-01').",
            "default": ""
          },
          "includePenaltiesCrossMatch": {
            "title": "Cross-Match FINTRAC AML Penalties ($206M+ Enforcement Feed)",
            "type": "boolean",
            "description": "Automatically fetch FINTRAC's live Administrative Monetary Penalties (AMP) register and cross-match enforcement actions by legal name, operating name, and former/registered aliases.",
            "default": true
          },
          "stateStoreName": {
            "title": "Watchlist Named Key-Value Store (watchlist_changes mode)",
            "type": "string",
            "description": "Name of the persistent Apify Key-Value Store used by 'watchlist_changes' mode to compare today's FINTRAC registry and penalty snapshot against the last scheduled run.",
            "default": "fintrac-msb-watchlist-state"
          },
          "maxResults": {
            "title": "Max Results (0 = Unlimited)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of records to deliver and bill in this run. Defaults to 100 for safe testing; set to 0 to export all matching records (up to 9,000+).",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}