我在使用ZillowAPI时遇到了一些问题:
问题是,我似乎找不到一种方法来使用ZillowAPI进行一般搜索,例如仅按邮政编码搜索。这是来自深度搜索的示例查询:
<SearchResults:searchresults xsi:schemaLocation="http://www.zillow.com/static/xsd/SearchResults.xsd http://www.zillowstatic.com/vstatic/419b583f682a74b83f007039dd9c49f8/static/xsd/SearchResults.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SearchResults="http://www.zillow.com/static/xsd/SearchResults.xsd">
<request>
<address>15096 Oak Creek Rd</address>
<citystatezip>El Cajon, CA</citystatezip>
</request>
<message>
<text>Request successfully processed</text>
<code>0</code>
</message>
<response>
<results>
<result>
<zpid>16893601</zpid>
<links>
<homedetails>http://www.zillow.com/homedetails/15096-Oak-Creek-Rd-El-Cajon-CA-92021/16893601_zpid/</homedetails>
<graphsanddata>http://www.zillow.com/homedetails/15096-Oak-Creek-Rd-El-Cajon-CA-92021/16893601_zpid/#charts-and-data</graphsanddata>
<mapthishome>http://www.zillow.com/homes/16893601_zpid/</mapthishome>
<comparables>http://www.zillow.com/homes/comps/16893601_zpid/</comparables>
</links>
<address>
<street>15096 Oak Creek Rd</street>
<zipcode>92021</zipcode>
<city>El Cajon</city>
<state>CA</state>
<latitude>32.86576</latitude>
<longitude>-116.847964</longitude>
</address>
<FIPScounty>6073</FIPScounty>
<useCode>SingleFamily</useCode>
<taxAssessmentYear>2012</taxAssessmentYear>
<taxAssessment>496002.0</taxAssessment>
<yearBuilt>2006</yearBuilt>
<lotSizeSqFt>108900</lotSizeSqFt>
<finishedSqFt>2700</finishedSqFt>
<bathrooms>3.0</bathrooms>
<bedrooms>3</bedrooms>
<totalRooms>7</totalRooms>
<lastSoldDate>03/22/1999</lastSoldDate>
<lastSoldPrice currency="USD">268000</lastSoldPrice>
<zestimate>
<amount currency="USD">581783</amount>
<last-updated>05/12/2013</last-updated>
<oneWeekChange deprecated="true"/>
<valueChange duration="30" currency="USD">12050</valueChange>
<valuationRange>
<low currency="USD">523605</low>
<high currency="USD">692322</high>
</valuationRange>
<percentile>0</percentile>
</zestimate>
<localRealEstate>
<region id="38333" type="city" name="El Cajon">
<links>
<overview>http://www.zillow.com/local-info/CA-El-Cajon/r_38333/</overview>
<forSaleByOwner>http://www.zillow.com/el-cajon-ca/fsbo/</forSaleByOwner>
<forSale>http://www.zillow.com/el-cajon-ca/</forSale>
</links>
</region>
</localRealEstate>
</result>
</results>
</response>
</SearchResults:searchresults>
这给了我们相当多的数据,但它太具体了。我试图简单地省略搜索的地址部分,它返回一个错误。有没有办法使用Zillow或其他房地产API进行更通用的搜索?
我的问题的上述回答是关于一栋目前正在出售的房子。没有,它实际上在哪里说明了房子的标价。我的请求中缺少了什么,还是API根本没有提供?
任何帮助都很感激!此外,如果有一些API,我可以使用,具有所需的功能,让我知道!
好的,原因是首先他们不提供通用搜索数据,只提供特定的和特定的数据位。当涉及到基于地址的特定搜索时,他们为此提供了API,只是不提供通用搜索。
但是,如果你问如何使用那里API请回复,我会提供一个例子。
不,它实际上在哪里说明了房子的标价。
看看这些字段:
...
<lastSoldPrice currency="USD">268000</lastSoldPrice>
...
<zestimate>
<amount currency="USD">581783</amount>
...
<valuationRange>
<low currency="USD">523605</low>
<high currency="USD">692322</high>
</valuationRange>
...
</zestimate>
...