# Mortgage Rate API

> Mortgage Rate reports weekly US fixed mortgage rates for 15-year and 30-year terms. Pass the loan term to get the latest percentage rate, survey date, and direction of weekly change, while paid plans add 4-week and 52-week changes, the 52-week high, low and average, and the last 52 weekly rates.

**Endpoint:** `GET https://api.apiverve.com/v1/mortgagerate`  
**Category:** Finance  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/mortgagerate

## Overview

Mortgage Rate provides current and historical mortgage rate data from 1971 to present. The data comes from Freddie Mac's Primary Mortgage Market Survey, which has tracked mortgage rates weekly since the early 1970s. The latest rate comes with its weekly change, and with changes=true paid plans add the change over 4 and 52 weeks in percentage points, the 52-week high, low and average, and the 52 weekly rates with history=true. Use this for mortgage calculations, market analysis, and financial planning.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/mortgagerate?type=30year&year=2023&month=6&history=true&changes=true" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `type` | string | Yes | The mortgage type. One of: 30year, 15year |
| `year` | integer | No | Year to retrieve rates for (1971-present). Requires month parameter.. range 1971-2030. Premium field |
| `month` | integer | No | Month to retrieve rates for (1-12). Required when year is specified.. range 1-12. Premium field |
| `history` | boolean | No | Include the weekly rates for the 52 weeks ending at the latest survey (current rate only). default false. Premium field |
| `changes` | boolean | No | Include the 4-week and 52-week changes and the 52-week high, low and average (current rate only). default false |

## Response fields

- `rateType` — string · Mortgage rate type identifier (30year or 15year)
- `name` — string · Human-readable description of mortgage type
- `term` — number · Loan term in years (15 or 30)
- `type` — string · Rate type classification (fixed or adjustable)
- `country` — string · Country code where rates apply (US)
- `year` — number · Year of the mortgage rate data
- `count` — number · Number of weekly rate entries in response
  - `rates.0.week` — string · Week date in YYYY-MM-DD format
  - `rates.0.rate` — number · Mortgage interest rate as percentage
- `change1w` — number · Rate change from previous week in percentage points · (premium)
- `changeDirection` — string · Direction of weekly change: up, down, or unchanged
- `previousRate` — number · Previous week's mortgage interest rate · (premium)
- `previousDate` — string · Previous week's date in YYYY-MM-DD format · (premium)
- `change4w` — number · Change in percentage points from the survey four weeks earlier (current rate only) (with changes=true) · (premium)
- `change52w` — number · Change in percentage points from the survey 52 weeks earlier (current rate only) (with changes=true) · (premium)
- `high52w` — number · Highest weekly rate in the last 52 weeks (current rate only) (with changes=true) · (premium)
- `low52w` — number · Lowest weekly rate in the last 52 weeks (current rate only) (with changes=true) · (premium)
- `average52w` — number · Average weekly rate over the last 52 weeks (current rate only) (with changes=true) · (premium)
  - `history.0.week` — string · Survey date (YYYY-MM-DD) · (premium)
  - `history.0.rate` — number · Average rate that week, in percent · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "rateType": "30year",
    "name": "30-Year Fixed Rate Mortgage",
    "term": 30,
    "type": "fixed",
    "country": "US",
    "year": 2026,
    "count": 1,
    "rates": [
      {
        "week": "2026-10-22",
        "rate": 7.32
      }
    ],
    "change1w": -0.08,
    "changeDirection": "down",
    "previousRate": 7.4,
    "previousDate": "2026-10-15",
    "change4w": 0.29,
    "change52w": 1.13,
    "high52w": 7.4,
    "low52w": 5.98,
    "average52w": 6.4423,
    "history": [
      {
        "week": "2025-10-30",
        "rate": 6.17
      },
      {
        "week": "2025-11-06",
        "rate": 6.22
      },
      {
        "week": "2025-11-13",
        "rate": 6.24
      },
      {
        "week": "2025-11-20",
        "rate": 6.26
      },
      {
        "week": "2025-11-26",
        "rate": 6.23
      },
      {
        "week": "2025-12-04",
        "rate": 6.19
      },
      {
        "week": "2025-12-11",
        "rate": 6.22
      },
      {
        "week": "2025-12-18",
        "rate": 6.21
      },
      {
        "week": "2025-12-24",
        "rate": 6.18
      },
      {
        "week": "2025-12-31",
        "rate": 6.15
      },
      {
        "week": "2026-01-08",
        "rate": 6.16
      },
      {
        "week": "2026-01-15",
        "rate": 6.06
      },
      {
        "week": "2026-01-22",
        "rate": 6.09
      },
      {
        "week": "2026-01-29",
        "rate": 6.1
      },
      {
        "week": "2026-02-05",
        "rate": 6.11
      },
      {
        "week": "2026-02-12",
        "rate": 6.09
      },
      {
        "week": "2026-02-19",
        "rate": 6.01
      },
      {
        "week": "2026-02-26",
        "rate": 5.98
      },
      {
        "week": "2026-03-05",
        "rate": 6
      },
      {
        "week": "2026-03-12",
        "rate": 6.11
      },
      {
        "week": "2026-03-19",
        "rate": 6.22
      },
      {
        "week": "2026-03-26",
        "rate": 6.38
      },
      {
        "week": "2026-04-02",
        "rate": 6.46
      },
      {
        "week": "2026-04-09",
        "rate": 6.37
      },
      {
        "week": "2026-04-16",
        "rate": 6.3
      },
      {
        "week": "2026-04-23",
        "rate": 6.23
      },
      {
        "week": "2026-04-30",
        "rate": 6.3
      },
      {
        "week": "2026-05-07",
        "rate": 6.37
      },
      {
        "week": "2026-05-14",
        "rate": 6.36
      },
      {
        "week": "2026-05-21",
        "rate": 6.51
      },
      {
        "week": "2026-05-28",
        "rate": 6.53
      },
      {
        "week": "2026-06-04",
        "rate": 6.48
      },
      {
        "week": "2026-06-11",
        "rate": 6.52
      },
      {
        "week": "2026-06-18",
        "rate": 6.47
      },
      {
        "week": "2026-06-25",
        "rate": 6.49
      },
      {
        "week": "2026-07-02",
        "rate": 6.43
      },
      {
        "week": "2026-07-09",
        "rate": 6.49
      },
      {
        "week": "2026-07-16",
        "rate": 6.55
      },
      {
        "week": "2026-07-23",
        "rate": 6.58
      },
      {
        "week": "2026-07-30",
        "rate": 6.66
      },
      {
        "week": "2026-08-06",
        "rate": 6.69
      },
      {
        "week": "2026-08-13",
        "rate": 6.67
      },
      {
        "week": "2026-08-20",
        "rate": 6.65
      },
      {
        "week": "2026-08-27",
        "rate": 6.66
      },
      {
        "week": "2026-09-03",
        "rate": 6.71
      },
      {
        "week": "2026-09-10",
        "rate": 6.76
      },
      {
        "week": "2026-09-17",
        "rate": 6.95
      },
      {
        "week": "2026-09-24",
        "rate": 7.03
      },
      {
        "week": "2026-10-01",
        "rate": 7.28
      },
      {
        "week": "2026-10-08",
        "rate": 7.4
      },
      {
        "week": "2026-10-15",
        "rate": 7.4
      },
      {
        "week": "2026-10-22",
        "rate": 7.32
      }
    ]
  }
}
```

## Use cases

- **Home Listing Calculators** — Populate monthly payment estimates across real estate portals by feeding current 30-year fixed rates into listing mortgage calculators.
- **Refinance Comparison Portals** — When evaluating refinancing offers, mortgage brokers compare current 15-year and 30-year rates to highlight interest savings for homeowners.
- **Borrower Rate Alerts** — To help homebuyers time their financing, personal finance platforms track weekly rate trend directions and notify borrowers when costs drop.
- **Housing Market Newsletters** — Property investment newsletters graph weekly mortgage percentage changes against pending sales to assess shifts in buyer purchasing power.

## SDKs

- **npm** — `npm install @apiverve/mortgagerate` (https://www.npmjs.com/package/@apiverve/mortgagerate)
- **NuGet** — `dotnet add package APIVerve.API.MortgageRate` (https://www.nuget.org/packages/APIVerve.API.MortgageRate)
- **Source** — https://github.com/apiverve/mortgagerate-api

## More

- Full reference: https://docs.apiverve.com/ref/mortgagerate
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
