Zillow API 一般搜索 [英] Zillow API General Search

查看:29
本文介绍了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天全站免登陆