POST api/houseprice/getdefault

获取房价默认页的数据

默认返回json数据,若要返回xml格式数据在访问地址后加上xml=true

Request 信息

URI 参数

None.

Body 参数

参数

DefaultModel
名称说明数据类型附加信息
IsGetCount

是否返回成交数量

boolean

None.

IsGetRegionPrice

是否返回区域房价

boolean

None.

IsGetRecommendTrade

是否返回推荐二手房

boolean

None.

IsGetRank

是否返回跌幅榜

boolean

None.

RegionCode

可选,区域,优先级大于城市

string

Matching regular expression pattern: ^\d{6}$

BoardId

可选,板块id,优先级大于区域

integer

None.

BuildingId

可选,小区id,优先级大于板块id

integer

None.

EndDate

[可选]截至日期,如2014-11,表示2014年11月

string

None.

Months

可选,默认6个月

integer

Range: inclusive between 1 and 12

City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "IsGetCount": true,
  "IsGetRegionPrice": true,
  "IsGetRecommendTrade": true,
  "IsGetRank": true,
  "RegionCode": "sample string 5",
  "BoardId": 1,
  "BuildingId": 1,
  "EndDate": "sample string 6",
  "Months": 1,
  "City": "sample string 7",
  "Token": "sample string 8",
  "Platform": "sample string 9"
}

application/xml, text/xml

示例:
<DefaultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.HousePrice">
  <Platform xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 9</Platform>
  <Token xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 8</Token>
  <City xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 7</City>
  <BoardId>1</BoardId>
  <BuildingId>1</BuildingId>
  <EndDate>sample string 6</EndDate>
  <Months>1</Months>
  <RegionCode>sample string 5</RegionCode>
  <IsGetCount>true</IsGetCount>
  <IsGetRank>true</IsGetRank>
  <IsGetRecommendTrade>true</IsGetRecommendTrade>
  <IsGetRegionPrice>true</IsGetRegionPrice>
</DefaultModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

HousePriceIndexResult
名称说明数据类型附加信息
HangExchangePriceChart

挂牌成交价格图表数据

HangExchangePriceChart

None.

ExchangeCountChart

成交量图表数据

ExchangeCountChart

None.

RegionPriceResult

区域价格结果

RegionPriceResult

None.

RecommentList

推荐二手房列表

TradeListResult

None.

PriceUpList

涨幅

Collection of BuildingPriceRank

None.

PriceDownList

跌幅

Collection of BuildingPriceRank

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "HangExchangePriceChart": {
    "Labels": [
      "sample string 1",
      "sample string 2"
    ],
    "BuildingPrice": [
      1,
      2
    ],
    "ExchangePrice": [
      1,
      2
    ],
    "BuildingRate": [
      1.1,
      2.1
    ],
    "ExchangeRate": [
      1.1,
      2.1
    ],
    "ErrorCode": 0,
    "Msg": "sample string 1"
  },
  "ExchangeCountChart": {
    "Labels": [
      "sample string 1",
      "sample string 2"
    ],
    "Count": [
      1,
      2
    ],
    "ExCount": 1,
    "ThreeMonthCount": 2,
    "ExPrice": 3.0,
    "ThreeMonthPrice": 4.0,
    "ErrorCode": 0,
    "Msg": "sample string 5"
  },
  "RegionPriceResult": {
    "RegionPrices": [
      {
        "RegionCode": "sample string 1",
        "RegionName": "sample string 2",
        "HangPriceAvg": 3.0,
        "HangPriceAvgGrowth": 4.0,
        "TradeCount": 5,
        "LeaseCount": 6
      },
      {
        "RegionCode": "sample string 1",
        "RegionName": "sample string 2",
        "HangPriceAvg": 3.0,
        "HangPriceAvgGrowth": 4.0,
        "TradeCount": 5,
        "LeaseCount": 6
      }
    ],
    "ErrorCode": 0,
    "Msg": "sample string 1"
  },
  "RecommentList": {
    "List": [
      {
        "IsTaxless": true,
        "IsSchoolHouse": true,
        "IsUrgentSale": true,
        "IsHot": true,
        "id": 5,
        "HouseCommend": "sample string 6",
        "Pic": "sample string 7",
        "BuildingName": "sample string 8",
        "BoardName": "sample string 9",
        "RoomCount": 10,
        "HollCount": 11,
        "Floor": 12,
        "FloorCount": 13,
        "RefPrice": 14.1,
        "PriceUnit": "sample string 15",
        "BldgArea": 16.1,
        "IsExpert": true,
        "Dist": 18.0
      },
      {
        "IsTaxless": true,
        "IsSchoolHouse": true,
        "IsUrgentSale": true,
        "IsHot": true,
        "id": 5,
        "HouseCommend": "sample string 6",
        "Pic": "sample string 7",
        "BuildingName": "sample string 8",
        "BoardName": "sample string 9",
        "RoomCount": 10,
        "HollCount": 11,
        "Floor": 12,
        "FloorCount": 13,
        "RefPrice": 14.1,
        "PriceUnit": "sample string 15",
        "BldgArea": 16.1,
        "IsExpert": true,
        "Dist": 18.0
      }
    ],
    "TotalCount": 1,
    "TotalPage": 2,
    "ErrorCode": 0,
    "Msg": "sample string 3"
  },
  "PriceUpList": [
    {
      "BuildingId": 1,
      "TradeHangPriceAvg": 2.0,
      "TradeHangPriceRate": 3.0,
      "BuildingName": "sample string 4"
    },
    {
      "BuildingId": 1,
      "TradeHangPriceAvg": 2.0,
      "TradeHangPriceRate": 3.0,
      "BuildingName": "sample string 4"
    }
  ],
  "PriceDownList": [
    {
      "BuildingId": 1,
      "TradeHangPriceAvg": 2.0,
      "TradeHangPriceRate": 3.0,
      "BuildingName": "sample string 4"
    },
    {
      "BuildingId": 1,
      "TradeHangPriceAvg": 2.0,
      "TradeHangPriceRate": 3.0,
      "BuildingName": "sample string 4"
    }
  ],
  "ErrorCode": 0,
  "Msg": "sample string 1"
}

application/xml, text/xml

示例:
<HousePriceIndexResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.HousePrice">
  <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">SUCCESS</ErrorCode>
  <Msg xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 1</Msg>
  <ExchangeCountChart>
    <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">SUCCESS</ErrorCode>
    <Msg xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 5</Msg>
    <Count xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:long>1</d3p1:long>
      <d3p1:long>2</d3p1:long>
    </Count>
    <ExCount>1</ExCount>
    <ExPrice>3</ExPrice>
    <Labels xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </Labels>
    <ThreeMonthCount>2</ThreeMonthCount>
    <ThreeMonthPrice>4</ThreeMonthPrice>
  </ExchangeCountChart>
  <HangExchangePriceChart>
    <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">SUCCESS</ErrorCode>
    <Msg xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 1</Msg>
    <BuildingPrice xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:long>1</d3p1:long>
      <d3p1:long>2</d3p1:long>
    </BuildingPrice>
    <BuildingRate xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:float>1.1</d3p1:float>
      <d3p1:float>2.1</d3p1:float>
    </BuildingRate>
    <ExchangePrice xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:long>1</d3p1:long>
      <d3p1:long>2</d3p1:long>
    </ExchangePrice>
    <ExchangeRate xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:float>1.1</d3p1:float>
      <d3p1:float>2.1</d3p1:float>
    </ExchangeRate>
    <Labels xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </Labels>
  </HangExchangePriceChart>
  <PriceDownList>
    <HousePriceIndexResult.BuildingPriceRank>
      <BuildingId>1</BuildingId>
      <BuildingName>sample string 4</BuildingName>
      <TradeHangPriceAvg>2</TradeHangPriceAvg>
      <TradeHangPriceRate>3</TradeHangPriceRate>
    </HousePriceIndexResult.BuildingPriceRank>
    <HousePriceIndexResult.BuildingPriceRank>
      <BuildingId>1</BuildingId>
      <BuildingName>sample string 4</BuildingName>
      <TradeHangPriceAvg>2</TradeHangPriceAvg>
      <TradeHangPriceRate>3</TradeHangPriceRate>
    </HousePriceIndexResult.BuildingPriceRank>
  </PriceDownList>
  <PriceUpList>
    <HousePriceIndexResult.BuildingPriceRank>
      <BuildingId>1</BuildingId>
      <BuildingName>sample string 4</BuildingName>
      <TradeHangPriceAvg>2</TradeHangPriceAvg>
      <TradeHangPriceRate>3</TradeHangPriceRate>
    </HousePriceIndexResult.BuildingPriceRank>
    <HousePriceIndexResult.BuildingPriceRank>
      <BuildingId>1</BuildingId>
      <BuildingName>sample string 4</BuildingName>
      <TradeHangPriceAvg>2</TradeHangPriceAvg>
      <TradeHangPriceRate>3</TradeHangPriceRate>
    </HousePriceIndexResult.BuildingPriceRank>
  </PriceUpList>
  <RecommentList xmlns:d2p1="http://schemas.datacontract.org/2004/07/API.Models.API.Trade">
    <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">SUCCESS</ErrorCode>
    <Msg xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 3</Msg>
    <TotalCount xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">1</TotalCount>
    <TotalPage xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">2</TotalPage>
    <d2p1:List>
      <d2p1:TradeListResult.Trade>
        <BldgArea xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">16.1</BldgArea>
        <BoardName xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 9</BoardName>
        <BuildingName xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 8</BuildingName>
        <Dist xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">18</Dist>
        <Floor xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">12</Floor>
        <FloorCount xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">13</FloorCount>
        <HollCount xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">11</HollCount>
        <HouseCommend xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 6</HouseCommend>
        <IsExpert xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">true</IsExpert>
        <Pic xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 7</Pic>
        <PriceUnit xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 15</PriceUnit>
        <RefPrice xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">14.1</RefPrice>
        <RoomCount xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">10</RoomCount>
        <id xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">5</id>
        <d2p1:IsHot>true</d2p1:IsHot>
        <d2p1:IsSchoolHouse>true</d2p1:IsSchoolHouse>
        <d2p1:IsTaxless>true</d2p1:IsTaxless>
        <d2p1:IsUrgentSale>true</d2p1:IsUrgentSale>
      </d2p1:TradeListResult.Trade>
      <d2p1:TradeListResult.Trade>
        <BldgArea xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">16.1</BldgArea>
        <BoardName xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 9</BoardName>
        <BuildingName xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 8</BuildingName>
        <Dist xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">18</Dist>
        <Floor xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">12</Floor>
        <FloorCount xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">13</FloorCount>
        <HollCount xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">11</HollCount>
        <HouseCommend xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 6</HouseCommend>
        <IsExpert xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">true</IsExpert>
        <Pic xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 7</Pic>
        <PriceUnit xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 15</PriceUnit>
        <RefPrice xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">14.1</RefPrice>
        <RoomCount xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">10</RoomCount>
        <id xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">5</id>
        <d2p1:IsHot>true</d2p1:IsHot>
        <d2p1:IsSchoolHouse>true</d2p1:IsSchoolHouse>
        <d2p1:IsTaxless>true</d2p1:IsTaxless>
        <d2p1:IsUrgentSale>true</d2p1:IsUrgentSale>
      </d2p1:TradeListResult.Trade>
    </d2p1:List>
  </RecommentList>
  <RegionPriceResult>
    <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">SUCCESS</ErrorCode>
    <Msg xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 1</Msg>
    <RegionPrices>
      <RegionPriceResult.RegionPrice>
        <HangPriceAvg>3</HangPriceAvg>
        <HangPriceAvgGrowth>4</HangPriceAvgGrowth>
        <LeaseCount>6</LeaseCount>
        <RegionCode>sample string 1</RegionCode>
        <RegionName>sample string 2</RegionName>
        <TradeCount>5</TradeCount>
      </RegionPriceResult.RegionPrice>
      <RegionPriceResult.RegionPrice>
        <HangPriceAvg>3</HangPriceAvg>
        <HangPriceAvgGrowth>4</HangPriceAvgGrowth>
        <LeaseCount>6</LeaseCount>
        <RegionCode>sample string 1</RegionCode>
        <RegionName>sample string 2</RegionName>
        <TradeCount>5</TradeCount>
      </RegionPriceResult.RegionPrice>
    </RegionPrices>
  </RegionPriceResult>
</HousePriceIndexResult>