---
title: Mortgage Rates by Country API
slug: mortgage-rates-by-country
url: https://apyhub.com/martin10291/service/mortgage-rates-by-country
provider: Martin Petrov
categories: [Retrieval Kit]
tags: [mortgage-rates, interest-rates, rate-comparison, financial-data, market-data]
auth: api_key
version: 1.0
service_type: sync
endpoints: 1
atoms: 10
mcp: true
---

# Mortgage Rates by Country API

Mortgage Rates API returns official rates for the US, UK, Canada, and Eurozone. Send country, product, date, and sort options. Free tier, no card.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/martin10291/mortgage-rates-by-country` | What it does Returns mortgage rate data for the requested mode and filters, using the request body… | 10 |

## Endpoint reference

### Mortgage Rates API - US, UK, Canada, Eurozone Official Data

`POST https://api.eu.apyhub.com/martin10291/mortgage-rates-by-country` · 10 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `mode` | body | string | no | latest = newest rate of every country/product with previous value, change and 1-year change; history = past observations of the chosen countries (needs Country); compare = one headline rate per count… |
| `sort` | body | string | no | For latest: country (default), rate (cheapest first), rate_desc, change (biggest fall first). One of: country, rate, rate_desc, change. Example: `country`. |
| `limit` | body | integer | no | Maximum rows returned for history (newest kept). Between 1 and 20000. Default: `20`. Example: `1000`. |
| `country` | body | array of string | no | ISO country codes, for example US, GB, CA, DE, FR, ES, IT, NL. UK, EA (euro area = U2) and full names like Germany also work. Empty = all 25 (latest/compare). Required for history. Example: `["US","G… |
| `endDate` | body | string | no | For history: last date, YYYY-MM-DD or YYYY-MM. Default today. |
| `product` | body | array of string | no | Optional filter: 30y-fixed, 15y-fixed, 5-1-arm, 1y-fixed, 2y-fixed, 3y-fixed, 5y-fixed, 10y-fixed, 2y-fixed-95ltv, 2y-variable, tracker, all-fixation, floating-1y, 1-5y-fixed, 5-10y-fixed, over-10y-f… |
| `frequency` | body | string | no | For history: native (weekly for US/Canada, monthly for UK/euro), monthly or yearly (last observation of each period). One of: native, monthly, yearly. Example: `native`. |
| `startDate` | body | string | no | For history: first date, YYYY-MM-DD or YYYY-MM. Default = full history. |

#### Quickstart

Fetch the latest mortgage rates with the default `latest` mode and the most common `country` codes.

```bash
curl -X POST "https://api.eu.apyhub.com/martin10291/mortgage-rates-by-country" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "latest",
    "country": ["US", "GB", "CA", "DE"]
  }'
```

#### What you'll get back

Returns a JSON object with `billed` and `count` integer fields, plus an `items` array of rate records.

- `billed`: units charged for this call
- `count`: number of rows in `items`
- `items`: array of objects containing fields such as `date`, `rate`, `country`, `product`, and other rate metadata

```json
{
  "billed": 4,
  "count": 4,
  "items": [
    {
      "date": "2024-06-01",
      "rate": 6.85,
      "country": "US",
      "product": "30y-fixed"
    }
  ]
}
```

## About

## What it does

The Mortgage Rates API returns official mortgage and benchmark rates by country. Send a `mode` such as `latest`, `history`, `compare`, or `countries`, plus optional `country`, `product`, `sort`, `limit`, `startDate`, `endDate`, and `frequency` filters. You get back a JSON response with billing info, row count, and rate records.

Use `latest` for the newest rate, plus the previous value and yearly change when available. Use `history` for past rates in a date range, and set `frequency` to `native`, `monthly`, or `yearly`.

Teams use Mortgage Rates API to build mortgage comparison tools, rate charts, and market watch pages. They also use it to show one headline rate per country and to track rate moves over time.

The response can include the country name, product name, rate date, source, link, and attribution for each row.

To see the policy rate behind a country's mortgage rates, use the [Central Bank Interest Rates API](https://apyhub.com/martin10291/service/central-bank-interest-rates). To compare rates with price growth, add the [Country Inflation & CPI Data API](https://apyhub.com/martin10291/service/country-inflation-cpi-data).

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/martin10291/service/mortgage-rates-by-country
