通过淘宝商品编码查询同款商品或相似商品
标识:MWsearchAppSearchSame
- 接口地址:
https://way.jd.com/TONGLI/MWsearchAppSearchSame
- 请求方式:
HTTPS GET POST
- 请求示例:
https://way.jd.com/TONGLI/MWsearchAppSearchSame?num_iid=610152316100&page_num=1&page_size=10&sort=1&mode=0&appkey=您申请的APPKEY
QUERY请求参数
- 公共请求参数
-
名称 类型 必填 示例值 描述 appkey String 是 1 您申请的appkey - 业务请求参数
-
名称 类型 必填 示例值 描述 num_iid String 是 610152316100 商品编码,即待查询同款的商品。 page_num Number 否 1 页码 page_size Number 否 10 每页数据条数,最大值20 sort Number 否 1 排序方式,1-综合排序,2-新品排序,3-销量由高到低,4-销量由低到高,5-价格由高到低,6-价格由低到高,7-信用由高到低,8-信用由低到高 start_price String 否 价格限定上限,需要与价格限定下限参数一起使用。 end_price String 否 价格限定下限,需要与价格限定上限参数一起使用。 keyword String 否 搜索的关键词内容,在结果内查询。 mode String 否 0 搜索模式, 0 - 搜索相似商品 1 - 搜索同款商品
返回参数
- 公共返回参数
-
名称 类型 示例值 描述 code string 10000 更多返回参数示例值请参看“错误参照码” charge boolean false 或 true false:不扣费 true:扣费 remain long 1305 数据剩余次数 msg string 查询成功 更多返回参数示例值请参看“错误参照码” result object {...} 数据查询结果 - 业务返回参数
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
ret_id | number | 132102303109376200 | 请求ID |
ret_body | string | {"totalPage":"139","sortBar":{"sortBars":[]},"tabs":[],"pageSize":"1","pageName":"MainSrp","selecthelper":{"hasStatistics":"false","tip":""},"totalResults":"139","abtest":"25","queryTagging":{"param":"","guide":"false"},"parameter":"q","sortMenu":{"showStyle":"true","showFilter":"true","sortBar":[{"showText":"综合","type":"dropList","subSort":[{"trace":"Populate-Desc","showText":"综合","selected":"true","paramValue":"_coefp"},{"trace":"Credit-Desc","showText":"信用","selected":"false","paramValue":"_ratesum"}],"selected":"true"},{"trace":"Sale-Desc","showText":"销量","type":"normal","selected":"false","paramValue":"_sale"},{"showText":"价格","type":"toggle","subSort":[{"trace":"Price-Asc","showText":"价格","selected":"false","paramValue":"bid"},{"trace":"Price-Desc","showText":"价格","selected":"false","paramValue":"_bid"}],"selected":"false"}]},"order_by":"_coefp","style":"","page":"1","RN":"7b8cb75b9062943058e775708ea472c0","filterMod":[{"filterOption":[{"paramKey":"catmap","showText":"女装","paramValue":"50102996"}],"trace":"FilterCategory","bizName":"propCat","showText":"全部类目","unfoldRow":"2"},{"priceOption":[],"bizName":"price","showText":"价格区间"},{"bizName":"location","showText":"发货地"}],"paramValue":"","itemsArray":[{"uniqpid":"-367971282","goodRate":"98.71","sellerLoc":"广东 广州","priceWap":"47.98","priceWithRate":"47.98","zkRate":"9995","uprightImg":"http://g.search.alicdn.com/img/bao/uploaded/i4/i3/192707956/O1CN012deoOa28dtdpOFjOH_!!0-item_pic.jpg","title":"一字领露肩网纱夏季性感名媛连衣裙","type":"fixed","tItemType":"nt_auction","nick":"倩影韩风","autoPost":"0","isCod":"0","auctionURL":"http://a.m.taobao.com/i597447069544.htm?&utd_id=null&v=1.0&sid=f886eb91d4852d756df086447d402dcd","isprepay":"1","shipping":"0.00","spuParams":[],"pos":0,"isInLimitPromotion":"true","price":"48.00","coinInfo":"金币抵2%","ordinaryPostFee":"0.00","sameCount":"177","isP4p":"false","area":"广州","sold":"189","quantity":"19525","zkTime":"0","item_id":"597447069544","promotedService":"1","priceColor":"#000000","desScore":"4.73:-1.44","auctionTag":"587 907 1163 1483 2059 3851 3915 4491 4550 4555 6471 6603 7110 11083 11339 11531 15563 16395 17739 17803 21442 25282 27137 28353 35521 40513 40897 50370 52290 53185 61890 65281 67521 85249 85313 87425 90305 92481 100609 104514 112001 115329 123905 131073 143746 166658 200002 241218 249858 363650 363714 363778 363842 363906 363970 364034 364482 364610 368578 388354 402306 426754 436354 448130","fastPostFee":"0.00","pic_path":"http://g.search.alicdn.com/img/bao/uploaded/i4/i1/192707956/O1CN01YgIuXD28dtdhTJG3m_!!192707956.jpg_60x60.jpg","userId":"192707956","priceShow":{"unit":"¥","price":"47.98","preText":""},"commentCount":"165","zkType":"优惠价","promotions":"9995","ratesum":"20","isB2c":"0","iconList":"xfbug","newDsr":"4.73:-1.44%,4.78:-1.18%,4.78:-1.17%","location":"广东 广州","userType":"0","category":"50010850","similarCount":"1"}]} | 返回内容 |
ret_message | string | 错误信息 | |
ret_code | number | 0 | 错误代码 |
返回示例值
{"code":"10000","charge":false,"remain":1305,"msg":"查询成功","result":{"ret_code":0,"ret_message":"","ret_body":"{\"totalPage\":\"139\",\"sortBar\":{\"sortBars\":[]},\"tabs\":[],\"pageSize\":\"1\",\"pageName\":\"MainSrp\",\"selecthelper\":{\"hasStatistics\":\"false\",\"tip\":\"\"},\"totalResults\":\"139\",\"abtest\":\"25\",\"queryTagging\":{\"param\":\"\",\"guide\":\"false\"},\"parameter\":\"q\",\"sortMenu\":{\"showStyle\":\"true\",\"showFilter\":\"true\",\"sortBar\":[{\"showText\":\"综合\",\"type\":\"dropList\",\"subSort\":[{\"trace\":\"Populate-Desc\",\"showText\":\"综合\",\"selected\":\"true\",\"paramValue\":\"_coefp\"},{\"trace\":\"Credit-Desc\",\"showText\":\"信用\",\"selected\":\"false\",\"paramValue\":\"_ratesum\"}],\"selected\":\"true\"},{\"trace\":\"Sale-Desc\",\"showText\":\"销量\",\"type\":\"normal\",\"selected\":\"false\",\"paramValue\":\"_sale\"},{\"showText\":\"价格\",\"type\":\"toggle\",\"subSort\":[{\"trace\":\"Price-Asc\",\"showText\":\"价格\",\"selected\":\"false\",\"paramValue\":\"bid\"},{\"trace\":\"Price-Desc\",\"showText\":\"价格\",\"selected\":\"false\",\"paramValue\":\"_bid\"}],\"selected\":\"false\"}]},\"order_by\":\"_coefp\",\"style\":\"\",\"page\":\"1\",\"RN\":\"7b8cb75b9062943058e775708ea472c0\",\"filterMod\":[{\"filterOption\":[{\"paramKey\":\"catmap\",\"showText\":\"女装\",\"paramValue\":\"50102996\"}],\"trace\":\"FilterCategory\",\"bizName\":\"propCat\",\"showText\":\"全部类目\",\"unfoldRow\":\"2\"},{\"priceOption\":[],\"bizName\":\"price\",\"showText\":\"价格区间\"},{\"bizName\":\"location\",\"showText\":\"发货地\"}],\"paramValue\":\"\",\"itemsArray\":[{\"uniqpid\":\"-367971282\",\"goodRate\":\"98.71\",\"sellerLoc\":\"广东 广州\",\"priceWap\":\"47.98\",\"priceWithRate\":\"47.98\",\"zkRate\":\"9995\",\"uprightImg\":\"http://g.search.alicdn.com/img/bao/uploaded/i4/i3/192707956/O1CN012deoOa28dtdpOFjOH_!!0-item_pic.jpg\",\"title\":\"一字领露肩网纱夏季性感名媛连衣裙\",\"type\":\"fixed\",\"tItemType\":\"nt_auction\",\"nick\":\"倩影韩风\",\"autoPost\":\"0\",\"isCod\":\"0\",\"auctionURL\":\"http://a.m.taobao.com/i597447069544.htm?&utd_id=null&v=1.0&sid=f886eb91d4852d756df086447d402dcd\",\"isprepay\":\"1\",\"shipping\":\"0.00\",\"spuParams\":[],\"pos\":0,\"isInLimitPromotion\":\"true\",\"price\":\"48.00\",\"coinInfo\":\"金币抵2%\",\"ordinaryPostFee\":\"0.00\",\"sameCount\":\"177\",\"isP4p\":\"false\",\"area\":\"广州\",\"sold\":\"189\",\"quantity\":\"19525\",\"zkTime\":\"0\",\"item_id\":\"597447069544\",\"promotedService\":\"1\",\"priceColor\":\"#000000\",\"desScore\":\"4.73:-1.44\",\"auctionTag\":\"587 907 1163 1483 2059 3851 3915 4491 4550 4555 6471 6603 7110 11083 11339 11531 15563 16395 17739 17803 21442 25282 27137 28353 35521 40513 40897 50370 52290 53185 61890 65281 67521 85249 85313 87425 90305 92481 100609 104514 112001 115329 123905 131073 143746 166658 200002 241218 249858 363650 363714 363778 363842 363906 363970 364034 364482 364610 368578 388354 402306 426754 436354 448130\",\"fastPostFee\":\"0.00\",\"pic_path\":\"http://g.search.alicdn.com/img/bao/uploaded/i4/i1/192707956/O1CN01YgIuXD28dtdhTJG3m_!!192707956.jpg_60x60.jpg\",\"userId\":\"192707956\",\"priceShow\":{\"unit\":\"¥\",\"price\":\"47.98\",\"preText\":\"\"},\"commentCount\":\"165\",\"zkType\":\"优惠价\",\"promotions\":\"9995\",\"ratesum\":\"20\",\"isB2c\":\"0\",\"iconList\":\"xfbug\",\"newDsr\":\"4.73:-1.44%,4.78:-1.18%,4.78:-1.17%\",\"location\":\"广东 广州\",\"userType\":\"0\",\"category\":\"50010850\",\"similarCount\":\"1\"}]}","ret_id":132102303109376200}}