{
  "openapi": "3.0.1",
  "info": {
    "title": "NCUA Credit Union Call Report Scraper",
    "version": "0.0",
    "x-build-id": "PtE6JvsMPdw4NizUf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/goldenrod_serrano~ncua-call-report/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-goldenrod_serrano-ncua-call-report",
        "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/goldenrod_serrano~ncua-call-report/runs": {
      "post": {
        "operationId": "runs-sync-goldenrod_serrano-ncua-call-report",
        "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/goldenrod_serrano~ncua-call-report/run-sync": {
      "post": {
        "operationId": "run-sync-goldenrod_serrano-ncua-call-report",
        "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": {
          "sampleMode": {
            "title": "Free sample (5 rows, not charged)",
            "type": "boolean",
            "description": "Return the 5 largest credit unions of the latest quarter for free, to check the output format. An empty input also runs the free sample.",
            "default": false
          },
          "quarter": {
            "title": "Quarter",
            "pattern": "^(latest|\\d{4}-(03|06|09|12)|\\d{4}[Qq][1-4])$",
            "type": "string",
            "description": "Call report quarter: <code>latest</code> (newest file NCUA has published), <code>YYYY-MM</code> (e.g. 2026-06) or <code>2026Q2</code>. NCUA posts each quarter about 2 months after quarter end.",
            "default": "latest"
          },
          "compare": {
            "title": "Compare with",
            "enum": [
              "qoq_and_yoy",
              "yoy",
              "qoq",
              "none"
            ],
            "type": "string",
            "description": "Adds growth and change columns (assets, loans, shares, members, net worth ratio, delinquency) against earlier quarters.",
            "default": "qoq_and_yoy"
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Two-letter state codes of the credit union's address, e.g. CA, TX. Empty = all states.",
            "items": {
              "type": "string"
            }
          },
          "charterTypes": {
            "title": "Charter types",
            "type": "array",
            "description": "Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "FCU",
                "FISCU",
                "NFICU"
              ],
              "enumTitles": [
                "Federal credit union",
                "State-chartered, federally insured",
                "State-chartered, not federally insured"
              ]
            }
          },
          "nameContains": {
            "title": "Name contains",
            "type": "array",
            "description": "Keep credit unions whose name contains any of these words (case-insensitive).",
            "items": {
              "type": "string"
            }
          },
          "cuNumbers": {
            "title": "NCUA charter numbers",
            "type": "array",
            "description": "Only these credit unions (NCUA charter / CU number, e.g. 5536 for Navy Federal). Good for a watchlist.",
            "items": {
              "type": "string"
            }
          },
          "minAssets": {
            "title": "Min total assets (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "e.g. 100000000 for $100M."
          },
          "maxAssets": {
            "title": "Max total assets (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only credit unions with total assets at or below this amount in US dollars (e.g. 1000000000 = $1B). Leave empty for no upper limit."
          },
          "minMembers": {
            "title": "Min members",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only credit unions with at least this many members. Leave empty for no minimum."
          },
          "signalsAny": {
            "title": "Only rows with any of these signals",
            "type": "array",
            "description": "Rule-based flags computed from the call report. Year-over-year signals need the year-ago comparison. Empty = no signal filter.",
            "items": {
              "type": "string",
              "enum": [
                "net_worth_below_7pct",
                "net_worth_ratio_down_1pp_yoy",
                "high_delinquency",
                "delinquency_up_0_5pp_yoy",
                "net_loss_ytd",
                "assets_shrinking_yoy",
                "fast_asset_growth_yoy",
                "membership_decline_yoy",
                "loan_to_share_above_100pct",
                "new_in_data_yoy",
                "exited_since_prior_quarter"
              ],
              "enumTitles": [
                "Net worth ratio below 7% (the PCA 'well capitalized' line for non-complex credit unions)",
                "Net worth ratio fell 1 percentage point or more vs. a year earlier",
                "60+ day delinquency rate of 2% or more",
                "Delinquency rate up 0.5 percentage points or more vs. a year earlier",
                "Negative net income year-to-date",
                "Total assets down 5% or more vs. a year earlier",
                "Total assets up 15% or more vs. a year earlier",
                "Members down 3% or more vs. a year earlier",
                "Loans exceed shares and deposits",
                "Not in the call report a year earlier (new charter or newly reporting)",
                "Filed last quarter but not this quarter (merged, liquidated or converted)"
              ]
            }
          },
          "includeExits": {
            "title": "Add credit unions that stopped filing",
            "type": "boolean",
            "description": "Also output rows (record_type = exited_since_prior_quarter) for credit unions that filed last quarter but not this one - usually mergers or liquidations. Uses the prior-quarter file.",
            "default": false
          },
          "includeContact": {
            "title": "Include website, main office phone and address",
            "type": "boolean",
            "description": "Institution contact data from the call report and NCUA's branch file. No personal data is ever output.",
            "default": true
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "total_assets",
              "members",
              "assets_yoy_pct",
              "assets_qoq_pct",
              "net_worth_ratio_pct",
              "delinquency_rate_pct",
              "roa_annualized_pct",
              "loan_to_share_pct",
              "cu_name"
            ],
            "type": "string",
            "description": "Field used to order the rows before Max rows is applied. Rows without a value for the field go last.",
            "default": "total_assets"
          },
          "sortDescending": {
            "title": "Sort descending",
            "type": "boolean",
            "description": "Largest values first (on), or smallest first (off). For credit union name, on means Z to A.",
            "default": true
          },
          "maxResults": {
            "title": "Max rows",
            "minimum": 1,
            "maximum": 6000,
            "type": "integer",
            "description": "Each row pushed is one charged 'credit-union' event. About 4,300 credit unions file each quarter.",
            "default": 100
          },
          "onlyNewQuarter": {
            "title": "Monitor mode: only when a new quarter is out",
            "type": "boolean",
            "description": "For a scheduled run (e.g. weekly): output rows only the first time a quarter appears for this monitor name; later runs on the same quarter push 0 rows and charge nothing.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Separate monitors keep separate 'already delivered' quarter lists (e.g. one per watchlist).",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}