{
  "openapi": "3.0.1",
  "info": {
    "title": "Bank M&A, Charter & Branch Monitor (Unofficial)",
    "description": "Feed of U.S. bank structure changes from FDIC data: mergers and acquisitions, new charters, failures, name changes, branch openings, closings, sales and relocations. FDIC cert, RSSD, charter class, total assets. New-since-last-run mode; no API key.",
    "version": "1.0",
    "x-build-id": "AXp1bnJQVx5CjZbFn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/saiberops~fdic-bank-change-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-saiberops-fdic-bank-change-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/saiberops~fdic-bank-change-monitor/runs": {
      "post": {
        "operationId": "runs-sync-saiberops-fdic-bank-change-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/saiberops~fdic-bank-change-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-saiberops-fdic-bank-change-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": {
          "mode": {
            "title": "What to fetch",
            "enum": [
              "latest",
              "newSinceLastRun",
              "dateRange"
            ],
            "type": "string",
            "description": "latest: events from the last N days. newSinceLastRun: only events your previous runs didn't return (use it on a schedule). dateRange: a fixed start and end date.",
            "default": "latest"
          },
          "lookbackDays": {
            "title": "Days to look back",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "For 'latest' and 'newSinceLastRun'. Calendar days including today, up to 365. FDIC records some changes days or weeks after they take effect, so keep 30 or more with 'newSinceLastRun'.",
            "default": 90
          },
          "startDate": {
            "title": "Start date (date range mode)",
            "type": "string",
            "description": "First date to include, YYYY-MM-DD."
          },
          "endDate": {
            "title": "End date (date range mode)",
            "type": "string",
            "description": "Last date to include, YYYY-MM-DD. Defaults to today."
          },
          "eventTypes": {
            "title": "Event types",
            "type": "array",
            "description": "Which structure changes to return. 'Other' covers branches moved in a merger and minor attribute changes such as trust powers.",
            "items": {
              "type": "string",
              "enum": [
                "new-charter",
                "merger",
                "failure",
                "name-change",
                "charter-change",
                "branch-opening",
                "branch-closing",
                "relocation",
                "branch-sale",
                "other"
              ],
              "enumTitles": [
                "New charters",
                "Mergers and acquisitions",
                "Bank failures",
                "Name changes",
                "Charter, class or regulator changes",
                "Branch openings",
                "Branch closings",
                "Office relocations",
                "Branch sales and purchases",
                "Other structure changes"
              ]
            },
            "default": [
              "new-charter",
              "merger",
              "failure",
              "name-change",
              "branch-opening",
              "branch-closing",
              "relocation",
              "branch-sale"
            ]
          },
          "dateBasis": {
            "title": "Date used for the window",
            "enum": [
              "effective",
              "processed"
            ],
            "type": "string",
            "description": "effective: when the change took effect (usual). processed: when FDIC recorded it, which catches late filings first.",
            "default": "effective"
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Two-letter codes, for example GA, FL. An event matches if it happens in, or involves a bank, acquirer or target based in, one of these states. Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "certs": {
            "title": "FDIC certificate numbers (watchlist)",
            "type": "array",
            "description": "Only events involving these banks, as institution, acquirer or target. Numbers only, for example 628. Up to 200; lists over 40 are matched after download, so they may need more pages.",
            "items": {
              "type": "string"
            }
          },
          "minAssetsMillions": {
            "title": "Minimum total assets ($ millions)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip events at banks below this size, using the bank's latest reported total assets (or assets at failure). Events at banks with no reported assets, such as brand-new charters, are skipped when this is set."
          },
          "maxItems": {
            "title": "Max events",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The run stops after this many events. Each returned event is one charged event.",
            "default": 100
          },
          "cursorName": {
            "title": "Cursor name (new since last run)",
            "type": "string",
            "description": "Keeps a separate 'new since last run' position per name, so different scheduled feeds (for example Southeast branches vs. national M&A) don't share one. Letters, numbers and dashes.",
            "default": ""
          },
          "maxPagesToScan": {
            "title": "Max pages to scan",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Upper limit on 1,000-record FDIC pages read per run. Raise it for long date ranges with narrow filters.",
            "default": 20
          },
          "apiKey": {
            "title": "FDIC API key (optional)",
            "type": "string",
            "description": "Not needed today: FDIC does not require a key. If FDIC starts requiring one, paste your free FDIC API key here."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}