# Hud Lihtc Property Sponsor Scraper (`unique_dev/hud-lihtc-property-sponsor-scraper`) Actor

- **URL**: https://apify.com/unique_dev/hud-lihtc-property-sponsor-scraper.md
- **Developed by:** [Ship AI agents](https://apify.com/unique_dev) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 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.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## HUD LIHTC Affordable Housing Properties, Sponsors & Year-15 Preservation Scraper

Extract normalized, institutional-grade property, unit, tax credit allocation, sponsor, coordinate, Census FIPS, and **Year-15 Compliance Preservation / Exit Window** data directly from the official **U.S. Department of Housing and Urban Development (HUD) Low-Income Housing Tax Credit (LIHTC)** database—automatically enriched with **12-worker multi-engine Sponsor/Property Website, Business Email, Phone & Social Media discovery**.

***

### Live 20-Property Verification Benchmark (`12.58s` Wall-Clock)

Query: `states=["CA", "TX"]`, `onlyYear15WindowMatches=True` (`2025–2030` Year-15 Exit Window), `minimumTotalUnits=50`, `enrichSponsorContacts=True`, `maxResults=20`.

- **Total Runtime**: `12.58s` (12-worker concurrent `curl_cffi` TLS impersonation pipeline)
- **Official Sponsor / Property Websites & Emails Enriched**: **15 / 20 (75%)**
- **Published Business Phones Enriched**: **18 / 20 (90%)**

| # | HUD ID | Project Name | City, State | Units (LI) | PIS -> Year-15 | Sponsor / Management | Phone | Enriched Website | Enriched Emails |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| 1 | `CAA20130036` | GRANITE CITY APTS | FOLSOM, CA | 80 (80) | 2013 -> **2028** | — | (916) 355-0104 | https://www.thegranitecityapts.com/ | info@thegranitecityapts.com |
| 2 | `CAA20130037` | HERITAGE COMMONS | DIXON, CA | 59 (59) | 2013 -> **2028** | The John Stewart Company | (707) 676-5660 | https://jsco.net/property/heritage-commons/ | heritagecommons@jsco.net, oleander@jsco.net |
| 3 | `CAA20130038` | HILLCREST VILLAS | THOUSAND OAKS, CA | 60 (59) | 2013 -> **2028** | Many Mansions | (805) 496-4948 | https://www.manymansions.org/recent-property-renovations/hillcrest-villas/ | info@manymansions.org |
| 4 | `CAA20130039` | HUNTINGTON PLAZA APTS | HUNTINGTON PARK, CA | 182 (182) | 2013 -> **2028** | — | (323) 582-0685 | https://huntingtonplazasenior.usamfm.com/ | info@huntingtonplazasenior.usamfm.com |
| 5 | `CAA20130054` | MEADOWBROOK PARKVIEW GARDEN APTS | SUSANVILLE, CA | 90 (87) | 2013 -> **2028** | — | (530) 257-5524 | https://www.meadowbrook-apts.com/ | info@meadowbrook-apts.com |
| 6 | `CAA20130055` | MENLO FAMILY HOUSING | LOS ANGELES, CA | 60 (59) | 2013 -> **2028** | — | (213) 351-0035 | — | — |
| 7 | `CAA20130056` | METRO AT HOLLYWOOD | LOS ANGELES, CA | 120 (119) | 2013 -> **2028** | — | (323) 460-2966 | https://metrohollywoodseniorapts.com/ | info@metrohollywoodseniorapts.com |
| 8 | `CAA20140399` | FAIRBANKS COMMONS | SAN DIEGO, CA | 165 (163) | 2014 -> **2029** | — | (858) 649-6176 | https://www.fairbankscommonapts.com/ | info@fairbankscommonapts.com |
| 9 | `CAA20140401` | FRED YOUNG FARMWORKER APTS PHASE I | INDIO, CA | 85 (84) | 2014 -> **2029** | Hyder | — | https://www.hyderco.com/ | fredyoung@hyderco.com |
| 10 | `CAA20140402` | GARDEN VILLAGE | SACRAMENTO, CA | 195 (193) | 2014 -> **2029** | — | (916) 383-3920 | — | — |
| 11 | `CAA20140405` | HARDEN RANCH APTS | SALINAS, CA | 100 (98) | 2014 -> **2029** | Chispa | (831) 219-3982 | https://chispahousing.org/rentals/harden-ranch-apartments/ | hardenranch@chispahousing.org |
| 12 | `CAA20120912` | RENAISSANCE AT SANTA CLARA | FRESNO, CA | 70 (69) | 2012 -> **2027** | Fresno Housing | (559) 443-8400 | https://fresnohousing.org/properties/renaissance-at-santa-clara/ | accounts.payable@fresnohousing.org, applicantportal@fresnohousing.org |
| 13 | `CAA20120913` | HACIENDA HEIGHTS APTS | KERMAN, CA | 69 (68) | 2012 -> **2027** | — | — | — | — |
| 14 | `CAA20120916` | OAK GLENN & OAKCREEK APTS | WILLITS, CA | 69 (67) | 2012 -> **2027** | — | (707) 456-0128 | — | — |
| 15 | `CAA20120917` | PLEASANT VALLEY & WIEN MANOR APTS | AVENAL, CA | 80 (77) | 2012 -> **2027** | MBS Property Management, Inc. | (559) 386-4039 | https://www.mbspminc.com/property/274/pleasant-valley-manor/?id=1459 | pleasantvalleymanor@mbspminc.com |
| 16 | `CAA20130061` | MOSAIC GARDENS AT TAYLOR TERRACE | SACRAMENTO, CA | 168 (166) | 2013 -> **2028** | — | (916) 929-0323 | https://www.mosaicgardenstaylorterrace.com/ | info@mosaicgardenstaylorterrace.com |
| 17 | `CAA20130062` | ND SEPULVEDA I | NORTH HILLS, CA | 72 (72) | 2013 -> **2028** | — | (310) 896-3377 | — | — |
| 18 | `CAA20130063` | MUTUAL HOUSING AT NEW HARMONY | DAVIS, CA | 69 (68) | 2013 -> **2028** | — | (530) 758-2889 | https://www.newharmonymutualhousing.com/ | info@newharmonymutualhousing.com |
| 19 | `CAA20130065` | THE ARBORS AT OAK PARK | SACRAMENTO, CA | 56 (55) | 2013 -> **2028** | — | (916) 706-1548 | https://www.related.com/our-company/properties/arbors-oak-park | communications@related.com, gfee@related.com |
| 20 | `CAA20130340` | DORIA APT HOMES PHASE II | IRVINE, CA | 74 (73) | 2013 -> **2028** | Jamboree Housing Corporation | (949) 701-4719 | https://www.jamboreehousing.com/ | info@jamboreehousing.com |

***

### Key Capabilities

- **Direct SQL Pushdown Filtering**: Translates state, city, minimum total/low-income unit counts, Placed-in-Service year ranges (`YR_PIS`), and Year-15 compliance windows directly into ArcGIS SQL `WHERE` queries for fast, deterministic pagination across `resultOffset` batches.
- **12-Worker Multi-Engine Sponsor & Property Contact Discovery (`enrichSponsorContacts=True`)**:
  - Uses Yahoo Search + Clearbit Autocomplete + external website crawling (`timeout=3.8s`) to discover official sponsor/management websites (`sponsor_website`), verified business emails (`sponsor_emails`), missing property/sponsor phone numbers (`published_business_phone`), and social profiles (`sponsor_socials`, `sponsor_linkedin`).
  - Decodes Cloudflare `data-cfemail` hex strings, crawls `/contact` subpages, and strictly blocks apartment listing directories (`apartments.com`, `zillow.com`, `rentcafe.com`, `affordablehousingonline.com`, etc.).
- **Year-15 Preservation & Compliance Exit Analytics**: Automatically normalizes Placed-in-Service years (filtering out HUD sentinel values `8888` and `9999`), computes `indicative_year_15` (`placed_in_service_year + 15`), and flags properties entering the target preservation/re-syndication window (`in_preservation_window`).
- **Stateful Change Tracking (`mode="changes"`)**: Persists deterministic SHA-256 record hashes keyed by `hud_id` in Apify's named Key-Value Store (`stateKey`) to identify `"new"`, `"updated"`, and `"unchanged"` properties across scheduled runs.

***

### Input Parameters

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `states` | `array[string]` | `["TX", "CA", "FL"]` | 2-letter US state or territory codes to query. Leave empty for all states nationwide. |
| `cities` | `array[string]` | `[]` | Optional list of city names to filter properties by (case-insensitive). |
| `placedInServiceYearMin` | `integer` | `null` | Minimum Placed-in-Service year (`YR_PIS`), excluding sentinel values (`8888`/`9999`). |
| `placedInServiceYearMax` | `integer` | `null` | Maximum Placed-in-Service year (`YR_PIS`). |
| `researchWindowStartYear` | `integer` | `2025` | Start year for evaluating the indicative Year-15 preservation/exit window (`YR_PIS + 15`). |
| `researchWindowEndYear` | `integer` | `2030` | End year for evaluating the indicative Year-15 preservation/exit window (`YR_PIS + 15`). |
| `onlyYear15WindowMatches` | `boolean` | `false` | When `true`, restricts the query to properties whose `indicative_year_15` falls within `[researchWindowStartYear, researchWindowEndYear]`. |
| `minimumTotalUnits` | `integer` | `0` | Minimum total residential units (`N_UNITS`). |
| `minimumLowIncomeUnits` | `integer` | `0` | Minimum low-income tax credit restricted units (`LI_UNITS`). |
| `sponsorNameContains` | `string` | `""` | Substring filter matching sponsor company (`COMPANY`), contact (`CONTACT`), or project/LP entity name (`PROJECT`). |
| `mode` | `string` | `"snapshot"` | `"snapshot"` outputs all matching properties; `"changes"` outputs only `"new"` or `"updated"` records relative to `stateKey`. |
| `stateKey` | `string` | `"LIHTC-STATE"` | Named Apify Key-Value Store used to persist property hashes across runs. |
| `enrichSponsorContacts` | `boolean` | `true` | Enables 12-worker multi-engine discovery of sponsor/property websites, business emails, phones, and social links. |
| `maxResults` | `integer` | `20` | Maximum number of normalized property records to output (up to `50,000`). |

# Actor input Schema

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

2-letter US state or territory codes to query (e.g., \['TX', 'CA', 'FL', 'NY']). Leave empty to query nationwide.

## `cities` (type: `array`):

Optional list of cities to filter properties by (case-insensitive, e.g., \['AUSTIN', 'HOUSTON', 'LOS ANGELES']). Leave empty for all cities.

## `placedInServiceYearMin` (type: `integer`):

Optional minimum Placed-in-Service year (YR_PIS, e.g., 2010). Excludes sentinel years (8888/9999) when set.

## `placedInServiceYearMax` (type: `integer`):

Optional maximum Placed-in-Service year (YR_PIS, e.g., 2015).

## `researchWindowStartYear` (type: `integer`):

Start year for evaluating the indicative Year-15 compliance/preservation exit window (YR_PIS + 15 >= researchWindowStartYear).

## `researchWindowEndYear` (type: `integer`):

End year for evaluating the indicative Year-15 compliance/preservation exit window (YR_PIS + 15 <= researchWindowEndYear).

## `onlyYear15WindowMatches` (type: `boolean`):

When enabled, pushes down SQL filters so only properties whose indicative Year-15 preservation/exit year (YR_PIS + 15) falls between researchWindowStartYear and researchWindowEndYear are returned.

## `minimumTotalUnits` (type: `integer`):

Minimum total residential units in the property (0 for no minimum).

## `minimumLowIncomeUnits` (type: `integer`):

Minimum LIHTC low-income restricted units in the property (0 for no minimum).

## `sponsorNameContains` (type: `string`):

Optional substring filter matching sponsor company (COMPANY), contact (CONTACT), or project/LP entity name (PROJECT).

## `mode` (type: `string`):

Select 'snapshot' to emit all matching records, or 'changes' to compare against prior runs stored in the named Key-Value Store (stateKey) and emit only new or updated properties.

## `stateKey` (type: `string`):

Named Apify Key-Value Store used to persist property hashes keyed by hud_id for stateful change tracking.

## `enrichSponsorContacts` (type: `boolean`):

When enabled (default), uses 12-worker multi-engine discovery (Yahoo Search + Clearbit + website crawl) to enrich sponsor/property website URL, public business emails, phone number, and social profiles (LinkedIn, Facebook, Instagram, YouTube, X).

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

Maximum number of normalized HUD LIHTC property records to output in a single run (up to 50,000).

## Actor input object example

```json
{
  "states": [
    "TX",
    "CA",
    "FL"
  ],
  "cities": [],
  "researchWindowStartYear": 2025,
  "researchWindowEndYear": 2030,
  "onlyYear15WindowMatches": false,
  "minimumTotalUnits": 50,
  "minimumLowIncomeUnits": 0,
  "sponsorNameContains": "",
  "mode": "snapshot",
  "stateKey": "LIHTC-STATE",
  "enrichSponsorContacts": true,
  "maxResults": 20
}
```

# Actor output Schema

## `dataset` (type: `string`):

Normalized dataset of official HUD Low-Income Housing Tax Credit (LIHTC) properties, sponsor companies, unit counts, tax credit allocations, coordinates, FIPS codes, and Year-15 preservation window analytics

# 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": [
        "TX",
        "CA",
        "FL"
    ],
    "cities": [],
    "researchWindowStartYear": 2025,
    "researchWindowEndYear": 2030,
    "minimumTotalUnits": 50,
    "minimumLowIncomeUnits": 0,
    "stateKey": "LIHTC-STATE",
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("unique_dev/hud-lihtc-property-sponsor-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 = {
    "states": [
        "TX",
        "CA",
        "FL",
    ],
    "cities": [],
    "researchWindowStartYear": 2025,
    "researchWindowEndYear": 2030,
    "minimumTotalUnits": 50,
    "minimumLowIncomeUnits": 0,
    "stateKey": "LIHTC-STATE",
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("unique_dev/hud-lihtc-property-sponsor-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 '{
  "states": [
    "TX",
    "CA",
    "FL"
  ],
  "cities": [],
  "researchWindowStartYear": 2025,
  "researchWindowEndYear": 2030,
  "minimumTotalUnits": 50,
  "minimumLowIncomeUnits": 0,
  "stateKey": "LIHTC-STATE",
  "maxResults": 20
}' |
apify call unique_dev/hud-lihtc-property-sponsor-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,unique_dev/hud-lihtc-property-sponsor-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/Ychkx6ElwE4IdTa2p/builds/7kL8jeBWthByxePAf/openapi.json
