{
  "x402Version": 2,
  "id": 72561,
  "slug": "saylorinnovations-api-finance-apr-from-payment",
  "resource": "https://saylorinnovations.com/api/finance/apr-from-payment",
  "description": "Solve the true APR and effective annual rate of a loan from amount, level payment, number of payments and upfront fees, with total cost of credit.",
  "type": "http",
  "serviceName": "Saylor Innovations Data Desk",
  "mimeType": "application/json",
  "resourceType": "API",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "So11111111111111111111111111111111111111112",
      "amount": "95830",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "type": "object",
    "properties": {
      "loan_amount": {
        "type": "number",
        "description": "Amount borrowed"
      },
      "upfront_fees": {
        "type": "number",
        "description": "Fees taken from the proceeds"
      },
      "amount_received": {
        "type": "number",
        "description": "Loan amount minus upfront fees"
      },
      "payment": {
        "type": "number",
        "description": "Level monthly payment"
      },
      "months": {
        "type": "number",
        "description": "Number of payments"
      },
      "total_paid": {
        "type": "number",
        "description": "Payment times months"
      },
      "total_cost_of_credit": {
        "type": "number",
        "description": "Total paid minus amount received"
      },
      "monthly_rate_percent": {
        "type": "number",
        "description": "Solved monthly interest rate"
      },
      "apr_percent": {
        "type": "number",
        "description": "Monthly rate times twelve, in percent"
      },
      "effective_annual_rate_percent": {
        "type": "number",
        "description": "Annual rate with monthly compounding"
      },
      "cost_per_100_borrowed": {
        "type": "number",
        "description": "Cost of credit per 100 received"
      },
      "note": {
        "type": "string",
        "description": "Plain-language caveat about how to read and use the result"
      },
      "source": {
        "type": "string",
        "description": "Where the data or formula comes from"
      }
    },
    "required": [
      "apr_percent",
      "total_cost_of_credit"
    ]
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "GET",
          "queryParams": {
            "loan_amount": "10000",
            "months": "36",
            "payment": "325",
            "upfront_fees": "300"
          }
        },
        "output": {
          "type": "json",
          "example": {
            "loan_amount": 10000,
            "upfront_fees": 300,
            "amount_received": 9700,
            "payment": 325,
            "months": 36,
            "total_paid": 11700,
            "total_cost_of_credit": 2000,
            "monthly_rate_percent": 1.050615,
            "apr_percent": 12.6074,
            "effective_annual_rate_percent": 13.362,
            "cost_per_100_borrowed": 20.62,
            "note": "APR here is the nominal annual rate that equates the payments to the amount actually received, so fees raise it. Assumes equal monthly payments with the first due one month after funding.",
            "source": "Internal rate of return of a level payment stream"
          }
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "input": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "http"
              },
              "method": {
                "type": "string",
                "enum": [
                  "GET"
                ]
              },
              "queryParams": {
                "type": "object",
                "properties": {
                  "loan_amount": {
                    "type": "string",
                    "description": "amount borrowed"
                  },
                  "months": {
                    "type": "string",
                    "description": "number of payments"
                  },
                  "payment": {
                    "type": "string",
                    "description": "level monthly payment"
                  },
                  "upfront_fees": {
                    "type": "string",
                    "description": "optional fees deducted from the proceeds"
                  }
                },
                "required": [
                  "loan_amount",
                  "months",
                  "payment"
                ]
              }
            },
            "required": [
              "type",
              "method"
            ],
            "additionalProperties": false
          },
          "output": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "json"
              },
              "example": {
                "type": "object",
                "properties": {
                  "loan_amount": {
                    "type": "number",
                    "description": "Amount borrowed"
                  },
                  "upfront_fees": {
                    "type": "number",
                    "description": "Fees taken from the proceeds"
                  },
                  "amount_received": {
                    "type": "number",
                    "description": "Loan amount minus upfront fees"
                  },
                  "payment": {
                    "type": "number",
                    "description": "Level monthly payment"
                  },
                  "months": {
                    "type": "number",
                    "description": "Number of payments"
                  },
                  "total_paid": {
                    "type": "number",
                    "description": "Payment times months"
                  },
                  "total_cost_of_credit": {
                    "type": "number",
                    "description": "Total paid minus amount received"
                  },
                  "monthly_rate_percent": {
                    "type": "number",
                    "description": "Solved monthly interest rate"
                  },
                  "apr_percent": {
                    "type": "number",
                    "description": "Monthly rate times twelve, in percent"
                  },
                  "effective_annual_rate_percent": {
                    "type": "number",
                    "description": "Annual rate with monthly compounding"
                  },
                  "cost_per_100_borrowed": {
                    "type": "number",
                    "description": "Cost of credit per 100 received"
                  },
                  "note": {
                    "type": "string",
                    "description": "Plain-language caveat about how to read and use the result"
                  },
                  "source": {
                    "type": "string",
                    "description": "Where the data or formula comes from"
                  }
                },
                "required": [
                  "apr_percent",
                  "total_cost_of_credit"
                ]
              }
            },
            "required": [
              "type"
            ]
          }
        },
        "required": [
          "input"
        ]
      }
    }
  },
  "tags": [
    "what apr am i paying",
    "loan rate from monthly payment",
    "true cost of a loan offer",
    "apr including fees",
    "solve interest rate from payment"
  ],
  "sourceHost": "saylorinnovations.com",
  "lastUpdated": "2026-10-26T22:14:01.961Z",
  "quality": {},
  "metadata": {
    "serviceName": "Saylor Innovations Data Desk",
    "method": "GET",
    "mimeType": "application/json",
    "inputSchema": {
      "type": "object",
      "properties": {
        "loan_amount": {
          "type": "string",
          "description": "amount borrowed"
        },
        "months": {
          "type": "string",
          "description": "number of payments"
        },
        "payment": {
          "type": "string",
          "description": "level monthly payment"
        },
        "upfront_fees": {
          "type": "string",
          "description": "optional fees deducted from the proceeds"
        }
      },
      "required": [
        "loan_amount",
        "months",
        "payment"
      ]
    },
    "exampleResponse": {
      "loan_amount": 10000,
      "upfront_fees": 300,
      "amount_received": 9700,
      "payment": 325,
      "months": 36,
      "total_paid": 11700,
      "total_cost_of_credit": 2000,
      "monthly_rate_percent": 1.050615,
      "apr_percent": 12.6074,
      "effective_annual_rate_percent": 13.362,
      "cost_per_100_borrowed": 20.62,
      "note": "APR here is the nominal annual rate that equates the payments to the amount actually received, so fees raise it. Assumes equal monthly payments with the first due one month after funding.",
      "source": "Internal rate of return of a level payment stream"
    },
    "parameterLocation": "query",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "type": "http",
            "method": "GET",
            "queryParams": {
              "loan_amount": "10000",
              "months": "36",
              "payment": "325",
              "upfront_fees": "300"
            }
          },
          "output": {
            "type": "json",
            "example": {
              "loan_amount": 10000,
              "upfront_fees": 300,
              "amount_received": 9700,
              "payment": 325,
              "months": 36,
              "total_paid": 11700,
              "total_cost_of_credit": 2000,
              "monthly_rate_percent": 1.050615,
              "apr_percent": 12.6074,
              "effective_annual_rate_percent": 13.362,
              "cost_per_100_borrowed": 20.62,
              "note": "APR here is the nominal annual rate that equates the payments to the amount actually received, so fees raise it. Assumes equal monthly payments with the first due one month after funding.",
              "source": "Internal rate of return of a level payment stream"
            }
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "type": "object",
          "properties": {
            "input": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "http"
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "GET"
                  ]
                },
                "queryParams": {
                  "type": "object",
                  "properties": {
                    "loan_amount": {
                      "type": "string",
                      "description": "amount borrowed"
                    },
                    "months": {
                      "type": "string",
                      "description": "number of payments"
                    },
                    "payment": {
                      "type": "string",
                      "description": "level monthly payment"
                    },
                    "upfront_fees": {
                      "type": "string",
                      "description": "optional fees deducted from the proceeds"
                    }
                  },
                  "required": [
                    "loan_amount",
                    "months",
                    "payment"
                  ]
                }
              },
              "required": [
                "type",
                "method"
              ],
              "additionalProperties": false
            },
            "output": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "json"
                },
                "example": {
                  "type": "object",
                  "properties": {
                    "loan_amount": {
                      "type": "number",
                      "description": "Amount borrowed"
                    },
                    "upfront_fees": {
                      "type": "number",
                      "description": "Fees taken from the proceeds"
                    },
                    "amount_received": {
                      "type": "number",
                      "description": "Loan amount minus upfront fees"
                    },
                    "payment": {
                      "type": "number",
                      "description": "Level monthly payment"
                    },
                    "months": {
                      "type": "number",
                      "description": "Number of payments"
                    },
                    "total_paid": {
                      "type": "number",
                      "description": "Payment times months"
                    },
                    "total_cost_of_credit": {
                      "type": "number",
                      "description": "Total paid minus amount received"
                    },
                    "monthly_rate_percent": {
                      "type": "number",
                      "description": "Solved monthly interest rate"
                    },
                    "apr_percent": {
                      "type": "number",
                      "description": "Monthly rate times twelve, in percent"
                    },
                    "effective_annual_rate_percent": {
                      "type": "number",
                      "description": "Annual rate with monthly compounding"
                    },
                    "cost_per_100_borrowed": {
                      "type": "number",
                      "description": "Cost of credit per 100 received"
                    },
                    "note": {
                      "type": "string",
                      "description": "Plain-language caveat about how to read and use the result"
                    },
                    "source": {
                      "type": "string",
                      "description": "Where the data or formula comes from"
                    }
                  },
                  "required": [
                    "apr_percent",
                    "total_cost_of_credit"
                  ]
                }
              },
              "required": [
                "type"
              ]
            }
          },
          "required": [
            "input"
          ]
        }
      }
    },
    "examples": [
      {
        "label": "Unpaid discovery call",
        "method": "GET",
        "url": "https://saylorinnovations.com/api/finance/apr-from-payment?loan_amount=10000&payment=325&months=36&upfront_fees=300",
        "expectedStatus": 402
      }
    ],
    "cacheTtlSeconds": 0,
    "capabilities": [],
    "noAccountRequired": true,
    "noApiKeyRequired": true,
    "sideEffects": "Paid calls settle the advertised payment; see the provider contract for execution behavior.",
    "payment": {
      "protocol": "x402",
      "settlement": "direct-to-provider"
    },
    "provider": {
      "name": "Saylor Innovations",
      "host": "saylorinnovations.com",
      "manifestUrl": "https://saylorinnovations.com/.well-known/x402.json"
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": true,
  "featured": false,
  "provider": {
    "host": "saylorinnovations.com",
    "manifest_name": "Saylor Innovations Knowledge Base",
    "source": "submitted",
    "source_manifest_url": "https://saylorinnovations.com/.well-known/x402.json",
    "submitted_at": "2026-10-26T05:52:02.113Z"
  },
  "exampleResponse": {
    "loan_amount": 0,
    "upfront_fees": 0,
    "amount_received": 0,
    "payment": 0,
    "months": 0,
    "total_paid": 0,
    "total_cost_of_credit": 0,
    "monthly_rate_percent": 0,
    "apr_percent": 0,
    "effective_annual_rate_percent": 0,
    "cost_per_100_borrowed": 0,
    "note": "string",
    "source": "string"
  }
}