{
  "openapi": "3.0.1",
  "info": {
    "title": "OCC Bank Applications Monitor: Charters, Branches, Mergers",
    "description": "Monitor OCC bank applications: new national bank and trust charters, branch openings and closings, mergers, change in control, conversions and stablecoin issuers, with addresses and status. Official OCC data. New-filings-only mode.",
    "version": "0.1",
    "x-build-id": "HEgDASkO4uJsquSl0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/quarrylane-data~occ-bank-applications-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-quarrylane-data-occ-bank-applications-monitor",
        "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/quarrylane-data~occ-bank-applications-monitor/runs": {
      "post": {
        "operationId": "runs-sync-quarrylane-data-occ-bank-applications-monitor",
        "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/quarrylane-data~occ-bank-applications-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-quarrylane-data-occ-bank-applications-monitor",
        "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": {
          "daysBack": {
            "title": "Date window (days back)",
            "minimum": 1,
            "maximum": 1826,
            "type": "integer",
            "description": "Used when startDate is empty. Filing actions (received, approved, consummated...) dated in the last N days. OCC shows new filings about five days after receipt. Max 5 years.",
            "default": 30
          },
          "startDate": {
            "title": "Start date",
            "type": "string",
            "description": "First action date to include, as YYYY-MM-DD (inclusive). When set, it overrides \"Days back\"."
          },
          "endDate": {
            "title": "End date",
            "type": "string",
            "description": "Last action date to include, as YYYY-MM-DD (inclusive). Defaults to today."
          },
          "applicationTypes": {
            "title": "Application types",
            "type": "array",
            "description": "Only return these OCC application types, e.g. new charters, branch openings or mergers. Leave empty for every type.",
            "items": {
              "type": "string",
              "enum": [
                "charter",
                "branch-establishment",
                "branch-closing",
                "relocation",
                "business-combination",
                "change-in-control",
                "conversion",
                "mutual-to-stock",
                "stock-to-mutual",
                "reorganization-215a2",
                "merger-nonbank-215a3",
                "subsidiaries-equities",
                "fiduciary-powers",
                "title-change",
                "termination",
                "asset-change-553",
                "stablecoin-issuer"
              ],
              "enumTitles": [
                "New bank charters",
                "Branch establishments (new branches)",
                "Branch closings",
                "Branch / HQ relocations",
                "Business combinations (mergers)",
                "Changes in bank control",
                "Charter conversions",
                "Mutual-to-stock conversions",
                "Stock-to-mutual conversions",
                "215a-2 reorganizations (form holding company)",
                "215a-3 mergers with non-bank affiliates",
                "Subsidiaries and equities",
                "Fiduciary powers",
                "Corporate title changes",
                "Terminations",
                "5.53 substantial change in assets",
                "Payment stablecoin issuers"
              ]
            }
          },
          "actions": {
            "title": "Actions",
            "type": "array",
            "description": "Optional. e.g. Receipt for newly filed applications, Approved, or Consummated/Effective for completed deals.",
            "items": {
              "type": "string",
              "enum": [
                "Receipt",
                "Approved",
                "Consummated/Effective",
                "Denied",
                "Withdrawn",
                "Abandoned",
                "Returned",
                "Rescinded",
                "Nullified",
                "Deleted",
                "Reject",
                "Intent Not to Disapprove (CBCA)",
                "Disapproved (CBCA)"
              ]
            }
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Two-letter states, e.g. TX, CA. Empty = nationwide.",
            "items": {
              "type": "string"
            }
          },
          "stateMatch": {
            "title": "State applies to",
            "enum": [
              "either",
              "hq",
              "branch"
            ],
            "type": "string",
            "description": "Apply the state filter to the bank headquarters, the branch location, or either.",
            "default": "either"
          },
          "bankName": {
            "title": "Bank / institution name contains",
            "type": "string",
            "description": "Only return filings whose bank name contains this text (case-insensitive), e.g. \"Chase\". Leave empty for all banks."
          },
          "includeDetails": {
            "title": "Include filing details",
            "type": "boolean",
            "description": "Loads each filing's OCC detail page: institution name, charter #, HQ address, branch addresses, merger parties, comment period and status history. Included in the per-record price.",
            "default": true
          },
          "onlyNew": {
            "title": "Only new filing actions since last run (monitor mode)",
            "type": "boolean",
            "description": "Later runs return only filing actions not seen before under this monitor key (a new receipt, approval or consummation). The first run bills up to maxItems as filing-record events and seeds the rest without charging. Later runs bill new-filing-action events.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Label for this saved monitor (plain text, not a password or API key). When \"Only new\" monitor mode is on, the Actor remembers which records it has already delivered under this name and returns only new ones next time. Use a different name per filter set or client, for example \"client-a-weekly\". Older inputs that use monitorKey still work.",
            "default": "default"
          },
          "maxItems": {
            "title": "Maximum filing actions",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Default 15 (fast, auto-test safe). Free Apify plans are capped at 15.",
            "default": 15
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}