Mortgage Rate API
The Mortgage Rate API provides access to current and historical mortgage rate data going back decades.
API Status
API Response Times
Average | P50 | P75 | P90 | P95 |
|---|---|---|---|---|
| 290ms | 328ms | 357ms | 753ms | 1053ms |
Didn't find what you were looking for? Suggest an improvement
/v1/mortgagerate GET
https://api.api-ninjas.com/v1/mortgagerate
Returns mortgage interest rate data for fixed-rate mortgage (FRM), ARM and more. If no parameters are set, the mortgage rate data for the most recent week is returned.
Parameters
dateoptional premium onlyIndividual date to query in
YYYY-MM-DDformat.min_dateoptional premium onlyMinimum date range to query in
YYYY-MM-DDformat. Must be used withmax_date.max_dateoptional premium onlyMaximum date range to query in
YYYY-MM-DDformat. Must be used withmin_date.
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Sample Request Live Demo!
Try this API endpoint with all available parameters in our API playground
https://api.api-ninjas.com/v1/mortgagerateHeaders
X-Api-KeyLog in or sign up to get your API KeySample Response
1
2
3
4
5
6
7
[
{
"week": "2024-10-17",
"frm_30": 6.44,
"frm_15": 5.63
}
]Code Examples
1
2
curl -X GET "https://api.api-ninjas.com/v1/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.