# Nashville Deal Finder (`stephen-56/nashville-deal-finder`) Actor

Scores every Davidson County, TN census tract for early gentrification momentum and lists bank-owned (foreclosed) homes in the best-scoring areas, using free public data.

- **URL**: https://apify.com/stephen-56/nashville-deal-finder.md
- **Developed by:** [Stephen](https://apify.com/stephen-56) (community)
- **Categories:** Real estate, Lead generation
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.00 / 1,000 properties

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

## Nashville Deal Finder

Find **foreclosed, bank-owned homes in Nashville neighborhoods that are still affordable but starting to turn the corner** — using only free public data, before the homes show up on Zillow.

Covers Davidson County, Tennessee. A full run takes about 20 seconds.

### What it does

#### 1. Scores every neighborhood (census tract)

Each of Davidson County's 171 census tracts gets a **Turning-the-Corner score (0–100)**:

- **Momentum (65%)** — signs an area is improving:
  - Median sale price growth (last 12 months vs the 2 years before)
  - Residential building permits per 100 homes, and their growth
  - New short-term rental (Airbnb) permits per 100 homes
  - Falling property-neglect complaints (code violations)
  - Population growth 2010–2020
  - *With a free Census API key:* household income growth, rising share of college graduates and of 25–34-year-olds, rent growth
- **Affordability (35%)** — how far below the county's median sale price the tract still is.

A tract that is cheap **and** improving scores highest. Already-expensive areas have "turned" and score lower; cheap areas with no momentum also score lower.

#### 2. Finds bank-owned homes

Lists homes whose **current owner is a bank, mortgage servicer, or housing agency** (Fannie Mae, Freddie Mac, VA, HUD) — i.e. completed foreclosures the lender still holds — and ranks them by:

- the tract's Turning-the-Corner score (70%), and
- how far below the county appraisal the lender took the property (30%).

People whose names only *contain* a lender word (e.g. "Banks"), $0 deed prices, and bulk takeovers of unfinished subdivisions from builders are filtered out by default.

### Output

| Output | What's in it |
|---|---|
| **Dataset** | One row per bank-owned home: address, owner, date the lender took it, price paid vs appraisal, land use, tract score and rank, deal score, links to Zillow and Google Maps |
| **tract-scores.csv** | Every tract ranked, with all underlying signals — open in Excel or Google Sheets |
| **TRACT_SCORES** | Same as JSON |

#### Sample: bank-owned homes (October 2026 run)

| Rank | Address | Owner | Lender took it | Lender paid | Appraised | Paid / appraisal | Tract (rank) | Deal score |
|---|---|---|---|---|---|---|---|---|
| 1 | 1314 Quail Valley Rd, Nashville 37214 | Newrez, LLC | 2026-08-11 | $126,000 | $222,200 | 0.57 | 156.25 (#13) | 57.9 |
| 2 | 4316 Summercrest Blvd #601, Antioch 37013 | Fannie Mae | 2026-09-17 | $234,800 | $300,400 | 0.78 | 156.30 (#21) | 49.7 |
| 3 | 1461 Stoner Rdg, Hermitage 37076 | Federal Savings Bank | 2026-09-09 | $378,225 | $435,400 | 0.87 | 154.05 (#19) | 47.6 |

Each row also has the land use, parcel ID, momentum and affordability scores, the tract's median sale price, and ready-made Zillow and Google Maps links.

#### Sample: tract-scores.csv (top 3 of 171)

| Rank | Tract | Score | Median sale (24 mo) | Price change | Res. permits (12 mo) | Code violations change | Income growth | College-grad share change | Rent growth |
|---|---|---|---|---|---|---|---|---|---|
| 1 | 108.01 | 74.9 | $301,250 | +0.8% | 61 | -40.9% | +31.3% | +9.8 pts | +29.3% |
| 2 | 127.01 | 74.8 | $305,900 | -16.2% | 151 | -43.3% | +43.6% | +7.4 pts | +38.2% |
| 3 | 104.03 | 71.2 | $302,000 | +12.2% | 21 | -20.7% | +22.0% | +9.6 pts | +15.5% |

The CSV has 28 columns per tract, including short-term rental permits, vacancy, blight status and population change.

### Input

| Field | Default | Description |
|---|---|---|
| Acquired within (months) | 12 | How recently the lender took ownership |
| Max appraised value | none | Skip homes appraised above this |
| Min neighborhood score | 0 | Only homes in tracts scoring at least this |
| Only still-affordable tracts | off | Only tracts at or below the county median price |
| Include vacant land | off | Bank-owned lots (often construction loans, not foreclosures) |
| Include bulk builder takeovers | off | Lenders taking 5+ parcels the same day |
| Census API key | none | Free from [api.census.gov/data/key_signup.html](https://api.census.gov/data/key_signup.html). Adds income, education, age and rent signals |

### Data sources (all free and public)

- **Metro Nashville Open Data** (ArcGIS): parcels (owner, sale date and price, appraisal), building permits, short-term rental permits, property standards violations, 2020 census tracts with housing and blight data, 2010–2020 population change
- **US Census Bureau ACS 5-year estimates** (optional, needs a free key)

Nashville's parcel and permit records still use 2010 census tract codes, so every record is placed into its **2020** tract by its map coordinates.

### Limitations — read before you buy

- **Bank-owned ≠ for sale.** A lender may not have listed the home yet, may sell it at auction, or may already be under contract. Check Zillow, HUD Homes, HomePath or HomeSteps, or call the listing agent.
- **Owner-name matching isn't perfect.** A private LLC with "Bank" or "Loan" in its name can slip in. Check the owner on the [Davidson County Assessor](https://www.padctn.org/) site.
- **"Lender paid" is the recorded deed price** — at a foreclosure that's usually the lender's credit bid, not market value.
- **Scores are relative**, ranking tracts against each other. They suggest where to look, not what to buy.
- Pre-foreclosures (Notices of Default) and upcoming trustee/tax sales are **not included yet**.
- The score deliberately uses economic signals only — no race or ethnicity data.

### Run locally

```bash
python -m src
```

Input: `storage/key_value_stores/default/INPUT.json`. Results: `storage/datasets/default/` and `storage/key_value_stores/default/tract-scores.csv`.

# Actor input Schema

## `bankOwnedMonthsBack` (type: `integer`):

Only list homes a bank, lender or housing agency took ownership of in this many recent months.

## `maxAppraisedValue` (type: `integer`):

Skip homes the county appraises above this. Leave empty for no limit.

## `minTractScore` (type: `integer`):

Only list homes in census tracts scoring at least this on the 'turning the corner' score.

## `onlyBelowMedianTracts` (type: `boolean`):

Only list homes in tracts whose median sale price is at or below the county median.

## `includeVacantLand` (type: `boolean`):

Also list bank-owned vacant residential lots. Off by default, since many are construction loans, not foreclosures.

## `includeBulkTakeovers` (type: `boolean`):

Also list parcels a lender took 5+ at a time on the same day (usually an unfinished subdivision foreclosed from a builder).

## `censusApiKey` (type: `string`):

Free key from api.census.gov/data/key_signup.html. Adds income, education, young-adult and rent growth to the neighborhood score.

## Actor input object example

```json
{
  "bankOwnedMonthsBack": 12,
  "minTractScore": 0,
  "onlyBelowMedianTracts": false,
  "includeVacantLand": false,
  "includeBulkTakeovers": false
}
```

# Actor output Schema

## `properties` (type: `string`):

No description

## `tractScoresCsv` (type: `string`):

No description

## `tractScoresJson` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("stephen-56/nashville-deal-finder").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("stephen-56/nashville-deal-finder").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 '{}' |
apify call stephen-56/nashville-deal-finder --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,stephen-56/nashville-deal-finder"
        }
    }
}
```

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/svvCRwuPgy5dZ0ThC/builds/iT6xCUphr3Mm3ct5f/openapi.json
