Overview
- Category
- Finance
- API mode
execute- 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/mortgage-calculator
Execute availability
This tool has an execute route defined by its descriptor. Server-side execution is currently unavailable, so requests return api_not_launched.
POST /api/v1/tools/mortgage-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.
principal· number · required- Enter the amount borrowed or invested before interest, fees, taxes, and future payments.
annual_rate· number · required- Enter 6.5 for 6.5%.
term_months· number · required- Enter the total number of monthly payments in the repayment term.
property_tax_annual· number · optional- Enter the yearly property-tax estimate to include in the mortgage payment.
insurance_annual· number · optional- Enter the yearly homeowners-insurance amount to include in the payment estimate.
{
"type": "object",
"properties": {
"principal": {
"type": "number",
"description": "Enter the amount borrowed or invested before interest, fees, taxes, and future payments."
},
"annual_rate": {
"type": "number",
"description": "Enter 6.5 for 6.5%."
},
"term_months": {
"type": "number",
"description": "Enter the total number of monthly payments in the repayment term."
},
"property_tax_annual": {
"type": "number",
"description": "Enter the yearly property-tax estimate to include in the mortgage payment."
},
"insurance_annual": {
"type": "number",
"description": "Enter the yearly homeowners-insurance amount to include in the payment estimate."
}
},
"required": [
"principal",
"annual_rate",
"term_months"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
monthly_payment· number- Browser-calculated monthly payment.
monthly_escrow· number- Browser-calculated monthly escrow.
total_monthly· number- Browser-calculated total monthly.
total_paid· number- Browser-calculated total paid.
total_interest· number- Interest over the term.
schedule· array- Browser-calculated schedule.
{
"type": "object",
"properties": {
"monthly_payment": {
"type": "number",
"description": "Browser-calculated monthly payment."
},
"monthly_escrow": {
"type": "number",
"description": "Browser-calculated monthly escrow."
},
"total_monthly": {
"type": "number",
"description": "Browser-calculated total monthly."
},
"total_paid": {
"type": "number",
"description": "Browser-calculated total paid."
},
"total_interest": {
"type": "number",
"description": "Interest over the term."
},
"schedule": {
"type": "array",
"items": [],
"description": "Browser-calculated schedule."
}
},
"additionalProperties": false
}
Mortgage Calculator: Standard amortization
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/mortgage-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"principal": 250000,
"annual_rate": 6.5,
"term_months": 360,
"property_tax_annual": 3600,
"insurance_annual": 1200
}'
{
"ok": true,
"data": {
"slug": "mortgage-calculator",
"result": {
"values": {
"monthly_payment": 1580.170000000000072759576141834259033203125,
"monthly_escrow": 400,
"total_monthly": 1980.170000000000072759576141834259033203125,
"total_paid": 568861.21999999997206032276153564453125,
"total_interest": 318861.21999999997206032276153564453125
},
"display": {
"display": "1580.17"
},
"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.