Rates API

Overview

Get New Zealand mortgage, personal loan, car loan, and credit card interest rates as JSON. Use the free Rates API with curl, OpenAPI, or MCP.

Rates API gives the interest rates of New Zealand financial institutions. You can get the newest rates and snapshots of earlier rates. An API key is not necessary. All responses are JSON.

The data can be incorrect. For correct rates, refer to the financial institution. For the data source and the terms of use, read About.

Key Facts

Rates API is a free JSON API for New Zealand interest rates. It has four datasets: mortgage, personal loan, car loan, and credit card rates. Each dataset has more than 30 lenders or issuers. The API checks interest.co.nz each hour. It saves a maximum of one snapshot each day, when the data changes. The history starts on 8 March 2025.

Start Here

TaskPage
Send your first requestQuickstart
Connect an AI agent or an assistantAI Integration
Read about IDs, dates, and errorsCore Concepts
Find the base URL, the endpoints, and the response rulesAPI Reference
Find all parameters and response fields, and send requests from the browserOpenAPI Reference
Run or deploy the projectOpen Source
Read about the data source, the terms of use, and how to get helpAbout

Example

curl https://www.ratesapi.nz/api/v1/mortgage-rates

The response contains a list of institutions. Each institution has products, and each product has rates. Use the id of an institution in detail requests and time-series requests.

Made for AI Agents

AI agents can find the data, get it, and check it without special work.

ItemHow it helps an AI agent
Model Context Protocol (MCP)POST /api/v1/mcp gives tools that an MCP client can find and use.
OpenAPI/openapi/json gives a contract that tools can read. SDK generators can make clients from it.
llms.txt/llms.txt gives a short plain-text list of the documentation pages.
JSONResponses and errors always have the same shape. An agent can easily check a result.
IDsThe ID of an institution or an issuer does not change. An agent can use it in the next request.
No API keyAn agent can use the data without secrets.

Data

CategoryList EndpointGet By IDTime Series
Mortgage RatesGET /api/v1/mortgage-ratesGET /api/v1/mortgage-rates/{institutionId}GET /api/v1/mortgage-rates/time-series
Personal Loan RatesGET /api/v1/personal-loan-ratesGET /api/v1/personal-loan-rates/{institutionId}GET /api/v1/personal-loan-rates/time-series
Car Loan RatesGET /api/v1/car-loan-ratesGET /api/v1/car-loan-rates/{institutionId}GET /api/v1/car-loan-rates/time-series
Credit Card RatesGET /api/v1/credit-card-ratesGET /api/v1/credit-card-rates/{issuerId}GET /api/v1/credit-card-rates/time-series

The mortgage data has fixed terms of 6 months to 5 years, and floating rates.

Use Cases

  • Compare mortgages, personal loans, car loans, and credit cards.
  • Calculate the cost of a loan with the newest rates.
  • Show changes in the lending market on a dashboard.
  • Make charts of rates over time. The API keeps a snapshot only for days on which the data changed.
  • Examine rates over time with the same institution IDs.
  • Let an AI assistant answer questions about rates with data from the API.
  • Let an agent compare lenders or find rate changes.

Summary

ItemValue
Base URLhttps://www.ratesapi.nz
Local API URLhttp://localhost:8787
AuthenticationNone. An API key is not necessary.
FormatJSON
OpenAPI reference (Scalar)/openapi
OpenAPI JSON/openapi/json
MCP endpointPOST /api/v1/mcp
Documentation list for LLMs/llms.txt
Full documentation text for LLMs/llms-full.txt
Source codegithub.com/simonbetton/ratesapi.nz

Last updated on

On this page