# Multifamily loans and lenders

> Documentation index: [llms.txt](https://westkite.com/docs/llms.txt). Every page is also at its URL plus `.md`.

Find who lends on apartment buildings and on what terms. `multifamily_loans` lists every loan on a building of five or more units that a lender reported under the Home Mortgage Disclosure Act (HMDA), from 2018 on, nationwide. `lenders` lists those lenders, with their multifamily lending in a place and, for banks, how concentrated they are in commercial real estate. Rows cost $1 per 1,000, the same as any [find](https://westkite.com/docs/api/find.md).

```endpoint
GET /v1/find/multifamily_loans
GET /v1/find/lenders
```

Both are types of [find](https://westkite.com/docs/api/find.md), so they take the same `where`, `in`, `near`, `lat` and `lng`, `radius_m`, `sort`, `limit` and `cursor`. `limit` goes up to 100 rows a call; follow `next_cursor` for more.

## Multifamily loans

Each row is one loan that a bank, credit union or mortgage company originated or bought in a year: the lender's name and LEI, the amount, interest rate, term, combined loan-to-value, property value, unit band, purpose, whether it was a business-purpose loan, and who bought it that year (Fannie Mae, Freddie Mac, Ginnie Mae, a private securitizer, a bank or a life insurer).

HMDA's public file has no address, so a loan is placed only by its census tract. `location` is the tract's Census centre point, marked `approximate`, and a loan is never linked to a property. The file also rounds every amount and property value to the middle of a $10,000 band, and gives units as bands (5-24, 25-49, 50-99, 100-149, 150+). A value the lender didn't report, or was exempt from reporting, is null; `exempt_fields` lists the exempt ones. So is a value no loan can have, such as a 1,111% rate (HMDA's exempt code reported as a number); `implausible_fields` lists those.

`totals` counts and adds up every matching loan, not only the page. A loan one lender made and another bought in the same year is reported by both, so add `where=action = originated` to count each loan once. `hmda_coverage` lists the years held. HMDA covers banks, credit unions and mortgage companies above its reporting thresholds. Life companies, CMBS conduits and debt funds don't report, so an empty answer means no HMDA lender reported a loan there, not that none was made.

| Field | Type | Operators | Values | Notes |
|---|---|---|---|---|
| `year` | integer | `=` `>=` `<=` `between` `in` |  | The year the loan was made or bought |
| `lei` | string | `=` `in` |  | The lender's LEI |
| `lender` | string | `~` |  | Lender name contains |
| `action` | enum | `=` `in` | `originated`, `purchased` |  |
| `amount` | number, usd | `>=` `<=` `between` |  | Dollars; HMDA's $10,000-band midpoint |
| `units` | integer, units | `>=` `<=` `between` |  | HMDA publishes bands, 5-24, 25-49, 50-99, 100-149, 150+: a band is kept when any of its sizes is in range, so units >= 150 is the top band |
| `rate` | number, percent | `>=` `<=` `between` |  | Interest rate, percent |
| `term_months` | integer, months | `>=` `<=` `between` |  |  |
| `cltv` | number, percent | `>=` `<=` `between` |  | Combined loan-to-value, percent |
| `purpose` | enum | `=` `in` | `purchase`, `improvement`, `refinance`, `cash_out_refinance`, `other`, `not_applicable` |  |
| `purchaser` | enum | `=` `in` | `not_sold`, `fannie_mae`, `ginnie_mae`, `freddie_mac`, `farmer_mac`, `private_securitizer`, `bank_or_thrift`, `credit_union_mortgage_or_finance_company`, `life_insurer`, `affiliate`, `other` |  |
| `loan_type` | enum | `=` `in` | `conventional`, `fha`, `va`, `usda` |  |
| `business_purpose` | boolean | `=` |  | = true or = false |
| `tract` | string | `=` |  | 11-digit census tract GEOID |

Search a county or city by name, a county by FIPS (`county:17031`), or a state with `in`. A city is searched by the tracts whose centre falls inside its Census boundary. A ZIP code isn't an HMDA place, so send a county, city or point instead. Use `near` or `lat` and `lng` with `radius_m` (up to 50,000) for the tracts around a point. From 2024 HMDA files Connecticut by planning region rather than county, so search the state or a region for those years. Sort by `-year` (the default), `-amount`, `amount`, `-rate`, `rate` or `-cltv`.

### Request

The largest multifamily loans made in Cook County, Illinois, in 2024:

```curl
curl --get "https://api.westkite.com/v1/find/multifamily_loans" \
  -H "Authorization: Bearer $WESTKITE_API_KEY" \
  --data-urlencode "in=Cook County, IL" \
  --data-urlencode "where=year = 2024" \
  --data-urlencode "where=action = originated" \
  --data-urlencode "sort=-amount" \
  --data-urlencode "limit=1"
```

```typescript
const params = new URLSearchParams({ in: "Cook County, IL", sort: "-amount", limit: "1" });
params.append("where", "year = 2024");
params.append("where", "action = originated");
const res = await fetch(`https://api.westkite.com/v1/find/multifamily_loans?${params}`, {
  headers: { Authorization: `Bearer ${process.env.WESTKITE_API_KEY}` },
});
const { data } = await res.json();
```

```python
import os, requests

res = requests.get(
    "https://api.westkite.com/v1/find/multifamily_loans",
    params=[("in", "Cook County, IL"), ("where", "year = 2024"), ("where", "action = originated"), ("sort", "-amount"), ("limit", 1)],
    headers={"Authorization": f"Bearer {os.environ['WESTKITE_API_KEY']}"},
)
data = res.json()["data"]
```

### Response

An abridged answer:

```json 200
{
  "data": {
    "type": "multifamily_loans",
    "returned": 1,
    "totals": { "loans": 1248, "volume": 4578220000 },
    "loans": [
      {
        "id": "hmda:2024:5429",
        "year": 2024,
        "lender": { "lei": "KB1H1DSPRFMYMCUFXT09", "name": "WELLS FARGO BANK NA", "rssd": "451965" },
        "action": "originated",
        "amount": 1000005000,
        "rate": 6.21,
        "term_months": 60,
        "cltv": 56.5,
        "property_value": 256305000,
        "units_band": "150+",
        "purpose": "refinance",
        "business_or_commercial_purpose": true,
        "purchaser": "not_sold",
        "interest_only": true,
        "exempt_fields": [],
        "census_tract": "17031838300",
        "county_fips": "17031",
        "state": "IL",
        "location": { "coordinates": [-87.638404, 41.901567], "basis": "tract_centroid", "approximate": true }
      }
    ],
    "linked_to_properties": false,
    "hmda_coverage": { "status": "covered", "years": [2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025] },
    "next_cursor": "mf1.1"
  }
}
```

## Lenders

One row per HMDA lender, by LEI, with its RSSD ID where the HMDA reporter panel gives one (the panel was published for 2018 to 2023). `activity` is its multifamily lending in the place and years you ask for: loans and volume, originated and bought, by year, and its five largest counties. With no place or year, it covers every year held, nationwide. Sorted by multifamily volume by default.

For an FDIC-insured bank, `bank` is its latest FDIC call report, with the `quarter`:

- `cre_concentration_pct`: construction, multifamily and non-owner-occupied commercial real estate loans, as a percent of total risk-based capital. A bank using the community bank leverage ratio reports no total risk-based capital, so its tier 1 capital plus loan-loss allowance is used instead, and `capital_basis` says so.
- `construction_concentration_pct`: construction and land development loans over the same capital.
- `cre_growth_36m_pct`: how much those loans grew over the 36 months before.
- `screens_met`: which of the banking regulators' screens the bank is over: 300% of capital in commercial real estate with 50% growth over three years, or 100% in construction.

These ratios are worked out from the call report. They are not a regulator's finding, and they leave out commercial real estate loans that aren't secured by real estate. `bank` is null for a lender that isn't an FDIC-insured bank, such as a mortgage company or credit union.

| Field | Type | Operators | Values | Notes |
|---|---|---|---|---|
| `lei` | string | `=` `in` |  |  |
| `name` | string | `~` |  | Lender name contains |
| `rssd` | string | `=` |  | Federal Reserve RSSD ID |
| `fdic_cert` | integer | `=` |  | FDIC certificate |
| `year` | integer | `=` `>=` `<=` `between` `in` |  | Activity years |
| `action` | enum | `=` `in` | `originated`, `purchased` | Activity counted |
| `regulator` | enum | `=` `in` | `occ`, `frb`, `fdic`, `ncua`, `hud`, `cfpb` |  |
| `bank` | boolean | `=` |  | = true (FDIC-insured banks with a call report) or = false |
| `volume` | number, usd | `>=` |  | Multifamily dollars in scope |
| `loans` | integer | `>=` |  | Multifamily loans in scope |
| `cre_concentration` | number, percent | `>=` `<=` `between` |  | Percent of capital |
| `construction_concentration` | number, percent | `>=` `<=` `between` |  | Percent of capital |

Sort by `-volume` (the default), `-loans`, `-cre_concentration`, `-construction_concentration` or `name`.

### Request

Banks lending on apartments in Cook County since 2023 whose commercial real estate is at least 300% of capital:

```curl
curl --get "https://api.westkite.com/v1/find/lenders" \
  -H "Authorization: Bearer $WESTKITE_API_KEY" \
  --data-urlencode "in=Cook County, IL" \
  --data-urlencode "where=year >= 2023" \
  --data-urlencode "where=cre_concentration >= 300" \
  --data-urlencode "sort=-cre_concentration"
```

One lender's profile, by LEI:

```curl
curl --get "https://api.westkite.com/v1/find/lenders" \
  -H "Authorization: Bearer $WESTKITE_API_KEY" \
  --data-urlencode "where=lei = 7H6GLXDRUGQFU57RNE97"
```

### Response

An abridged answer:

```json 200
{
  "data": {
    "type": "lenders",
    "returned": 1,
    "lenders": [
      {
        "id": "lender:7H6GLXDRUGQFU57RNE97",
        "lei": "7H6GLXDRUGQFU57RNE97",
        "name": "JPMorgan Chase Bank, NA",
        "rssd": "852218",
        "activity": {
          "years": [2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025],
          "loans": 36193,
          "volume": 123738875000,
          "by_year": [{ "year": 2025, "loans": 4227, "volume": 18473875000 }],
          "top_counties": [
            { "county_fips": "06037", "county": "Los Angeles County", "state": "CA", "loans": 15321, "volume": 37044485000 },
            { "county_fips": "36061", "county": "New York County", "state": "NY", "loans": 1544, "volume": 8727730000 }
          ]
        },
        "bank": {
          "fdic_cert": 628,
          "quarter": "2026-09-30",
          "capital_basis": "total_risk_based_capital",
          "cre_loans": 167930000000,
          "cre_concentration_pct": 52.3,
          "construction_concentration_pct": 6,
          "cre_growth_36m_pct": 10.3,
          "screens_met": []
        }
      }
    ]
  }
}
```

## Sources

| Source | What it gives | Updated |
|---|---|---|
| HMDA loan-level data, Consumer Financial Protection Bureau and FFIEC | Every reported loan on a 5+ unit dwelling, 2018 on | Each spring, for the year before |
| HMDA filer list and reporter panel | Lender names, RSSD ID, regulator and parent | With each HMDA year (panel to 2023) |
| FDIC BankFind call reports | Bank loans by type and capital | Each quarter |
| Census Gazetteer | Tract centre points | With the Census |

All are US government works in the public domain.
