# HUD Affordable Housing Explorer: LIHTC + Multifamily + Public (`malonestar/hud-affordable-housing-explorer`) Actor

Search HUD LIHTC, FHA-insured multifamily, and public housing layers as one unified property feed. Filter by state, city, program, and minimum units; each row has units, low-income units, owner/manager, lat/lon, and an Opportunity Zone flag. Lead lists for LIHTC investors, developers, lenders.

- **URL**: https://apify.com/malonestar/hud-affordable-housing-explorer.md
- **Developed by:** [Kyle Maloney](https://apify.com/malonestar) (community)
- **Categories:** Lead generation, Developer tools, MCP servers
- **Stats:** 1 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.30 / 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 a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use 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

## HUD Affordable Housing Explorer — LIHTC + Multifamily + Public Housing

One search across **three HUD affordable-housing programs**, returned as a **single unified property record** — with an **Opportunity Zone flag** computed for every property:

| Program | Source layer (HUD eGIS, keyless) | What it covers |
|---|---|---|
| `LIHTC` | `LIHTC/FeatureServer/0` | 40,500+ Low-Income Housing Tax Credit properties, ~2.6M units placed in service since 1987 |
| `HUD_INSURED` | `HUD_Insured_Multifamily_Properties/FeatureServer/0` | FHA-insured multifamily properties (221(d)(4), 223(f), 232, 202/811...) |
| `PUBLIC_HOUSING` | `Public_Housing_Developments/FeatureServer/0` | Public housing developments with PHA contact + occupancy stats |
| Opportunity Zones | `Opportunity_Zones/FeatureServer/13` | Designated Qualified Opportunity Zone tract polygons (point-in-polygon flag) |

No API key, no scraping-fragile HTML — this reads HUD's own ArcGIS services and normalizes every layer's incompatible schema (`PROJECT` vs `PROPERTY_NAME_TEXT` vs `PROJECT_NAME`, `LI_UNITS` vs `TOTAL_ASSISTED_UNIT_COUNT` vs `ACC_UNITS`...) into one clean shape you can filter, join, and map.

### Who uses this

- **LIHTC investors & syndicators** — screen existing tax-credit stock by state/city/size, spot properties in Opportunity Zones for stacked incentives, and pull owner names for outreach.
- **Affordable-housing developers** — map the competitive landscape (what exists, how many low-income units, year placed in service) before siting a new deal.
- **CRE lenders & brokers** — build lead lists of HUD-insured multifamily and LIHTC properties with unit counts and management contacts.
- **Housing researchers & journalists** — cross-program inventory of subsidized housing in any state, with coordinates ready for GIS.
- **AI agents** — a chainable MCP tool that turns "affordable housing near X" questions into structured rows.

### Example input

```json
{
  "states": ["CO"],
  "programs": ["LIHTC", "HUD_INSURED", "PUBLIC_HOUSING"],
  "city": "Denver",
  "minUnits": 50,
  "includeOpportunityZoneFlag": true,
  "onlyOpportunityZone": false,
  "maxResults": 500
}
````

### Output fields (one row per property)

- `program` — `LIHTC` | `HUD_INSURED` | `PUBLIC_HOUSING`
- `source_id` — stable HUD id (LIHTC `HUD_ID`, multifamily `PROPERTY_ID`, public-housing `DEVELOPMENT_CODE`)
- `property_name`, `address`, `city`, `state`, `county`, `zip`
- `units_total` — total units (null when HUD reports "not available")
- `units_low_income` — LIHTC low-income units / assisted units / ACC units
- `year_placed_in_service` — LIHTC year placed in service or multifamily occupancy year
- `owner_or_manager` — management agent (HUD-insured) or public housing authority. Null for LIHTC rows (HUD does not publish an owner/company in the LIHTC layer)
- `program_detail` — FHA program type, LIHTC allocation, or PHA code/status
- `latitude`, `longitude` — WGS84 coordinates (HUD enterprise geocode)
- `opportunity_zone` — true when the property sits inside a designated Qualified Opportunity Zone tract (computed locally by point-in-polygon; null if disabled)
- `oz_tract_geoid` — the OZ tract's 11-digit GEOID when flagged

Results are deduplicated within a run and priced per row (pay-per-event Result).

### Use as an MCP tool

This actor is exposed via [mcp.apify.com](https://mcp.apify.com) — AI agents (Claude, Cursor, custom agents) can call it as a tool. The input schema is fully described and the output rows are flat, typed, and field-documented, so an agent can chain it: e.g. *find LIHTC properties in Opportunity Zones in Denver over 100 units, then look up their owners*.

### FAQ

**How do I get a list of LIHTC properties by state?** Set `states` to your state codes and `programs` to `["LIHTC"]` — each row includes units, low-income units, year placed in service, allocation amount, and lat/lon. (HUD does not publish an owner/company in the LIHTC layer, so `owner_or_manager` is null for LIHTC rows; it is populated for HUD-insured and public-housing programs.)

**How do I find affordable housing properties in Opportunity Zones?** Set `onlyOpportunityZone` to `true`. The actor fetches the designated QOZ tract polygons for your states and keeps only properties whose coordinates fall inside one.

**Which HUD database does the LIHTC data come from?** HUD's national LIHTC database (the only complete national source on tax-credit project size, unit mix, and location), published through HUD's public ArcGIS services.

**Can I filter HUD multifamily properties by size?** Yes — `minUnits` filters on total units. Note some HUD-insured records (e.g. hospitals/nursing homes) report 0/unknown units and are dropped when a minimum is set.

**Is public housing included?** Yes — public housing developments with the operating housing authority as `owner_or_manager`. Year placed in service is not published for this layer.

**Does it work for the whole US?** Yes, any US state or territory code; query multiple states in one run. Data freshness follows HUD's own layer updates.

**Where do the Opportunity Zone boundaries come from?** HUD's `Opportunity_Zones` FeatureServer (designated QOZ tracts per IRC 1400Z-1). The flag is computed locally with ray-casting point-in-polygon — no paid geocoding APIs.

# Actor input Schema

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

2-letter USPS state codes to search (e.g. CO, TX, NY). Applied to every selected program layer. Defaults to \["CO"] if empty.

## `programs` (type: `array`):

Which HUD program layers to merge into the unified feed: LIHTC (Low-Income Housing Tax Credit properties), HUD\_INSURED (FHA-insured multifamily), PUBLIC\_HOUSING (public housing developments). Empty = all three.

## `city` (type: `string`):

Optional city-name filter (case-insensitive, prefix match). Example: "Denver". Leave empty for the whole state.

## `minUnits` (type: `integer`):

Only return properties with at least this many total units. 0 = no minimum. Note: some HUD-insured records report 0/unknown units and are dropped when this is set.

## `includeOpportunityZoneFlag` (type: `boolean`):

When true, fetch the designated Qualified Opportunity Zone tract polygons for each queried state and flag every property that sits inside one (adds opportunity\_zone + oz\_tract\_geoid to each row).

## `onlyOpportunityZone` (type: `boolean`):

When true, return only properties located inside a designated Qualified Opportunity Zone (forces the OZ flag computation on).

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

Maximum number of unified property rows to push to the dataset (each row = 1 billed result). 1-25000.

## Actor input object example

```json
{
  "states": [
    "CO"
  ],
  "programs": [
    "LIHTC",
    "HUD_INSURED",
    "PUBLIC_HOUSING"
  ],
  "minUnits": 0,
  "includeOpportunityZoneFlag": true,
  "onlyOpportunityZone": false,
  "maxResults": 500
}
```

# Actor output Schema

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

The default dataset.

# 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 = {
    "states": [
        "CO"
    ],
    "programs": [
        "LIHTC",
        "HUD_INSURED",
        "PUBLIC_HOUSING"
    ],
    "includeOpportunityZoneFlag": true,
    "maxResults": 500
};

// Run the Actor and wait for it to finish
const run = await client.actor("malonestar/hud-affordable-housing-explorer").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 = {
    "states": ["CO"],
    "programs": [
        "LIHTC",
        "HUD_INSURED",
        "PUBLIC_HOUSING",
    ],
    "includeOpportunityZoneFlag": True,
    "maxResults": 500,
}

# Run the Actor and wait for it to finish
run = client.actor("malonestar/hud-affordable-housing-explorer").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "states": [
    "CO"
  ],
  "programs": [
    "LIHTC",
    "HUD_INSURED",
    "PUBLIC_HOUSING"
  ],
  "includeOpportunityZoneFlag": true,
  "maxResults": 500
}' |
apify call malonestar/hud-affordable-housing-explorer --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=malonestar/hud-affordable-housing-explorer",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "HUD Affordable Housing Explorer: LIHTC + Multifamily + Public",
        "description": "Search HUD LIHTC, FHA-insured multifamily, and public housing layers as one unified property feed. Filter by state, city, program, and minimum units; each row has units, low-income units, owner/manager, lat/lon, and an Opportunity Zone flag. Lead lists for LIHTC investors, developers, lenders.",
        "version": "0.1",
        "x-build-id": "WqcP7pyJ7NoDj2beB"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/malonestar~hud-affordable-housing-explorer/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-malonestar-hud-affordable-housing-explorer",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/malonestar~hud-affordable-housing-explorer/runs": {
            "post": {
                "operationId": "runs-sync-malonestar-hud-affordable-housing-explorer",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/malonestar~hud-affordable-housing-explorer/run-sync": {
            "post": {
                "operationId": "run-sync-malonestar-hud-affordable-housing-explorer",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "states": {
                        "title": "States",
                        "type": "array",
                        "description": "2-letter USPS state codes to search (e.g. CO, TX, NY). Applied to every selected program layer. Defaults to [\"CO\"] if empty.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "programs": {
                        "title": "Housing programs",
                        "type": "array",
                        "description": "Which HUD program layers to merge into the unified feed: LIHTC (Low-Income Housing Tax Credit properties), HUD_INSURED (FHA-insured multifamily), PUBLIC_HOUSING (public housing developments). Empty = all three.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "LIHTC",
                                "HUD_INSURED",
                                "PUBLIC_HOUSING"
                            ],
                            "enumTitles": [
                                "LIHTC tax-credit properties",
                                "HUD/FHA-insured multifamily",
                                "Public housing developments"
                            ]
                        }
                    },
                    "city": {
                        "title": "City (starts with)",
                        "type": "string",
                        "description": "Optional city-name filter (case-insensitive, prefix match). Example: \"Denver\". Leave empty for the whole state."
                    },
                    "minUnits": {
                        "title": "Minimum total units",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Only return properties with at least this many total units. 0 = no minimum. Note: some HUD-insured records report 0/unknown units and are dropped when this is set.",
                        "default": 0
                    },
                    "includeOpportunityZoneFlag": {
                        "title": "Compute Opportunity Zone flag",
                        "type": "boolean",
                        "description": "When true, fetch the designated Qualified Opportunity Zone tract polygons for each queried state and flag every property that sits inside one (adds opportunity_zone + oz_tract_geoid to each row).",
                        "default": true
                    },
                    "onlyOpportunityZone": {
                        "title": "Only Opportunity Zone properties",
                        "type": "boolean",
                        "description": "When true, return only properties located inside a designated Qualified Opportunity Zone (forces the OZ flag computation on).",
                        "default": false
                    },
                    "maxResults": {
                        "title": "Max results",
                        "minimum": 1,
                        "maximum": 25000,
                        "type": "integer",
                        "description": "Maximum number of unified property rows to push to the dataset (each row = 1 billed result). 1-25000.",
                        "default": 1000
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
