POST api/trade/getlistforjjr

获取二手房列表

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

Request 信息

URI 参数

None.

Body 参数

参数

ListForJjrModel
名称说明数据类型附加信息
Type

房源类别

ListType

Required

RegionCode

区域id

string

None.

BoardId

版块id

integer

None.

Price

价格

decimal number

None.

RoomCount

integer

None.

HollCount

integer

None.

LowArea

最低面积

decimal number

None.

HighArea

最高面积

decimal number

None.

Mode

查询模式

SearchMode

None.

Pi

PageIndex 页码,默认1

integer

None.

Ps

PageSize 页容量,默认20,最大50

integer

None.

City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "Type": 0,
  "RegionCode": "sample string 1",
  "BoardId": 1,
  "Price": 1.1,
  "RoomCount": 1,
  "HollCount": 1,
  "LowArea": 1.1,
  "HighArea": 1.1,
  "Mode": 0,
  "Pi": 1,
  "Ps": 1,
  "City": "sample string 2",
  "Token": "sample string 3",
  "Platform": "sample string 4"
}

application/xml, text/xml

示例:
<ListForJjrModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">
  <Platform xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 4</Platform>
  <Token xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 3</Token>
  <City xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 2</City>
  <Pi xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">1</Pi>
  <Ps xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">1</Ps>
  <BoardId>1</BoardId>
  <HighArea>1.1</HighArea>
  <HollCount>1</HollCount>
  <LowArea>1.1</LowArea>
  <Mode>Normal</Mode>
  <Price>1.1</Price>
  <RegionCode>sample string 1</RegionCode>
  <RoomCount>1</RoomCount>
  <Type>Online</Type>
</ListForJjrModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

TradeListForJjrResult
名称说明数据类型附加信息
Trades

房源列表

Collection of TradeListForJjr

None.

ExpireDate

有效期:天

integer

None.

DisplayDate

有效展示期:天

integer

None.

TotalCount

总记录数

integer

None.

TotalPage

总页数

integer

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "Trades": [
    {
      "Id": 1,
      "BuildingName": "sample string 2",
      "RegionName": "sample string 3",
      "BoardName": "sample string 4",
      "HouseCommend": "sample string 5",
      "RoomCount": 6,
      "HollCount": 7,
      "BldgArea": 8.0,
      "RefPrice": 9.0,
      "Pics": "sample string 10",
      "IsUrgentSale": true,
      "IsHot": true,
      "Selection": true,
      "EndTime": "2020-03-29T04:13:11.4520288+08:00",
      "CreateTime": "2020-03-29T04:13:11.4520288+08:00",
      "LastModifyTime": "2020-03-29T04:13:11.4520288+08:00",
      "RefTime": "2020-03-29T04:13:11.4520288+08:00",
      "Quality": true,
      "ViewCount": 19,
      "YesterdayPv": 20,
      "CountRefZero": 21,
      "IsRealRef": true,
      "Floor": 23,
      "FloorCount": 24
    },
    {
      "Id": 1,
      "BuildingName": "sample string 2",
      "RegionName": "sample string 3",
      "BoardName": "sample string 4",
      "HouseCommend": "sample string 5",
      "RoomCount": 6,
      "HollCount": 7,
      "BldgArea": 8.0,
      "RefPrice": 9.0,
      "Pics": "sample string 10",
      "IsUrgentSale": true,
      "IsHot": true,
      "Selection": true,
      "EndTime": "2020-03-29T04:13:11.4520288+08:00",
      "CreateTime": "2020-03-29T04:13:11.4520288+08:00",
      "LastModifyTime": "2020-03-29T04:13:11.4520288+08:00",
      "RefTime": "2020-03-29T04:13:11.4520288+08:00",
      "Quality": true,
      "ViewCount": 19,
      "YesterdayPv": 20,
      "CountRefZero": 21,
      "IsRealRef": true,
      "Floor": 23,
      "FloorCount": 24
    }
  ],
  "ExpireDate": 1,
  "DisplayDate": 2,
  "TotalCount": 3,
  "TotalPage": 4,
  "ErrorCode": 0,
  "Msg": "sample string 5"
}

application/xml, text/xml

示例:
<TradeListForJjrResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="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 5</Msg>
  <TotalCount xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">3</TotalCount>
  <TotalPage xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">4</TotalPage>
  <DisplayDate>2</DisplayDate>
  <ExpireDate>1</ExpireDate>
  <Trades>
    <TradeListForJjrResult.TradeListForJjr>
      <BldgArea>8</BldgArea>
      <BoardName>sample string 4</BoardName>
      <BuildingName>sample string 2</BuildingName>
      <CountRefZero>21</CountRefZero>
      <CreateTime>2020-03-29T04:13:11.4520288+08:00</CreateTime>
      <EndTime>2020-03-29T04:13:11.4520288+08:00</EndTime>
      <Floor>23</Floor>
      <FloorCount>24</FloorCount>
      <HollCount>7</HollCount>
      <HouseCommend>sample string 5</HouseCommend>
      <Id>1</Id>
      <IsHot>true</IsHot>
      <IsRealRef>true</IsRealRef>
      <IsUrgentSale>true</IsUrgentSale>
      <LastModifyTime>2020-03-29T04:13:11.4520288+08:00</LastModifyTime>
      <Pics>sample string 10</Pics>
      <Quality>true</Quality>
      <RefPrice>9</RefPrice>
      <RefTime>2020-03-29T04:13:11.4520288+08:00</RefTime>
      <RegionName>sample string 3</RegionName>
      <RoomCount>6</RoomCount>
      <Selection>true</Selection>
      <ViewCount>19</ViewCount>
      <YesterdayPv>20</YesterdayPv>
    </TradeListForJjrResult.TradeListForJjr>
    <TradeListForJjrResult.TradeListForJjr>
      <BldgArea>8</BldgArea>
      <BoardName>sample string 4</BoardName>
      <BuildingName>sample string 2</BuildingName>
      <CountRefZero>21</CountRefZero>
      <CreateTime>2020-03-29T04:13:11.4520288+08:00</CreateTime>
      <EndTime>2020-03-29T04:13:11.4520288+08:00</EndTime>
      <Floor>23</Floor>
      <FloorCount>24</FloorCount>
      <HollCount>7</HollCount>
      <HouseCommend>sample string 5</HouseCommend>
      <Id>1</Id>
      <IsHot>true</IsHot>
      <IsRealRef>true</IsRealRef>
      <IsUrgentSale>true</IsUrgentSale>
      <LastModifyTime>2020-03-29T04:13:11.4520288+08:00</LastModifyTime>
      <Pics>sample string 10</Pics>
      <Quality>true</Quality>
      <RefPrice>9</RefPrice>
      <RefTime>2020-03-29T04:13:11.4520288+08:00</RefTime>
      <RegionName>sample string 3</RegionName>
      <RoomCount>6</RoomCount>
      <Selection>true</Selection>
      <ViewCount>19</ViewCount>
      <YesterdayPv>20</YesterdayPv>
    </TradeListForJjrResult.TradeListForJjr>
  </Trades>
</TradeListForJjrResult>