电商API数据接口1688alibaba接口item_search_shop-获得店铺的所有商品接入演示

本文主要是介绍电商API数据接口1688alibaba接口item_search_shop-获得店铺的所有商品接入演示,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

一、接口功能

item_search_shop接口是1688阿里巴巴提供的获取店铺所有商品的API接口,用户可以通过输入店铺ID,获取该店铺的所有商品信息。

二、接口调用

请求参数:seller_nick=b2b-2200733087881719de&start_price=0&end_price=0&q=&page=1&cid=

参数说明:seller_nick:sid或者加密后的_sopid:_sopid@BBBSvyqimnYtLnmm90B_59dsg(详情接口可返回nick参数)
sort:排序[bid,_bid,_sale,_credit]
  (bid:总价(升序)_bid:总价(降序),sale:销量,默认综合排序,time:新品)
sort=new为店铺上新数据,格式不统一,请注意
page:页数

响应参数

名称类型必须示例值描述

items

items[]0店铺的所有商品

num_iid

Bigint0628675986215宝贝ID

title

String0圆形服装店吊牌定做女装衣服吊卡订制800g加厚烘培礼品花卉卡片商品标题

pic_url

String0https://cbu01.alicdn.com/img/ibank/2020/386/208/22202802683_1873238575.search.jpg宝贝图片

price

Float0138.00价格

detail_url

String0https://detail.1688.com/offer/628675986215.html商品链接

三、示例代码

以下是一个使用Python调用item_search_shop接口的示例代码:

{"user": {"id": null,"nick": null,"good_num": null,"level": null,"created": null,"shop_type": null,"user_num_id": null,"company_id": null,"company_dj": null,"company_time": null,"company_info": null,"cid": "-1","sid": null,"pic_url": null,"video": null,"title": null,"address": null,"phone": null,"zhuy": "./page/contactinfo.htm","fh_score": null,"hm_score": null,"xy_score": null,"ht_score": null,"menu": null},"items": {"item": [{"num_iid": "629206406356","title": "天语欧博信米图手机X27S Mate30 P40 Pro个性简约时尚手机壳批发","pic_url": "https://cbu01.alicdn.com/img/ibank/2020/782/417/21694714287_2101792098.jpg","price": "19.9","detail_url": "https://m.1688.com/offer/629206406356.html"},{"num_iid": "606991177049","title": "大容量10000毫安全新爆款移动电源自带线充电宝礼品厂家直销","pic_url": "https://cbu01.alicdn.com/img/ibank/2019/517/800/12487008715_2101792098.jpg","price": "39.9","detail_url": "https://m.1688.com/offer/606991177049.html"},{"num_iid": "603067013582","title": "P3跨境新爆款现货6.5寸水滴大屏全网通4G智能手机海外代发OEM定制","pic_url": "https://cbu01.alicdn.com/img/ibank/2019/492/814/12111418294_2101792098.jpg","price": "52.0","detail_url": "https://m.1688.com/offer/603067013582.html"},{"num_iid": "613515982791","title": "5.8寸大屏工作室root纯净版2+16G云群控抖音快手微信手机OEM批发","pic_url": "https://cbu01.alicdn.com/img/ibank/2020/270/438/13682834072_2101792098.jpg","price": "66.0","detail_url": "https://m.1688.com/offer/613515982791.html"},{"num_iid": "637339319017","title": "P40 Pro品牌爆款6.5寸水滴大屏8+256G全网通5G安卓智能手机批代发","pic_url": "https://cbu01.alicdn.com/img/ibank/2020/278/368/16085863872_2101792098.jpg","price": "298.0","detail_url": "https://m.1688.com/offer/637339319017.html"},{"num_iid": "632168014097","title": "新款30pro 7.5寸水滴大屏8+256G全网通5G低价智能手机正品代批发","pic_url": "https://cbu01.alicdn.com/img/ibank/2019/048/299/12073992840_2101792098.jpg","price": "298.0","detail_url": "https://m.1688.com/offer/632168014097.html"},{"num_iid": "624579363633","title": "mate30 pro新款6.5英寸水滴大屏8+256G全网通5G低价智能手机批发","pic_url": "https://cbu01.alicdn.com/img/ibank/2020/285/407/17053704582_2101792098.jpg","price": "298.0","detail_url": "https://m.1688.com/offer/624579363633.html"},{"num_iid": "624015201074","title": "新款X27 6.5寸全面水滴大屏8+128G全网通5G安卓智能手机批代发","pic_url": "https://cbu01.alicdn.com/img/ibank/2019/469/649/11428946964_2101792098.jpg","price": "298.0","detail_url": "https://m.1688.com/offer/624015201074.html"},{"num_iid": "634673693747","title": "真新款mate40 pro 7.2寸水滴大屏8+256G全网通5G低价智能手机批发","pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN01vYUdfL1ZrAfnyJVZy_!!6000000003247-0-cib.jpg","price": "299.0","detail_url": "https://m.1688.com/offer/634673693747.html"},{"num_iid": "634599513272","title": "新款mate40 pro 7.2寸水滴大屏10+256G全网通5G低价智能手机批发","pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN01hXorlV24Cdi8vAod4_!!6000000007355-0-cib.jpg","price": "299.0","detail_url": "https://m.1688.com/offer/634599513272.html"},{"num_iid": "589766232746","title": "新款X27 6.5寸全面水滴大屏8+128G全网通5G安卓智能手机批代发","pic_url": "https://cbu01.alicdn.com/img/ibank/2020/976/670/13387076679_2101792098.jpg","price": "308.0","detail_url": "https://m.1688.com/offer/589766232746.html"},{"num_iid": "636684457600","title": "爆款hviv mate30 pro6.8寸水滴大屏256G全网通低价智能手机批代发","pic_url": "https://cbu01.alicdn.com/img/ibank/2020/610/814/19520418016_2101792098.jpg","price": "398.0","detail_url": "https://m.1688.com/offer/636684457600.html"},{"num_iid": "622583886323","title": "爆款Hviv Mate40Pro+6.8寸水滴大屏512G全网通低价智能手机批代发","pic_url": "https://cbu01.alicdn.com/img/ibank/O1CN01O9vUUY285Y3UOWbWL_!!2200733087881-0-cib.jpg","price": "399.0","detail_url": "https://m.1688.com/offer/622583886323.html"},{"num_iid": "589984649469","title": "6.5寸大屏安卓9.0工作室root纯净版4+64G云群控抖音快手阅读手机","pic_url": "https://cbu01.alicdn.com/img/ibank/2019/242/368/10339863242_902098348.jpg","price": "469.0","detail_url": "https://m.1688.com/offer/589984649469.html"},{"num_iid": "617854475887","title": "电视话购物工作室root纯净版4+64G云群控抖音快手微信手机OEM批发","pic_url": "https://cbu01.alicdn.com/img/ibank/2019/382/361/12287163283_2101792098.jpg","price": "698.0","detail_url": "https://m.1688.com/offer/617854475887.html"},{"num_iid": "624494524174","title": "爆款hviv mate30 pro6.8寸水滴大屏256G全网通低价智能手机批代发","pic_url": "https://cbu01.alicdn.com/img/ibank/2020/876/517/19593715678_2101792098.jpg","price": "998.0","detail_url": "https://m.1688.com/offer/624494524174.html"},{"num_iid": "630981381989","title": "品牌P40 Pro+7.5寸水滴大屏10+256G全网通低价智能手机正品代批发","pic_url": "https://cbu01.alicdn.com/img/ibank/2020/062/412/20219214260_2101792098.jpg","price": "1199.0","detail_url": "https://m.1688.com/offer/630981381989.html"}],"total_results": "17","page_size": 20,"pagecount": 1,"page": "1","url": null},"error": "","secache": "3bbcb618f225b45561bbb1686d15b91c","secache_time": 1615280560,"secache_date": "2021-03-09 17:02:40","translate_status": "","translate_time": 0,"language": {"default_lang": "cn","current_lang": "cn"},"reason": "","error_code": "0000"

请将上述代码中的api_keyapi_secret替换为您的应用的api_key和api_secret,将shop_id替换为您要查询的店铺ID。 

这篇关于电商API数据接口1688alibaba接口item_search_shop-获得店铺的所有商品接入演示的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/868105

相关文章

go中空接口的具体使用

《go中空接口的具体使用》空接口是一种特殊的接口类型,它不包含任何方法,本文主要介绍了go中空接口的具体使用,具有一定的参考价值,感兴趣的可以了解一下... 目录接口-空接口1. 什么是空接口?2. 如何使用空接口?第一,第二,第三,3. 空接口几个要注意的坑坑1:坑2:坑3:接口-空接口1. 什么是空接

Java利用JSONPath操作JSON数据的技术指南

《Java利用JSONPath操作JSON数据的技术指南》JSONPath是一种强大的工具,用于查询和操作JSON数据,类似于SQL的语法,它为处理复杂的JSON数据结构提供了简单且高效... 目录1、简述2、什么是 jsONPath?3、Java 示例3.1 基本查询3.2 过滤查询3.3 递归搜索3.4

MySQL大表数据的分区与分库分表的实现

《MySQL大表数据的分区与分库分表的实现》数据库的分区和分库分表是两种常用的技术方案,本文主要介绍了MySQL大表数据的分区与分库分表的实现,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有... 目录1. mysql大表数据的分区1.1 什么是分区?1.2 分区的类型1.3 分区的优点1.4 分

Mysql删除几亿条数据表中的部分数据的方法实现

《Mysql删除几亿条数据表中的部分数据的方法实现》在MySQL中删除一个大表中的数据时,需要特别注意操作的性能和对系统的影响,本文主要介绍了Mysql删除几亿条数据表中的部分数据的方法实现,具有一定... 目录1、需求2、方案1. 使用 DELETE 语句分批删除2. 使用 INPLACE ALTER T

Python Dash框架在数据可视化仪表板中的应用与实践记录

《PythonDash框架在数据可视化仪表板中的应用与实践记录》Python的PlotlyDash库提供了一种简便且强大的方式来构建和展示互动式数据仪表板,本篇文章将深入探讨如何使用Dash设计一... 目录python Dash框架在数据可视化仪表板中的应用与实践1. 什么是Plotly Dash?1.1

基于Flask框架添加多个AI模型的API并进行交互

《基于Flask框架添加多个AI模型的API并进行交互》:本文主要介绍如何基于Flask框架开发AI模型API管理系统,允许用户添加、删除不同AI模型的API密钥,感兴趣的可以了解下... 目录1. 概述2. 后端代码说明2.1 依赖库导入2.2 应用初始化2.3 API 存储字典2.4 路由函数2.5 应

Redis 中的热点键和数据倾斜示例详解

《Redis中的热点键和数据倾斜示例详解》热点键是指在Redis中被频繁访问的特定键,这些键由于其高访问频率,可能导致Redis服务器的性能问题,尤其是在高并发场景下,本文给大家介绍Redis中的热... 目录Redis 中的热点键和数据倾斜热点键(Hot Key)定义特点应对策略示例数据倾斜(Data S

JavaScript Array.from及其相关用法详解(示例演示)

《JavaScriptArray.from及其相关用法详解(示例演示)》Array.from方法是ES6引入的一个静态方法,用于从类数组对象或可迭代对象创建一个新的数组实例,本文将详细介绍Array... 目录一、Array.from 方法概述1. 方法介绍2. 示例演示二、结合实际场景的使用1. 初始化二

Python实现将MySQL中所有表的数据都导出为CSV文件并压缩

《Python实现将MySQL中所有表的数据都导出为CSV文件并压缩》这篇文章主要为大家详细介绍了如何使用Python将MySQL数据库中所有表的数据都导出为CSV文件到一个目录,并压缩为zip文件到... python将mysql数据库中所有表的数据都导出为CSV文件到一个目录,并压缩为zip文件到另一个

利用Go语言开发文件操作工具轻松处理所有文件

《利用Go语言开发文件操作工具轻松处理所有文件》在后端开发中,文件操作是一个非常常见但又容易出错的场景,本文小编要向大家介绍一个强大的Go语言文件操作工具库,它能帮你轻松处理各种文件操作场景... 目录为什么需要这个工具?核心功能详解1. 文件/目录存javascript在性检查2. 批量创建目录3. 文件