# HMDA Mortgage Loan Applications & Lending Data Scraper (`logiover/hmda-mortgage-loan-applications-scraper`) Actor

Stream millions of official FFIEC/CFPB HMDA loan and application records by year, state, county, lender LEI, loan type, purpose, action, amount and property profile. Built for mortgage, fintech, housing, fair-lending and real-estate analytics.

- **URL**: https://apify.com/logiover/hmda-mortgage-loan-applications-scraper.md
- **Developed by:** [Logiover](https://apify.com/logiover) (community)
- **Categories:** Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## HMDA Mortgage Loan Applications & Lending Data Scraper

Stream official Home Mortgage Disclosure Act loan/application register data from the FFIEC/CFPB HMDA Data Browser into an Apify dataset. The nationwide annual files contain millions of records and expose lending activity by reporting institution, geography, product, action, amount, pricing, property and census-tract context.

The Actor uses the first-party CSV endpoint, processes rows as they arrive and cancels the multi-gigabyte upstream transfer when `maxResults` is reached. No API key, browser or proxy is required.

### Buyers and use cases

- Mortgage lender and fintech market-share analysis.
- Housing, origination and denial trend research.
- Fair-lending, CRA and geographic access analysis.
- Real-estate, appraisal and property-finance intelligence.
- Lender benchmarking by LEI, product, purpose and geography.

### Input

| Field | Description |
| --- | --- |
| `years` | Activity years; empty uses the prior year. |
| `states`, `counties` | Source-side geography; county FIPS takes precedence. |
| `loanTypes` | Conventional, FHA, VA and USDA/RHS/FSA codes. |
| `actionTaken` | Originated, approved, denied and other HMDA action codes. |
| `loanPurposes` | Exact HMDA purpose codes. |
| `lienStatuses`, `occupancyTypes` | Loan/property filters. |
| `institutionLeis` | Exact reporting financial institution identifiers. |
| `minLoanAmount`, `maxLoanAmount` | Loan amount range in USD. |
| `minIncome`, `maxIncome` | Applicant income range in USD. |
| `maxResults` | Up to 500,000 records per run. |

```json
{
  "years": ["2025"],
  "states": ["CA"],
  "loanTypes": [1, 2, 3, 4],
  "actionTaken": ["1"],
  "occupancyTypes": ["1"],
  "minLoanAmount": 300000,
  "maxResults": 50000
}
```

### Output

```json
{
  "activityYear": 2025,
  "financialInstitutionLei": "549300HW662MN1WU8550",
  "stateCode": "CA",
  "countyCode": "06065",
  "censusTract": "06065040616",
  "loanProductType": "Conventional:First Lien",
  "dwellingCategory": "Single Family (1-4 Units):Site-Built",
  "actionTaken": 1,
  "loanAmount": 345000,
  "propertyValue": 420000,
  "incomeThousands": 119
}
```

Output also includes pricing and cost fields, term, occupancy, demographics derived by HMDA, denial reason and census-tract population/income context. Values such as `NA` and `Exempt` are normalized to null.

### Scale

The 2024 nationwide endpoint is approximately 4.6 GB as CSV. The Actor stops reading when the requested number of matching rows has been saved. Client-side filters that match rare records may scan substantially more source rows, so use state, county and institution filters when possible. Segment more than 500,000 outputs by year or geography.

### API and integrations

Run with Apify Console, REST API, JavaScript, Python or MCP. Export JSON, JSONL, CSV, Excel, XML and RSS and connect schedules, webhooks, Make, Zapier, Sheets, databases and BI platforms.

```bash
curl -X POST "https://api.apify.com/v2/acts/logiover~hmda-mortgage-loan-applications-scraper/runs?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"states":["TX"],"actionTaken":["1"],"maxResults":10000}'
```

### FAQ

**Does it require a CFPB key?** No.

**What does empty input do?** It exports all loan types nationwide for the prior activity year, up to the default result limit.

**Does it contain borrower names or addresses?** No. Public HMDA loan-level data is modified to protect applicant privacy.

**What are the demographic fields?** Public HMDA attributes used for aggregate fair-lending and market analysis. They must not be used to identify or target individuals.

**Why is an amount or rate null?** The source may report `NA`, `Exempt` or another non-numeric status.

### Responsible use

This Actor is not affiliated with or endorsed by FFIEC or CFPB. HMDA public data is designed for aggregate analysis and contains privacy modifications. Do not attempt re-identification or use records for individual credit, housing, eligibility or discriminatory targeting decisions. Follow fair-lending, privacy and consumer-protection law.

### Changelog

#### 2026-08-05

- Initial official HMDA loan/application exporter.
- Added multi-gigabyte CSV streaming, geographic and lender segmentation, normalized lending/property fields and commercial filters.
- Verified live default, semantic filter and high-volume output behavior.

# Actor input Schema

## `years` (type: `array`):

Four-digit years. Empty automatically uses the prior calendar year, normally the latest complete release.

## `states` (type: `array`):

Two-letter state codes. Ignored when counties are supplied.

## `counties` (type: `array`):

Five-digit county FIPS codes for source-side geographic extraction.

## `loanTypes` (type: `array`):

1 conventional, 2 FHA, 3 VA, 4 USDA/RHS or FSA.

## `actionTaken` (type: `array`):

Exact HMDA action codes, for example 1 originated, 2 approved not accepted or 3 denied.

## `loanPurposes` (type: `array`):

Exact HMDA loan-purpose codes.

## `lienStatuses` (type: `array`):

1 first lien, 2 subordinate lien.

## `occupancyTypes` (type: `array`):

1 principal residence, 2 second residence, 3 investment property.

## `institutionLeis` (type: `array`):

Exact Legal Entity Identifiers for one or more reporting lenders.

## `minLoanAmount` (type: `number`):

Minimum reported loan amount in USD.

## `maxLoanAmount` (type: `number`):

Maximum reported loan amount in USD.

## `minIncome` (type: `number`):

Minimum reported applicant income in USD; HMDA stores income in thousands.

## `maxIncome` (type: `number`):

Maximum reported applicant income in USD; HMDA stores income in thousands.

## `maxResults` (type: `integer`):

Maximum HMDA loan/application records saved.

## Actor input object example

```json
{
  "years": [],
  "states": [],
  "counties": [],
  "loanTypes": [
    "1",
    "2",
    "3",
    "4"
  ],
  "actionTaken": [],
  "loanPurposes": [],
  "lienStatuses": [],
  "occupancyTypes": [],
  "institutionLeis": [],
  "maxResults": 200
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "maxResults": 200
};

// Run the Actor and wait for it to finish
const run = await client.actor("logiover/hmda-mortgage-loan-applications-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "maxResults": 200 }

# Run the Actor and wait for it to finish
run = client.actor("logiover/hmda-mortgage-loan-applications-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "maxResults": 200
}' |
apify call logiover/hmda-mortgage-loan-applications-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,logiover/hmda-mortgage-loan-applications-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/o1AH8RvNInCkOiZDa/builds/uwZ30RBv1kagQi50f/openapi.json
