{
  "openapi": "3.0.1",
  "info": {
    "title": "NCUA Call Report Scraper",
    "description": "Search NCUA-insured U.S. credit unions by name, state, city, or charter number. Get assets, shares/deposits, loans, net worth, membership, and state-level financial summaries from NCUA's official quarterly 5300 Call Report data.",
    "version": "1.0",
    "x-build-id": "oEEYVQVFSM9s9aBPi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~ncua-call-report-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-ncua-call-report-scraper",
        "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/crawlerbros~ncua-call-report-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-ncua-call-report-scraper",
        "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/crawlerbros~ncua-call-report-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-ncua-call-report-scraper",
        "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": [
              "searchCreditUnions",
              "getCreditUnionDetails",
              "getStateSummary"
            ],
            "type": "string",
            "description": "What data to fetch from NCUA's Call Report data.",
            "default": "searchCreditUnions"
          },
          "period": {
            "title": "Report period (quarter)",
            "enum": [
              "2016-03",
              "2016-06",
              "2016-09",
              "2016-12",
              "2017-03",
              "2017-06",
              "2017-09",
              "2017-12",
              "2018-03",
              "2018-06",
              "2018-09",
              "2018-12",
              "2019-03",
              "2019-06",
              "2019-09",
              "2019-12",
              "2020-03",
              "2020-06",
              "2020-09",
              "2020-12",
              "2021-03",
              "2021-06",
              "2021-09",
              "2021-12",
              "2022-03",
              "2022-06",
              "2022-09",
              "2022-12",
              "2023-03",
              "2023-06",
              "2023-09",
              "2023-12",
              "2024-03",
              "2024-06",
              "2024-09",
              "2024-12",
              "2025-03",
              "2025-06",
              "2025-09",
              "2025-12",
              "2026-03"
            ],
            "type": "string",
            "description": "Which quarterly Call Report cycle to use. NCUA publishes new data roughly 6-8 weeks after each quarter ends.",
            "default": "2026-03"
          },
          "creditUnionName": {
            "title": "Credit union name (partial search)",
            "type": "string",
            "description": "Partial, case-insensitive name search, e.g. 'Navy' or 'Teachers'. Used in searchCreditUnions mode."
          },
          "state": {
            "title": "State",
            "enum": [
              "",
              "AL",
              "AK",
              "AZ",
              "AR",
              "CA",
              "CO",
              "CT",
              "DE",
              "DC",
              "FL",
              "GA",
              "HI",
              "ID",
              "IL",
              "IN",
              "IA",
              "KS",
              "KY",
              "LA",
              "ME",
              "MD",
              "MA",
              "MI",
              "MN",
              "MS",
              "MO",
              "MT",
              "NE",
              "NV",
              "NH",
              "NJ",
              "NM",
              "NY",
              "NC",
              "ND",
              "OH",
              "OK",
              "OR",
              "PA",
              "RI",
              "SC",
              "SD",
              "TN",
              "TX",
              "UT",
              "VT",
              "VA",
              "WA",
              "WV",
              "WI",
              "WY",
              "PR",
              "GU",
              "VI",
              "AS",
              "MP"
            ],
            "type": "string",
            "description": "Filter by U.S. state / territory (2-letter code). Leave blank for all.",
            "default": ""
          },
          "city": {
            "title": "City (exact match)",
            "type": "string",
            "description": "Filter to credit unions headquartered in this city (case-insensitive exact match). Used in searchCreditUnions mode."
          },
          "charterNumbers": {
            "title": "Charter numbers (getCreditUnionDetails mode)",
            "type": "array",
            "description": "NCUA credit union charter numbers, e.g. ['8305', '3128']. Required for getCreditUnionDetails mode. Find charter numbers via searchCreditUnions mode.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minAssets": {
            "title": "Minimum total assets ($)",
            "minimum": 0,
            "maximum": 10000000000,
            "type": "integer",
            "description": "Only return credit unions with total assets at or above this threshold, in whole dollars. E.g. 1000000000 = $1 billion."
          },
          "maxAssets": {
            "title": "Maximum total assets ($)",
            "minimum": 0,
            "maximum": 10000000000,
            "type": "integer",
            "description": "Only return credit unions with total assets at or below this threshold, in whole dollars."
          },
          "peerGroup": {
            "title": "Peer group (asset-size band)",
            "enum": [
              "",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6"
            ],
            "type": "string",
            "description": "NCUA's own asset-size peer group classification. Leave blank for all sizes.",
            "default": ""
          },
          "region": {
            "title": "NCUA region",
            "enum": [
              "",
              "1",
              "2",
              "3",
              "8"
            ],
            "type": "string",
            "description": "Filter by NCUA's own examination region. Leave blank for all regions.",
            "default": ""
          },
          "charterType": {
            "title": "Charter type",
            "enum": [
              "",
              "1",
              "2"
            ],
            "type": "string",
            "description": "Filter by whether the credit union is federally or state chartered. Leave blank for all.",
            "default": ""
          },
          "lowIncomeDesignated": {
            "title": "Low-Income Designation (LICU)",
            "enum": [
              "",
              "true",
              "false"
            ],
            "type": "string",
            "description": "Filter by NCUA's Low-Income Credit Union (LICU) designation. Leave blank for all.",
            "default": ""
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "ASSETS",
              "NAME",
              "CHARTER",
              "MEMBERS"
            ],
            "type": "string",
            "description": "Sort order for searchCreditUnions results.",
            "default": "ASSETS"
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}