About this endpoint
What it does
Returns mortgage rate data for the requested mode and filters, using the request body fields defined in the schema. The response is a JSON object that includes billing and row counts plus an items array of rate records.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| mode | ENUM | Yes | Allowed values: latest, history, compare, countries.latest = newest rate of every country/product with previous value, change, and 1-year change.history = past observations of the chosen countries (requires country).compare = one headline rate per country sorted cheapest first.countries = not further specified by the schema description. |
| sort | ENUM | No | Allowed values: country, rate, rate_desc, change.For latest: country (default), rate, rate_desc, change. |
| limit | Integer | No | Maximum rows returned for history (newest kept). Default: 20.Schema also states a minimum of 1 and a maximum of 100, and the description says "Between 1 and 20000." |
| country | String Array | No | ISO country codes such as US, GB, CA, DE.UK, EA (euro area = U2), and full names like Germany also work.Empty means all 25 for latest/compare.Required for history.Maximum 100 items. |
| endDate | String | No | For history: last date, in YYYY-MM-DD or YYYY-MM format. Default: today. |
| product | String Array | No | Optional filter. Allowed values include 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-fixed, prime-rate, policy-rate.For US, supported products are 30y-fixed, 15y-fixed, 5-1-arm (ended 2022).Maximum 100 items. |
| frequency | ENUM | No | Allowed values: native, monthly, yearly.For history: native (weekly for US/Canada, monthly for UK/euro), monthly, or yearly (last observation of each period). Default: native. |
| startDate | String | No | For history: first date, in YYYY-MM-DD or YYYY-MM format. Default: full history. |
Response
Returns a JSON object with billed and count integer fields and an items array of objects. Each item can include date, rate, unit, stale, active, change, source, country, product, change1y, frequency, rate1yAgo, sourceUrl, attribution, countryName, productName, previousDate, and previousRate fields as declared in the schema. The schema does not specify a response status code.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| billed | Integer | No | Units charged for this call: result rows only; not-found, unavailable, and invalid rows are free. |
| count | Integer | No | Number of rows in items. |
| items | Object Array | No | Array of rate records. Each object may contain: date (String), rate (Number), unit (String), stale (Boolean), active (Boolean), change (Number), source (String), country (String), product (String), change1y (Number), frequency (String), rate1yAgo (Number), sourceUrl (String), attribution (String), countryName (String), productName (String), previousDate (String), previousRate (Number). |



