← Back to API Ninjas
GET/v2/mortgagerate

Get Mortgage Rate Data

Returns 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.

API Ninjas·$0.001 per call

Example code

// Using @orth/sdk - The simplest way to call APIs // Install: npm install @orth/sdk import Orthogonal from "@orth/sdk"; const orthogonal = new Orthogonal({ apiKey: process.env.ORTHOGONAL_API_KEY, }); const output = await orthogonal.run({ api: "api-ninjas", path: "/v2/mortgagerate" }); console.log(output);

Query parameters

date
string

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

min_date
string

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

max_date
string

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

    Orthogonal - Giving AI agents the tools they need.