NYC Housing Lottery Tracker
Pricing
from $4.00 / 1,000 housing lotteries
NYC Housing Lottery Tracker
New York City affordable housing lotteries from HPD's Housing Connect open data, one row per lottery with deadline, unit mix, income bands, preferences and buildings.
Pricing
from $4.00 / 1,000 housing lotteries
Rating
0.0
(0)
Developer
Saffo
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
5 days ago
Last modified
Categories
Features
Share
NYC Housing Lottery Tracker: deadlines, unit mix and income bands
New York City affordable housing lotteries from HPD's Housing Connect open data, one row per lottery with deadline, unit mix, income bands, preferences and buildings.
What it does
This NYC housing lottery tracker lists the affordable housing lotteries advertised on NYC Housing Connect, as the NYC Department of Housing Preservation and Development (HPD) publishes them on NYC Open Data in the datasets vy5i-a666 (lotteries) and nibs-na6y (buildings). Each result is one lottery with its status, application period, whether it is still open, the days left before the deadline, the units per bedroom count and per income band (share of area median income, AMI), the preference set-asides, its buildings and a link to the lottery's Housing Connect page, where people apply.
The actor reads only the open data API; it never opens Housing Connect, never logs in and never applies. Status, borough and dates are normalised by the actor (for example Tenant Selection becomes tenant-selection, BK becomes Brooklyn). HPD refreshes the datasets about once a month. This actor is not affiliated with or endorsed by the City of New York or HPD.
Who it is for
- Housing counselors and nonprofits who keep clients up to date on which NYC housing lotteries are open and when they close.
- Renter apps, newsletters and journalists who publish the current lotteries by borough, deadline and income band.
- Researchers and affordable-housing developers who compare past lotteries: unit mix, income bands and preferences by neighborhood.
How to use it
- Open the actor on Apify Store and go to its Input tab.
- Change the fields you need; every field has a default (see Input below).
- Click Start. The run ends at the limits below, or earlier at the "Maximum cost per run" you set.
- When the run ends, open the Output tab: view the results as a table, or export them as JSON, CSV or Excel.
Input
| Field | Type | Default | Description |
|---|---|---|---|
statuses | array | ["active"] | Lottery statuses to return, any of active, tenant-selection, all-units-filled, closed. Default active (open for applications). Empty returns every status. |
developmentType | string | "all" | Development type filter, one of all, rental, owner (homeownership). |
boroughs | array | [] | Boroughs to keep, any of manhattan, bronx, brooklyn, queens, staten-island. Empty keeps all five. |
postcodes | array | [] | Five-digit ZIP codes to keep. Empty keeps all. |
lotteryIds | array | [] | Housing Connect lottery ids to fetch directly (integers), for example [7718, 7728]. When given, the status, type, borough and date filters are ignored. |
startedAfter | string | Only lotteries whose application period started on or after this date (YYYY-MM-DD). Empty means any date. | |
minUnits | integer | 1 | Only lotteries with at least this many units. |
includeBuildings | boolean | true | Add the buildings array (address, BIN, BBL, districts, construction type) to every lottery. |
maxItems | integer | 200 | Stop after this many lotteries (1 to 5000). |
Example input:
{"statuses": ["active"],"maxItems": 5}
Active rental lotteries in Brooklyn and the Bronx whose application period started on or after 1 October 2026:
{"statuses": ["active"],"developmentType": "rental","boroughs": ["brooklyn", "bronx"],"startedAfter": "2026-10-01"}
Output
Each result is one dataset item:
| Field | Type | Description |
|---|---|---|
url | string | Web address of the item: its own page, or the page it was read from. |
title | string | Title of the item as shown on the page. |
lotteryId | integer | Housing Connect lottery id. |
housingConnectUrl | string | Public Housing Connect page of the lottery where people apply (built from lotteryId, not fetched). |
status | string | Lottery status, one of active, tenant-selection, all-units-filled, closed. |
isOpen | boolean | True when status is active and the end date is today or later in New York time. |
developmentType | string | rental for rental lotteries, owner for homeownership lotteries. |
startDate | string or null | First day of the application period (YYYY-MM-DD). |
endDate | string or null | Application deadline (YYYY-MM-DD). |
daysLeft | integer or null | Days from the run date (New York time) to endDate, 0 on the last day; null when the deadline has passed. |
borough | string or null | Borough name (Manhattan, Bronx, Brooklyn, Queens, Staten Island); filled from the community board or the buildings when the lottery row has none. |
postcode | string or null | ZIP code of the lottery as published. |
communityBoard | string or null | Community board code, borough digit followed by the board number. |
latitude | number or null | Latitude of the lottery location (WGS 84). |
longitude | number or null | Longitude of the lottery location (WGS 84). |
unitCount | integer | Total units offered in the lottery. |
buildingCount | integer | Number of buildings in the lottery. |
unitsByBedroom | object | Units offered per bedroom count; 0 when the source leaves a size empty. |
unitsByIncomeBand | object | Units offered per HPD area-median-income (AMI) band; 0 when the source leaves a band empty. |
preferences | object | Share of units set aside for each lottery preference group, in percent; null when not published. |
buildings | array | Buildings of the lottery from dataset nibs-na6y; empty when includeBuildings is false. |
fetchedAt | string | When the page was read (ISO 8601, UTC). |
Example output (real items from a test run):
[{"url": "https://data.cityofnewyork.us/resource/vy5i-a666.json?lottery_id=7718","title": "Kingsland Commons Building 2","lotteryId": 7718,"housingConnectUrl": "https://housingconnect.nyc.gov/PublicWeb/details/7718","status": "active","isOpen": true,"developmentType": "rental","startDate": "2026-10-30","endDate": "2026-11-25","daysLeft": 7,"borough": "Brooklyn","postcode": "11211","communityBoard": "301","latitude": 40.7160891,"longitude": -73.9389733,"unitCount": 217,"buildingCount": 1,"unitsByBedroom": {"studio": 2,"oneBedroom": 98,"twoBedroom": 77,"threeBedroom": 40,"fourPlusBedroom": 0},"unitsByIncomeBand": {"extremelyLow": 16,"veryLow": 61,"low": 140,"moderate": 0,"middle": 0,"aboveMiddle": 0},"preferences": {"mobilityPercent": 5,"visionHearingPercent": 2,"communityBoardPercent": 20,"municipalEmployeePercent": 10,"nychaPercent": null,"seniorPercent": null},"buildings": [{"streetAddress": "89 Maspeth Ave","postcode": "11211","borough": "Brooklyn","constructionType": "new-construction","unitCount": 217,"bin": null,"bbl": null,"councilDistrict": "34","censusTract2020": "44901","nta2020": "BK0104","hpdBuildingId": null,"latitude": 40.715966,"longitude": -73.93944}],"fetchedAt": "2026-11-18T10:20:40.682Z"},{"url": "https://data.cityofnewyork.us/resource/vy5i-a666.json?lottery_id=7728","title": "1506 Southern Boulevard","lotteryId": 7728,"housingConnectUrl": "https://housingconnect.nyc.gov/PublicWeb/details/7728","status": "active","isOpen": true,"developmentType": "rental","startDate": "2026-10-29","endDate": "2026-11-23","daysLeft": 5,"borough": "Bronx","postcode": "10460","communityBoard": "203","latitude": 40.833558,"longitude": -73.889638,"unitCount": 6,"buildingCount": 1,"unitsByBedroom": {"studio": 1,"oneBedroom": 3,"twoBedroom": 2,"threeBedroom": 0,"fourPlusBedroom": 0},"unitsByIncomeBand": {"extremelyLow": 0,"veryLow": 0,"low": 6,"moderate": 0,"middle": 0,"aboveMiddle": 0},"preferences": {"mobilityPercent": null,"visionHearingPercent": null,"communityBoardPercent": null,"municipalEmployeePercent": null,"nychaPercent": null,"seniorPercent": null},"buildings": [{"streetAddress": "1506 SOUTHERN BOULEVARD","postcode": "10460","borough": "Bronx","constructionType": "new-construction","unitCount": 6,"bin": null,"bbl": "2029810019","councilDistrict": "17","censusTract2020": "157","nta2020": "BX0303","hpdBuildingId": null,"latitude": 40.833566,"longitude": -73.89001}],"fetchedAt": "2026-11-18T10:20:40.682Z"}]
Download the dataset as JSON, CSV or Excel, or read it through the Apify API.
Pricing
Pay per event: a small fee per run plus a fee per result saved. Platform usage is included in these prices.
| Event | When it is charged | Free plan | Bronze plan | Silver plan | Gold plan | Platinum plan | Diamond plan |
|---|---|---|---|---|---|---|---|
Run started (run-started) | Flat fee once per run; covers starting the run and the API queries. | $0.025 | $0.02 | $0.018 | $0.016 | $0.016 | $0.016 |
Housing lottery (lottery) | One housing lottery with its unit mix, income bands, preferences and buildings saved to the dataset. | $0.0063 | $0.005 | $0.0045 | $0.004 | $0.004 | $0.004 |
Example (lowest plan price): a run that saves 100 results costs $0.016 + 100 × $0.004 = $0.416. That is $4.00 per 1,000 results plus $0.016 per run. You pay only for results saved to the dataset; set "Maximum cost per run" in the run options and the actor stops there.
On 18 November 2026 the open data listed 47 lotteries with status active; a run that saves all of them costs $0.02 + 47 × $0.005 = $0.255.
Limits
-
One run saves at most 5,000 results and loads at most 25 pages. Larger jobs: split the start URLs over several runs.
-
Default memory 256 MB; no proxy.
-
When a limit is reached, the run ends normally and keeps every result saved so far; the status message says which limit it was.
-
HPD updates the open data about once a month, so a lottery that just opened on Housing Connect can appear here some weeks later.
-
The open data has no rents, income limits per household size or application requirements; read those on the lottery's Housing Connect page (
housingConnectUrl). -
Some lotteries keep the status
Activein the source after their deadline; useisOpenanddaysLeft, which compare the deadline with the run date in New York time. -
Lotteries spread over several buildings can carry
Multipleas their published ZIP code or community board, and no coordinates; their buildings carry their own.
Use with AI agents
AI agents can call this actor as a tool through the Apify MCP server. Add it to an MCP client (Claude Desktop, Cursor, VS Code and others):
{"mcpServers": {"apify": {"url": "https://mcp.apify.com/?tools=saffo/nyc-housing-lottery-tracker"}}}
An agent can then answer questions such as "which housing lotteries in Queens close this week" by running it with "boroughs": ["queens"] and reading daysLeft.
Or call it over HTTP and get the results in the response:
curl -X POST "https://api.apify.com/v2/acts/saffo~nyc-housing-lottery-tracker/run-sync-get-dataset-items" \-H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \-d '{"statuses":["active"],"maxItems":5}'
FAQ
How much does it cost?
You pay per event: from $0.004 per housing lottery plus $0.016 per run. The Pricing section lists the price on every Apify plan. Platform usage is included, and the run stops at the maximum cost per run you set.
Can I use it from an AI agent or my own code?
Yes. Add it to any MCP client through the Apify MCP server, or call the Apify API; the examples under Use with AI agents show both. Results come back as JSON.
How many results can one run return?
Up to 5,000 results from at most 25 pages. For more, split the input over several runs.
Does it collect personal data?
No. It saves only the fields listed under Output and leaves out names, e-mail addresses, phone numbers and profiles of private persons.
How do I apply for a lottery?
Open the lottery's housingConnectUrl and apply on NYC Housing Connect. The actor only reads the published open data; it never applies, logs in or contacts anyone.
Why is a lottery I saw on Housing Connect missing?
HPD refreshes the open data about once a month, so the newest lotteries reach the datasets some weeks after they open. Check the status and date filters too: by default the actor returns only lotteries with status active.
Support
Open an issue on the actor's Issues tab.
Changelog
0.1 (2026-11-18)
- First release: NYC housing lotteries from HPD open data with filters by status, development type, borough, ZIP code, lottery id, start date and unit count; buildings joined to each lottery; open flag, days left before the deadline and the Housing Connect link.