{
  "openapi": "3.0.1",
  "info": {
    "title": "Realtor Buy vs Rent Calculator",
    "description": "This Apify actor performs detailed rent vs. buy analysis for multiple locations, including cost projections, tax savings, break-even points, and opportunity cost. Customize assumptions like appreciation and inflation for accurate financial insights, with async processing for faster, realtime results",
    "version": "0.0",
    "x-build-id": "FdwNHoSv7GJyT7meP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/realtorscraper~realtor-buy-vs-rent-calculator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-realtorscraper-realtor-buy-vs-rent-calculator",
        "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/realtorscraper~realtor-buy-vs-rent-calculator/runs": {
      "post": {
        "operationId": "runs-sync-realtorscraper-realtor-buy-vs-rent-calculator",
        "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/realtorscraper~realtor-buy-vs-rent-calculator/run-sync": {
      "post": {
        "operationId": "run-sync-realtorscraper-realtor-buy-vs-rent-calculator",
        "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": [
          "locations",
          "prices",
          "down_payments",
          "rents"
        ],
        "properties": {
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "List of locations to analyze (e.g., ['Califon, NJ', 'San Diego, CA'])",
            "items": {
              "type": "string"
            }
          },
          "prices": {
            "title": "Property Prices",
            "type": "array",
            "description": "List of property prices corresponding to each location (e.g., [500000, 750000])",
            "items": {
              "type": "string"
            }
          },
          "down_payments": {
            "title": "Down Payments",
            "type": "array",
            "description": "List of down payment amounts for each property (e.g., [100000, 150000])",
            "items": {
              "type": "string"
            }
          },
          "rents": {
            "title": "Monthly Rents",
            "type": "array",
            "description": "List of monthly rent amounts for each location (e.g., [2500, 3500])",
            "items": {
              "type": "string"
            }
          },
          "annual_property_taxes": {
            "title": "Annual Property Tax Rates",
            "type": "array",
            "description": "List of annual property tax rates (e.g., [0.0125, 0.015])",
            "items": {
              "type": "string"
            }
          },
          "broker_fees": {
            "title": "Broker Fees",
            "type": "array",
            "description": "List of broker fees (e.g., [0, 0])",
            "items": {
              "type": "string"
            }
          },
          "buying_closing_costs": {
            "title": "Buying Closing Cost %",
            "type": "array",
            "description": "List of buying closing cost percentages (e.g., [4, 5])",
            "items": {
              "type": "string"
            }
          },
          "selling_closing_costs": {
            "title": "Selling Closing Cost %",
            "type": "array",
            "description": "List of selling closing cost percentages (e.g., [6, 6])",
            "items": {
              "type": "string"
            }
          },
          "rates": {
            "title": "Interest Rates",
            "type": "array",
            "description": "List of mortgage interest rates (e.g., [6.31, 5.5])",
            "items": {
              "type": "string"
            }
          },
          "inflation_rates": {
            "title": "Inflation Rates %",
            "type": "array",
            "description": "List of annual inflation rates (e.g., [2, 2])",
            "items": {
              "type": "string"
            }
          },
          "income_tax_rates": {
            "title": "Income Tax Rates %",
            "type": "array",
            "description": "List of income tax rates (e.g., [28, 35])",
            "items": {
              "type": "string"
            }
          },
          "mortgage_terms": {
            "title": "Mortgage Terms (years)",
            "type": "array",
            "description": "List of mortgage terms in years (e.g., [30, 15])",
            "items": {
              "type": "string"
            }
          },
          "avg_monthly_maintenances": {
            "title": "Average Monthly Maintenance",
            "type": "array",
            "description": "List of average monthly maintenance costs (e.g., [4165, 5000])",
            "items": {
              "type": "string"
            }
          },
          "monthly_hois": {
            "title": "Monthly Home Insurance",
            "type": "array",
            "description": "List of monthly home insurance costs (e.g., [233, 300])",
            "items": {
              "type": "string"
            }
          },
          "additional_monthly_utilities": {
            "title": "Additional Monthly Utilities",
            "type": "array",
            "description": "List of additional monthly utilities (e.g., [100, 150])",
            "items": {
              "type": "string"
            }
          },
          "monthly_renter_insurances": {
            "title": "Monthly Renter Insurance",
            "type": "array",
            "description": "List of monthly renter insurance costs (e.g., [1.31, 2])",
            "items": {
              "type": "string"
            }
          },
          "hoas": {
            "title": "HOA Fees",
            "type": "array",
            "description": "List of monthly HOA fees (e.g., [0, 200])",
            "items": {
              "type": "string"
            }
          },
          "rent_appreciations": {
            "title": "Rent Appreciation %",
            "type": "array",
            "description": "List of annual rent appreciation rates (e.g., [2, 3])",
            "items": {
              "type": "string"
            }
          },
          "home_appreciations": {
            "title": "Home Appreciation %",
            "type": "array",
            "description": "List of annual home appreciation rates (e.g., [2, 3])",
            "items": {
              "type": "string"
            }
          },
          "investment_rors": {
            "title": "Investment Return Rates %",
            "type": "array",
            "description": "List of investment return rates (e.g., [4, 5])",
            "items": {
              "type": "string"
            }
          },
          "capital_gains_exclusions": {
            "title": "Capital Gains Exclusions",
            "type": "array",
            "description": "List of capital gains exclusion amounts (e.g., [500000, 500000])",
            "items": {
              "type": "string"
            }
          },
          "is_veterans": {
            "title": "Is Veteran",
            "type": "array",
            "description": "List of veteran status (true/false) for each property (e.g., [false, true])",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}