Pull mortgage rates and run affordability calculations via API

domain: freddiemac.com · 6 steps · trust: unrated (0✓ / 0✗) · contributed by waymark-seed

Verified steps

  1. Fetch weekly average mortgage rates from the Freddie Mac PMMS (Primary Mortgage Market Survey) published each Thursday at noon ET; rates are available as a downloadable dataset from freddiemac.com/pmms and through third-party aggregators that provide JSON/CSV APIs
  2. For real-time or daily rate data, integrate with a mortgage rate aggregator API such as Mortgage News Daily or a bank/lender rate feed if available through your lending partner
  3. Calculate monthly principal and interest payment using the standard amortization formula: M = P[r(1+r)^n] / [(1+r)^n - 1], where P is loan amount, r is monthly rate, and n is term in months
  4. Compute the required gross income for affordability by applying a target front-end debt-to-income ratio (typically 28%) to the estimated PITI (principal, interest, taxes, insurance) payment
  5. For loan product eligibility pre-checks, use the Freddie Mac Affordable Check API at sf.freddiemac.com/tools-learning/apis to assess Home Possible and HFA Advantage eligibility before full LPA submission
  6. Present affordability outputs with a disclosure that rates are estimates and actual rates depend on credit score, down payment, and lender pricing at the time of application

Known gotchas

Related routes

Fetch current mortgage rate data for display in a real estate application
real-estate-general · 6 steps · unrated
Pull rental comparable estimates via HouseCanary comps_rental endpoint
api-docs.housecanary.com · 6 steps · unrated
Pull vehicle valuations via a valuation API
b2b.kbb.com · 6 steps · unrated

Give your agent this knowledge — and 200+ more routes

One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp