{
  "openapi": "3.0.1",
  "info": {
    "title": "FDIC Bank M&A, Charter & Structure-Change Monitor",
    "description": "Typed delta feed of FDIC bank structure changes: mergers paired acquirer-to-target and sized on both sides (assets, deposits, holding company), de-novo charters, failures, regulator and class conversions. Live filter-drift assertions. Keyless FDIC source, no login.",
    "version": "1.1",
    "x-build-id": "Y1kFCAIl593gUmbgy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/malonestar~fdic-structure-change-delta-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-malonestar-fdic-structure-change-delta-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/malonestar~fdic-structure-change-delta-monitor/runs": {
      "post": {
        "operationId": "runs-sync-malonestar-fdic-structure-change-delta-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/malonestar~fdic-structure-change-delta-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-malonestar-fdic-structure-change-delta-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "events",
              "mergers",
              "denovo",
              "failures",
              "branches",
              "rollup"
            ],
            "type": "string",
            "description": "Which slice of the FDIC structure-change stream to return. events = all institution-level changes; mergers = acquirer-to-target deals; denovo = brand-new bank charters; failures = failures and assisted resolutions; branches = branch openings/closings/sales; rollup = client-side aggregates per state, event type, quarter and acquirer.",
            "default": "mergers"
          },
          "sinceDays": {
            "title": "Look back (days)",
            "minimum": 1,
            "maximum": 40000,
            "type": "integer",
            "description": "Delta anchor: return events from the last N days. Ignored when sinceDate is set. Use 30 for a monthly sweep, 365 for a full-year book of deals.",
            "default": 365
          },
          "sinceDate": {
            "title": "Since date (YYYY-MM-DD)",
            "type": "string",
            "description": "Explicit delta anchor in YYYY-MM-DD form, e.g. 2025-07-25. Overrides sinceDays. Only events on or after this date are returned."
          },
          "untilDate": {
            "title": "Until date (YYYY-MM-DD)",
            "type": "string",
            "description": "End of the window in YYYY-MM-DD form, e.g. 2026-07-25. Defaults to today."
          },
          "dateField": {
            "title": "Date column",
            "enum": [
              "processed",
              "effective"
            ],
            "type": "string",
            "description": "Which FDIC date the window applies to. 'processed' uses PROCDATE (when FDIC recorded the change, best for delta monitoring); 'effective' uses EFFDATE (the legal effective date of the deal).",
            "default": "processed"
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Optional list of two-letter USPS state codes to restrict the sweep to, e.g. [\"TX\",\"OK\"]. Leave empty for all states and territories.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "changeCodes": {
            "title": "FDIC change codes",
            "type": "array",
            "description": "Optional explicit list of FDIC CHANGECODE numbers, e.g. [223,213] for unassisted and assisted mergers. Overrides the code set implied by mode. See the README for the full 41-code vocabulary.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Hard cap on how many event rows are fetched and emitted. Billing is per result, so this is also your cost ceiling.",
            "default": 1000
          },
          "resolveMissingNames": {
            "title": "Resolve missing counterparty names",
            "type": "boolean",
            "description": "When an acquirer or target name is absent from the history record, do a follow-up /banks/institutions lookup by CERT to fill it in. Adds one extra request per run.",
            "default": true
          },
          "enrichFinancials": {
            "title": "Add deal-size financials",
            "type": "boolean",
            "description": "Look up total assets, deposits, offices, holding company (NAMEHCR/RSSDHCR) and specialization for the subject, acquirer, target and surviving charter from FDIC /banks/institutions. FDIC keeps the final call report of a bank that has already merged away, so completed deals get sized on both sides. Costs roughly one extra request per 250 certificates. Turn off for the fastest possible delta sweep.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}