{
  "openapi": "3.0.1",
  "info": {
    "title": "House Flipping Deal Analyzer - ARV, Comps, MAO & Rehab Cost",
    "description": "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.",
    "version": "0.1",
    "x-build-id": "lEfxQ6aAv7fEvkJgi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vedik-sattva~flip-deal-analyzer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vedik-sattva-flip-deal-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/vedik-sattva~flip-deal-analyzer/runs": {
      "post": {
        "operationId": "runs-sync-vedik-sattva-flip-deal-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/vedik-sattva~flip-deal-analyzer/run-sync": {
      "post": {
        "operationId": "run-sync-vedik-sattva-flip-deal-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": [
          "addresses"
        ],
        "properties": {
          "addresses": {
            "title": "Addresses",
            "type": "array",
            "description": "Full US addresses of single-family homes, one per line (street, city, state and ZIP). One address or up to 500.",
            "items": {
              "type": "string"
            }
          },
          "askingPrices": {
            "title": "Asking prices",
            "type": "object",
            "description": "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": {
            "title": "Target profit ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Profit the max offer is solved for. Leave empty for the larger of 10% of ARV and $20,000."
          },
          "rehabPerSqft": {
            "title": "Rehab budget per sq ft ($)",
            "minimum": 0,
            "type": "number",
            "description": "Used unless a total rehab budget is given.",
            "default": 37.4
          },
          "rehabTotal": {
            "title": "Total rehab budget ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Overrides the per-sq-ft budget when given."
          },
          "closingPctOfPrice": {
            "title": "Buying costs (% of price)",
            "minimum": 0,
            "type": "number",
            "description": "Title, escrow, recording, loan points and fees.",
            "default": 3.5
          },
          "sellingPctOfSale": {
            "title": "Selling costs (% of sale)",
            "minimum": 0,
            "type": "number",
            "description": "Commission plus seller closing costs.",
            "default": 8
          },
          "holdingMonths": {
            "title": "Holding months",
            "minimum": 0,
            "type": "number",
            "description": "Months from purchase to sale closing.",
            "default": 6
          },
          "loanPctOfCost": {
            "title": "Loan (% of price + rehab)",
            "minimum": 0,
            "type": "number",
            "description": "0 for a cash purchase.",
            "default": 91.8
          },
          "interestRatePct": {
            "title": "Interest rate (%/year)",
            "minimum": 0,
            "type": "number",
            "description": "Hard-money rate.",
            "default": 11.5
          },
          "utilitiesInsurancePerMonth": {
            "title": "Utilities + insurance per month ($)",
            "minimum": 0,
            "type": "number",
            "description": "Monthly utilities plus insurance while you hold the house.",
            "default": 657
          },
          "propertyTaxPctPerYear": {
            "title": "Property tax (%/year of price)",
            "minimum": 0,
            "type": "number",
            "description": "Leave empty to use the home's public-record tax bill (else 1.98%)."
          },
          "arvBasis": {
            "title": "ARV basis",
            "enum": [
              "both",
              "sold",
              "forSale"
            ],
            "type": "string",
            "description": "Which ARVs to compute. The deal math uses the sold-based ARV unless set to For-sale.",
            "default": "both"
          },
          "arvEnd": {
            "title": "ARV end used",
            "enum": [
              "mid",
              "low",
              "high"
            ],
            "type": "string",
            "description": "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).",
            "default": "mid"
          },
          "searchRadiusMiles": {
            "title": "First search radius (miles)",
            "minimum": 0.25,
            "maximum": 2,
            "type": "number",
            "description": "Comp search radius before any widening.",
            "default": 0.5
          },
          "autoWiden": {
            "title": "Widen when comps are thin",
            "type": "boolean",
            "description": "Widen to 1 mile, then 2 miles, when fewer than 3 renovated sales are found. Adds the wider-search charge.",
            "default": true
          },
          "maxDaysOnMarket": {
            "title": "Max days on market (for-sale comps)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip for-sale comps listed longer than this."
          },
          "conditionOverrides": {
            "title": "Condition overrides (your photo check)",
            "type": "object",
            "description": "Comp address to true (renovated) or false (not renovated), e.g. {\"1512 Cliffbrook Dr\": false}."
          },
          "saleToListOverride": {
            "title": "Sale-to-list ratio",
            "minimum": 0.5,
            "maximum": 1.5,
            "type": "number",
            "description": "Override the ZIP's sale-to-list ratio, e.g. 0.98."
          },
          "includeComps": {
            "title": "Include comps",
            "type": "boolean",
            "description": "Include comp details and links in each row.",
            "default": true
          },
          "dataSource": {
            "title": "Data source",
            "enum": [
              "auto",
              "storeActors",
              "inhouse"
            ],
            "type": "string",
            "description": "auto: in-house requests first, Store Actors if they fail (in-house is not available yet, so auto uses Store Actors).",
            "default": "auto"
          },
          "maxConcurrency": {
            "title": "Addresses in parallel",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "1 to 8.",
            "default": 4
          },
          "canary": {
            "title": "Canary mode",
            "type": "boolean",
            "description": "Fail the run when any address returns fewer than 3 comps (for a daily health check).",
            "default": false
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}