get_mortgage_trends
Retrieve multi-year mortgage lending data for any U.S. tract, county, or state. Get yearly summaries of loan counts, denial rates, median amounts, and interest rates to analyze housing credit trends.
Instructions
Retrieve multi-year mortgage lending data for a single area across all available HMDA years. Returns an array of yearly summaries including origination count, denial rate, median loan amount, median interest rate, and loan purpose/type breakdowns. Source: CFPB/FFIEC HMDA.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 |