View source: R/GetRateSummary.R
GetRateSummary | R Documentation |
The GetRateSummary API returns the current rates per loan type – as well as rates from a week ago – from Zillow Mortgage Marketplace. Current supported loan types are 30-year fixed, 15-year fixed, and 5/1 ARM. Rates are computed from real quotes borrowers receive from lenders just seconds before the rate data is returned. The GetRateSummary API returns rates for a specific state if the optional state parameter is used.
GetRateSummary( state = NULL, zws_id = getOption("ZillowR-zws_id"), url = "http://www.zillow.com/webservice/GetRateSummary.htm" )
state |
The state for which to return average mortgage rates. Two-letter state abbreviations should be used (AK, AL, AR, AZ, CA, CO, CT, DE, FL, GA, HI, IA, ID, IL, IN, KS, KY, LA, MA, MD, ME, MI, MN, MO, MS, MT, NC, ND, NE, NH, NJ, NM, NV, NY, OH, OK, OR, PA, RI, SC, SD, TN, TX, UT, VA, VT, WA, DC, WI, WV, WY). If omitted, national average mortgage rates are returned. |
zws_id |
The Zillow Web Service Identifier. Required. |
url |
URL for the GetRateSummary Web Service. Required. |
A named list with the following elements:
a list with the request parameters
a list of status code(s) and message(s) returned by the API
an XMLNode with the API-specific response
values. At this time, no further coercion is performed, so you
may have to use functions from the XML
package to extract
the desired output.
## Not run: GetRateSummary() GetRateSummary(state = 'WA') ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.