{
  "openapi": "3.0.1",
  "info": {
    "title": "US NYDFS BitLicense, Crypto Trusts & Enforcement Actions KYB",
    "description": "Screen & extract all New York Department of Financial Services (NYDFS) Virtual Currency BitLicensees, Limited Purpose Trust Charters, Voluntary Surrenders, Greenlisted Coins & 120+ Consent Orders/Fines.",
    "version": "1.0",
    "x-build-id": "yVpiryLa59aQDocj6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/regpulse-data~us-nydfs-bitlicense-crypto-enforcement-kyb/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-regpulse-data-us-nydfs-bitlicense-crypto-enforcement-kyb",
        "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~us-nydfs-bitlicense-crypto-enforcement-kyb/runs": {
      "post": {
        "operationId": "runs-sync-regpulse-data-us-nydfs-bitlicense-crypto-enforcement-kyb",
        "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~us-nydfs-bitlicense-crypto-enforcement-kyb/run-sync": {
      "post": {
        "operationId": "run-sync-regpulse-data-us-nydfs-bitlicense-crypto-enforcement-kyb",
        "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": "Operation Mode",
            "enum": [
              "regulated_search",
              "kyb_screen",
              "enforcement_actions",
              "watchlist_diff"
            ],
            "type": "string",
            "description": "Select 'regulated_search' to extract NYDFS-regulated virtual currency entities (BitLicensees, Limited Purpose Trust Charters, Conditional BitLicensees & optional Surrender Notices), 'kyb_screen' for single or batch counterparty verification across both the NYDFS Virtual Currency Register and Enforcement Actions, 'enforcement_actions' to extract NYDFS Consent Orders and disciplinary actions, or 'watchlist_diff' for stateful compliance change monitoring.",
            "default": "regulated_search"
          },
          "query": {
            "title": "Search Query (Entity Name, DBA/Former Name, Licence Type, or Enforcement Keyword)",
            "type": "string",
            "description": "Case-insensitive filter matching legal name, DBA/f/k/a brand (e.g., 'Coinbase', 'Robinhood', 'Paxos', 'Square', 'LibertyX', 'Genesis', 'Gemini'), licence category, or enforcement action title/sector."
          },
          "searchQueries": {
            "title": "Batch Counterparty Queries (for kyb_screen or multi-term filtering)",
            "type": "array",
            "description": "Screen multiple crypto exchanges, custodians, stablecoin issuers, payment firms, or banks in a single run (e.g., ['Coinbase', 'Robinhood', 'Paxos', 'Genesis', 'Block']).",
            "items": {
              "type": "string"
            }
          },
          "licenceTypes": {
            "title": "NYDFS Virtual Currency Licence Types",
            "type": "array",
            "description": "Filter virtual currency register records by NYDFS licence category. Leave empty to include all categories.",
            "items": {
              "type": "string",
              "enum": [
                "BITLICENSE",
                "TRUST_CHARTER",
                "CONDITIONAL_BITLICENSE",
                "SURRENDERED_OR_HISTORICAL"
              ]
            },
            "default": [
              "BITLICENSE",
              "TRUST_CHARTER",
              "CONDITIONAL_BITLICENSE",
              "SURRENDERED_OR_HISTORICAL"
            ]
          },
          "activeOnly": {
            "title": "Active Licences Only (regulated_search Mode)",
            "type": "boolean",
            "description": "Applies to regulated_search mode. When enabled (default), returns currently active NYDFS BitLicensees and Limited Purpose Trust Companies while excluding voluntary surrenders. Set to false (or select only SURRENDERED_OR_HISTORICAL in licenceTypes) to include Surrendered/Historical Virtual Currency Notices. In kyb_screen mode, both active licences and voluntary surrenders are always screened.",
            "default": true
          },
          "crossCheckEnforcement": {
            "title": "Cross-Check Against NYDFS Enforcement Actions & Consent Orders",
            "type": "boolean",
            "description": "Automatically cross-references NYDFS BitLicensees, Trust Companies, and Surrendered entities against all NYDFS Enforcement Actions and Consent Orders.",
            "default": true
          },
          "onlyCryptoEnforcement": {
            "title": "Virtual Currency / Crypto Enforcement Actions Only (enforcement_actions Mode)",
            "type": "boolean",
            "description": "When enabled in enforcement_actions mode, returns only NYDFS enforcement orders involving Virtual Currency licensees, crypto trust companies, or virtual currency business activity (including orders tagged under Banks and Trusts or Cybersecurity such as Paxos, Gemini, Block, and PayPal).",
            "default": false
          },
          "maxResults": {
            "title": "Maximum Records to Return",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Cap the number of billed records pushed to the dataset (1 to 5000).",
            "default": 100
          },
          "stateStoreName": {
            "title": "Persistent State Key-Value Store Name (for watchlist_diff Mode)",
            "type": "string",
            "description": "Named Apify Key-Value Store used to persist the NYDFS watchlist baseline snapshot across scheduled runs and detect newly granted BitLicenses, Trust Charters, Voluntary Surrenders, or new Consent Orders.",
            "default": "us-nydfs-crypto-watchlist-state"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}