{
  "openapi": "3.0.1",
  "info": {
    "title": "FDIC Bank Mergers, Failures & Branch Changes Feed",
    "description": "Daily feed of US bank structure events from the official FDIC BankFind API: mergers, failures, branch deals, new charters, name/charter/regulator changes, branch openings/closings/relocations. Acquirer, assets, deposits, RSSD, FDIC link. Filter by type, state, assets.",
    "version": "0.1",
    "x-build-id": "lvYw8oYlxARhnqomt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/moment-data~fdic-bank-structure-changes-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-moment-data-fdic-bank-structure-changes-feed",
        "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/moment-data~fdic-bank-structure-changes-feed/runs": {
      "post": {
        "operationId": "runs-sync-moment-data-fdic-bank-structure-changes-feed",
        "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/moment-data~fdic-bank-structure-changes-feed/run-sync": {
      "post": {
        "operationId": "run-sync-moment-data-fdic-bank-structure-changes-feed",
        "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": [
              "window",
              "sinceLastRun"
            ],
            "type": "string",
            "description": "window (default): events FDIC processed in the last N days, no saved state. sinceLastRun: only events not delivered before for this State key; use this for daily schedules.",
            "default": "window"
          },
          "eventTypes": {
            "title": "Event types",
            "type": "array",
            "description": "Empty = all institution-level events (merger, failure, new-institution, voluntary-closing, corporate-reorganization, name-change, relocation, charter-change, regulator-change, insurance-change, trust-powers, conservatorship, branch-purchase-deal) plus branch events if 'Include branch events' is on. Branch types: branch-opening, branch-closing, branch-relocation, branch-name-change, branch-purchased, branch-acquired-in-merger. Opt-in mirror records: merger-participant, branch-sale-deal, branch-sold. Raw FDIC change codes (e.g. 223, 711) also work. Listing a branch type here includes it even if the checkbox is off.",
            "items": {
              "type": "string"
            }
          },
          "includeBranchEvents": {
            "title": "Include branch events",
            "type": "boolean",
            "description": "Adds branch openings, closings, relocations, name changes, purchases and merger take-overs (roughly 500-700 per month nationwide) when Event types is empty. Branch location is given at city/state level.",
            "default": false
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "2-letter USPS codes, e.g. TX, CO, NY, PR. An event matches if the institution, the acquirer or the branch is in one of these states. Empty = all US.",
            "items": {
              "type": "string"
            }
          },
          "minAssets": {
            "title": "Min total assets ($ millions)",
            "minimum": 0,
            "type": "integer",
            "description": "Only events where the institution OR the acquirer has at least this much in total assets (latest FDIC call report), in USD millions. 1000 = $1B. Credit unions and brand-new banks have no FDIC financials and are dropped when this is set. Empty or 0 = no filter."
          },
          "daysBack": {
            "title": "Days back (FDIC process date)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Window of days, by the date FDIC processed the change (the date it became public in FDIC data). Effective dates are often earlier. In window mode an empty window is widened to 60, 120 and then 365 days. Also the first-run window in sinceLastRun mode.",
            "default": 30
          },
          "includeCreditUnions": {
            "title": "Include credit unions",
            "type": "boolean",
            "description": "FDIC structure data also covers NCUA-insured credit unions (mergers, name changes, branch deals). Turn off for banks and thrifts only.",
            "default": true
          },
          "maxItems": {
            "title": "Max events per run",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on delivered events (also caps your spend). Window mode returns the newest first.",
            "default": 30
          },
          "autoExtend": {
            "title": "Widen an empty window (window mode)",
            "type": "boolean",
            "description": "If nothing matches in Days back, retry with 60, 120 and 365 days so you always see the latest matching events. Turn off to get exactly the Days back window.",
            "default": true
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Name of the saved feed for sinceLastRun mode. Each key keeps its own history, so use one key per schedule or filter set.",
            "default": "default"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}