拼多多商品详情采集上传京东店铺(拼多多商品详情接口,京东商品详情接口,拼多多整店宝贝采集接口,一键采集拼多多宝贝详情接口,无货源商品详情采集接口)代码对接教程如下:
1.公共参数
名称 | 类型 | 必须 | 描述(接口代码教程wx19970108018) |
---|---|---|---|
key | String | 是 | 调用key(必须以GET方式拼接在URL中,点击获取请求key和secret) |
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版本 |
2.请求参数
请求参数:num_iid=1620002566
参数说明:num_iid:商品ID ;
备注:淘宝天猫京东1688拼多多抖音等30多个电商平台都可以用商品ID请求接口拿到商品详情页面上所有看到的到的数据,然后进行上传至别的电商平台。
3.响应参数
4. 请求示例(CURL、PHP 、PHPsdk 、Java 、C# 、Python…)
# 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://wx19970108018/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)
5.响应示例
{
"item": {
"SourceType": 6,
"OfferId": 1620002566,
"CategoryId": 8484,
"Subject": "【2件套】套装秋冬新款仿獭兔毛钉珠皮草毛毛短外套加厚大衣女装",
"ImageUrls": [
"https://omsproductionimg.yangkeduo.com/images/2017-12-12/bcf848aa71c6389607ae7a84b70f1543.jpeg",
"https://omsproductionimg.yangkeduo.com/images/2017-12-12/176019babfdecffa1d9f98f40b7e99b4.jpeg",
"https://omsproductionimg.yangkeduo.com/images/2017-12-12/efb5db42397550bffd3211ca6f197498.jpeg",
"https://omsproductionimg.yangkeduo.com/images/2017-12-12/d209ef7bcc9183c3bb8ca1dfdb108d49.jpeg",
"https://omsproductionimg.yangkeduo.com/images/2017-12-12/74257ab65f3f00da7a90fde9042fe640.jpeg",
"https://img.pddpic.com/goods/images/2019-08-17/e8fbd9cb-cc74-4caa-9380-84c46d27b008.jpg",
"https://img.pddpic.com/goods/images/2019-08-17/d76f515b-e375-4060-b94e-cf64f6b0964e.jpg",
"https://img.pddpic.com/goods/images/2019-08-17/f2f279b5-6000-4fbe-b99b-7c1cbd7884ea.jpg"
],
"SkuProps": [
{
"IsImg": true,
"Prop": "颜色",
"Value": [
{
"name": "粉色两件套(外套+裙子)",
"value": "1215:1115500378",
"imageUrl": "https://t00img.yangkeduo.com/goods/images/2018-08-28/062d42b525a7c786920cbb83ac772af7.jpeg"
},
{
"name": "米色两件套(外套+裙子)",
"value": "1215:1115501666",
"imageUrl": "https://t00img.yangkeduo.com/goods/images/2018-08-28/415bed99d5a925123d7b7c39547205de.jpeg"
},
{
"name": "蓝色两件套(外套+裙子)",
"value": "1215:105309781",
"imageUrl": "https://t00img.yangkeduo.com/goods/images/2018-11-17/801a2e23140bfe76229f02aab0a8a5fe.jpeg"
}
]
},
{
"IsImg": false,
"Prop": "尺码",
"Value": [
{
"name": "S(90斤以下)",
"value": "1226:119128"
},
{
"name": "M(90-100斤)",
"value": "1226:96784"
},
{
"name": "L(100-110斤)",
"value": "1226:33651"
},
{
"name": "XL(110-120斤)",
"value": "1226:33652"
},
{
"name": "2XL(120-130斤)",
"value": "1226:33653"
},
{
"name": "3XL(130-140斤)",
"value": "1226:33656"
}
]
}
],
"SkuMaps": [
{
"SkuId": "57114357891",
"Key": "1215:1115500378;1226:119128",
"SpecAttributes": {
"颜色": "粉色两件套(外套+裙子)",
"尺码": "S(90斤以下)"
},
"Price": 95.4,
"OriginalPrice": 115,
"AmountOnSale": 80,
"ImageUrl": "https://t00img.yangkeduo.com/goods/images/2018-08-28/062d42b525a7c786920cbb83ac772af7.jpeg"
},
{
"SkuId": "57114357892",
"Key": "1215:1115500378;1226:96784",
"SpecAttributes": {
"颜色": "粉色两件套(外套+裙子)",
"尺码": "M(90-100斤)"
},
"Price": 95.4,
"OriginalPrice": 115,
"AmountOnSale": 32,
"ImageUrl": "https://t00img.yangkeduo.com/goods/images/2018-08-28/062d42b525a7c786920cbb83ac772af7.jpeg"
},
{
"SkuId": "57114357893",
"Key": "1215:1115500378;1226:33651",
"SpecAttributes": {
"颜色": "粉色两件套(外套+裙子)",
"尺码": "L(100-110斤)"
},
"Price": 95.4,
"OriginalPrice": 115,
"AmountOnSale": 46,
"ImageUrl": "https://t00img.yangkeduo.com/goods/images/2018-08-28/062d42b525a7c786920cbb83ac772af7.jpeg"
},
{
"SkuId": "57114357894",
"Key": "1215:1115500378;1226:33652",
"SpecAttributes": {
"颜色": "粉色两件套(外套+裙子)",
"尺码": "XL(110-120斤)"
},
"Price": 95.4,
"OriginalPrice": 115,
"AmountOnSale": 6,
"ImageUrl": "https://t00img.yangkeduo.com/goods/images/2018-08-28/062d42b525a7c786920cbb83ac772af7.jpeg"
},
{
"SkuId": "57114357895",
"Key": "1215:1115500378;1226:33653",
"SpecAttributes": {
"颜色": "粉色两件套(外套+裙子)",
"尺码": "2XL(120-130斤)"
},
"Price": 95.4,
"OriginalPrice": 115,
"AmountOnSale": 33,
"ImageUrl": "https://t00img.yangkeduo.com/goods/images/2018-08-28/062d42b525a7c786920cbb83ac772af7.jpeg"
},
{
"SkuId": "57114357896",
"Key": "1215:1115500378;1226:33656",
"SpecAttributes": {
"颜色": "粉色两件套(外套+裙子)",
"尺码": "3XL(130-140斤)"
},
"Price": 95.4,
"OriginalPrice": 115,
"AmountOnSale": 17,
"ImageUrl": "https://t00img.yangkeduo.com/goods/images/2018-08-28/062d42b525a7c786920cbb83ac772af7.jpeg"
},
{
"SkuId": "57114357897",
"Key": "1215:1115501666;1226:119128",
"SpecAttributes": {
"颜色": "米色两件套(外套+裙子)",
"尺码": "S(90斤以下)"
},
"Price": 95.4,
"OriginalPrice": 115,
"AmountOnSale": 1000,
"ImageUrl": "https://t00img.yangkeduo.com/goods/images/2018-08-28/415bed99d5a925123d7b7c39547205de.jpeg"
},
{
"SkuId": "57114357898",
"Key": "1215:1115501666;1226:96784",
"SpecAttributes": {
"颜色": "米色两件套(外套+裙子)",
"尺码": "M(90-100斤)"
},
"Price": 95.4,
"OriginalPrice": 115,
"AmountOnSale": 117,
"ImageUrl": "https://t00img.yangkeduo.com/goods/images/2018-08-28/415bed99d5a925123d7b7c39547205de.jpeg"
},
{
"SkuId": "57114357899",
"Key": "1215:1115501666;1226:33651",
"SpecAttributes": {
"颜色": "米色两件套(外套+裙子)",
"尺码": "L(100-110斤)"
},
"Price": 95.4,
"OriginalPrice": 115,
"AmountOnSale": 86,
"ImageUrl": "https://t00img.yangkeduo.com/goods/images/2018-08-28/415bed99d5a925123d7b7c39547205de.jpeg"
},
{
"SkuId": "57114357900",
"Key": "1215:1115501666;1226:33652",
"SpecAttributes": {
"颜色": "米色两件套(外套+裙子)",
"尺码": "XL(110-120斤)"
},
"Price": 95.4,
"OriginalPrice": 115,
"AmountOnSale": 689,
"ImageUrl": "https://t00img.yangkeduo.com/goods/images/2018-08-28/415bed99d5a925123d7b7c39547205de.jpeg"
},
{
"SkuId": "57114357901",
"Key": "1215:1115501666;1226:33653",
"SpecAttributes": {
"颜色": "米色两件套(外套+裙子)",
"尺码": "2XL(120-130斤)"
},
"Price": 95.4,
"OriginalPrice": 115,
"AmountOnSale": 47,
"ImageUrl": "https://t00img.yangkeduo.com/goods/images/2018-08-28/415bed99d5a925123d7b7c39547205de.jpeg"
},
{
"SkuId": "57114357902",
"Key": "1215:1115501666;1226:33656",
"SpecAttributes": {
"颜色": "米色两件套(外套+裙子)",
"尺码": "3XL(130-140斤)"
},
"Price": 95.4,
"OriginalPrice": 115,
"AmountOnSale": 48,
"ImageUrl": "https://t00img.yangkeduo.com/goods/images/2018-08-28/415bed99d5a925123d7b7c39547205de.jpeg"
},
{
"SkuId": "103851107853",
"Key": "1215:105309781;1226:33653",
"SpecAttributes": {
"颜色": "蓝色两件套(外套+裙子)",
"尺码": "2XL(120-130斤)"
},
"Price": 95.4,
"OriginalPrice": 115,
"AmountOnSale": 0,
"ImageUrl": "https://t00img.yangkeduo.com/goods/images/2018-11-17/801a2e23140bfe76229f02aab0a8a5fe.jpeg"
},
{
"SkuId": "103851107854",
"Key": "1215:105309781;1226:33656",
"SpecAttributes": {
"颜色": "蓝色两件套(外套+裙子)",
"尺码": "3XL(130-140斤)"
},
"Price": 95.4,
"OriginalPrice": 115,
"AmountOnSale": 0,
"ImageUrl": "https://t00img.yangkeduo.com/goods/images/2018-11-17/2f202934f16f0eee41257b77bf489262.jpeg"
},
{
"SkuId": "103851107855",
"Key": "1215:105309781;1226:119128",
"SpecAttributes": {
"颜色": "蓝色两件套(外套+裙子)",
"尺码": "S(90斤以下)"
},
"Price": 95.4,
"OriginalPrice": 115,
"AmountOnSale": 0,
"ImageUrl": "https://t00img.yangkeduo.com/goods/images/2018-11-17/48b30664f0f7e526ab1b956e813f25cf.jpeg"
},
{
"SkuId": "103851107856",
"Key": "1215:105309781;1226:96784",
"SpecAttributes": {
"颜色": "蓝色两件套(外套+裙子)",
"尺码": "M(90-100斤)"
},
"Price": 95.4,
"OriginalPrice": 115,
"AmountOnSale": 0,
"ImageUrl": "https://t00img.yangkeduo.com/goods/images/2018-11-17/3660b7893ca5cda1ffcea745d10b2506.jpeg"
},
{
"SkuId": "103851107857",
"Key": "1215:105309781;1226:33651",
"SpecAttributes": {
"颜色": "蓝色两件套(外套+裙子)",
"尺码": "L(100-110斤)"
},
"Price": 95.4,
"OriginalPrice": 115,
"AmountOnSale": 0,
"ImageUrl": "https://t00img.yangkeduo.com/goods/images/2018-11-17/a4a5a671afbb2d8e1f4c21c0ced3bea8.jpeg"
},
{
"SkuId": "103851107858",
"Key": "1215:105309781;1226:33652",
"SpecAttributes": {
"颜色": "蓝色两件套(外套+裙子)",
"尺码": "XL(110-120斤)"
},
"Price": 95.4,
"OriginalPrice": 115,
"AmountOnSale": 0,
"ImageUrl": "https://t00img.yangkeduo.com/goods/images/2018-11-17/f0551176629bf81f25757c160198dba1.jpeg"
}
],
"PriceRangeInfos": [
{
"ConvertPrice": 0,
"Price": 95.4,
"Range": ">3"
}
],
"OriginalPriceRangeInfos": [
{
"ConvertPrice": 0,
"Price": 115,
"Range": ">3"
}
],
"AmountOnSale": 2201,
"DescUrl": null,
"Detail": "<img src=\"https://t00img.yangkeduo.com/goods/images/2019-02-15/ddf6fe7b-b536-4183-932d-69a1189a3f59.png\" style=\"width:100%;\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/20f659b04d3e7e5851c27ff9931c96fc.jpeg\" style=\"width:100%;\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2019-11-14/4420a8c3-49ed-46d8-ab55-15e7a638ca31.jpg\" style=\"width:100%;\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/26c3e9d5cfbaf4e8f13b2bdd38f48d71.jpeg\" style=\"width:100%;\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/0aa872fa74599dad7b6aefe6b6c035c0.jpeg\" style=\"width:100%;\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/6bc959e32a30424c7a5284a37676999c.jpeg\" style=\"width:100%;\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/1fa9861a8c99c5e9e8119fd2239fef5a.jpeg\" style=\"width:100%;\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/b62cabf1d2320c5761e3f4c15203fb20.jpeg\" style=\"width:100%;\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/6f6e54376a66cbc78e16700d4c424fe1.jpeg\" style=\"width:100%;\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/2f60753dfc875a6876adc35833a69d31.jpeg\" style=\"width:100%;\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/ae0116e589d8de712f8dafd0c356cefe.jpeg\" style=\"width:100%;\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/da910c98fcc8de1b4d2d1498cd7899fd.jpeg\" style=\"width:100%;\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/140349649d8b7d08c8e88bfbbaa2f900.jpeg\" style=\"width:100%;\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/a953bae2eeb7364ef3ef2976a97d07eb.jpeg\" style=\"width:100%;\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/4da59828136c3b1308aad0aa990778a7.jpeg\" style=\"width:100%;\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/4a365b61a80e47288c8609ccd5982396.jpeg\" style=\"width:100%;\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-11-17/cd0a8a96b783a51236812ce24c59a329.jpeg\" style=\"width:100%;\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-11-17/16008ac19768d05e7dee16406ff958a1.jpeg\" style=\"width:100%;\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-11-17/ef1d17b69ebf9449a8bb52459b168c26.jpeg\" style=\"width:100%;\"/>",
"ProductFeatures": {
"面料材质": "仿皮草",
"成分含量": "71%(含)—80%(含)",
"版型": "修身",
"领型": "圆领",
"衣长": "短款",
"是否带毛领": "不带毛领",
"主风格": "气质名媛"
},
"ProductFeatureTuples": [
{
"Item1": "面料材质",
"Item2": "仿皮草"
},
{
"Item1": "成分含量",
"Item2": "71%(含)—80%(含)"
},
{
"Item1": "版型",
"Item2": "修身"
},
{
"Item1": "领型",
"Item2": "圆领"
},
{
"Item1": "衣长",
"Item2": "短款"
},
{
"Item1": "是否带毛领",
"Item2": "不带毛领"
},
{
"Item1": "主风格",
"Item2": "气质名媛"
}
],
"Unit": null,
"Delivery": {
"From": null,
"To": null,
"Postage": "快递 免运费",
"extras": null,
"Info": null,
"MarkInfo": null
},
"MainImageVideo": "https://video3.pddpic.com/i1/20181117/8ac5fdfc6f634778876ecfc123406b37.mp4",
"ShopName": "果果家气质女装",
"ShopUrl": "http://yangkeduo.com/mall_page.html?mall_id=461742",
"ShopId": "461742",
"UserId": null,
"SellerId": null,
"SellerNick": null,
"ShopInfo": null,
"SellCount": "已拼4.1万件",
"Coupon": null,
"Tag": [
"{\"neighbor_status\":1,\"neighbor_data\":{\"combine_group\":{\"group_total\":2,\"combine_group_list\":[{\"group_order_id\":\"1767182232042280741\",\"member_info_list\":[{\"nickname\":\"陈如\",\"avatar\":\"https://avatar2.pddpic.com/a/Q0dOVnAwRjZiUmM2QmkvY1pqdkxDOXF3RFUxTlV4REcvdz09djA0-1656876700?imageMogr2/thumbnail/100x\",\"is_friend\":false}],\"is_self_group\":false,\"button_desc\":\"去拼单\",\"group_type\":1,\"is_shared\":false,\"tag_list\":[{\"desc\":\"拼过2次\",\"type\":2}]},{\"group_order_id\":\"1739005337322900665\",\"member_info_list\":[{\"nickname\":\"181****9767\",\"avatar\":\"https://avatar2.pddpic.com/avatar/default/9.png\",\"is_friend\":false}],\"is_self_group\":false,\"button_desc\":\"去拼单\",\"group_type\":1,\"is_shared\":false,\"tag_list\":[{\"desc\":\"拼过6次\",\"type\":2}]}],\"recommend_group\":{\"group_order_id\":\"1767182232042280741\",\"member_info_list\":[{\"nickname\":\"陈如\",\"avatar\":\"https://avatar2.pddpic.com/a/Q0dOVnAwRjZiUmM2QmkvY1pqdkxDOXF3RFUxTlV4REcvdz09djA0-1656876700?imageMogr2/thumbnail/100x\",\"is_friend\":false}],\"is_self_group\":false,\"button_desc\":\"去拼单\",\"group_type\":1,\"is_shared\":false,\"tag_list\":[{\"desc\":\"拼过2次\",\"type\":2}]},\"combine_group_desc\":\"这些人刚刚拼单成功,可参与拼单\",\"combine_group_popup_title\":\"可参与的拼单\",\"combine_group_popup_footer\":\"\",\"combine_group_button_desc\":\"去拼单\",\"pulldown_group\":{\"group_info\":{\"group_order_id\":\"1767182232042280741\",\"member_info_list\":[{\"nickname\":\"陈如\",\"avatar\":\"https://avatar2.pddpic.com/a/Q0dOVnAwRjZiUmM2QmkvY1pqdkxDOXF3RFUxTlV4REcvdz09djA0-1656876700?imageMogr2/thumbnail/100x\",\"is_friend\":false}],\"is_self_group\":false,\"button_desc\":\"去拼单\",\"group_type\":1,\"is_shared\":false,\"tag_list\":[{\"desc\":\"拼过2次\",\"type\":2}]},\"group_title_info\":{\"group_title_desc\":\"刚刚拼单成功,可参与拼单\",\"need_join_countdown\":false}}}}}"
],
"FansCount": null,
"RateCount": null,
"RetryCount": 0,
"_ddf": "ha2",
"format_check": "ok"
},
"error": "",
"secache": "c98b29872e8a4b28859db207944ba817",
"secache_time": 1660879101,
"secache_date": "2022-08-19 11:18:21",
"reason": "",
"error_code": "0000",
"cache": 0,
"api_info": "today:110 max:10100 all[180=110+43+27];expires:2030-12-31",
"execution_time": "0.583",
"server_time": "Beijing/2022-08-19 11:18:21",
"client_ip": "106.6.39.33",
"call_args": {
"num_iid": "1620002566"
},
"api_type": "pinduoduo",
"translate_language": "zh-CN",
"translate_engine": "baidu",
"server_memory": "3.19MB",
"request_id": "gw-3.62ff00fce1f72",
"last_id": "1160982000"
}