首页 > 其他分享 >如何简单快捷批量获取店铺的所有商品?

如何简单快捷批量获取店铺的所有商品?

时间:2023-04-01 11:45:21浏览次数:54  
标签:批量 title url price pic num 快捷 null 店铺

相信有很多做电商平台的卖家也有在做其他平台的分销,就是把 A 平台店铺的东西铺货到 B 平台卖,那么第一步就需要先把 A 平台店铺的商品先提取出来,再在 B 平台上架商品,相信很多小伙伴马上想到的就是把 A 平台的一个店铺所有的链接都提取出来,一个一个去复制,要是店铺的商品数量少这个办法是可行的,要是一旦店铺和商品多起来。一个一个去复制肯定不太现实的,现在小编教大家一个批量获取店铺所有商品的快捷方法,希望大家喜欢,帮助到大家。

item_search_shop - 获得店铺的所有商品
1688.item_search_shop

公共参数

 

名称 类型 必须 描述
key String 是 调用 key(必须以 GET 方式拼接在 URL 中)
secret String 是 调用密钥(更多接口 wechat=PNG_WNMN)
api_name String 是 API 接口名称(包括在请求地址中)[item_search,item_get,item_search_shop 等]
cache String 否 [yes,no] 默认 yes,将调用缓存的数据,速度比较快
result_type String 否 [json,jsonu,xml,serialize,var_export] 返回数据格式,默认为 json,jsonu 输出的内容中文可以直接阅读
lang String 否 [cn,en,ru] 翻译语言,默认 cn 简体中文
version String 否 API 版本

请求参数

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

参数说明:seller_nick: 店铺昵称或 sid (目前只支持 sid))
sort: 排序 [bid,_bid,_sale,_credit]
(bid: 总价 (升序)_bid: 总价 (降序),sale: 销量,默认综合排序,time:新品)
sort=new 为店铺上新数据,格式不统一,请注意
page: 页数


响应参数

Version: Date:

名称 类型 必须 示例值 描述
items

items [] 0 店铺的所有商品

请求示例

 

响应示例
{
"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": "
"price": "19.9",
"detail_url": "https://m.1688.com/offer/629206406356.html"
},
{
"num_iid": "606991177049",
"title": "大容量 10000 毫安全新爆款移动电源自带线充电宝礼品厂家直销",
"pic_url": "
"price": "39.9",
"detail_url": "https://m.1688.com/offer/606991177049.html"
},
{
"num_iid": "603067013582",
"title": "P3 跨境新爆款现货 6.5 寸水滴大屏全网通 4G 智能手机海外代发 OEM 定制",
"pic_url": "
"price": "52.0",
"detail_url": "https://m.1688.com/offer/603067013582.html"
},
{
"num_iid": "613515982791",
"title": "5.8 寸大屏工作室 root 纯净版 2+16G 云群控抖音快手微信手机 OEM 批发",
"pic_url": "
"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": "
"price": "298.0",
"detail_url": "https://m.1688.com/offer/637339319017.html"
},
{
"num_iid": "632168014097",
"title": "新款 30pro 7.5 寸水滴大屏 8+256G 全网通 5G 低价智能手机代批发",
"pic_url": "
"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": "
"price": "298.0",
"detail_url": "https://m.1688.com/offer/624579363633.html"
},
{
"num_iid": "624015201074",
"title": "新款 X27 6.5 寸全面水滴大屏 8+128G 全网通 5G 安卓智能手机批代发",
"pic_url": "
"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": "!!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": "!!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": "
"price": "308.0",
"detail_url": "https://m.1688.com/offer/589766232746.html"
},
{
"num_iid": "636684457600",
"title": "爆款 hviv mate30 pro6.8 寸水滴大屏 256G 全网通低价智能手机批代发",
"pic_url": "
"price": "398.0",
"detail_url": "https://m.1688.com/offer/636684457600.html"
},
{
"num_iid": "622583886323",
"title": "爆款 Hviv Mate40Pro+6.8 寸水滴大屏 512G 全网通低价智能手机批代发",
"pic_url": "!!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": "
"price": "469.0",
"detail_url": "https://m.1688.com/offer/589984649469.html"
},
{
"num_iid": "617854475887",
"title": "电视话购物工作室 root 纯净版 4+64G 云群控抖音快手微信手机 OEM 批发",
"pic_url": "
"price": "698.0",
"detail_url": "https://m.1688.com/offer/617854475887.html"
},
{
"num_iid": "624494524174",
"title": "爆款 hviv mate30 pro6.8 寸水滴大屏 256G 全网通低价智能手机批代发",
"pic_url": "
"price": "998.0",
"detail_url": "https://m.1688.com/offer/624494524174.html"
},
{
"num_iid": "630981381989",
"title": "品牌 P40 Pro+7.5 寸水滴大屏 10+256G 全网通低价智能手机代批发",
"pic_url": "
"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",
"cache": 0,
"api_info": "today:8 max:10000",
"execution_time": 7.492,
"server_time": "Beijing/2021-03-09 17:02:40",
"client_ip": "106.6.35.144",
"call_args": {
"nick": "b2b-2200733087881719de"
},
"api_type": "1688",
"translate_language": "zh-CN",
"translate_engine": "google_cn",
"server_memory": "3.56MB",
"request_id": "gw-4.604739a9443f6"
}

异常示例

{
"error": "item-not-found",
"reason": "商品没找到",
"error_code": "2000",
"success": 0,
"cache": 0,
"api_info": "today:0 max:10000",
"execution_time": 0.081,
"server_time": "Beijing/2020-06-10 23:44:00",
"call_args": [],
"api_type": "taobao",
"request_id": "15ee0ffc041242"}

响应示例
{
"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": "
"price": "19.9",
"detail_url": "https://m.1688.com/offer/629206406356.html"
},
{
"num_iid": "606991177049",
"title": "大容量 10000 毫安全新爆款移动电源自带线充电宝礼品厂家直销",
"pic_url": "
"price": "39.9",
"detail_url": "https://m.1688.com/offer/606991177049.html"
},
{
"num_iid": "603067013582",
"title": "P3 跨境新爆款现货 6.5 寸水滴大屏全网通 4G 智能手机海外代发 OEM 定制",
"pic_url": "
"price": "52.0",
"detail_url": "https://m.1688.com/offer/603067013582.html"
},
{
"num_iid": "613515982791",
"title": "5.8 寸大屏工作室 root 纯净版 2+16G 云群控抖音快手微信手机 OEM 批发",
"pic_url": "
"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": "
"price": "298.0",
"detail_url": "https://m.1688.com/offer/637339319017.html"
},
{
"num_iid": "632168014097",
"title": "新款 30pro 7.5 寸水滴大屏 8+256G 全网通 5G 低价智能手机代批发",
"pic_url": "
"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": "
"price": "298.0",
"detail_url": "https://m.1688.com/offer/624579363633.html"
},
{
"num_iid": "624015201074",
"title": "新款 X27 6.5 寸全面水滴大屏 8+128G 全网通 5G 安卓智能手机批代发",
"pic_url": "
"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": "!!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": "!!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": "
"price": "308.0",
"detail_url": "https://m.1688.com/offer/589766232746.html"
},
{
"num_iid": "636684457600",
"title": "爆款 hviv mate30 pro6.8 寸水滴大屏 256G 全网通低价智能手机批代发",
"pic_url": "
"price": "398.0",
"detail_url": "https://m.1688.com/offer/636684457600.html"
},
{
"num_iid": "622583886323",
"title": "爆款 Hviv Mate40Pro+6.8 寸水滴大屏 512G 全网通低价智能手机批代发",
"pic_url": "!!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": "
"price": "469.0",
"detail_url": "https://m.1688.com/offer/589984649469.html"
},
{
"num_iid": "617854475887",
"title": "电视话购物工作室 root 纯净版 4+64G 云群控抖音快手微信手机 OEM 批发",
"pic_url": "
"price": "698.0",
"detail_url": "https://m.1688.com/offer/617854475887.html"
},
{
"num_iid": "624494524174",
"title": "爆款 hviv mate30 pro6.8 寸水滴大屏 256G 全网通低价智能手机批代发",
"pic_url": "
"price": "998.0",
"detail_url": "https://m.1688.com/offer/624494524174.html"
},
{
"num_iid": "630981381989",
"title": "品牌 P40 Pro+7.5 寸水滴大屏 10+256G 全网通低价智能手机代批发",
"pic_url": "
"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",
"cache": 0,
"api_info": "today:8 max:10000",
"execution_time": 7.492,
"server_time": "Beijing/2021-03-09 17:02:40",
"client_ip": "106.6.35.144",
"call_args": {
"nick": "b2b-2200733087881719de"
},
"api_type": "1688",
"translate_language": "zh-CN",
"translate_engine": "google_cn",
"server_memory": "3.56MB",
"request_id": "gw-4.604739a9443f6"
}

异常示例

{
"error": "item-not-found",
"reason": "商品没找到",
"error_code": "2000",
"success": 0,
"cache": 0,
"api_info": "today:0 max:10000",
"execution_time": 0.081,
"server_time": "Beijing/2020-06-10 23:44:00",
"call_args": [],
"api_type": "taobao",
"request_id": "15ee0ffc041242"}

【测试请求】

请求地址暂不展示,欢迎私信代码交流。

标签:批量,title,url,price,pic,num,快捷,null,店铺
From: https://www.cnblogs.com/Cris20230328/p/17278328.html

相关文章

  • 跨境电商店铺如何防关联封号?需要socks5代理?
    跨境电商店铺防止关联封号的最佳方法是确保在不同的设备、IP地址、浏览器、操作系统和支付账户之间切换。这样做可以减少平台将多个账户视为同一人的风险,从而防止因关联而被封号。以下是一些可行的措施:1.使用不同的设备:尽可能在不同的设备上登录不同的店铺账户,例如使用不同的电脑或......
  • VScode批量删除空白行的方法
    在使用VScode进行编辑以前的文件时会遇到很多空白行的情况,格式化插件只是美化了代码但并没有删除这些空白行,其实用一个正则表达\s*(?=\r?$)\n批量替换就可以实现,具体方法如下:1、使用快捷键Ctrl+H,召唤出编辑面板2、将正则表达式复制到文查找输入框内,选择使用【使用正则表达式】......
  • 阶段小结:批量删除的时候使用 this.id的详解、jquery里面的$(this)和this的区别、面试
    this.id指的是当前对象的id比如我点击了button那么此button按钮的id就可以用this.id文章目录this.id指的是当前对象的id比如我点击了button那么此button按钮的id就可以用this.id我们先看项目里面方式1:利用样式,可以隐藏,但是不推荐方式二主角this.id方式:给点击删除的时候......
  • 项目一众筹网04_4_角色维护删除_单条删除和批量删除怎么实现_确认提示,,你真的要删除吗_
    角色维护删除系列文章目录文章目录角色维护删除系列文章目录22-删除-目标和思路(下一篇)单条删除和批量删除怎么实现批量删除和单条删除合成一套思路图23-后端==在这里我们就@RequestBody和@ResponseBody都用到了==24-前端-打开模态框25-前端-执行删除如何判断代码是否是动态生成的前......
  • 使用SqlBulkCopy sqlserver 批量插入数据(C#)
    先说实现原理:将需要插入数据库的集合里面的数据存在datatable里面,列名需相同,然后调用SqlBulkCopy方法。1.新建datatable,并赋值DataTabledataTable=newDataTable();dataTable.Columns.Add("NAME1");dataTable.Columns.Add("NAME2");dataTable.Columns.Add("NAME3");data......
  • 如何简单快捷批量获取店铺的所有商品?
    相信有很多做电商平台的卖家也有在做其他平台的分销,就是把A平台店铺的东西铺货到B平台卖,那么第一步就需要先把A平台店铺的商品先提取出来,再在B平台上架商品,相信很多小伙伴马上想到的就是把A平台的一个店铺所有的链接都提取出来,一个一个去复制,要是店铺的商品数量少这个办法是可行的......
  • Excel批量检查5列数值是否相等(存在不规则空值)
    因存在位置未知的空值,需要两两空值判断再进行比较,所以5列两两相比有10种可能,需要全面考虑,缺一都可能导致数据不准确(空值位置影响)案例中当前单元格的函数:=AND(IF(OR(B3="",C3=""),TRUE,B3=C3),IF(OR(C3="",D3=""),TRUE,C3=D3),IF(OR(D3="",E3=""),TRUE,D3=E3),IF(OR(E3="&q......
  • CAD绘图次序快捷键是什么?怎么用?
    在CAD绘图过程中,当图纸中某一图形被其他图形遮挡时,如果想要将其显示出来可以通过调整其绘图次序来实现。那么,你知道CAD绘图次序快捷键是什么吗?今天小编来给大家简单介绍一下浩辰CAD软件中CAD绘图次序快捷键是什么以及使用技巧,一起来看看吧!CAD绘图次序快捷键是什么?CAD绘图次序命......
  • windows系统 批量处理文件名称
    1.步骤一,提取当前目录下的文件名字  tree当前目录/f>随机目录\输出文件.txt 输出文件内容大致为这样  2.步骤二,转换文件名字为你想要的,比如此处我想将图片名称中的名字全部去除,只剩身份证号1)第一小步:创建一个excel文件,打开之后将所有的图片名称复制到第一列中......
  • 各类电商平台批量获取商品信息 API 详细操作说明
    前言获取商品信息可以更加快捷的查看商品的详请参数,同理批量获取商品信息的话就可以查看多个商品的信息参数,便于我们查看整个店铺的数据情况方便运营管理。具体操作如下:先获取一个key和secret,登入测试网址,选择API名称-批量获取商品信息,输入自己的key和secret,点击测试​​​​​​......