taobao.pc.seo.shop.query (店铺信息查询)

获取店铺信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
req SeoShopRequest 必须 请求对象
  • └ shop_id
  • String
  • 必须
  • batch_1_xx
  • 店铺ID
  • └ source
  • String
  • 必须
  • xx
  • 请求来源, 联系接口管理员分配

响应参数

名称 类型 示例值 描述
result Result 请求响应信息
  • └ code
  • Number
  • 200
  • code
  • data
  • SeoShopResult
  • 店铺信息
  • └ shop_id
  • String
  • xxx
  • 店铺id
  • └ shop_name
  • String
  • xxx旗舰店
  • 店铺名称
  • └ shop_url
  • String
  • http://xx.xx
  • 店铺地址
  • └ star_name
  • String
  • 1钻
  • 店铺星级,星级<钻<皇冠<红冠
  • └ good_rate
  • Number
  • 0.9899
  • 店铺好评率(好评数/评价书目)
  • └ good_num
  • Number
  • 12345
  • 店铺好评数
  • └ shop_type
  • Number
  • 1
  • 店铺类型,0:C店,1:旗舰店,2:专卖店,3:专营店
  • └ fans
  • Number
  • 1000
  • 粉丝数
  • └ shop_time
  • Number
  • 1000
  • 开店时长(单位:小时)
  • └ success
  • Boolean
  • true
  • success
  • └ message
  • String
  • OK
  • message

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
PcSeoShopQueryRequest req = new PcSeoShopQueryRequest();
PcSeoShopQueryRequest.SeoShopRequest obj1 = new PcSeoShopQueryRequest.SeoShopRequest();
obj1.setShopId("batch_1_xx");
obj1.setSource("xx");
req.setReq(obj1);
PcSeoShopQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<pc_seo_shop_query_response>
    <result>
        <code>200</code>
        <data>
            <shop_id>xxx</shop_id>
            <shop_name>xxx旗舰店</shop_name>
            <shop_url>http://xx.xx</shop_url>
            <star_name>1钻</star_name>
            <good_rate>0.9899</good_rate>
            <good_num>12345</good_num>
            <shop_type>1</shop_type>
            <fans>1000</fans>
            <shop_time>1000</shop_time>
        </data>
        <success>true</success>
        <message>OK</message>
    </result>
</pc_seo_shop_query_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>

错误码解释

错误码 错误描述 解决方案
isv.1000 参数错误 检查传入参数是否合法
isv.1002 并发请求过高 降低并发,稍后再试
isv.1003 店铺ID无效 传入正确的店铺ID
isv.1005 远程服务执行错误 稍后再试或联系管理员

API工具

如何获得此API

FAQ

返回
顶部