Rank lenders by total cost of a loan (fees + lifetime interest)
Apples-to-apples multi-lender ranking by TOTAL cost of a loan (upfront origination/lender fees + interest paid over the holding period), not just the headline rate. Composes the decision engine's APR-ranked credit-union offers and layers fee + lifetime-interest math on top, re-ranking lenders by total cost over the holding period and flagging when the lowest-rate lender is not the cheapest overall. This route is the single source of truth; the MCP compare_total_cost tool and the consumer app call it.
Billing: each call is metered against your API key usage. Authentication required: Pass your API key in the X-API-Key header.
Request
- Base URL: https://api.rateapi.dev
- URL: https://api.rateapi.dev/v1/total-cost
- Auth: API key in header X-API-Key
Request body
Example request
{
"state": "CA",
"amount": 400000,
"term_months": 360,
"credit_score": 720,
"down_payment_percent": 20,
"holding_period_months": 84
}Response
Lenders re-ranked by total cost over the holding period.
Example response
{
"ranked_by": "total_cost",
"ranked": [
{
"rateapi_url": "https://rateapi.dev/credit-unions/ca/schoolsfirst-federal-credit-union"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.