Zillow API常规搜索 [英] Zillow API General Search

查看:110
本文介绍了Zillow API常规搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Zillow API时遇到一些问题:

I have a few issues using the Zillow API:

  • 查询API
  • 获取特定数据

问题在于,我似乎找不到一种方法来使用Zillow API进行常规搜索,例如仅按 进行邮政编码搜索.这是深度搜索中的示例查询:

The issue is that I can't seem to find a way to use the Zillow API for general searches such as searching by only by zip code. Here is a sample query from the deep search:

<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进行更广泛的搜索?

That gives us a fair amount of data but it's too specific. I have tried to simply omit the address portion of the search and it returns an error. Is there a way to get a more general search using the Zillow or some other real estate API?

以上来自我查询的响应是关于一栋正在出售的房屋.实际上,它在哪儿都没有注明房子的标价.我的请求中是否缺少某些内容,或者API根本不提供这些内容?

The above response from my query is of a house that is currently for sale. No where does it actually state the list price for the house. Is there something that I am missing in my request or does the API simply not offer that?

  • 查看其他Zillow API
  • 操纵查询字符串

感谢您的帮助!另外,如果我可以使用某些具有所需功能的API,请告诉我!

Any help is appreciated! Also, if there is some API that I can use that has the functionality needed, let me know!

推荐答案

好的原因是因为它们首先不提供常规搜索数据,仅提供特定的和某些数据位.当涉及特定搜索(例如基于地址)时,他们为此提供了一个API,而不是常规搜索.

Ok the reason is because first they don't offer general search data, only specific and certain bits of data. When it comes to specific searches like address based, they offer an API for this, just not for general search.

但是,如果您问如何使用那里的API,请回复,我将提供一个示例.

However, if you are asking how to use there API please reply and I will provide an example.

这篇关于Zillow API常规搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆