Hmda
v0.2.1HMDA — every US mortgage application at loan level (CFPB / FFIEC).
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
hmda_lender_activity
What a specific mortgage lender did in a year — applications, originations, denials and dollar volume — from the federal Home Mortgage Disclosure Act register, optionally narrowed to a state or county. Identify the lender by its LEI (the 20-character Legal Entity Identifier HMDA files under); resolve_entity maps a company name to one. Covers every US mortgage application 2018-2025. Reports what lenders DISCLOSED, which is a regulatory filing rather than a market estimate.
| Parameter | Type | Description |
|---|---|---|
lei * | string | 20-character Legal Entity Identifier, e.g. "549300FGXN1K3HLB1R50". |
county | string | Optional 5-digit county FIPS, e.g. "06037" for Los Angeles. |
state | string | Optional two-letter state, e.g. "CA". |
year | number | Filing year, 2018-2025. Defaults to the most recent published. |
hmda_geography_activity
Mortgage lending in a place — how many applications were originated, denied or withdrawn in a county or state in a given year, with dollar volume, from the federal HMDA register. Break the answer down by applicant race, ethnicity, sex, loan purpose or loan type to see how outcomes differ across groups, which is the fair-lending question this data exists to make answerable. Covers 2018-2025.
| Parameter | Type | Description |
|---|---|---|
action | string | Optional outcome filter: originated | approved_not_accepted | denied | withdrawn | incomplete | purchased. Omit to see every outcome side by side. |
breakdown | string | Optional dimension to split by: race | ethnicity | sex | loan_purpose | loan_type. |
county | string | 5-digit county FIPS, e.g. "11001" for the District of Columbia. |
state | string | Two-letter state, e.g. "TX". Give a county OR a state. |
year | number | Filing year, 2018-2025. Defaults to the most recent published. |
hmda_loan_records
Individual mortgage application records from the HMDA register — the loan-level rows behind the totals, with loan amount, action taken, rate spread, applicant income, lender LEI and census tract. Use when an aggregate is not enough and the individual applications matter. Filtered by geography and outcome; a large county returns tens of thousands of rows, so this caps what it returns and says when it truncated.
| Parameter | Type | Description |
|---|---|---|
action | string | Outcome filter: originated | approved_not_accepted | denied | withdrawn | incomplete | purchased. |
county | string | 5-digit county FIPS. Give a county OR a state. |
lei | string | Optional lender LEI to narrow to one institution. |
limit | number | Maximum records to return (1-500, default 50). |
state | string | Two-letter state. |
year | number | Filing year, 2018-2025. |
hmda_lenders_in_county
Which lenders were most active in a county, ranked by loan count, from HMDA loan-level records for that county and year. Returns each lender LEI with its originations, denials and dollar volume, so "who lends here" and "who denies most here" are answerable. Bounded: it reads the county's records directly, so very large counties are sampled rather than fully ranked, and the response says so.
| Parameter | Type | Description |
|---|---|---|
county * | string | 5-digit county FIPS, e.g. "11001". |
action | string | Outcome to rank on: originated | approved_not_accepted | denied | withdrawn | incomplete | purchased. Default originated. |
limit | number | Lenders to return (1-100, default 20). |
year | number | Filing year, 2018-2025. |