# House Flipping Deal Analyzer - ARV, Comps, MAO & Rehab Cost (`vedik-sattva/flip-deal-analyzer`) Actor

ARV calculator for house flipping, fix and flip, BRRRR and wholesaling. Renovated sold and for-sale comps from Redfin and Zillow, after repair value, MAO (max offer), rehab, holding and hard money costs, profit and a GO/NO-GO verdict for any US house. For flippers and wholesalers.

- **URL**: https://apify.com/vedik-sattva/flip-deal-analyzer.md
- **Developed by:** [Vedik Sattva LLC](https://apify.com/vedik-sattva) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 75.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $150.00 / 1,000 properties analyzed

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/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

## House Flipping Deal Analyzer: ARV Calculator, Comps, MAO & Rehab Cost

A fix and flip ARV calculator for house flippers, wholesalers and BRRRR investors. Give it a US single-family address, or a list of up to 500, and it pulls renovated sold and for-sale comps from Redfin and Zillow, works out the after repair value (ARV), your MAO (maximum allowable offer), rehab, holding and hard money costs, and profit. For each house you get back:

- **two comp-based ARVs**: one from recent sold homes, one from homes for sale now
- **the ARV's measured error range**; the calculated (mid) ARV is used by default, and you can switch to the low or high end
- **the maximum offer** that still hits your target profit
- **every deal cost**: buying, rehab, holding and selling
- **a GO / NO-GO / CHECK verdict** with an A / B / C confidence grade
- **a link to every comp**, so you can check photos in seconds

It is built for house flippers, fix and flip investors, BRRRR investors, wholesalers, hard money lenders and agents with investor clients. Use it instead of the 70% rule: the max offer comes from real comps and your actual costs. It also suits automation builders: n8n, Make, and AI agents on Apify's MCP server get one structured row per deal, with no scraping work.

### Works anywhere in the US

Any US single-family address is analyzed. The ARV's error range comes from a national backtest: 1,389 renovated sales in 20 metros, each valued only from sales that closed before it.

Where a metro was measured, its own median error sets the range. Everywhere else, the national median error of **10.5%** is used. Either way, the run also checks recent sales around the house and uses the larger error when the neighborhood is less predictable.

| Metro | Counties measured | Median error | Sales tested |
|---|---|---|---|
| Las Vegas, NV | Clark | 7.2% | 104 |
| Phoenix, AZ | Maricopa | 7.5% | 83 |
| Orlando, FL | Orange | 8.3% | 62 |
| Albuquerque, NM | Bernalillo | 9.1% | 82 |
| Columbus, OH | Franklin | 9.5% | 82 |
| Charlotte, NC | Mecklenburg | 9.6% | 42 |
| Dallas, TX | Dallas, Collin, Tarrant | 10.0% | 171 |
| Boise, ID | Ada | 10.4% | 80 |
| Tampa, FL | Hillsborough | 10.6% | 60 |
| Kansas City, MO/KS | Jackson | 10.8% | 83 |
| Houston, TX | Harris | 11.0% | 40 |
| Birmingham, AL | Jefferson | 11.3% | 54 |
| Jacksonville, FL | Duval | 12.6% | 70 |
| Atlanta, GA | Fulton | 14.1% | 129 |
| Cleveland, OH | Cuyahoga | 14.2% | 68 |
| Indianapolis, IN | Marion | 14.4% | 57 |
| San Antonio, TX | Bexar | 15.0% | 69 |
| Detroit, MI | Wayne | 25.1% | 35 |
| Memphis, TN | Shelby | 25.7% | 18 |

A higher error widens the range (and lowers the low end, if you use it). Above 12%, confidence drops to C and a GO becomes CHECK.

### How it works, in plain words

1. **Find the house.** Its location, sq ft, year built and tax bill are looked up.
2. **Pull comps.** It gets every single-family home sold in the last 12 months, and every one for sale now, within half a mile.
3. **Read condition.** Each listing's tags and full description are read: "fully remodeled", "new quartz kitchen" and the like count as renovated; "as-is", "needs TLC", "galley kitchen" and "original cabinets" count against. Only renovated comps are used when at least 3 exist, because an ARV is a value after repair.
4. **Pick 3 comps.** Homes within ±40% of the subject's size, most recent month first, then closest in size.
5. **Size-adjust.** Each comp's price per sq ft is adjusted toward the subject's size: smaller homes sell for more per sq ft. The result is capped within 15% of the comps' range.
6. **Correct for list prices.** In non-disclosure states (TX, NM and others), public "sold" prices are usually last list prices, so the ZIP's sale-to-list ratio is applied.
7. **Measure the error.** Recent renovated sales in the same search area are valued from earlier sales only. The larger of that local error and the backtest error (the metro's, or the national one) sets the range. The deal math uses the calculated (mid) ARV by default; set `arvEnd` to `low` to be conservative.
8. **Widen only when needed.** With fewer than 3 renovated sales within half a mile, the search widens to 1 mile, then 2 miles. This adds the wider-search charge.
9. **Do the deal math.** It solves for the price that leaves your target profit after buying, rehab, holding (interest, utilities, insurance, tax) and selling costs. Rehab is shown as a total and as $ per sq ft.

**Verdict:**

- **GO:** the max offer is at or above the asking price. The asking price is yours if you give one, otherwise the home's current listing price. With neither, GO only means the max offer is positive.
- **NO-GO:** the max offer is more than 5% below the asking price.
- **CHECK:** anything in between, or any GO with confidence C.

**Confidence:**

- **A:** 3 renovated comps within 0.5 mi, and error used 8% or less.
- **B:** 3 renovated comps after widening, and error used 12% or less.
- **C:** anything else.

### Input

Only `addresses` is required. Every cost defaults to a real Dallas-area flip:

| Setting | Default |
|---|---|
| Rehab | $37.40 per sq ft |
| Buying costs | 3.5% of the price |
| Selling costs | 8% of the sale |
| Holding | 6 months |
| Loan | 91.8% of price plus rehab, at 11.5% |
| Utilities and insurance | $657 a month |
| Property tax | the home's public-record bill, else 1.98% |
| Target profit | the larger of 10% of ARV and $20,000 |

```json
{
  "addresses": ["905 Edgefield Dr, Plano, TX 75075"],
  "askingPrices": { "905 Edgefield Dr, Plano, TX 75075": 450000 },
  "rehabPerSqft": 37.4,
  "arvEnd": "mid"
}
```

Other options:

- `arvBasis`: sold, for-sale or both
- `searchRadiusMiles` and `autoWiden`
- `maxDaysOnMarket`
- `conditionOverrides`: your photo check, e.g. `{"1512 Cliffbrook Dr": false}`
- `saleToListOverride`
- `includeComps`

### Output

One dataset row per address. Each row gives the result of **two methods**:

- **Recent Sold Comps:** renovated homes sold nearby in the last 12 months. This is the backtested method, and the top-level verdict comes from it.
- **Active Sale Comps:** renovated homes for sale nearby now, valued at their asking prices. It hasn't been backtested yet.

Each method includes:

- **`comps`:** every comparable property with its link, distance, status (sold date or days on market), sq ft, beds, baths, year built, list price, sale-to-list adjustment, price per sq ft, size factor, size-adjusted price per sq ft, condition reading and the phrase that decided it.
- **`calculation`:** every step from the comp search to the verdict, in plain words, with the numbers.
- **The result:** ARV (mid, low and high), max offer, profit at the asking or listing price, verdict and confidence, plus the full cost breakdown in `deal`.

Sample row for 905 Edgefield Dr, Plano TX, on Nov 21, 2026, with 1 of the 3 comps shown per method:

```json
{
  "inputAddress": "905 Edgefield Dr, Plano, TX 75075",
  "status": "ok",
  "primaryMethod": "Recent Sold Comps",
  "verdict": "NO-GO",
  "confidence": "B",
  "arvUsed": 410002,
  "maxOffer": 242609,
  "askingPrice": 450000,
  "askingPriceSource": "your input",
  "profitAtAsking": -186650,
  "roiAtAsking": -0.331,
  "errorPct": 0.1,
  "method": "Primary method: Recent Sold Comps (3 renovated comps within 0.5 mi, Redfin via Apify Store Actors), most recent first then closest size, using the mid (calculated) ARV; the range is +/-10.0% from the Dallas market error. Verdict at your asking price of $450,000. Each method lists its comps and every calculation step.",
  "subject": {
    "address": "905 Edgefield Dr",
    "city": "Plano",
    "zip": "75075",
    "state": "TX",
    "county": "Collin County",
    "countyFips": "48085",
    "market": "Dallas",
    "lat": 33.012874,
    "lng": -96.7219349,
    "sqft": 1675,
    "yearBuilt": 1963,
    "annualTax": null,
    "listPrice": 450000,
    "zestimateOrRedfinEstimate": null
  },
  "recentSoldComps": {
    "method": "Recent Sold Comps",
    "status": "ok",
    "verdict": "NO-GO",
    "confidence": "B",
    "arvCalculated": 410002,
    "arvLow": 369002,
    "arvHigh": 451002,
    "arvUsed": 410002,
    "arvEnd": "mid",
    "perSqft": 244.78,
    "errorPct": 0.1,
    "errorSource": "market",
    "searchedMiles": 0.5,
    "compSource": "calculated",
    "backtested": true,
    "maxOffer": 242609,
    "askingPrice": 450000,
    "profitAtAsking": -186650,
    "roiAtAsking": -0.331,
    "comps": [
      {
        "address": "1203 Quill Dr",
        "url": "https://www.redfin.com/TX/Plano/1203-Quill-Dr-75075/home/0",
        "distanceMi": 0.36,
        "status": "Sold 2026-10-23",
        "closedDate": "2026-10-23",
        "daysOnMarket": null,
        "sqft": 1776,
        "beds": null,
        "baths": null,
        "yearBuilt": 1966,
        "listPrice": 439000,
        "saleToList": 0.981,
        "adjustedPrice": 430659,
        "pricePerSqft": 242.49,
        "sizeFactor": 1.015,
        "sizeAdjustedPerSqft": 246.14,
        "renovated": true,
        "conditionEvidence": "UPDATED TWO STORY RESIDENCE",
        "conditionSource": "listing text"
      }
    ],
    "calculation": [
      "1. Search: 43 homes sold in the last 12 months within 0.5 mi of 905 Edgefield Dr.",
      "2. Pick: renovated homes only (read from listing tags and descriptions), size within ±40% of the subject's 1,675 sq ft, most recent month first, then closest in size. Top 3 used.",
      "3.1 1203 Quill Dr (0.36 mi, 1,776 sq ft): sold at $439,000 x sale-to-list 0.981 = $430,659; / 1,776 sq ft = $242.49/sq ft; size factor 0.75 + 0.25 x 1,776/1,675 = 1.015; adjusted $246.14/sq ft.",
      "3.2 1905 Midcrest Dr (0.45 mi, 2,244 sq ft): sold at $535,000 x sale-to-list 0.981 = $524,835; / 2,244 sq ft = $233.88/sq ft; size factor 0.75 + 0.25 x 2,244/1,675 = 1.085; adjusted $253.75/sq ft.",
      "3.3 1908 Sandpiper Ln (0.46 mi, 2,275 sq ft): sold at $499,000 x sale-to-list 0.981 = $489,519; / 2,275 sq ft = $215.17/sq ft; size factor 0.75 + 0.25 x 2,275/1,675 = 1.090; adjusted $234.44/sq ft.",
      "4. Rate: average of the adjusted rates = $244.78/sq ft.",
      "5. ARV: $244.78 x 1,675 sq ft = $410,002.",
      "6. Range: +/-10.0% (Dallas market backtest error) = $369,002 to $451,002. Using the mid value: $410,002.",
      "7. Rehab: 1,675 sq ft x $37.40/sq ft = $62,645 ($37.40/sq ft).",
      "8. Target profit: larger of 10% of ARV and $20,000 = $41,000.",
      "9. Max offer (price that leaves exactly the target profit): $242,609. At that price: buying costs 3.5% = $8,491; holding 6 months = $22,457 (interest $16,113 at 11.5%/yr on 91.8% of price + rehab, utilities and insurance $3,942, property tax $2,402 from default 1.98%); selling costs 8% of ARV = $32,800; total cost $369,002; break-even sale price $365,437.",
      "10. Verdict at your asking price of $450,000: profit -$186,650 (ROI -33.1%); max offer is $207,391 below it -> NO-GO (GO at or above the price, NO-GO more than 5% below, CHECK in between or when confidence is C). Confidence B."
    ],
    "deal": {
      "arvUsed": 410002,
      "maxOffer": 242609,
      "targetProfit": 41000,
      "closingCosts": 8491,
      "rehab": 62645,
      "rehabPerSqft": 37.4,
      "rehabBasis": "per sq ft rate",
      "sellingCosts": 32800,
      "holdingCosts": 22457,
      "holdingBreakdown": {
        "interest": 16113,
        "utilitiesInsurance": 3942,
        "propertyTax": 2402,
        "taxSource": "default 1.98%"
      },
      "totalCostAtMaxOffer": 369002,
      "breakEvenSalePrice": 365437,
      "askingPrice": 450000,
      "profitAtAsking": -186650,
      "roiAtAsking": -0.331
    },
    "notes": []
  },
  "activeSaleComps": {
    "method": "Active Sale Comps",
    "status": "ok",
    "verdict": "NO-GO",
    "confidence": "B",
    "arvCalculated": 427662,
    "arvLow": 384896,
    "arvHigh": 470428,
    "arvUsed": 427662,
    "arvEnd": "mid",
    "perSqft": 255.32,
    "errorPct": 0.1,
    "errorSource": "market",
    "searchedMiles": 0.5,
    "compSource": "calculated",
    "backtested": false,
    "maxOffer": 255801,
    "askingPrice": 450000,
    "profitAtAsking": -170403,
    "roiAtAsking": -0.302,
    "comps": [
      {
        "address": "1616 Westlake Dr",
        "url": "https://www.redfin.com/TX/Plano/1616-Westlake-Dr-75075/home/0",
        "distanceMi": 0.37,
        "status": "For sale, 7 days on market",
        "closedDate": null,
        "daysOnMarket": 7,
        "sqft": 2003,
        "beds": null,
        "baths": null,
        "yearBuilt": 1967,
        "listPrice": 539000,
        "saleToList": 0.981,
        "adjustedPrice": 528759,
        "pricePerSqft": 263.98,
        "sizeFactor": 1.049,
        "sizeAdjustedPerSqft": 276.91,
        "renovated": true,
        "conditionEvidence": "COMPLETELY RENOVATED",
        "conditionSource": "listing text"
      }
    ],
    "calculation": [
      "1. Search: 17 homes for sale now within 0.5 mi of 905 Edgefield Dr.",
      "2. Pick: renovated homes only (read from listing tags and descriptions), size within ±40% of the subject's 1,675 sq ft, fewest days on market first, then closest in size. Top 3 used.",
      "3.1 1616 Westlake Dr (0.37 mi, 2,003 sq ft): listed at $539,000 x sale-to-list 0.981 = $528,759; / 2,003 sq ft = $263.98/sq ft; size factor 0.75 + 0.25 x 2,003/1,675 = 1.049; adjusted $276.91/sq ft.",
      "3.2 1521 Glenwick Dr (0.32 mi, 2,255 sq ft): listed at $550,000 x sale-to-list 0.981 = $539,550; / 2,255 sq ft = $239.27/sq ft; size factor 0.75 + 0.25 x 2,255/1,675 = 1.087; adjusted $259.98/sq ft.",
      "3.3 902 Ridgefield Dr (0.31 mi, 1,844 sq ft): listed at $420,000 x sale-to-list 0.981 = $412,020; / 1,844 sq ft = $223.44/sq ft; size factor 0.75 + 0.25 x 1,844/1,675 = 1.025; adjusted $229.07/sq ft.",
      "4. Rate: average of the adjusted rates = $255.32/sq ft.",
      "5. ARV: $255.32 x 1,675 sq ft = $427,662.",
      "6. Range: +/-10.0% (Dallas market backtest error; for-sale ARV is not backtested, so the sold-based error is used) = $384,896 to $470,428. Using the mid value: $427,662.",
      "7. Rehab: 1,675 sq ft x $37.40/sq ft = $62,645 ($37.40/sq ft).",
      "8. Target profit: larger of 10% of ARV and $20,000 = $42,766.",
      "9. Max offer (price that leaves exactly the target profit): $255,801. At that price: buying costs 3.5% = $8,953; holding 6 months = $23,284 (interest $16,809 at 11.5%/yr on 91.8% of price + rehab, utilities and insurance $3,942, property tax $2,532 from default 1.98%); selling costs 8% of ARV = $34,213; total cost $384,896; break-even sale price $381,177.",
      "10. Verdict at your asking price of $450,000: profit -$170,403 (ROI -30.2%); max offer is $194,199 below it -> NO-GO (GO at or above the price, NO-GO more than 5% below, CHECK in between or when confidence is C). Confidence B."
    ],
    "deal": {
      "arvUsed": 427662,
      "maxOffer": 255801,
      "targetProfit": 42766,
      "closingCosts": 8953,
      "rehab": 62645,
      "rehabPerSqft": 37.4,
      "rehabBasis": "per sq ft rate",
      "sellingCosts": 34213,
      "holdingCosts": 23284,
      "holdingBreakdown": {
        "interest": 16809,
        "utilitiesInsurance": 3942,
        "propertyTax": 2532,
        "taxSource": "default 1.98%"
      },
      "totalCostAtMaxOffer": 384896,
      "breakEvenSalePrice": 381177,
      "askingPrice": 450000,
      "profitAtAsking": -170403,
      "roiAtAsking": -0.302
    },
    "notes": []
  },
  "accuracy": {
    "marketError": 0.1,
    "errorBasis": "Dallas market",
    "localError": 0.026,
    "localSales": 6,
    "saleToList": 0.981,
    "saleToListSource": "Redfin, May 2026 (DFW model)",
    "nonDisclosureState": true
  },
  "notes": [],
  "dataRoute": "storeActors",
  "dataSources": [
    "delicious_zebu/zillow-property-details-scraper run …",
    "tri_angle/redfin-search run …"
  ],
  "dataCostUsd": 0.0346,
  "dataDate": "2026-11-21"
}
```

Every run also writes a `SUMMARY` record to the key-value store. It holds:

- addresses analyzed and counts by status
- GO, CHECK and NO-GO counts
- the median max offer
- the data date
- events charged
- **every analyzed deal ranked** by profit at asking, then by max offer

**Status values:**

- `ok`
- `not_found`
- `unsupported_property_type` (condos, townhomes and multi-family aren't supported in v1)
- `insufficient_comps`
- `error`
- `skipped_charge_limit`
- `skipped_free_plan_limit`

### Pricing

| Event | Price | When |
|---|---|---|
| Property analyzed | $0.15 | Once per address that returns an ARV from real comps |
| Wider search | $0.20 | Once per address whose comp search had to go past the starting radius |
| Not found, unsupported property type or too few comps | free | |

Each address takes about 15 to 20 seconds, and up to 4 run in parallel. When you set a maximum charge for a run, the run stops before any address it couldn't charge for. On a free Apify plan, a run analyzes the first 10 addresses.

### Limits

- **Property type:** US single-family homes only.
- **ARV, not a full appraisal.** It uses 3 comps and reads condition from listing text, not photos. Check the comp links before you offer.
- **For-sale ARV:** asking prices aren't sale prices, and this ARV hasn't been backtested yet. It borrows the sold-based error.
- **Sale-to-list:** the ratio is known for a few ZIPs; elsewhere prices are used as listed (1.0), and the row says so.
- **Data source:** comps come from Redfin listings through Apify Store Actors.

### FAQ

**What is ARV?** After repair value: what the house should sell for once it's renovated. Here it comes from renovated comps nearby.

**What is MAO?** Maximum allowable offer: the most you can pay and still make your target profit after rehab, holding, buying and selling costs.

**Is this better than the 70% rule?** The 70% rule is a shortcut (70% of ARV minus rehab). This calculator uses your real loan, holding and selling costs, so the max offer fits your deal.

**Does it work for BRRRR and wholesaling?** Yes. Wholesalers get an ARV and MAO with comp links for their deal sheets; BRRRR investors get the ARV and rehab budget for the refinance.

**Is it affiliated with Redfin or Zillow?** No. It's an independent tool that reads their public listing data; all trademarks belong to their owners.

# Actor input Schema

## `addresses` (type: `array`):

Full US addresses of single-family homes, one per line (street, city, state and ZIP). One address or up to 500.

## `askingPrices` (type: `object`):

Optional. Address to asking price, e.g. {"905 Edgefield Dr, Plano, TX 75075": 450000}. Without one, a home that is for sale is judged at its listing price.

## `targetProfit` (type: `integer`):

Profit the max offer is solved for. Leave empty for the larger of 10% of ARV and $20,000.

## `rehabPerSqft` (type: `number`):

Used unless a total rehab budget is given.

## `rehabTotal` (type: `integer`):

Overrides the per-sq-ft budget when given.

## `closingPctOfPrice` (type: `number`):

Title, escrow, recording, loan points and fees.

## `sellingPctOfSale` (type: `number`):

Commission plus seller closing costs.

## `holdingMonths` (type: `number`):

Months from purchase to sale closing.

## `loanPctOfCost` (type: `number`):

0 for a cash purchase.

## `interestRatePct` (type: `number`):

Hard-money rate.

## `utilitiesInsurancePerMonth` (type: `number`):

Monthly utilities plus insurance while you hold the house.

## `propertyTaxPctPerYear` (type: `number`):

Leave empty to use the home's public-record tax bill (else 1.98%).

## `arvBasis` (type: `string`):

Which ARVs to compute. The deal math uses the sold-based ARV unless set to For-sale.

## `arvEnd` (type: `string`):

Which ARV feeds the deal math: mid is the calculated ARV; low and high are the ends of the measured error range (low is conservative).

## `searchRadiusMiles` (type: `number`):

Comp search radius before any widening.

## `autoWiden` (type: `boolean`):

Widen to 1 mile, then 2 miles, when fewer than 3 renovated sales are found. Adds the wider-search charge.

## `maxDaysOnMarket` (type: `integer`):

Skip for-sale comps listed longer than this.

## `conditionOverrides` (type: `object`):

Comp address to true (renovated) or false (not renovated), e.g. {"1512 Cliffbrook Dr": false}.

## `saleToListOverride` (type: `number`):

Override the ZIP's sale-to-list ratio, e.g. 0.98.

## `includeComps` (type: `boolean`):

Include comp details and links in each row.

## `dataSource` (type: `string`):

auto: in-house requests first, Store Actors if they fail (in-house is not available yet, so auto uses Store Actors).

## `maxConcurrency` (type: `integer`):

1 to 8.

## `canary` (type: `boolean`):

Fail the run when any address returns fewer than 3 comps (for a daily health check).

## Actor input object example

```json
{
  "addresses": [
    "905 Edgefield Dr, Plano, TX 75075"
  ],
  "askingPrices": {
    "905 Edgefield Dr, Plano, TX 75075": 450000
  },
  "rehabPerSqft": 37.4,
  "closingPctOfPrice": 3.5,
  "sellingPctOfSale": 8,
  "holdingMonths": 6,
  "loanPctOfCost": 91.8,
  "interestRatePct": 11.5,
  "utilitiesInsurancePerMonth": 657,
  "arvBasis": "both",
  "arvEnd": "mid",
  "searchRadiusMiles": 0.5,
  "autoWiden": true,
  "includeComps": true,
  "dataSource": "auto",
  "maxConcurrency": 4,
  "canary": false
}
```

# Actor output Schema

## `deals` (type: `string`):

One row per input address: status, verdict, confidence, and the result of two methods, Recent Sold Comps and Active Sale Comps. Each method has its comps with links and data, ARV, max offer, profit at the asking or listing price, deal cost breakdown, and the calculation steps.

## `summary` (type: `string`):

Counts by status and verdict, median max offer, data date, events charged, and every analyzed deal ranked by profit at asking, then max offer.

# 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 = {
    "addresses": [
        "905 Edgefield Dr, Plano, TX 75075"
    ],
    "askingPrices": {
        "905 Edgefield Dr, Plano, TX 75075": 450000
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("vedik-sattva/flip-deal-analyzer").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 = {
    "addresses": ["905 Edgefield Dr, Plano, TX 75075"],
    "askingPrices": { "905 Edgefield Dr, Plano, TX 75075": 450000 },
}

# Run the Actor and wait for it to finish
run = client.actor("vedik-sattva/flip-deal-analyzer").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 '{
  "addresses": [
    "905 Edgefield Dr, Plano, TX 75075"
  ],
  "askingPrices": {
    "905 Edgefield Dr, Plano, TX 75075": 450000
  }
}' |
apify call vedik-sattva/flip-deal-analyzer --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vedik-sattva/flip-deal-analyzer"
        }
    }
}
```

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/PKG2Sor9nNHYGA48k/builds/lEfxQ6aAv7fEvkJgi/openapi.json
