Bank Rate : Mortgage JSON API

/api/bankrates/mortgage/us/lowest

Overview

This API endpoint returns a list of the lowest Mortgage rates in United States that were posted today.

By default the result maximum number of rates returned is 10. The result set size can be increased or decreased by adding an additional postfix to the API endpoint.

For example to increase the number of results to 25 rates append '/25' to the API url.

e.g. /api/bankrates/mortgage/us/lowest/25

Example request using cURL

Following is an example, using curl and a Linux command prompt to get the lowest rates for mortgage rates in United States.

$ BASE='http://api.giraffespot.com'
$ KEY='YOUR_KEY_HERE'
$ curl "$BASE/api/bankrates/mortgage/us/lowest?apikey=$KEY"


Example request using Node.js

This code fragment demonstrates how to make a request and use the reponse of a GiraffeSpot API, to get the lowest rates for mortgage rates in United States.

(Note: this code sample assumes you are using the latest version of Node with async/await support along with the request-promise NPM.)

let request = require('request-promise')

let key = 'YOUR_KEY_HERE'
let url = `http://api.giraffespot.com/api/bankrates/mortgage/us/lowest?apikey=${key}`

let res  = await request(url)
let data = JSON.parse(res)

console.log(data)


Example Response

By default the GiraffeSpot API always responds to requests back with JSON.

{
  "type" : "mortgage",
  "max" : "10",
  "data" : [ {
    "service" : "10/1 Adjustable Rate Mortgage",
    "date" : "2019-08-23",
    "rate" : 2,
    "term" : "5y",
    "link" : "https://www.alabamacu.com/Lending/Home-Loans",
    "timestamp" : 1566543600,
    "country" : "United States",
    "company" : "Alabama Credit Union"
  }, {
    "service" : "5/5 Adjustable Rate Mortgage",
    "date" : "2019-08-23",
    "rate" : 2,
    "term" : "5y",
    "link" : "https://www.alabamacu.com/Lending/Home-Loans",
    "timestamp" : 1566543600,
    "country" : "United States",
    "company" : "Alabama Credit Union"
  }, {
    "service" : "7/1 Adjustable Rate Mortgage",
    "date" : "2019-08-23",
    "rate" : 2,
    "term" : "5y",
    "link" : "https://www.alabamacu.com/Lending/Home-Loans",
    "timestamp" : 1566543600,
    "country" : "United States",
    "company" : "Alabama Credit Union"
  }, {
    "service" : "5/1 Adjustable Rate Mortgage",
    "date" : "2019-08-23",
    "rate" : 2,
    "term" : "5y",
    "link" : "https://www.alabamacu.com/Lending/Home-Loans",
    "timestamp" : 1566543600,
    "country" : "United States",
    "company" : "Alabama Credit Union"
  }, {
    "service" : "3/1 Adjustable Rate Mortgage",
    "date" : "2019-08-23",
    "rate" : 2,
    "term" : "5y",
    "link" : "https://www.alabamacu.com/Lending/Home-Loans",
    "timestamp" : 1566543600,
    "country" : "United States",
    "company" : "Alabama Credit Union"
  }, {
    "service" : "10 Year Fixed Mortgage",
    "date" : "2019-08-23",
    "rate" : 2.625,
    "term" : "10y",
    "link" : "https://www.bethpagefcu.com/personal/borrowing/mortgages.aspx",
    "timestamp" : 1566543600,
    "country" : "United States",
    "company" : "Bethpage Federal Credit Union"
  }, {
    "service" : "15 Year Fixed Rate",
    "date" : "2019-08-23",
    "rate" : 2.625,
    "term" : "15y",
    "link" : "https://www.boh.com/personal/banking-products/mortgages/fixed-rate-mortgage.asp",
    "timestamp" : 1566543600,
    "country" : "United States",
    "company" : "Bank of Hawaii"
  }, {
    "service" : "7 Year Conventional Fixed Rate",
    "date" : "2019-08-23",
    "rate" : 2.75,
    "term" : "7y",
    "link" : "https://www.rbfcu.org/home-loans-realty/mortgages/fixed-rate-mortgages",
    "timestamp" : 1566543600,
    "country" : "United States",
    "company" : "Randolph-Brooks Federal Credit Union"
  }, {
    "service" : "30 Year Fixed Power Mortgage",
    "date" : "2019-08-23",
    "rate" : 2.8,
    "term" : "30y",
    "link" : "https://www.ssfcu.org/home-loans/mortgage",
    "timestamp" : 1566543600,
    "country" : "United States",
    "company" : "Security Service Federal Credit Union"
  }, {
    "service" : "10 Year Conventional Fixed Rate",
    "date" : "2019-08-23",
    "rate" : 2.875,
    "term" : "10y",
    "link" : "https://www.rbfcu.org/home-loans-realty/mortgages/fixed-rate-mortgages",
    "timestamp" : 1566543600,
    "country" : "United States",
    "company" : "Randolph-Brooks Federal Credit Union"
  } ]
}

Note: this data is just an example response and may be truncated.