# Real Estate Deal & Investment Analyzer (`samqp/real-estate-deal-investment-analyzer`) Actor

Analyze rental properties, calculate returns and risks, compare scenarios, and receive investment-ready JSON reports.

- **URL**: https://apify.com/samqp/real-estate-deal-investment-analyzer.md
- **Developed by:** [Samuel Quiñonez Pérez](https://apify.com/samqp) (community)
- **Categories:** Real estate, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $50.00 / 1,000 property analyzeds

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

## Real Estate Deal & Investment Analyzer

Turn public property listings and your financing assumptions into investment-ready JSON. Compare conservative, base, and optimistic scenarios before spending time on a deal.

### What it calculates

- Mortgage principal and interest
- Initial cash required, including down payment, closing costs, and renovation
- Effective income after vacancy
- Operating expenses and net operating income (NOI)
- Monthly and annual cash flow
- Cap rate and cash-on-cash return
- Debt-service coverage ratio (DSCR)
- Gross rent multiplier and expense ratio
- Break-even occupancy and the 1% rule
- Maximum offer at your target cap rate
- Deal score, recommendation, strengths, and risk flags

Every property is evaluated under three scenarios. The conservative scenario reduces rent and increases vacancy and maintenance; the optimistic scenario applies the opposite adjustments.

### Input example

```json
{
  "properties": [
    {
      "url": "https://example.com/public-property-listing",
      "purchasePrice": 250000,
      "monthlyRent": 2800,
      "downPaymentPercent": 20,
      "annualInterestRate": 7,
      "loanYears": 30,
      "closingCostPercent": 3,
      "renovationBudget": 10000,
      "annualPropertyTax": 3000,
      "annualInsurance": 1500,
      "vacancyPercent": 5,
      "maintenancePercentOfRent": 5,
      "managementPercentOfRent": 8
    }
  ],
  "targetCapRatePercent": 7,
  "targetCashOnCashPercent": 8,
  "targetMonthlyCashFlow": 200
}
````

Manual values always take priority over values extracted from a public page. Because many listing websites restrict automated access or omit rental projections, provide `monthlyRent` for a complete analysis. You may run the Actor with only a URL to inspect the public information it can find; the result will clearly list any financial fields still required.

### Output

The default dataset contains one analysis per property. `OUTPUT` contains a grouped portfolio document with the average score and best deal.

```json
{
  "propertyName": "Example rental property",
  "status": "ANALYZED",
  "dealScore": 85,
  "recommendation": "STRONG_BUY",
  "maximumOfferAtTargetCapRate": 271400,
  "riskFlags": [],
  "scenarios": {
    "conservative": {"monthlyCashFlow": 120},
    "base": {"monthlyCashFlow": 410, "capRatePercent": 8.1},
    "optimistic": {"monthlyCashFlow": 690}
  }
}
```

### Recommendations

- `STRONG_BUY`: score 80–100
- `CONSIDER`: score 60–79
- `NEGOTIATE`: score 40–59
- `PASS`: score below 40

The score is a screening tool, not an appraisal. Review the detailed metrics and assumptions instead of relying on the score alone.

### Pricing

- USD 0.01 per run
- USD 0.05 per property analyzed

Platform usage is included. A single-property analysis costs about USD 0.06 and a 10-property comparison about USD 0.51. The Actor respects the maximum cost selected for the run.

The Actor does not require an AI API key, real-estate account credentials, cookies, or passwords.

### Responsible use and limitations

Only public listing information is requested. Websites can change their structure, block automated traffic, restrict regions, or omit fields. Verify the purchase price, rent, taxes, insurance, HOA, repairs, financing, zoning, and legal status with qualified local professionals.

This tool provides directional calculations and is not financial, appraisal, tax, lending, insurance, or legal advice. It does not predict appreciation or guarantee investment performance.

### Support

Open an issue on the Actor page and include the run ID, public listing URL, expected value, and actual value. Never include passwords, private documents, or personal financial information.

# Actor input Schema

## `properties` (type: `array`):

Property listing URLs and financial assumptions. monthlyRent is required for a complete investment analysis.

## `targetCapRatePercent` (type: `number`):

Minimum capitalization rate used for scoring and the maximum-offer calculation.

## `targetCashOnCashPercent` (type: `number`):

Minimum annual return on initial cash used for scoring.

## `targetMonthlyCashFlow` (type: `number`):

Desired monthly cash flow after operating expenses and debt service.

## `fetchPageData` (type: `boolean`):

Request public listing pages and extract available metadata before analysis.

## `requestTimeoutSeconds` (type: `integer`):

Maximum seconds allowed for each public page request.

## Actor input object example

```json
{
  "properties": [
    {
      "name": "Example rental property",
      "purchasePrice": 250000,
      "monthlyRent": 2800,
      "downPaymentPercent": 20,
      "annualInterestRate": 7,
      "loanYears": 30,
      "closingCostPercent": 3,
      "renovationBudget": 10000,
      "annualPropertyTax": 3000,
      "annualInsurance": 1500,
      "monthlyHoa": 0,
      "vacancyPercent": 5,
      "maintenancePercentOfRent": 5,
      "managementPercentOfRent": 8
    }
  ],
  "targetCapRatePercent": 7,
  "targetCashOnCashPercent": 8,
  "targetMonthlyCashFlow": 200,
  "fetchPageData": true,
  "requestTimeoutSeconds": 30
}
```

# Actor output Schema

## `analyses` (type: `string`):

No description

## `portfolioJson` (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("samqp/real-estate-deal-investment-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 = {}

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=samqp/real-estate-deal-investment-analyzer",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Real Estate Deal & Investment Analyzer",
        "description": "Analyze rental properties, calculate returns and risks, compare scenarios, and receive investment-ready JSON reports.",
        "version": "0.1",
        "x-build-id": "w57eaUCso8o7GgtfX"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/samqp~real-estate-deal-investment-analyzer/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-samqp-real-estate-deal-investment-analyzer",
                "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/samqp~real-estate-deal-investment-analyzer/runs": {
            "post": {
                "operationId": "runs-sync-samqp-real-estate-deal-investment-analyzer",
                "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/samqp~real-estate-deal-investment-analyzer/run-sync": {
            "post": {
                "operationId": "run-sync-samqp-real-estate-deal-investment-analyzer",
                "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",
                "required": [
                    "properties"
                ],
                "properties": {
                    "properties": {
                        "title": "Properties",
                        "type": "array",
                        "description": "Property listing URLs and financial assumptions. monthlyRent is required for a complete investment analysis.",
                        "items": {
                            "type": "object",
                            "properties": {
                                "url": {
                                    "title": "Public listing URL",
                                    "description": "Optional public property listing page.",
                                    "type": "string",
                                    "editor": "textfield"
                                },
                                "name": {
                                    "title": "Property name",
                                    "description": "A label that identifies this deal.",
                                    "type": "string"
                                },
                                "address": {
                                    "title": "Address",
                                    "description": "Property address or market label.",
                                    "type": "string"
                                },
                                "currency": {
                                    "title": "Currency",
                                    "description": "ISO currency code used for the analysis.",
                                    "type": "string",
                                    "default": "USD"
                                },
                                "purchasePrice": {
                                    "title": "Purchase price",
                                    "description": "Expected acquisition price before closing costs.",
                                    "type": "number",
                                    "minimum": 1
                                },
                                "monthlyRent": {
                                    "title": "Expected monthly rent",
                                    "description": "Gross scheduled monthly rental income.",
                                    "type": "number",
                                    "minimum": 0
                                },
                                "otherMonthlyIncome": {
                                    "title": "Other monthly income",
                                    "description": "Parking, laundry, storage, or other recurring income.",
                                    "type": "number",
                                    "default": 0,
                                    "minimum": 0
                                },
                                "downPaymentPercent": {
                                    "title": "Down payment (%)",
                                    "description": "Percentage of the purchase price paid in cash.",
                                    "type": "number",
                                    "default": 20,
                                    "minimum": 0,
                                    "maximum": 100
                                },
                                "annualInterestRate": {
                                    "title": "Annual interest rate (%)",
                                    "description": "Nominal annual mortgage interest rate.",
                                    "type": "number",
                                    "default": 7,
                                    "minimum": 0,
                                    "maximum": 40
                                },
                                "loanYears": {
                                    "title": "Loan term (years)",
                                    "description": "Mortgage amortization period.",
                                    "type": "integer",
                                    "default": 30,
                                    "minimum": 1,
                                    "maximum": 50
                                },
                                "closingCostPercent": {
                                    "title": "Closing costs (%)",
                                    "description": "Closing costs as a percentage of purchase price.",
                                    "type": "number",
                                    "default": 3,
                                    "minimum": 0,
                                    "maximum": 30
                                },
                                "renovationBudget": {
                                    "title": "Renovation budget",
                                    "description": "Upfront repairs and renovation cash budget.",
                                    "type": "number",
                                    "default": 0,
                                    "minimum": 0
                                },
                                "annualPropertyTax": {
                                    "title": "Annual property tax",
                                    "description": "Total annual real-estate taxes.",
                                    "type": "number",
                                    "default": 0,
                                    "minimum": 0
                                },
                                "annualInsurance": {
                                    "title": "Annual insurance",
                                    "description": "Annual property and landlord insurance.",
                                    "type": "number",
                                    "default": 0,
                                    "minimum": 0
                                },
                                "monthlyHoa": {
                                    "title": "Monthly HOA",
                                    "description": "Monthly association or condominium fee.",
                                    "type": "number",
                                    "default": 0,
                                    "minimum": 0
                                },
                                "monthlyUtilities": {
                                    "title": "Owner-paid monthly utilities",
                                    "description": "Utilities paid by the property owner.",
                                    "type": "number",
                                    "default": 0,
                                    "minimum": 0
                                },
                                "otherMonthlyExpenses": {
                                    "title": "Other monthly expenses",
                                    "description": "Other recurring operating costs.",
                                    "type": "number",
                                    "default": 0,
                                    "minimum": 0
                                },
                                "vacancyPercent": {
                                    "title": "Vacancy (%)",
                                    "description": "Expected annual vacancy and collection loss.",
                                    "type": "number",
                                    "default": 5,
                                    "minimum": 0,
                                    "maximum": 100
                                },
                                "maintenancePercentOfRent": {
                                    "title": "Maintenance reserve (% of rent)",
                                    "description": "Reserve for maintenance as a percentage of scheduled rent.",
                                    "type": "number",
                                    "default": 5,
                                    "minimum": 0,
                                    "maximum": 100
                                },
                                "managementPercentOfRent": {
                                    "title": "Property management (% of collected rent)",
                                    "description": "Management fee calculated from collected rent.",
                                    "type": "number",
                                    "default": 8,
                                    "minimum": 0,
                                    "maximum": 100
                                }
                            }
                        },
                        "default": [
                            {
                                "name": "Example rental property",
                                "purchasePrice": 250000,
                                "monthlyRent": 2800,
                                "downPaymentPercent": 20,
                                "annualInterestRate": 7,
                                "loanYears": 30,
                                "closingCostPercent": 3,
                                "renovationBudget": 10000,
                                "annualPropertyTax": 3000,
                                "annualInsurance": 1500,
                                "monthlyHoa": 0,
                                "vacancyPercent": 5,
                                "maintenancePercentOfRent": 5,
                                "managementPercentOfRent": 8
                            }
                        ]
                    },
                    "targetCapRatePercent": {
                        "title": "Target cap rate (%)",
                        "minimum": 0.1,
                        "maximum": 100,
                        "type": "number",
                        "description": "Minimum capitalization rate used for scoring and the maximum-offer calculation.",
                        "default": 7
                    },
                    "targetCashOnCashPercent": {
                        "title": "Target cash-on-cash return (%)",
                        "minimum": 0.1,
                        "maximum": 100,
                        "type": "number",
                        "description": "Minimum annual return on initial cash used for scoring.",
                        "default": 8
                    },
                    "targetMonthlyCashFlow": {
                        "title": "Target monthly cash flow",
                        "minimum": 0,
                        "type": "number",
                        "description": "Desired monthly cash flow after operating expenses and debt service.",
                        "default": 200
                    },
                    "fetchPageData": {
                        "title": "Extract public listing details",
                        "type": "boolean",
                        "description": "Request public listing pages and extract available metadata before analysis.",
                        "default": true
                    },
                    "requestTimeoutSeconds": {
                        "title": "Page request timeout",
                        "minimum": 5,
                        "maximum": 120,
                        "type": "integer",
                        "description": "Maximum seconds allowed for each public page request.",
                        "default": 30
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
