GET /v1/mortgage-calculatorMortgage Calculator
Business Utils lf-business-utils
Works out what a mortgage would cost each month and how much interest you would pay in total. Calculates monthly mortgage payments, total interest, amortization schedule, and affordability based on principal, rate, and term.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
principal | number | Yes | Loan principal amount |
rate | number | Yes | Annual interest rate % |
years | integer | No | Loan term in years |
Response Schema
success (boolean): Operation success
monthly_payment (number): Monthly payment
total_payment (number): Total repaid
total_interest (number): Total interest
payments (integer): Number of payments
cURL Example
curl 'https://lf-business-utils.laminarforge.dev/v1/mortgage-calculator?principal=300000&rate=6.5&years=30' -H 'Authorization: Bearer lf_YourApiKey'
Python Example
import requests
url = 'https://lf-business-utils.laminarforge.dev/v1/mortgage-calculator'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'principal': 300000, 'rate': 6.5, 'years': 30}
response = requests.get(url, headers=headers, params=params)
print(response.json())