Safe Rate
v1.0.1US mortgage rate estimates, lender rankings and research, and US Treasury market data.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_quote_estimate Get mortgage rate estimates
Get live mortgage rate estimates for any US location without collecting the borrower's name, email, or phone number. Rates are Safe Rate's non-binding estimates (never quotes; a lender's actual quote may differ), and include an estimate ID that can be checked later to see how rates moved. The ID is a signed token that encodes the scenario itself: nothing is saved, and no account, alert or subscription is created.
| Parameter | Type | Description |
|---|---|---|
credit_range | string | Borrower credit score range. Defaults to 720-759. |
down_payment_percent | Down payment as a percentage. Defaults to 20. | |
loan_type | string | Defaults to conventional. |
location | ZIP, city + state, or county + state. E.g. "60607", "Austin, TX". If the borrower has not said where, omit it: a client that supports elicitation is asked for it; any other client gets back ok: false… | |
occupancy | string | Defaults to primary. |
property_type | string | Defaults to single_family. |
purchase_price | Purchase price or estimated property value, in dollars. Needed to price: if omitted, a client that supports elicitation is asked for it, any other gets back ok: false listing what is missing. Never in… | |
purpose | string | Defaults to purchase. |
track_quote_estimate Check a rate estimate
Check an earlier Safe Rate rate estimate by its estimate ID. Returns the original scenario, how rates have moved since that estimate, and current rates for the same scenario. Read-only: it decodes the ID and reprices, and saves, subscribes or sends nothing. No account or contact information required.
| Parameter | Type | Description |
|---|---|---|
estimate_id * | string | An estimate ID previously returned by get_quote_estimate. |
assess_property_context Assess a property's hazards and insurance
Assess hazard exposure and insurance conditions for a US location: FEMA National Risk Index score, flood-zone coverage and whether flood insurance is likely to be required for a mortgage, wildfire and earthquake exposure, and local insurance-market conditions. Describes the area, not a specific property.
| Parameter | Type | Description |
|---|---|---|
location * | ZIP, city + state, or county + state. E.g. "33139", "Austin, TX". | |
property_value | Optional property value in dollars. Supplying it turns the premium rates into annual dollar estimates. |
get_market_context Get local housing market context
Get local housing-market context for a US location: median home value with its national percentile, median rent, recent price appreciation, and historical mortgage activity from HMDA filings. Use this to answer whether a price or a market is typical.
| Parameter | Type | Description |
|---|---|---|
location * | ZIP, city + state, or county + state. E.g. "60607", "Austin, TX". |
find_lenders_in_market Find top lenders in a market
List the lenders Safe Rate publishes rankings for in a metro area or a whole state, sliced by loan type OR by institution type. Rankings are derived from public federal HMDA filings; placement cannot be purchased. This is a starting list, not a recommendation for a specific borrower.
| Parameter | Type | Description |
|---|---|---|
location * | A US state ("Ohio", "OH") for statewide rankings, or a ZIP, city + state or county + state inside a metro area. | |
institution_type | string | Rank lenders of one institution type, across all loan types. Cannot be combined with loan_type. |
limit | How many lenders to return. Defaults to 10, max 25. | |
loan_type | string | Rank lenders for one loan type, across all institution types. Cannot be combined with institution_type. Omit both to get the conventional-loans slice, which the response flags as an assumption. |
research_lender Research a mortgage lender
Look up any US mortgage lender by name or NMLS ID: origination volume, approval and pull-through rates, product mix and geographic footprint, from federal HMDA data.
| Parameter | Type | Description |
|---|---|---|
lender * | Lender name or NMLS ID, e.g. "Rocket Mortgage" or "3030". | |
geography | string | Optional two-letter state code to narrow the metrics, e.g. "IL". |
search Search Safe Rate pages
Search Safe Rate's published pages: local mortgage-rate indexes by geography, lender profiles, lender rankings by market (optionally by loan type or institution type), and the ranking methodology. Returns document ids for those pages. These are published reference pages, not priced scenarios: they do not estimate a rate for a specific borrower.
| Parameter | Type | Description |
|---|---|---|
query * | string | A place or lender name, or lenders in a place, e.g. "Austin, TX", "60607", "United Wholesale", or "FHA lenders in Ohio". |
limit | integer | Maximum results to return. Defaults to 10, max 25. |
fetch Read a Safe Rate page
Fetch one Safe Rate published page by its document id. Returns plain text carrying its own as-of date, canonical URL, data license, and citation notice. Rate index pages are indicative and refreshed daily; they are not a quote for a specific borrower.
| Parameter | Type | Description |
|---|---|---|
id * | string | A document id from `search`, e.g. "local/austin-city-tx/mortgage-rates" or "lenders/velocio-mortgage". |
get_treasury_curve Get the Treasury yield curve
Get the U.S. Treasury yield curve for a single day: the fitted zero-coupon (spot) curve and, on request, the par curve, money-market curve, TIPS real curve, breakeven inflation, the prior trading day for day-over-day moves, and per-CUSIP yields. Omit the date for the most recent published day, which is what you want on a weekend or holiday. Treasury yields are not mortgage rates.
| Parameter | Type | Description |
|---|---|---|
date | string | Trading day as YYYY-MM-DD. Omit for the most recent published day — most calendar days are not trading days, so omitting is usually right. |
include | array | Which curves to return. Defaults to ["zero"]. "real" is the TIPS curve, "breakeven" the inflation implied between them, "prior" the previous trading day for comparison, "queue_yields" per-CUSIP yields… |
queue_kind | string | Security kind for "queue_yields". Defaults to Note. |
get_treasury_rate_history Get Treasury rate history
Get a history of U.S. Treasury yields between two dates: the nominal curve (par yield, zero rate and forward rate at each maturity), the short-end money-market curve, or the TIPS real curve, one row per trading day. Use this for 'how have rates moved' questions. Coverage starts 2008-09-02. Keep ranges tight — a decade is thousands of rows.
| Parameter | Type | Description |
|---|---|---|
from * | string | Start date, YYYY-MM-DD. Not before 2008-09-02. |
to * | string | End date, YYYY-MM-DD. |
curve | string | Which curve. Defaults to "zero", the nominal curve, whose rows carry par_yield, zero_rate and forward_rate. "money_market" covers below one year; "real" is TIPS and its yields sit above inflation. |
get_treasury_security Look up a Treasury security
Look up one Treasury security by CUSIP: its terms, price history, and analytics including duration, convexity, DV01 and key-rate durations, plus TIPS and floating-rate analytics where they apply, and the amount outstanding. Takes a CUSIP, not a description such as 'the current 10-year'.
| Parameter | Type | Description |
|---|---|---|
cusip * | string | Nine-character Treasury CUSIP, e.g. "91282CJL6". |
outstanding_on | string | Date for the amount outstanding. The month-end statement in force on it is used. Defaults to today. |
summarize | boolean | Defaults to true: the daily price and analytics series are left out and the latest values kept. False returns the full daily history, which for a long bond is thousands of rows. |
list_treasury_securities List Treasury securities
List Treasury securities as at a date: which security is on-the-run for each tenor (this is how to resolve 'the current 10-year' to a CUSIP), the full outstanding and priced universe, or just the priced CUSIPs. Omit the date for the most recent day with prices.
| Parameter | Type | Description |
|---|---|---|
basis | string | When a security becomes on-the-run. "auction" is the trading convention and flips sooner; "issue" waits for settlement. Defaults to "issue". Between an auction and its issue the two disagree. |
date | string | Date as YYYY-MM-DD. Omit for the most recent day with published prices. |
include | array | Defaults to ["on_the_run"]. "outstanding" returns every priced security, which is several hundred rows. |
price_treasury_security Price a Treasury security
Convert between price and yield for a Treasury bill, note or bond. Supply exactly one side — a price or a yield (a discount rate for a bill) — and the other is returned, with accrued interest, dirty price and the investment rate as applicable. For a note or bond, a CUSIP looks the terms up instead of restating them.
| Parameter | Type | Description |
|---|---|---|
instrument * | string | "bill" for a discount instrument under a year, "coupon" for a note or bond. The maths differs; the wrong choice returns a plausible wrong number. |
clean_price | number | Price per 100 of face, excluding accrued interest. |
coupon_rate_percent | number | Annual coupon rate. Required for a coupon security without a CUSIP. |
cusip | string | CUSIP of a note or bond; its terms are looked up. |
discount_rate_percent | number | Bank discount rate for a bill. |
frequency | integer | Coupon payments per year. Defaults to 2. |
maturity_date | string | Maturity, YYYY-MM-DD. Required for a bill. |
trade_date | string | Settlement date. Defaults to the most recent trading day. |
yield_percent | number | Yield to maturity for a coupon security. |
value_savings_bond Value a savings bond
Value a U.S. Series I or Series EE savings bond: what it is worth now, how it got there, and what the holder would actually receive. Bonds under five years old forfeit three months of interest on redemption, and bonds under twelve months cannot be redeemed at all, so the amount received can be less than the accrued value. The purchase date is the bond's issue date.
| Parameter | Type | Description |
|---|---|---|
purchased * | string | The bond's ISSUE date, YYYY-MM-DD. Not the year printed on the face — a wrong date shifts the whole rate schedule. |
series * | string | "I" is inflation-indexed; "EE" carries the 20-year doubling guarantee. |
denomination | number | Face value in dollars, e.g. 100. Defaults to the standard unit. |
valued_on | string | Valuation date. Defaults to today. |
get_savings_bond_rates Get savings bond rates
Get current and historical U.S. savings bond rates — the Series I composite, its fixed and inflation components, and Series EE rates by issue cohort — and optionally how many bonds the public holds and how many are being sold. An I bond's headline rate applies for six months only; the fixed component is the part that lasts.
| Parameter | Type | Description |
|---|---|---|
include | array | Extras. "ee_cohorts" groups EE bonds by the rate rules of their issue window; "sales" is TreasuryDirect volume, which spikes when the I bond rate is high. |
on | string | Valuation date. Defaults to today. |
get_treasury_index Get a Treasury index
Get Safe Rate's Treasury total-return indices — by maturity bucket, plus bills, TIPS, floating-rate and aggregate. Call with no code to list every index with its current level and discover the codes. These are TOTAL RETURN levels, not yields: a rising level usually means yields fell. Constructed by Safe Rate, not an official Treasury statistic.
| Parameter | Type | Description |
|---|---|---|
code | string | Index code, e.g. "broad", "1020", "TIPS". Omit to list every index with its latest level. |
constituents_on | string | Rebalance date for constituents. Defaults to the most recent — constituents exist on rebalance dates only, not daily. |
include | array | Extras. "fund_comparison" sets each index beside comparable public bond funds and applies to the no-code listing. |
on | string | With no code, returns every index's level as at this date instead of the latest. |
since | string | Start date for "daily_history". |
get_treasury_debt Get the federal debt statement
Get the U.S. federal debt from the monthly Treasury statement: debt held by the public, total public debt outstanding, and its composition, plus the STRIPS float on request. These two headline figures differ by trillions: debt held by the public excludes intragovernmental trust-fund holdings.
| Parameter | Type | Description |
|---|---|---|
include_strips | boolean | Also return how much of the debt is held as STRIPS — separated coupon and principal payments traded as zero-coupon instruments. |
on | string | Any date; the month-end statement in force on it is returned, so a mid-month date gives the prior month-end. Defaults to today. |
get_my_application Read my Universal Application
Requires the shopper's Safe Rate sign-in (scope poppy:read). Read the shopper's own Safe Rate Universal Application, the one application they build to share with the lenders they choose (building it is not applying for a loan): their loan scenario (price, down payment, ZIP, occupancy and so on), how far along it is, and its status. Identity details such as a Social Security number are never returned.
get_my_quotes Read my lender quotes
Requires the shopper's Safe Rate sign-in (scope poppy:read). List the quote requests the shopper sent to lenders and the offers that came back (rate, APR, points, product). Offers from Safe Rate Mortgage stay hidden until the shopper accepts the affiliated business disclosure on saferate.com.
start_my_application Start my Universal Application
Requires the shopper's Safe Rate sign-in (scope poppy:write). Start building the shopper's Universal Application from a loan scenario. If they already have one, nothing changes and it is returned. Holds no personal information: no name, SSN or date of birth.
| Parameter | Type | Description |
|---|---|---|
loanPurpose * | string | |
occupancy * | string | |
propertyValue * | number | |
zip * | string | |
costOverridesMonthly | object | |
creditBand | string | |
downPayment | number | |
hasMilitaryService | boolean | |
hoaMonthly | number | |
loanAmount | number | |
numberOfUnits | integer | |
propertyAddress | string | |
propertyAddressParts | object | |
propertyType | string | |
timeline | string | |
usdaArea | string | |
usdaIncome | string |
update_my_application Update my Universal Application
Requires the shopper's Safe Rate sign-in (scope poppy:write). Change answers in the loan scenario of the shopper's Universal Application. Send only the fields that change: everything else keeps its saved value, and nothing is saved if the result would be invalid. Cannot share the application or record an SSN — those are the shopper's own click on saferate.com.
| Parameter | Type | Description |
|---|---|---|
costOverridesMonthly | object | |
creditBand | string | |
downPayment | number | |
expected_updated_at | string | updated_at from your last read of the application. If the shopper (or anyone) changed it since, nothing is saved and you get error 'conflict': read it again first. |
hasMilitaryService | boolean | |
hoaMonthly | number | |
loanAmount | number | |
loanPurpose | string | |
numberOfUnits | integer | |
occupancy | string | |
propertyAddress | string | |
propertyAddressParts | object | |
propertyType | string | |
propertyValue | number | |
timeline | string | |
usdaArea | string | |
usdaIncome | string | |
zip | string |