Skip to main content
POST
Reference example

Request contract

  • Method and path: POST /apis/v1/api-ninjas/calculate-mortgage
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/api-ninjas/calculate-mortgage
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.00089 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
interest_rate
number
required

Annual interest rate (in %). For example, a 3.5% interest rate would be 3.5

Required range: x >= 0
Example:

3.5

annual_home_insurance
number

Annual homeowner's insurance bill

Required range: x >= 0
Example:

1200

annual_property_tax
number

Annual property tax owed

Required range: x >= 0
Example:

3000

downpayment
number

Downpayment on the home or asset. Cannot exceed home_value.

Required range: x >= 0
Example:

50000

duration_years
integer

Loan duration in years (1-10000). Defaults to 30.

Required range: 1 <= x <= 10000
Example:

30

home_value
number

Total value of the home or asset. Must be greater than downpayment.

Required range: x >= 0
Example:

250000

loan_amount
number

Principal loan amount. Either this OR (home_value + downpayment) must be provided.

Required range: x >= 0
Example:

200000

monthly_hoa
number

Monthly homeowner association fees

Required range: x >= 0
Example:

100

Response

Tool result data

annual_payment
object
required
monthly_payment
object
required
total_interest_paid
number