api-ninjas-com Mortgage Calculator API

The Mortgage Calculator API provides detailed mortgage and other home financing payment information. It uses the standard mortgage calculation formulas to calculate interest and monthly/annual payments.

Operations 1

GET /v1/mortgagecalculator Calculate mortgage payments #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/api-ninjas-com:api-ninjas-com-mortgage-calculator-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

api-ninjas-com-mortgage-calculator-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ninjas Mortgage Calculator API
  description: 'Combined OpenAPI specification for every API Ninjas endpoint. Requests go to https://api.api-ninjas.com with an `X-Api-Key` header; get a free key at https://api-ninjas.com/register. Human-readable docs: https://api-ninjas.com/api. Index for LLMs: https://api-ninjas.com/llms.txt.'
  version: 1.0.0
  contact:
    name: API Ninjas
    url: https://api-ninjas.com
  license:
    name: Proprietary
servers:
- url: https://api.api-ninjas.com
  description: API Ninjas Production
security:
- ApiKeyAuth: []
tags:
- name: Mortgage Calculator
  description: The Mortgage Calculator API provides detailed mortgage and other home financing payment information. It uses the standard mortgage calculation formulas to calculate interest and monthly/annual payments.
paths:
  /v1/mortgagecalculator:
    get:
      summary: Calculate mortgage payments
      description: Calculates monthly and annual mortgage payments and interest from a loan amount or home value and downpayment, plus optional HOA, tax and insurance. Requires `interest_rate`.
      operationId: calculateMortgage
      security:
      - ApiKeyAuth: []
      parameters:
      - name: loan_amount
        in: query
        description: Principal loan amount.
        required: false
        schema:
          type: integer
      - name: home_value
        in: query
        description: Total value of the home or asset. Must be greater than downpayment.
        required: false
        schema:
          type: integer
      - name: downpayment
        in: query
        description: Downpayment on the home or asset. Cannot exceed home_value.
        required: false
        schema:
          type: integer
      - name: interest_rate
        in: query
        description: Annual interest rate (in %). For example, a 3.5% interest rate would be 3.5. Cannot exceed 10000.
        required: true
        schema:
          type: number
      - name: duration_years
        in: query
        description: Duration of the loan in years. Must be between 1 and 10000. If not set, the default value is 30 years.
        required: false
        schema:
          type: integer
          default: 30
      - name: monthly_hoa
        in: query
        description: Monthly homeowner association fees.
        required: false
        schema:
          type: integer
      - name: annual_property_tax
        in: query
        description: Annual property tax owed.
        required: false
        schema:
          type: integer
      - name: annual_home_insurance
        in: query
        description: Annual homeowner's insurance bill.
        required: false
        schema:
          type: integer
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MortgageCalculatorResponse'
        '400':
          description: Bad Request
        '401':
          description: Unauthorized
        '500':
          description: Internal Server Error
      tags:
      - Mortgage Calculator
components:
  schemas:
    MortgageCalculatorResponse:
      type: object
      properties:
        monthly_payment:
          type: object
          properties:
            total:
              type: integer
            mortgage:
              type: integer
            property_tax:
              type: integer
            hoa:
              type: integer
            annual_home_ins:
              type: integer
        annual_payment:
          type: object
          properties:
            total:
              type: integer
            mortgage:
              type: integer
            property_tax:
              type: integer
            hoa:
              type: integer
            home_insurance:
              type: integer
        total_interest_paid:
          type: integer
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key
externalDocs:
  description: API Ninjas documentation
  url: https://api-ninjas.com/api