Overview
- Category
- Finance
- API mode
not_available- Processing
- client-side
- Privacy
- no-data-stored
Public descriptor
The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.
GET /api/v1/tools/rent-vs-buy-calculator
Execute availability
This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.
POST /api/v1/tools/rent-vs-buy-calculator/execute
Authentication is not issued during the preview. A bearer API key is planned for execution after launch.
Input schema
object object; additional properties are not accepted.
home_price· number · required- Enter the home price used in the calculation.
down_payment· number · required- Enter the down payment used in the calculation.
mortgage_rate· number · required- Enter the mortgage interest rate used in the calculation.
term_years· number · required- Enter the mortgage term used in the calculation.
monthly_rent· number · required- Enter the current monthly rent used in the calculation.
rent_growth· number · required- Enter the annual rent increase used in the calculation.
home_appreciation· number · required- Enter the annual home appreciation used in the calculation.
annual_owner_cost_rate· number · required- Enter the annual taxes, insurance, and maintenance used in the calculation.
years· number · required- Enter the comparison period used in the calculation.
{
"type": "object",
"properties": {
"home_price": {
"type": "number",
"description": "Enter the home price used in the calculation.",
"minimum": 0
},
"down_payment": {
"type": "number",
"description": "Enter the down payment used in the calculation.",
"minimum": 0
},
"mortgage_rate": {
"type": "number",
"description": "Enter the mortgage interest rate used in the calculation."
},
"term_years": {
"type": "number",
"description": "Enter the mortgage term used in the calculation.",
"minimum": 1,
"maximum": 50
},
"monthly_rent": {
"type": "number",
"description": "Enter the current monthly rent used in the calculation.",
"minimum": 0
},
"rent_growth": {
"type": "number",
"description": "Enter the annual rent increase used in the calculation."
},
"home_appreciation": {
"type": "number",
"description": "Enter the annual home appreciation used in the calculation."
},
"annual_owner_cost_rate": {
"type": "number",
"description": "Enter the annual taxes, insurance, and maintenance used in the calculation."
},
"years": {
"type": "number",
"description": "Enter the comparison period used in the calculation.",
"minimum": 1,
"maximum": 40
}
},
"required": [
"home_price",
"down_payment",
"mortgage_rate",
"term_years",
"monthly_rent",
"rent_growth",
"home_appreciation",
"annual_owner_cost_rate",
"years"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
buy_net_cost· number- Estimated net cost of buying produced by the calculation.
rent_total_cost· number- Estimated rent cost produced by the calculation.
estimated_equity· number- Estimated home equity produced by the calculation.
difference· number- Rent minus buy cost produced by the calculation.
lower_cost_option· string- Lower estimated cost produced by the calculation.
{
"type": "object",
"properties": {
"buy_net_cost": {
"type": "number",
"description": "Estimated net cost of buying produced by the calculation."
},
"rent_total_cost": {
"type": "number",
"description": "Estimated rent cost produced by the calculation."
},
"estimated_equity": {
"type": "number",
"description": "Estimated home equity produced by the calculation."
},
"difference": {
"type": "number",
"description": "Rent minus buy cost produced by the calculation."
},
"lower_cost_option": {
"type": "string",
"description": "Lower estimated cost produced by the calculation."
}
},
"additionalProperties": false
}
Rent vs. Buy Calculator example
The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.
curl -X POST "https://utilitypages.org/api/v1/tools/rent-vs-buy-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"home_price": 400000,
"down_payment": 80000,
"mortgage_rate": 6.5,
"term_years": 30,
"monthly_rent": 2200,
"rent_growth": 3,
"home_appreciation": 3,
"annual_owner_cost_rate": 2,
"years": 7
}'
{
"ok": true,
"data": {
"slug": "rent-vs-buy-calculator",
"result": {
"values": {
"buy_net_cost": 103282.3200000000069849193096160888671875,
"rent_total_cost": 202289,
"estimated_equity": 202617.5599999999976716935634613037109375,
"difference": 99006.6799999999930150806903839111328125,
"lower_cost_option": "Buying"
},
"display": {
"display": "103282.32"
},
"warnings": [],
"assumptions": [],
"steps": []
}
},
"meta": [],
"request_id": "req_example_123"
}
Errors
api_not_launched· 503- Returned by the current launch gate for every execute request.
invalid_json· 400- Returned when an enabled execute request does not contain valid JSON.
validation_failed· 422- Returned when a request does not satisfy the input schema.
browser_interaction_required· 422- Returned for browser capability tools instead of inventing a server-side result.
tool_not_found· 404- Returned when a requested descriptor slug does not exist.
execution_failed· 503- Returned when an enabled server-side execution cannot complete.