当前位置: 首页 > news >正文

拼多多API接口,百亿补贴商品详情页面采集

电商API的数据类型

电商API提供的数据种类多样,一般可分为以下几类:

1.商品数据:商品ID、商品名称、商品价格、库存等。

2.交易数据:订单号、付款时间、收货人等。

3.店铺数据:店铺ID、店铺名称、开店时间、店铺评分等。

4.营销数据:促销信息、优惠券信息、秒杀活动等。

pinduoduo.item_get

公共参数

名称类型必须描述交流中心18179014480
keyString调用key(必须以GET方式拼接在URL中)注册Key和secret接入
secretString调用密钥
api_nameStringAPI接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等]
cacheString[yes,no]默认yes,将调用缓存的数据,速度比较快
result_typeString[json,jsonu,xml,serialize,var_export]返回数据格式,默认为json,jsonu输出的内容中文可以直接阅读
langString[cn,en,ru]翻译语言,默认cn简体中文
versionStringAPI版本

请求参数

请求参数:num_iid=1620002566

参数说明:num_iid:商品ID ;

响应参数

Version: Date:

名称类型必须示例值描述

num_iid

String01999629976商品ID

title

String02019新款女装短袖t恤女夏宽松韩版休闲上衣百搭蝙蝠衫五分袖体恤商品标题

price

Float08.8价格

minGroupPrice

String0

maxGroupPrice

String0

total_price

Float0

orginal_price

Float0原价

nick

String0雅怡服饰1688卖家昵称

num

Int0233库存

sales

Int076销量

detail_url

String0http://yangkeduo.com/goods.html?goods_id=1999629976宝贝链接

desc

String0本店默认申通快递【还有百世汇通 中通快递 中通 韵达 邮政】。商家建议尺码仅供参考。如有其它问题请及时联系客服!喜欢的赶紧购买,质量保证,买的放心,穿的也开心!商品备注

item_imgs

Mix0[{"url": "//t00img.yangkeduo.com/t05img/images/2018-06-28/24bcb29df1195edaea840afd3e1bdaf9.jpeg?imageMogr2/strip%7CimageView2/2/w/1300/q/80"}]宝贝图片列表

pic_url

String0//t00img.yangkeduo.com/t05img/images/2018-06-28/24bcb29df1195edaea840afd3e1bdaf9.jpeg?imageMogr2/thumbnail/150x/quality/50宝贝图片

props_name

String0商品属性名

prop_imgs

Mix0{"prop_img": [ {"properties": "0:0;1:1", "url": "//t00img.yangkeduo.com/t10img/images/2018-06-28/5c8f783ab2c4fea0ffea8fac73d8b2c2.jpeg"}]}商品属性图片列表

props

Mix0商品详情

skus

Mix0{"sku": [{"price": "16.56", "total_price": null, "orginal_price": "20.9", "properties": "0:0;1:1", "properties_name": "0:0:颜色:黑色;1:1:尺码:M【75-100斤】", "quantity": 221, "sku_id": 36410965966}]商品规格信息

props_list

Mix0{ "0:0": "颜色:黑色","1:1": "尺码:M【75-100斤】"}商品属性

props_img

Mix0{"0:0;1:1": "//t00img.yangkeduo.com/t10img/images/2018-06-28/5c8f783ab2c4fea0ffea8fac73d8b2c2.jpeg"}属性图片

property_alias

String0商品属性别名

seller_info

Mix0{"nick": "雅怡服饰1688", "city": "", "level": null, "rate": null, "score": 4.27, "delivery_score": 4.37, "item_score": 4.38, "shop_type": "", "user_num_id": "", "sid": 99033, "shop_name": "雅怡服饰1688", "zhuy": "", "menu": [] }卖家信息

shop_item

Mix0[]

relate_items

Mix0[]

请求示例

# coding:utf-8
"""
Compatible for python2.x and python3.x
requirement: pip install requests
"""
from __future__ import print_function
import requests
# 请求示例 url 默认请求参数已经做URL编码
url = "https://api-gw.onebound.cn/pinduoduo/item_get/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=1620002566"
headers = {"Accept-Encoding": "gzip","Connection": "close"
}
if __name__ == "__main__":r = requests.get(url, headers=headers)json_obj = r.json()print(json_obj)

响应示例

{"item": {"num_iid": 1620002566,"title": "【2件套】套装秋冬新款仿獭兔毛钉珠皮草毛毛短外套加厚大衣女装","price": 95.4,"minGroupPrice": 0,"maxGroupPrice": 95.4,"total_price": "","desc_short": "【2件套】套装秋冬新款仿獭兔毛钉珠皮草毛毛短外套加厚大衣女装","cid": 8484,"orginal_price": "115","nick": "果果家气质女装","num": 1000,"sales": 43000,"detail_url": "https://mobile.yangkeduo.com/goods1.html?goods_id=1620002566","desc": "<img src=\"https://img.pddpic.com/mms-material-img/2022-09-18/3f89d470-1af8-4dee-b529-6d62aa2ea3b7.png\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2019-02-15/ddf6fe7b-b536-4183-932d-69a1189a3f59.png\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/20f659b04d3e7e5851c27ff9931c96fc.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2019-11-14/4420a8c3-49ed-46d8-ab55-15e7a638ca31.jpg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/26c3e9d5cfbaf4e8f13b2bdd38f48d71.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/0aa872fa74599dad7b6aefe6b6c035c0.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/6bc959e32a30424c7a5284a37676999c.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/1fa9861a8c99c5e9e8119fd2239fef5a.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/b62cabf1d2320c5761e3f4c15203fb20.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/6f6e54376a66cbc78e16700d4c424fe1.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/2f60753dfc875a6876adc35833a69d31.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/ae0116e589d8de712f8dafd0c356cefe.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/da910c98fcc8de1b4d2d1498cd7899fd.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/140349649d8b7d08c8e88bfbbaa2f900.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/a953bae2eeb7364ef3ef2976a97d07eb.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/4da59828136c3b1308aad0aa990778a7.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/4a365b61a80e47288c8609ccd5982396.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-11-17/cd0a8a96b783a51236812ce24c59a329.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-11-17/16008ac19768d05e7dee16406ff958a1.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-11-17/ef1d17b69ebf9449a8bb52459b168c26.jpeg\"/><img src=\"https://www.o0b.cn/i.php?t.png&rid=gw-4.64b7a45a3e25d&p=1778786612&k=i_key&t=1689756785\" style=\"display:none\" />","item_imgs": [{"url": "https://omsproductionimg.yangkeduo.com/images/2017-12-12/bcf848aa71c6389607ae7a84b70f1543.jpeg"},{"url": "https://omsproductionimg.yangkeduo.com/images/2017-12-12/176019babfdecffa1d9f98f40b7e99b4.jpeg"},{"url": "https://omsproductionimg.yangkeduo.com/images/2017-12-12/efb5db42397550bffd3211ca6f197498.jpeg"},{"url": "https://omsproductionimg.yangkeduo.com/images/2017-12-12/d209ef7bcc9183c3bb8ca1dfdb108d49.jpeg"},{"url": "https://omsproductionimg.yangkeduo.com/images/2017-12-12/74257ab65f3f00da7a90fde9042fe640.jpeg"},{"url": "https://img.pddpic.com/goods/images/2019-08-17/e8fbd9cb-cc74-4caa-9380-84c46d27b008.jpg"},{"url": "https://img.pddpic.com/goods/images/2019-08-17/d76f515b-e375-4060-b94e-cf64f6b0964e.jpg"},{"url": "https://img.pddpic.com/goods/images/2019-08-17/f2f279b5-6000-4fbe-b99b-7c1cbd7884ea.jpg"}],"pic_url": "https://omsproductionimg.yangkeduo.com/images/2018-06-06/463c0e2a5580ba3266846e41fe3e444a.jpeg","props_name": "1215:1115500378:颜色:粉色两件套(外套+裙子);1226:119128:尺码:S(90斤以下);1226:96784:尺码:M(90-100斤);1226:33651:尺码:L(100-110斤);1226:33652:尺码:XL(110-120斤);1226:33653:尺码:2XL(120-130斤);1226:33656:尺码:3XL(130-140斤);1215:1115501666:颜色:米色两件套(外套+裙子);1215:105309781:颜色:蓝色两件套(外套+裙子)","prop_imgs": {"prop_img": [{"properties": "1215:1115500378","url": "https://t00img.yangkeduo.com/goods/images/2018-08-28/062d42b525a7c786920cbb83ac772af7.jpeg"},{"properties": "1215:1115501666","url": "https://t00img.yangkeduo.com/goods/images/2018-08-28/415bed99d5a925123d7b7c39547205de.jpeg"},{"properties": "1215:105309781","url": "https://t00img.yangkeduo.com/goods/images/2018-11-17/2f202934f16f0eee41257b77bf489262.jpeg"}]},"props": [{"name": "面料材质","value": "仿皮草"},{"name": "成分含量","value": "71%(含)—80%(含)"},{"name": "版型","value": "修身"},{"name": "领型","value": "圆领"},{"name": "衣长","value": "短款"},{"name": "是否带毛领","value": "不带毛领"},{"name": "主风格","value": "气质名媛"}],"skus": {"sku": [{"price": 95.4,"total_price": 115,"properties": "1215:1115500378;1226:119128","properties_name": "1215:1115500378:颜色:粉色两件套(外套+裙子);1226:119128:尺码:S(90斤以下)","orginal_price": 115,"quantity": 107,"sku_id": 57114357891},{"price": 95.4,"total_price": 115,"properties": "1215:1115500378;1226:96784","properties_name": "1215:1115500378:颜色:粉色两件套(外套+裙子);1226:96784:尺码:M(90-100斤)","orginal_price": 115,"quantity": 37,"sku_id": 57114357892},{"price": 95.4,"total_price": 115,"properties": "1215:1115500378;1226:33651","properties_name": "1215:1115500378:颜色:粉色两件套(外套+裙子);1226:33651:尺码:L(100-110斤)","orginal_price": 115,"quantity": 57,"sku_id": 57114357893},{"price": 95.4,"total_price": 115,"properties": "1215:1115500378;1226:33652","properties_name": "1215:1115500378:颜色:粉色两件套(外套+裙子);1226:33652:尺码:XL(110-120斤)","orginal_price": 115,"quantity": 114,"sku_id": 57114357894},{"price": 95.4,"total_price": 115,"properties": "1215:1115500378;1226:33653","properties_name": "1215:1115500378:颜色:粉色两件套(外套+裙子);1226:33653:尺码:2XL(120-130斤)","orginal_price": 115,"quantity": 200,"sku_id": 57114357895},{"price": 95.4,"total_price": 115,"properties": "1215:1115500378;1226:33656","properties_name": "1215:1115500378:颜色:粉色两件套(外套+裙子);1226:33656:尺码:3XL(130-140斤)","orginal_price": 115,"quantity": 126,"sku_id": 57114357896},{"price": 95.4,"total_price": 115,"properties": "1215:1115501666;1226:119128","properties_name": "1215:1115501666:颜色:米色两件套(外套+裙子);1226:119128:尺码:S(90斤以下)","orginal_price": 115,"quantity": 961,"sku_id": 57114357897},{"price": 95.4,"total_price": 115,"properties": "1215:1115501666;1226:96784","properties_name": "1215:1115501666:颜色:米色两件套(外套+裙子);1226:96784:尺码:M(90-100斤)","orginal_price": 115,"quantity": 135,"sku_id": 57114357898},{"price": 95.4,"total_price": 115,"properties": "1215:1115501666;1226:33651","properties_name": "1215:1115501666:颜色:米色两件套(外套+裙子);1226:33651:尺码:L(100-110斤)","orginal_price": 115,"quantity": 135,"sku_id": 57114357899},{"price": 95.4,"total_price": 115,"properties": "1215:1115501666;1226:33652","properties_name": "1215:1115501666:颜色:米色两件套(外套+裙子);1226:33652:尺码:XL(110-120斤)","orginal_price": 115,"quantity": 578,"sku_id": 57114357900},{"price": 95.4,"total_price": 115,"properties": "1215:1115501666;1226:33653","properties_name": "1215:1115501666:颜色:米色两件套(外套+裙子);1226:33653:尺码:2XL(120-130斤)","orginal_price": 115,"quantity": 124,"sku_id": 57114357901},{"price": 95.4,"total_price": 115,"properties": "1215:1115501666;1226:33656","properties_name": "1215:1115501666:颜色:米色两件套(外套+裙子);1226:33656:尺码:3XL(130-140斤)","orginal_price": 115,"quantity": 249,"sku_id": 57114357902},{"price": 95.4,"total_price": 115,"properties": "1215:105309781;1226:119128","properties_name": "1215:105309781:颜色:蓝色两件套(外套+裙子);1226:119128:尺码:S(90斤以下)","orginal_price": 115,"quantity": 556,"sku_id": 103851107855},{"price": 95.4,"total_price": 115,"properties": "1215:105309781;1226:96784","properties_name": "1215:105309781:颜色:蓝色两件套(外套+裙子);1226:96784:尺码:M(90-100斤)","orginal_price": 115,"quantity": 514,"sku_id": 103851107856},{"price": 95.4,"total_price": 115,"properties": "1215:105309781;1226:33651","properties_name": "1215:105309781:颜色:蓝色两件套(外套+裙子);1226:33651:尺码:L(100-110斤)","orginal_price": 115,"quantity": 843,"sku_id": 103851107857},{"price": 95.4,"total_price": 115,"properties": "1215:105309781;1226:33652","properties_name": "1215:105309781:颜色:蓝色两件套(外套+裙子);1226:33652:尺码:XL(110-120斤)","orginal_price": 115,"quantity": 546,"sku_id": 103851107858},{"price": 95.4,"total_price": 115,"properties": "1215:105309781;1226:33653","properties_name": "1215:105309781:颜色:蓝色两件套(外套+裙子);1226:33653:尺码:2XL(120-130斤)","orginal_price": 115,"quantity": 561,"sku_id": 103851107853},{"price": 95.4,"total_price": 115,"properties": "1215:105309781;1226:33656","properties_name": "1215:105309781:颜色:蓝色两件套(外套+裙子);1226:33656:尺码:3XL(130-140斤)","orginal_price": 115,"quantity": 570,"sku_id": 103851107854}]},"video": null,"props_list": {"1215:1115500378": "颜色:粉色两件套(外套+裙子)","1226:119128": "尺码:S(90斤以下)","1226:96784": "尺码:M(90-100斤)","1226:33651": "尺码:L(100-110斤)","1226:33652": "尺码:XL(110-120斤)","1226:33653": "尺码:2XL(120-130斤)","1226:33656": "尺码:3XL(130-140斤)","1215:1115501666": "颜色:米色两件套(外套+裙子)","1215:105309781": "颜色:蓝色两件套(外套+裙子)"},"props_img": {"1215:1115500378": "https://t00img.yangkeduo.com/goods/images/2018-08-28/062d42b525a7c786920cbb83ac772af7.jpeg","1215:1115501666": "https://t00img.yangkeduo.com/goods/images/2018-08-28/415bed99d5a925123d7b7c39547205de.jpeg","1215:105309781": "https://t00img.yangkeduo.com/goods/images/2018-11-17/2f202934f16f0eee41257b77bf489262.jpeg"},"property_alias": "1215:1115500378:颜色:粉色两件套(外套+裙子);1226:119128:尺码:S(90斤以下);1226:96784:尺码:M(90-100斤);1226:33651:尺码:L(100-110斤);1226:33652:尺码:XL(110-120斤);1226:33653:尺码:2XL(120-130斤);1226:33656:尺码:3XL(130-140斤);1215:1115501666:颜色:米色两件套(外套+裙子);1215:105309781:颜色:蓝色两件套(外套+裙子)","_ddf": "xdl","shop_id": 461742,"seller_info": {"nick": "果果家气质女装","score": 4.47,"delivery_score": 4.47,"item_score": null,"shop_type": "","user_num_id": 461742,"shop_name": "果果家气质女装","zhuy": "https://mobile.yangkeduo.com/mall_page.html?mall_id=461742","sid": 461742},"format_check": "ok","desc_img": ["https://img.pddpic.com/mms-material-img/2022-09-18/3f89d470-1af8-4dee-b529-6d62aa2ea3b7.png","https://t00img.yangkeduo.com/goods/images/2019-02-15/ddf6fe7b-b536-4183-932d-69a1189a3f59.png","https://t00img.yangkeduo.com/goods/images/2018-09-02/20f659b04d3e7e5851c27ff9931c96fc.jpeg","https://t00img.yangkeduo.com/goods/images/2019-11-14/4420a8c3-49ed-46d8-ab55-15e7a638ca31.jpg","https://t00img.yangkeduo.com/goods/images/2018-09-02/26c3e9d5cfbaf4e8f13b2bdd38f48d71.jpeg","https://t00img.yangkeduo.com/goods/images/2018-09-02/0aa872fa74599dad7b6aefe6b6c035c0.jpeg","https://t00img.yangkeduo.com/goods/images/2018-09-02/6bc959e32a30424c7a5284a37676999c.jpeg","https://t00img.yangkeduo.com/goods/images/2018-09-02/1fa9861a8c99c5e9e8119fd2239fef5a.jpeg","https://t00img.yangkeduo.com/goods/images/2018-09-02/b62cabf1d2320c5761e3f4c15203fb20.jpeg","https://t00img.yangkeduo.com/goods/images/2018-09-02/6f6e54376a66cbc78e16700d4c424fe1.jpeg","https://t00img.yangkeduo.com/goods/images/2018-09-02/2f60753dfc875a6876adc35833a69d31.jpeg","https://t00img.yangkeduo.com/goods/images/2018-09-02/ae0116e589d8de712f8dafd0c356cefe.jpeg","https://t00img.yangkeduo.com/goods/images/2018-09-02/da910c98fcc8de1b4d2d1498cd7899fd.jpeg","https://t00img.yangkeduo.com/goods/images/2018-09-02/140349649d8b7d08c8e88bfbbaa2f900.jpeg","https://t00img.yangkeduo.com/goods/images/2018-09-02/a953bae2eeb7364ef3ef2976a97d07eb.jpeg","https://t00img.yangkeduo.com/goods/images/2018-09-02/4da59828136c3b1308aad0aa990778a7.jpeg","https://t00img.yangkeduo.com/goods/images/2018-09-02/4a365b61a80e47288c8609ccd5982396.jpeg","https://t00img.yangkeduo.com/goods/images/2018-11-17/cd0a8a96b783a51236812ce24c59a329.jpeg","https://t00img.yangkeduo.com/goods/images/2018-11-17/16008ac19768d05e7dee16406ff958a1.jpeg","https://t00img.yangkeduo.com/goods/images/2018-11-17/ef1d17b69ebf9449a8bb52459b168c26.jpeg"],"shop_item": [],"relate_items": []},"error": "","secache": "38dc3c822554ca397f00e5e9b681e8fb","secache_time": 1689756785,"secache_date": "2023-07-19 16:53:05","translate_status": "","translate_time": 0,"language": {"default_lang": "cn","current_lang": "cn"},

http://www.lryc.cn/news/95026.html

相关文章:

  • C++入门(未完待续)
  • Python爬虫学习笔记(四)————XPath解析
  • 知识图谱推理的学习逻辑规则(上)
  • 【从零开始学习C++ | 第二十一篇】C++新增特性 (上)
  • 你真的会用async和await么?
  • vscode远程连接提示:过程试图写入的管道不存在(删除C:\Users\<用户名>\.ssh\known_hosts然后重新连接)
  • 【005】基于深度学习的图像语 通信系统
  • 基于ssm的社区生活超市的设计与实现
  • 长短期记忆网络(LSTM)原理解析
  • vscode debug的方式
  • 微信加粉计数器后台开发
  • 黑客是什么?想成为黑客需要学习什么?
  • iOS中__attribute__的使用
  • 腾讯、飞书等在线表格自动化编辑--python
  • 开源库nlohmann json使用备忘
  • 语音识别开源框架 openAI-whisper
  • php做的中秋博饼游戏之绘制骰子图案功能示例
  • erlang 虚拟机优化参数
  • 网络安全能力成熟度模型介绍
  • python爬虫试手
  • pandas 笔记:pivot_table 数据透视表
  • C#(六十)之Convert类 和 Parse方法的区别
  • 暑期代码每日一练Day3:874. 模拟行走机器人
  • 肖sir___环境相关的面试题
  • 代理IP、Socks5代理和SK5代理的前沿技术与未来发展趋势
  • VM(CentOS7安装和Linux连接工具以及换源)
  • 阿里云斩获 4 项年度云原生优秀案例丨阿里云云原生 6 月动态
  • dede图片集上传图片时出错显示FILEID的解决办法
  • 【亲测有效】 通过mysql指令 导出数据库中表名 和 表名的备注
  • 【Nginx08】Nginx学习:HTTP核心模块(五)长连接与连接处理