注意:以下文档只适用于TOP接口,请谨慎使用!

alibaba.decoration.content.search (内容搜索)

内容搜索

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
owner_type Number 必须 2 业务归属 1:佳装 2:线下工作台
size Number 必须 10
  • 默认值:10
  • 每页数量
    page Number 必须 1
  • 默认值:1
  • 分页的页数,从1开始
    param ContentSearchReq 必须 搜索请求参数
    • └ outer_store_id
    • String
    • 可选
    • 235086149575151616
    • 外部门店id
    • └ external_item_code_list
    • String []
    • 可选
    • [235086149575151616]
    • 外部商品id
    • └ title
    • String
    • 可选
    • 每平每屋
    • 内容名称
    • └ room_type_list
    • String []
    • 可选
    • ["Stairwell","StorageRoom"]
    • 房间类型
    • └ space_type
    • String
    • 可选
    • 0
    • 空间
    • └ style_list
    • String []
    • 可选
    • ["SCANDINAVIAN","MASHUP"]
    • 中国
    • └ content_type_list
    • String []
    • 可选
    • [0,1]
    • 内容类型
    • └ min_area
    • String
    • 可选
    • 0
    • 最小面积
    • └ replaceable
    • Boolean
    • 可选
    • false
    • 是否可替换商品
    • └ max_area
    • String
    • 可选
    • 60
    • 最大面积
    • └ living_room
    • Number
    • 可选
    • 1
    • └ bed_room
    • Number
    • 可选
    • 2
    • └ bath_room
    • Number
    • 可选
    • 1
    • └ province_code
    • Number
    • 可选
    • 310000
    • 浙江省
    • └ city_code
    • Number
    • 可选
    • 310100
    • 杭州市
    • └ district_code
    • Number
    • 可选
    • 310101
    • 余杭区
    • └ poi_id
    • String
    • 可选
    • B00155KUM0
    • 小区
    • └ house_type_id
    • String
    • 可选
    • 60288324-1d57-4a57-9246-63b63f07b487
    • 户型id
    • └ start_time
    • Number
    • 可选
    • 1672506061000
    • 开始时间
    • └ end_time
    • Number
    • 可选
    • 1672506061000
    • 结束时间

    响应参数

    名称 类型 示例值 描述
    result Result result
    • └ message_flag
    • Boolean
    • true
    • 成功
    • └ message_code
    • Number
    • 100399999
    • 返回错误码
    • └ message_info
    • String
    • 程序发生异常
    • 错误message
    • data
    • OpenPagingWrapResult
    • 返回结果
    • paging_data
    • OpenPagingData
    • 分页信息
    • └ page
    • Number
    • 1
    • 分页的页数,从1开始
    • └ size
    • Number
    • 10
    • 每页数量
    • └ total
    • String
    • 100
    • 总数
    • list
    • ContentResp []
    • 分页的具体数据
    • └ outer_store_id
    • String
    • 4234234
    • 外部门店id
    • └ content_id
    • String
    • 5748383
    • 内容id(加密)
    • └ title
    • String
    • 每平每屋
    • 标题
    • style_list
    • StyleType
    • [{"key":"china","value":"中国"}]
    • └ key
    • String
    • china
    • china
    • └ value
    • String
    • 中国
    • 中国
    • cover_info
    • CoverDTO
    • 封面
    • └ cover_url
    • String
    • http
    • 封面图地址
    • └ width
    • String
    • 800
    • └ height
    • String
    • 800
    • └ house_area
    • String
    • 100
    • 房屋面积
    • room_type
    • RoomType
    • 房间类型
    • └ key
    • String
    • bedroom
    • key
    • └ value
    • String
    • value
    • room_count_info
    • RoomCountDTO
    • 房间户型
    • └ living_room
    • String
    • 1厅
    • └ bed_room
    • String
    • 3室
    • └ bath_room
    • String
    • 1卫
    • └ replaceable
    • Boolean
    • true
    • 是否可替换商品
    • content_type
    • ContentType
    • 内容类型
    • └ key
    • String
    • key
    • └ value
    • String
    • value
    • └ navipano
    • Boolean
    • true
    • 是否全屋漫游图

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    AlibabaDecorationContentSearchRequest req = new AlibabaDecorationContentSearchRequest();
    req.setOwnerType(2L);
    req.setSize(10L);
    req.setPage(1L);
    AlibabaDecorationContentSearchRequest.ContentSearchReq obj1 = new AlibabaDecorationContentSearchRequest.ContentSearchReq();
    obj1.setOuterStoreId("235086149575151616");
    obj1.setExternalItemCodeList("235086149575151616");
    obj1.setTitle("每平每屋");
    obj1.setRoomTypeList(""Stairwell","StorageRoom"");
    obj1.setSpaceType("0");
    obj1.setStyleList(""SCANDINAVIAN","MASHUP"");
    obj1.setContentTypeList("0,1");
    obj1.setMinArea("0");
    obj1.setReplaceable(false);
    obj1.setMaxArea("60");
    obj1.setLivingRoom(1L);
    obj1.setBedRoom(2L);
    obj1.setBathRoom(1L);
    obj1.setProvinceCode(310000L);
    obj1.setCityCode(310100L);
    obj1.setDistrictCode(310101L);
    obj1.setPoiId("B00155KUM0");
    obj1.setHouseTypeId("60288324-1d57-4a57-9246-63b63f07b487");
    obj1.setStartTime(1672506061000L);
    obj1.setEndTime(1672506061000L);
    req.setParam(obj1);
    AlibabaDecorationContentSearchResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <alibaba_decoration_content_search_response>
        <result>
            <message_flag>true</message_flag>
            <message_code>100399999</message_code>
            <message_info>程序发生异常</message_info>
            <data>
                <paging_data>
                    <page>1</page>
                    <size>10</size>
                    <total>100</total>
                </paging_data>
                <list>
                    <content_resp>
                        <outer_store_id>4234234</outer_store_id>
                        <content_id>5748383</content_id>
                        <title>每平每屋</title>
                        <style_list>
                            <key>china</key>
                            <value>中国</value>
                        </style_list>
                        <cover_info>
                            <cover_url>http</cover_url>
                            <width>800</width>
                            <height>800</height>
                        </cover_info>
                        <house_area>100</house_area>
                        <room_type>
                            <key>bedroom</key>
                            <value>厅</value>
                        </room_type>
                        <room_count_info>
                            <living_room>1厅</living_room>
                            <bed_room>3室</bed_room>
                            <bath_room>1卫</bath_room>
                        </room_count_info>
                        <replaceable>true</replaceable>
                        <content_type>
                            <key>key</key>
                            <value>value</value>
                        </content_type>
                        <navipano>true</navipano>
                    </content_resp>
                </list>
            </data>
        </result>
    </alibaba_decoration_content_search_response>

    异常示例

    • XML示例
    • JSON示例
    <error_response>
        <code>50</code>
        <msg>Remote service error</msg>
        <sub_code>isv.invalid-parameter</sub_code>
        <sub_msg>非法参数</sub_msg>
    </error_response>

    错误码解释

    错误码 错误描述 解决方案

    API工具

    如何获得此API

    FAQ

    返回
    顶部