get_mortgage_summary
Retrieve mortgage lending summary for a U.S. census tract, county, or state, including origination count, denial rate, median loan amount, median interest rate, loan purpose mix, and loan type mix from HMDA data.
Instructions
Retrieve the mortgage lending summary for a single geographic area (census tract, county, or state) from HMDA data. Returns origination count, denial rate, median loan amount, median interest rate, loan purpose mix, and loan type mix (conventional, FHA, VA, USDA). Source: CFPB/FFIEC HMDA.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | HMDA data year (default: most recent available) | |
| geoid | Yes | FIPS code — 11 digits for tract, 5 for county, 2 for state | |
| area_type | Yes | Geographic level: tract (or census_tract), county, or state |