{
  "openapi": "3.1.0",
  "info": {
    "title": "Interest Rates API",
    "version": "1.0.0",
    "description": "Central bank policy rates for 39 countries and the euro area, with decision history and interest calculators.\n\nCurrent central bank policy rates for 39 countries plus the euro area, rate-decision history since 2020 for the 8 major central banks, multi-country comparison, and APR/APY conversion and compound-interest calculators.",
    "contact": {
      "name": "Data and APIs",
      "url": "https://dataandapis.com/contact"
    },
    "termsOfService": "https://dataandapis.com/terms-of-service",
    "license": {
      "name": "Data and APIs Terms of Service",
      "url": "https://dataandapis.com/terms-of-service"
    },
    "x-logo": {
      "url": "https://dataandapis.com/images/interest-rates.webp"
    }
  },
  "externalDocs": {
    "description": "Documentation, live tester and pricing",
    "url": "https://dataandapis.com/apis/interest-rates"
  },
  "servers": [
    {
      "url": "https://api-interest-rates.dataandapis.com"
    }
  ],
  "tags": [
    {
      "name": "Finance",
      "description": "Interest Rates API belongs to the Finance category of the Data and APIs catalog."
    }
  ],
  "paths": {
    "/v1/rates": {
      "get": {
        "operationId": "allPolicyRates",
        "summary": "All Policy Rates",
        "description": "All Policy Rates endpoint of the Interest Rates API. Costs 1 token per call.",
        "externalDocs": {
          "url": "https://dataandapis.com/apis/interest-rates/all-policy-rates"
        },
        "parameters": [
          {
            "name": "currency",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "region",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "europe"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "as_of": "2026-07-26",
                  "count": 13,
                  "rates": [
                    {
                      "country": "Switzerland",
                      "code": "CH",
                      "region": "europe",
                      "currency": "CHF",
                      "central_bank": "Swiss National Bank",
                      "rate_name": "SNB Policy Rate",
                      "rate": 0,
                      "previous_rate": 0.25,
                      "last_changed": "2025-06-19",
                      "change": -0.25
                    },
                    {
                      "country": "Czechia",
                      "code": "CZ",
                      "region": "europe",
                      "currency": "CZK",
                      "central_bank": "Czech National Bank",
                      "rate_name": "2-Week Repo Rate",
                      "rate": 3.5,
                      "previous_rate": 3.75,
                      "last_changed": "2025-08-07",
                      "change": -0.25
                    },
                    {
                      "country": "Denmark",
                      "code": "DK",
                      "region": "europe",
                      "currency": "DKK",
                      "central_bank": "Danmarks Nationalbank",
                      "rate_name": "Certificates of Deposit Rate",
                      "rate": 1.85,
                      "previous_rate": 1.6,
                      "last_changed": "2026-06-11",
                      "change": 0.25
                    },
                    "... 10 more rates omitted from this example"
                  ],
                  "disclaimer": "Official central bank policy rates, provided for informational purposes only. Verify with the central bank before making financial decisions."
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key"
          },
          "402": {
            "description": "Subscription past due; the response carries a payment_url"
          },
          "429": {
            "description": "Monthly token allowance exhausted"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1/banks": {
      "get": {
        "operationId": "centralBanks",
        "summary": "Central Banks",
        "description": "Central Banks endpoint of the Interest Rates API. Costs 1 token per call.",
        "externalDocs": {
          "url": "https://dataandapis.com/apis/interest-rates/central-banks"
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "count": 39,
                  "banks": [
                    {
                      "code": "AR",
                      "country": "Argentina",
                      "region": "americas",
                      "currency": "ARS",
                      "central_bank": "Banco Central de la República Argentina",
                      "rate_name": "Monetary Policy Rate",
                      "history_available": false
                    },
                    {
                      "code": "AU",
                      "country": "Australia",
                      "region": "asia-pacific",
                      "currency": "AUD",
                      "central_bank": "Reserve Bank of Australia",
                      "rate_name": "Cash Rate Target",
                      "history_available": true
                    },
                    {
                      "code": "BR",
                      "country": "Brazil",
                      "region": "americas",
                      "currency": "BRL",
                      "central_bank": "Banco Central do Brasil",
                      "rate_name": "Selic Rate",
                      "history_available": false
                    },
                    "... 36 more central banks omitted from this example"
                  ],
                  "eurozone_members": [
                    "AT",
                    "BE",
                    "CY",
                    "DE",
                    "EE",
                    "ES",
                    "FI",
                    "FR",
                    "GR",
                    "HR",
                    "IE",
                    "IT",
                    "LT",
                    "LU",
                    "LV",
                    "MT",
                    "NL",
                    "PT",
                    "SI",
                    "SK"
                  ],
                  "note": "Euro-area member codes resolve to the ECB entry (code EU)."
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key"
          },
          "402": {
            "description": "Subscription past due; the response carries a payment_url"
          },
          "429": {
            "description": "Monthly token allowance exhausted"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1/compare": {
      "get": {
        "operationId": "compareCountries",
        "summary": "Compare Countries",
        "description": "Compare Countries endpoint of the Interest Rates API. Costs 1 token per call.",
        "externalDocs": {
          "url": "https://dataandapis.com/apis/interest-rates/compare-countries"
        },
        "parameters": [
          {
            "name": "countries",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "US,GB,JP"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "as_of": "2026-10-12",
                  "count": 3,
                  "highest": "US",
                  "lowest": "JP",
                  "rates": [
                    {
                      "queried_code": "US",
                      "country": "United States",
                      "code": "US",
                      "region": "americas",
                      "currency": "USD",
                      "central_bank": "Federal Reserve",
                      "rate_name": "Federal Funds Target Rate (Upper Bound)",
                      "rate": 4,
                      "previous_rate": 3.75,
                      "last_changed": "2026-09-17",
                      "change": 0.25,
                      "target_range": "3.75-4.00"
                    },
                    {
                      "queried_code": "GB",
                      "country": "United Kingdom",
                      "code": "GB",
                      "region": "europe",
                      "currency": "GBP",
                      "central_bank": "Bank of England",
                      "rate_name": "Bank Rate",
                      "rate": 3.75,
                      "previous_rate": 4,
                      "last_changed": "2025-12-18",
                      "change": -0.25
                    },
                    {
                      "queried_code": "JP",
                      "country": "Japan",
                      "code": "JP",
                      "region": "asia-pacific",
                      "currency": "JPY",
                      "central_bank": "Bank of Japan",
                      "rate_name": "Policy Rate (Overnight Call Rate Target)",
                      "rate": 1,
                      "previous_rate": 0.75,
                      "last_changed": "2026-06-16",
                      "change": 0.25
                    }
                  ],
                  "disclaimer": "Official central bank policy rates, provided for informational purposes only. Verify with the central bank before making financial decisions."
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key"
          },
          "402": {
            "description": "Subscription past due; the response carries a payment_url"
          },
          "429": {
            "description": "Monthly token allowance exhausted"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1/convert": {
      "get": {
        "operationId": "convertAprApy",
        "summary": "Convert APR/APY",
        "description": "Convert APR/APY endpoint of the Interest Rates API. Costs 1 token per call.",
        "externalDocs": {
          "url": "https://dataandapis.com/apis/interest-rates/convert-apr-apy"
        },
        "parameters": [
          {
            "name": "compounding",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "12"
          },
          {
            "name": "rate",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "5.25"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "input_rate": 5.25,
                  "from": "apr",
                  "to": "apy",
                  "compounding": 12,
                  "apr": 5.25,
                  "apy": 5.3782,
                  "converted_rate": 5.3782
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key"
          },
          "402": {
            "description": "Subscription past due; the response carries a payment_url"
          },
          "429": {
            "description": "Monthly token allowance exhausted"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1/calculate": {
      "get": {
        "operationId": "interestCalculator",
        "summary": "Interest Calculator",
        "description": "Interest Calculator endpoint of the Interest Rates API. Costs 1 token per call.",
        "externalDocs": {
          "url": "https://dataandapis.com/apis/interest-rates/interest-calculator"
        },
        "parameters": [
          {
            "name": "breakdown",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "false"
          },
          {
            "name": "principal",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "10000"
          },
          {
            "name": "rate",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "5"
          },
          {
            "name": "years",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "3"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "principal": 10000,
                  "annual_rate": 5,
                  "years": 3,
                  "type": "compound",
                  "compounding": 12,
                  "effective_annual_rate": 5.1162,
                  "final_amount": 11614.72,
                  "interest_earned": 1614.72
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key"
          },
          "402": {
            "description": "Subscription past due; the response carries a payment_url"
          },
          "429": {
            "description": "Monthly token allowance exhausted"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1/rates/{country}": {
      "get": {
        "operationId": "rateByCountry",
        "summary": "Rate By Country",
        "description": "Rate By Country endpoint of the Interest Rates API. Costs 1 token per call.",
        "externalDocs": {
          "url": "https://dataandapis.com/apis/interest-rates/rate-by-country"
        },
        "parameters": [
          {
            "name": "country",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "US"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "as_of": "2026-07-26",
                  "country": "United States",
                  "code": "US",
                  "region": "americas",
                  "currency": "USD",
                  "central_bank": "Federal Reserve",
                  "rate_name": "Federal Funds Target Rate (Upper Bound)",
                  "rate": 3.75,
                  "target_range": "3.50-3.75",
                  "previous_rate": 4,
                  "last_changed": "2025-12-10",
                  "change": -0.25
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key"
          },
          "402": {
            "description": "Subscription past due; the response carries a payment_url"
          },
          "429": {
            "description": "Monthly token allowance exhausted"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1/rates/{country}/history": {
      "get": {
        "operationId": "rateHistory",
        "summary": "Rate History",
        "description": "Rate History endpoint of the Interest Rates API. Costs 1 token per call.",
        "externalDocs": {
          "url": "https://dataandapis.com/apis/interest-rates/rate-history"
        },
        "parameters": [
          {
            "name": "country",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "EU"
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "2022-01-01"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "example": "10"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "as_of": "2026-07-26",
                  "country": "Euro Area",
                  "code": "EU",
                  "central_bank": "European Central Bank",
                  "rate_name": "Deposit Facility Rate",
                  "current_rate": 2.25,
                  "count": 10,
                  "history": [
                    {
                      "date": "2026-06-11",
                      "rate": 2.25
                    },
                    {
                      "date": "2025-06-11",
                      "rate": 2
                    },
                    {
                      "date": "2025-04-23",
                      "rate": 2.25
                    },
                    {
                      "date": "2025-03-12",
                      "rate": 2.5
                    },
                    {
                      "date": "2025-02-05",
                      "rate": 2.75
                    },
                    "... 5 more changes omitted from this example"
                  ],
                  "note": "History covers rate decisions (changes, not holds). US coverage is the full federal funds target series since 1982 (upper bound of the target range from 2008); other major banks are covered since 2020.",
                  "disclaimer": "Official central bank policy rates, provided for informational purposes only. Verify with the central bank before making financial decisions."
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key"
          },
          "402": {
            "description": "Subscription past due; the response carries a payment_url"
          },
          "429": {
            "description": "Monthly token allowance exhausted"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Api-Key",
        "description": "Create a free key at https://dataandapis.com/sign-up. 500 tokens a month on the Free plan; this API costs 1 token per call."
      }
    }
  },
  "security": [
    {
      "ApiKey": []
    }
  ]
}