NewConnect Claude, Cursor, ChatGPT, and other AI agents to API Ninjas via our MCP server

Mortgage Rate API

The Mortgage Rate API provides access to current daily and historical mortgage rate data going back decades.

(4.2)

From 9,633 users

1,800+

Applications using this API

API Status

Online - All Systems Operational

API Response Times

Average
P50
P75
P90
P95
308ms353ms371ms509ms1153ms

Didn't find what you were looking for? Suggest an improvement


/v2/mortgagerate GET

https://api.api-ninjas.com/v2/mortgagerate

Returns the daily 30-year and 15-year fixed-rate mortgage (FRM) data. If no parameters are set, the mortgage rate data for the most recent day is returned.

Parameters

  • date  optional premium only

    Individual date to query in YYYY-MM-DD format.

  • min_date  optional premium only

    Minimum date range to query in YYYY-MM-DD format. Must be used with max_date.

  • max_date  optional premium only

    Maximum date range to query in YYYY-MM-DD format. Must be used with min_date.

Headers

  • X-Api-Key  required

    API Key associated with your account.

Response

A JSON array of objects, each containing the following fields, or an error if the request is unsuccessful.

  • date

    Date for the rate data in YYYY-MM-DD format.

  • frm_30

    30-year fixed-rate mortgage (FRM) rate as a percentage.

  • frm_15

    15-year fixed-rate mortgage (FRM) rate as a percentage.

Sample Request Live Demo!

date
min_date
max_date

Try this API endpoint with all available parameters in our API playground

https://api.api-ninjas.com/v2/mortgagerate?date=2026-05-12

Headers

X-Api-KeyLog in or sign up to get your API Key

Sample Response

JSON

Code Examples

1 2 curl -X GET "https://api.api-ninjas.com/v2/mortgagerate" \ -H "X-Api-Key: YOUR_API_KEY"

If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.