{
  "tool_id": "apr_apy_converter",
  "slug": "apr-apy-converter",
  "path": "/apr-apy-converter/",
  "mode": "url_api",
  "api_usage": "GET https://aifinhub.io/api/apr-apy-converter/?<params>",
  "sample_input": {
    "tool": "apr_apy_converter",
    "rate": 5.0,
    "compounding_periods_per_year": 12,
    "direction": "apr-to-apy"
  },
  "input_schema": {
    "type": "object",
    "properties": {
      "tool": {
        "type": "string"
      },
      "rate": {
        "type": "number"
      },
      "compounding_periods_per_year": {
        "type": "integer"
      },
      "direction": {
        "type": "string"
      }
    },
    "required": [
      "tool",
      "rate",
      "compounding_periods_per_year",
      "direction"
    ]
  },
  "output_schema": {
    "type": "object",
    "properties": {
      "apr": {
        "type": "number"
      },
      "apy": {
        "type": "number"
      },
      "difference": {
        "type": "number"
      }
    }
  }
}
