Example Webservice / API call- Zillow -Get deep search results

In this review we follow-up on our API webinar showing how to access Real estate / home values through the Zillow API.  Here is the code I walk through in the below video.   This API is pretty straight-foward and easy to use.  It can be a lot of fun to see what your home, and your neighbor’s is worth!

IniRead, API_Token ,Auth.ini,API, Token

QueryString:=QueryString_Builder({"address":"836 Kilbridge Lane","citystatezip":"Coppell,TX","zws-id":API_Token})
;~  QueryString:=QueryString_Builder({"address":"31 Boulevard terrace","citystatezip":"Novato,CA","zws-id":API_Token})

;***********API call to Zillow*******************
    HTTP := ComObjCreate("WinHttp.WinHttpRequest.5.1")
    HTTP.Open("GET", EndPoint . QueryString)
;~  SciTE_Output(HTTP.ResponseText) ;Text,Clear=1,LineBreak=1,Exit=0
    SciTE_Output(sXML_Pretty(HTTP.ResponseText,"   ")) ;Text,Clear=1,LineBreak=1,Exit=0

;***********Query string builder*******************
for key, value in kvp
  queryString.=((A_Index="1")?(url "?"):("&")) key "=" value
return queryString

Video walking through the API code



Comments are closed.