{
  "openapi": "3.0.1",
  "info": {
    "title": "Redfin Rental Cash Flow Finder - Cap Rate & Yield by ZIP",
    "description": "Type a ZIP and get every Redfin home for sale analysed as a rental: estimated rent, monthly cash flow after the mortgage, cash-on-cash, cap rate, gross yield and the 1% rule, plus value, ARV and the 70% rule offer, with the comps. Rent tested on 1,362 rentals: 13.3% median error.",
    "version": "0.1",
    "x-build-id": "IeezAkabJPqaUig0H"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/swerve~rental-cash-flow-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-swerve-rental-cash-flow-finder",
        "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/swerve~rental-cash-flow-finder/runs": {
      "post": {
        "operationId": "runs-sync-swerve-rental-cash-flow-finder",
        "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/swerve~rental-cash-flow-finder/run-sync": {
      "post": {
        "operationId": "run-sync-swerve-rental-cash-flow-finder",
        "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",
        "properties": {
          "zipCodes": {
            "title": "ZIP codes",
            "type": "array",
            "description": "5-digit US ZIP codes, e.g. 44111, 46201. Every home for sale in each ZIP is analysed as a rental.",
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "Redfin area URLs",
            "type": "array",
            "description": "Or paste a Redfin city, county, neighborhood or ZIP URL (go to redfin.com, search your area, copy the address-bar URL), e.g. https://www.redfin.com/city/4145/OH/Cleveland. Filters you set on Redfin stay in force. A whole city is thousands of listings: use Max results or the criteria below.",
            "items": {
              "type": "string"
            }
          },
          "addresses": {
            "title": "Street addresses (listings around a point)",
            "type": "array",
            "description": "A full US street address with city and state, e.g. 2704 Oak Crest Ave, Austin, TX 78704. Every home for sale within the radius below is analysed, across ZIP borders.",
            "items": {
              "type": "string"
            }
          },
          "radiusMiles": {
            "title": "Radius around each address (miles)",
            "minimum": 0.1,
            "maximum": 10,
            "type": "number",
            "description": "Only used with street addresses. Default 1.",
            "default": 1
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Leave empty for houses, condos, townhouses and multi-family homes (land is never analysed).",
            "items": {
              "type": "string",
              "enum": [
                "house",
                "condo",
                "townhouse",
                "multifamily"
              ],
              "enumTitles": [
                "House",
                "Condo / Co-op",
                "Townhouse",
                "Multi-family"
              ]
            }
          },
          "minPrice": {
            "title": "Min list price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Leave blank for no minimum."
          },
          "maxPrice": {
            "title": "Max list price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Leave blank for no maximum, e.g. 500000."
          },
          "minBeds": {
            "title": "Min bedrooms",
            "minimum": 0,
            "type": "integer",
            "description": "Leave blank for any."
          },
          "listedWithin": {
            "title": "Listed within",
            "enum": [
              "any",
              "3days",
              "1wk",
              "2wk",
              "1mo"
            ],
            "type": "string",
            "description": "Only new listings. Run it daily with 'Last 3 days' to see fresh deals before others do.",
            "default": "any"
          },
          "onMarketAtLeast": {
            "title": "On the market at least",
            "enum": [
              "any",
              "1mo",
              "2mo",
              "3mo",
              "6mo"
            ],
            "type": "string",
            "description": "Only listings that have been sitting: sellers who may take a lower offer.",
            "default": "any"
          },
          "homes": {
            "title": "Homes",
            "enum": [
              "rentReady",
              "all",
              "needsWork"
            ],
            "type": "string",
            "description": "A home that needs work earns no rent until it is fixed, so by default it is left out. It counts as needing work when its listing says so (fixer, TLC, investor special, tear-down) or when it is priced at under half of what its comps sold for. Pick 'Only homes that need work' for flips and BRRRR, and give a repair budget below.",
            "default": "rentReady"
          },
          "minMonthlyCashFlow": {
            "title": "Min monthly cash flow ($)",
            "type": "integer",
            "description": "Rent minus operating expenses, HOA and the mortgage, with the financing below. 0 keeps every listing that pays for itself; may be negative."
          },
          "minCashOnCashPct": {
            "title": "Min cash-on-cash return (%)",
            "type": "number",
            "description": "Yearly cash flow divided by the cash you put in (down payment plus closing costs), e.g. 8."
          },
          "minGrossYieldPct": {
            "title": "Min gross rental yield (%)",
            "minimum": 0,
            "type": "number",
            "description": "Yearly rent divided by the list price, e.g. 10."
          },
          "minRentToPricePct": {
            "title": "Min rent-to-price (%), the 1% rule",
            "minimum": 0,
            "type": "number",
            "description": "Monthly rent as a share of the list price. Enter 1 for the 1% rule, 0.8 for a looser screen."
          },
          "minRentConfidence": {
            "title": "Min confidence of the rent",
            "enum": [
              "any",
              "medium",
              "high"
            ],
            "type": "string",
            "description": "High = 5+ rentals that agree closely (10% typical error against asking rents in testing); medium = 13%; low = 22%.",
            "default": "any"
          },
          "minDiscountPct": {
            "title": "Listed at least this % under what similar homes sold for",
            "type": "number",
            "description": "Read this one with care: the homes furthest under their estimate are often the ones the estimate gets wrong. Use it together with the comps, not on its own."
          },
          "minConfidence": {
            "title": "Min confidence of the value",
            "enum": [
              "any",
              "medium",
              "high"
            ],
            "type": "string",
            "description": "High = the comps agree closely (8% typical error against real sale prices in testing); medium = 13%; low = 20%.",
            "default": "any"
          },
          "downPaymentPct": {
            "title": "Down payment (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Default 25.",
            "default": 25
          },
          "interestRatePct": {
            "title": "Mortgage rate (% per year)",
            "minimum": 0,
            "maximum": 30,
            "type": "number",
            "description": "Default 7.",
            "default": 7
          },
          "loanTermYears": {
            "title": "Loan term (years)",
            "minimum": 1,
            "maximum": 40,
            "type": "integer",
            "description": "Default 30.",
            "default": 30
          },
          "operatingExpensePct": {
            "title": "Operating expenses (% of rent)",
            "minimum": 0,
            "maximum": 95,
            "type": "number",
            "description": "Taxes, insurance, repairs, vacancy and management as a share of the rent. Default 40. The HOA fee is taken from each listing and counted on top.",
            "default": 40
          },
          "closingCostPct": {
            "title": "Closing costs (% of price)",
            "minimum": 0,
            "maximum": 20,
            "type": "number",
            "description": "Added to the cash needed. Default 3.",
            "default": 3
          },
          "repairBudget": {
            "title": "Repair budget ($)",
            "minimum": 0,
            "type": "integer",
            "description": "For the 70% rule: the maximum offer is 70% of the after-repair value minus this amount. For a listing that says it needs work it is also added to the cash needed. Leave blank for no repairs."
          },
          "sortBy": {
            "title": "Rank by",
            "enum": [
              "cashFlow",
              "cashOnCash",
              "grossYield",
              "underValue"
            ],
            "type": "string",
            "description": "Cash flow is ranked at the LOW end of the rent range, so a home with an uncertain rent does not top the list.",
            "default": "cashFlow"
          },
          "maxItems": {
            "title": "Max results (best first)",
            "minimum": 1,
            "type": "integer",
            "description": "How many listings to return, best first. Leave blank to get every listing that passes your criteria."
          },
          "includeComps": {
            "title": "Include the comps",
            "type": "boolean",
            "description": "Each row carries the 6 sales and 4 rentals its numbers rest on. Turn off for a flat table.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Redfin answers US addresses only; US residential is the default. Leave as-is.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountryCode": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}