技术标签: java 拼多多API接口 api 开发语言 api接口
拼多多提供了根据ID取商品详情原数据的API接口,具体如下:
请求地址:前往测试
公共参数
名称 | 类型 | 必须 | 描述 |
---|---|---|---|
key | String | 是 | 调用key(必须以GET方式拼接在URL中) |
secret | String | 是 | 调用密钥 |
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版本 |
此API目前支持以下基本接口:
请求参数
请求参数:num_iid=1620002566
参数说明:num_iid:商品ID ;
响应参数
Version: Date:
名称 | 类型 | 必须 | 示例值 | 描述 |
---|---|---|---|---|
item |
Mix | 0 | 获得拼多多app商品详情原数据 |
1、拼多多-第三方数据API公司
2、点击右上角登陆,使用手机号和验证码即可自动注册登陆。
3、注册成功后输入相关信息即可登陆,不想输入的可直接选择跳过。
4、进入客户端后台系统,即可看到自己key和密钥。也有测试入口和API文档查看。
5、推广位管理
根据推广者备案类型,选择相应的媒体类型。推广位名称,你要在什么地方推广,就填写什么名称,方便区分即可。推广位创建完成,得到PID。
推广可以直接生存属于您的专属推广链接。
完成以上步骤,即可得到:api测试key、密钥、推广链接,分别填写到系统后台即可。
三、API测试页展示
响应示例
{ "item": { "destination_type": 2, "destination_url": "order_checkout.html", "goods": { "brand_id": "", "cat_id": 8484, "cat_id_1": 8439, "cat_id_2": 8456, "cat_id_3": 8484, "cat_id_4": 0, "check_quantity": 1, "country": "", "decoration": [ { "contents": [ { "height": 400, "img_url": "https://img.pddpic.com/mms-material-img/2022-09-18/3f89d470-1af8-4dee-b529-6d62aa2ea3b7.png", "width": 750 } ], "enable_share": 0, "floor_id": 18102965153, "key": "DecImage", "priority": 0, "type": "text" }, { "contents": [ { "height": 330, "img_url": "https://t00img.yangkeduo.com/goods/images/2019-02-15/ddf6fe7b-b536-4183-932d-69a1189a3f59.png", "width": 750 } ], "enable_share": 1, "floor_id": 18102965154, "key": "DecImage", "priority": 1, "type": "image" }, { "contents": [ { "height": 1500, "img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/20f659b04d3e7e5851c27ff9931c96fc.jpeg", "width": 750 } ], "enable_share": 1, "floor_id": 18102965155, "key": "DecImage", "priority": 2, "type": "image" }, { "contents": [ { "height": 1058, "img_url": "https://t00img.yangkeduo.com/goods/images/2019-11-14/4420a8c3-49ed-46d8-ab55-15e7a638ca31.jpg", "width": 760 } ], "enable_share": 1, "floor_id": 18102965156, "key": "DecImage", "priority": 3, "type": "image" }, { "contents": [ { "height": 1500, "img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/26c3e9d5cfbaf4e8f13b2bdd38f48d71.jpeg", "width": 750 } ], "enable_share": 1, "floor_id": 18102965157, "key": "DecImage", "priority": 4, "type": "image" }, { "contents": [ { "height": 1500, "img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/0aa872fa74599dad7b6aefe6b6c035c0.jpeg", "width": 750 } ], "enable_share": 1, "floor_id": 18102965158, "key": "DecImage", "priority": 5, "type": "image" }, { "contents": [ { "height": 1500, "img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/6bc959e32a30424c7a5284a37676999c.jpeg", "width": 750 } ], "enable_share": 1, "floor_id": 18102965159, "key": "DecImage", "priority": 6, "type": "image" }, { "contents": [ { "height": 1500, "img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/1fa9861a8c99c5e9e8119fd2239fef5a.jpeg", "width": 750 } ], "enable_share": 1, "floor_id": 18102965160, "key": "DecImage", "priority": 7, "type": "image" }, { "contents": [ { "height": 1500, "img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/b62cabf1d2320c5761e3f4c15203fb20.jpeg", "width": 750 } ], "enable_share": 1, "floor_id": 18102965161, "key": "DecImage", "priority": 8, "type": "image" }, { "contents": [ { "height": 1500, "img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/6f6e54376a66cbc78e16700d4c424fe1.jpeg", "width": 750 } ], "enable_share": 1, "floor_id": 18102965162, "key": "DecImage", "priority": 9, "type": "image" }, { "contents": [ { "height": 1500, "img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/2f60753dfc875a6876adc35833a69d31.jpeg", "width": 750 } ], "enable_share": 1, "floor_id": 18102965163, "key": "DecImage", "priority": 10, "type": "image" }, { "contents": [ { "height": 1500, "img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/ae0116e589d8de712f8dafd0c356cefe.jpeg", "width": 750 } ], "enable_share": 1, "floor_id": 18102965164, "key": "DecImage", "priority": 11, "type": "image" }, { "contents": [ { "height": 1500, "img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/da910c98fcc8de1b4d2d1498cd7899fd.jpeg", "width": 750 } ], "enable_share": 1, "floor_id": 18102965165, "key": "DecImage", "priority": 12, "type": "image" }, { "contents": [ { "height": 1500, "img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/140349649d8b7d08c8e88bfbbaa2f900.jpeg", "width": 820 } ], "enable_share": 1, "floor_id": 18102965166, "key": "DecImage", "priority": 13, "type": "image" }, { "contents": [ { "height": 1500, "img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/a953bae2eeb7364ef3ef2976a97d07eb.jpeg", "width": 750 } ], "enable_share": 1, "floor_id": 18102965167, "key": "DecImage", "priority": 14, "type": "image" }, { "contents": [ { "height": 1500, "img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/4da59828136c3b1308aad0aa990778a7.jpeg", "width": 750 } ], "enable_share": 1, "floor_id": 18102965168, "key": "DecImage", "priority": 15, "type": "image" }, { "contents": [ { "height": 1500, "img_url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/4a365b61a80e47288c8609ccd5982396.jpeg", "width": 750 } ], "enable_share": 1, "floor_id": 18102965169, "key": "DecImage", "priority": 16, "type": "image" }, { "contents": [ { "height": 800, "img_url": "https://t00img.yangkeduo.com/goods/images/2018-11-17/cd0a8a96b783a51236812ce24c59a329.jpeg", "width": 800 } ], "enable_share": 1, "floor_id": 18102965170, "key": "DecImage", "priority": 17, "type": "image" }, { "contents": [ { "height": 800, "img_url": "https://t00img.yangkeduo.com/goods/images/2018-11-17/16008ac19768d05e7dee16406ff958a1.jpeg", "width": 800 } ], "enable_share": 1, "floor_id": 18102965171, "key": "DecImage", "priority": 18, "type": "image" }, { "contents": [ { "height": 800, "img_url": "https://t00img.yangkeduo.com/goods/images/2018-11-17/ef1d17b69ebf9449a8bb52459b168c26.jpeg", "width": 800 } ], "enable_share": 1, "floor_id": 18102965172, "key": "DecImage", "priority": 19, "type": "image" } ], "detail_gallery": [ { "goods_id": 1620002566, "height": 400, "priority": 8, "type": 2, "url": "https://img.pddpic.com/mms-material-img/2022-09-18/3f89d470-1af8-4dee-b529-6d62aa2ea3b7.png", "width": 750 }, { "goods_id": 1620002566, "height": 330, "priority": 9, "type": 2, "url": "https://t00img.yangkeduo.com/goods/images/2019-02-15/ddf6fe7b-b536-4183-932d-69a1189a3f59.png", "width": 750 }, { "goods_id": 1620002566, "height": 1500, "priority": 10, "type": 2, "url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/20f659b04d3e7e5851c27ff9931c96fc.jpeg", "width": 750 }, { "goods_id": 1620002566, "height": 1058, "priority": 11, "type": 2, "url": "https://t00img.yangkeduo.com/goods/images/2019-11-14/4420a8c3-49ed-46d8-ab55-15e7a638ca31.jpg", "width": 760 }, { "goods_id": 1620002566, "height": 1500, "priority": 12, "type": 2, "url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/26c3e9d5cfbaf4e8f13b2bdd38f48d71.jpeg", "width": 750 }, { "goods_id": 1620002566, "height": 1500, "priority": 13, "type": 2, "url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/0aa872fa74599dad7b6aefe6b6c035c0.jpeg", "width": 750 }, { "goods_id": 1620002566, "height": 1500, "priority": 14, "type": 2, "url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/6bc959e32a30424c7a5284a37676999c.jpeg", "width": 750 }, { "goods_id": 1620002566, "height": 1500, "priority": 15, "type": 2, "url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/1fa9861a8c99c5e9e8119fd2239fef5a.jpeg", "width": 750 }, { "goods_id": 1620002566, "height": 1500, "priority": 16, "type": 2, "url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/b62cabf1d2320c5761e3f4c15203fb20.jpeg", "width": 750 }, { "goods_id": 1620002566, "height": 1500, "priority": 17, "type": 2, "url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/6f6e54376a66cbc78e16700d4c424fe1.jpeg", "width": 750 }, { "goods_id": 1620002566, "height": 1500, "priority": 18, "type": 2, "url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/2f60753dfc875a6876adc35833a69d31.jpeg", "width": 750 }, { "goods_id": 1620002566, "height": 1500, "priority": 19, "type": 2, "url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/ae0116e589d8de712f8dafd0c356cefe.jpeg", "width": 750 }, { "goods_id": 1620002566, "height": 1500, "priority": 20, "type": 2, "url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/da910c98fcc8de1b4d2d1498cd7899fd.jpeg", "width": 750 }, { "goods_id": 1620002566, "height": 1500, "priority": 21, "type": 2, "url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/140349649d8b7d08c8e88bfbbaa2f900.jpeg", "width": 820 }, { "goods_id": 1620002566, "height": 1500, "priority": 22, "type": 2, "url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/a953bae2eeb7364ef3ef2976a97d07eb.jpeg", "width": 750 }, { "goods_id": 1620002566, "height": 1500, "priority": 23, "type": 2, "url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/4da59828136c3b1308aad0aa990778a7.jpeg", "width": 750 }, { "goods_id": 1620002566, "height": 1500, "priority": 24, "type": 2, "url": "https://t00img.yangkeduo.com/goods/images/2018-09-02/4a365b61a80e47288c8609ccd5982396.jpeg", "width": 750 }, { "goods_id": 1620002566, "height": 800, "priority": 25, "type": 2, "url": "https://t00img.yangkeduo.com/goods/images/2018-11-17/cd0a8a96b783a51236812ce24c59a329.jpeg", "width": 800 }, { "goods_id": 1620002566, "height": 800, "priority": 26, "type": 2, "url": "https://t00img.yangkeduo.com/goods/images/2018-11-17/16008ac19768d05e7dee16406ff958a1.jpeg", "width": 800 }, { "goods_id": 1620002566, "height": 800, "priority": 27, "type": 2, "url": "https://t00img.yangkeduo.com/goods/images/2018-11-17/ef1d17b69ebf9449a8bb52459b168c26.jpeg", "width": 800 } ], "detail_video_gallery": [], "gallery": [ { "goods_id": 1620002566, "id": 20373813733, "priority": 0, "type": 1, "url": "https://omsproductionimg.yangkeduo.com/images/2017-12-12/bcf848aa71c6389607ae7a84b70f1543.jpeg" }, { "goods_id": 1620002566, "id": 20373813734, "priority": 1, "type": 1, "url": "https://omsproductionimg.yangkeduo.com/images/2017-12-12/176019babfdecffa1d9f98f40b7e99b4.jpeg" }, { "goods_id": 1620002566, "id": 20373813735, "priority": 2, "type
异常示例
{ "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": "pinduoduo", "request_id": "15ee0ffc041242"}
相关资料
错误码解释
状态代码(error_code) | 状态信息 | 详细描述 | 是否收费 |
---|---|---|---|
0000 | success | 接口调用成功并返回相关数据 | 是 |
2000 | Search success but no result | 接口访问成功,但是搜索没有结果 | 是 |
4000 | Server internal error | 服务器内部错误 | 否 |
4001 | Network error | 网络错误 | 否 |
4002 | Target server error | 目标服务器错误 | 否 |
4003 | Param error | 用户输入参数错误 | 忽略 |
4004 | Account not found | 用户帐号不存在 | 忽略 |
4005 | Invalid authentication credentials | 授权失败 | 忽略 |
4006 | API stopped | 您的当前API已停用 | 忽略 |
4007 | Account stopped | 您的账户已停用 | 忽略 |
4008 | API rate limit exceeded | 并发已达上限 | 忽略 |
4009 | API maintenance | API维护中 | 忽略 |
4010 | API not found with these values | API不存在 | 忽略 |
4012 | Please add api first | 请先添加api | 忽略 |
4013 | Number of calls exceeded | 调用次数超限 | 忽略 |
4014 | Missing url param | 参数缺失 | 忽略 |
4015 | Wrong pageToken | 参数pageToken有误 | 忽略 |
4016 | Insufficient balance | 余额不足 | 忽略 |
4017 | timeout error | 请求超时 | 否 |
5000 | unknown error | 未知错误 | 否 |
文章浏览阅读2w次,点赞7次,收藏51次。四个步骤1.创建C++ Win32项目动态库dll 2.在Win32项目动态库中添加 外部依赖项 lib头文件和lib库3.导出C接口4.c#调用c++动态库开始你的表演...①创建一个空白的解决方案,在解决方案中添加 Visual C++ , Win32 项目空白解决方案的创建:添加Visual C++ , Win32 项目这......_c#调用lib
文章浏览阅读4.6k次。苹方字体是苹果系统上的黑体,挺好看的。注重颜值的网站都会使用,例如知乎:font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, W..._ubuntu pingfang
文章浏览阅读159次。表单表单概述表单标签表单域按钮控件demo表单标签表单标签基本语法结构<form action="处理数据程序的url地址“ method=”get|post“ name="表单名称”></form><!--action,当提交表单时,向何处发送表单中的数据,地址可以是相对地址也可以是绝对地址--><!--method将表单中的数据传送给服务器处理,get方式直接显示在url地址中,数据可以被缓存,且长度有限制;而post方式数据隐藏传输,_html表单的处理程序有那些
文章浏览阅读1.2k次。使用说明:开启Google的登陆二步验证(即Google Authenticator服务)后用户登陆时需要输入额外由手机客户端生成的一次性密码。实现Google Authenticator功能需要服务器端和客户端的支持。服务器端负责密钥的生成、验证一次性密码是否正确。客户端记录密钥后生成一次性密码。下载谷歌验证类库文件放到项目合适位置(我这边放在项目Vender下面)https://github.com/PHPGangsta/GoogleAuthenticatorPHP代码示例://引入谷_php otp 验证器
文章浏览阅读4.3k次,点赞5次,收藏11次。matplotlib.plot画图横坐标混乱及间隔处理_matplotlib更改横轴间距
文章浏览阅读2.2k次。①Storage driver 处理各镜像层及容器层的处理细节,实现了多层数据的堆叠,为用户 提供了多层数据合并后的统一视图②所有 Storage driver 都使用可堆叠图像层和写时复制(CoW)策略③docker info 命令可查看当系统上的 storage driver主要用于测试目的,不建议用于生成环境。_docker 保存容器
文章浏览阅读834次,点赞27次,收藏13次。网络拓扑结构是指计算机网络中各组件(如计算机、服务器、打印机、路由器、交换机等设备)及其连接线路在物理布局或逻辑构型上的排列形式。这种布局不仅描述了设备间的实际物理连接方式,也决定了数据在网络中流动的路径和方式。不同的网络拓扑结构影响着网络的性能、可靠性、可扩展性及管理维护的难易程度。_网络拓扑csdn
文章浏览阅读1.8k次,点赞5次,收藏8次。IOS系统Date的坑要创建一个指定时间的new Date对象时,通常的做法是:new Date("2020-09-21 11:11:00")这行代码在 PC 端和安卓端都是正常的,而在 iOS 端则会提示 Invalid Date 无效日期。在IOS年月日中间的横岗许换成斜杠,也就是new Date("2020/09/21 11:11:00")通常为了兼容IOS的这个坑,需要做一些额外的特殊处理,笔者在开发的时候经常会忘了兼容IOS系统。所以就想试着重写Date函数,一劳永逸,避免每次ne_date.prototype 将所有 ios
文章浏览阅读5.3k次。方法一:用PLSQL Developer工具。 1 在PLSQL Developer的sql window里输入select * from test for update; 2 按F8执行 3 打开锁, 再按一下加号. 鼠标点到第一列的列头,使全列成选中状态,然后粘贴,最后commit提交即可。(前提..._excel导入pl/sql
文章浏览阅读83次。Git常用命令速查手册1、初始化仓库git init2、将文件添加到仓库git add 文件名 # 将工作区的某个文件添加到暂存区 git add -u # 添加所有被tracked文件中被修改或删除的文件信息到暂存区,不处理untracked的文件git add -A # 添加所有被tracked文件中被修改或删除的文件信息到暂存区,包括untracked的文件...
文章浏览阅读202次。分享119个ASP.NET源码总有一个是你想要的_千博二手车源码v2023 build 1120
文章浏览阅读1.8k次。版权声明:转载请注明出处 http://blog.csdn.net/irean_lau。目录(?)[+]1、缺省构造函数。2、缺省拷贝构造函数。3、 缺省析构函数。4、缺省赋值运算符。5、缺省取址运算符。6、 缺省取址运算符 const。[cpp] view plain copy_空类默认产生哪些类成员函数