get_mortgage_data
Get Home Mortgage Disclosure Act (HMDA) loan-level data. Returns mortgage application and origination records reported by financial institutions under HMDA. At least one geographic filter (state or county_fips) is recommended to limit results. Args: state: Two-letter US state abbreviation (e.g. 'CA', 'TX'). county_fips: Five-digit county FIPS code (e.g. '06037' for LA County). year: Data year (e.g. 2022). Defaults to 2022 if not specified. action_taken: Loan action code: '1' (originated), '2' (approved not accepted), '3' (denied), '4' (withdrawn), '5' (incomplete). loan_type: Loan type code: '1' (conventional), '2' (FHA-insured), '3' (VA-guaranteed), '4' (USDA/RHS). limit: Maximum number of records to return (default 100, max 1000).
yearlimitstateloan_typecounty_fipsaction_taken