开放API

  • 技术交流QQ群 1093476453
  • baseURL http://39.105.38.10:8081/pdd/

1.商品搜索

  • api /search
  • 参数:
参数名 必选 类型 说明
word string 关键词
page int 页码 默认1
tags arr 活动id 示例 tags[]=4&tags[]=7
  • tags 4-秒杀,7-百亿补贴,31-品牌黑标,10564-精选爆品-官方直推爆款,10584-精选爆品-团长推荐,20-行业精选,21-金牌商家,10044-潜力爆品,10475-爆品上新,10666-开年暖心补贴类目
  • 返回结果
{
    "coderYJ": "简书关注coderYJ 欢迎加QQ群讨论277030213",
    "code": 200,
    "msg": "请求成功",
    "data": {
        "page": 1,
        "limit": 20,
        "subject": {
            "goods_search_response": {
                "goods_list": [
                    {
                        "mall_coupon_remain_quantity": 0,
                        "plan_type": 2,
                        "category_name": "男装",
                        "coupon_remain_quantity": 7000,
                        "promotion_rate": 49,
                        "cat_ids": [
                            239,
                            7295,
                            7307
                        ],
                        "coupon_min_order_amount": 300,
                        "category_id": 11841,
                        "mall_coupon_discount_pct": 0,
                        "mall_id": 903344615,
                        "activity_type": 3,
                        "mall_name": "BANILUS服装官方旗舰店",
                        "coupon_total_quantity": 10000,
                        "mall_coupon_end_time": 0,
                        "mall_coupon_min_order_amount": 0,
                        "merchant_type": 3,
                        "lgst_txt": "高",
                        "goods_name": "秋冬加绒潮牌工装裤男宽松大码休闲裤子男学生韩版潮流哈伦束脚裤",
                        "sales_tip": "10万+",
                        "only_scene_auth": true,
                        "goods_id": 182654909416,
                        "predict_promotion_rate": 49,
                        "desc_txt": "高",
                        "mall_coupon_id": 0,
                        "goods_desc": "秋冬加绒潮牌工装裤男宽松大码休闲裤子男学生韩版潮流哈伦束脚裤",
                        "opt_name": "男装",
                        "share_rate": 0,
                        "goods_thumbnail_url": "https://t00img.yangkeduo.com/goods/images/2020-09-30/dc977f096601af79f977aecc2130582d.jpeg",
                        "opt_ids": [
                           
                        ],
                        "opt_id": 11841,
                        "search_id": "455f8567-210f-4860-8b2f-086296ba9e37",
                        "goods_image_url": "https://img.pddpic.com/mms-material-img/2020-09-30/0c241315-2d83-4464-ba23-c4bbf567aaa1.jpeg.a.jpeg",
                        "activity_tags": [
                            21,
                            10641,
                            10650
                        ],
                        "has_mall_coupon": false,
                        "has_coupon": true,
                        "min_normal_price": 3880,
                        "mall_coupon_start_time": 0,
                        "serv_txt": "高",
                        "mall_coupon_total_quantity": 0,
                        "mall_coupon_max_discount_amount": 0,
                        "coupon_start_time": 1609603200,
                        "min_group_price": 2850,
                        "mall_cps": 1,
                        "coupon_discount": 300,
                        "goods_sign": "c972iO1aRXxPUq-xwfDYrxDZds_a_JAYPiP7VK",
                        "coupon_end_time": 1612022399,
                        "zs_duo_id": 0
                    }
                ],
                "list_id": "455f8567-210f-4860-8b2f-086296ba9e37",
                "total_count": 919,
                "request_id": "16119070130032644",
                "search_id": "455f8567-210f-4860-8b2f-086296ba9e37"
            }
        }
    }
}

2.爆款商品

  • api /recommend
  • 参数:
参数名 必选 类型 说明
catId int 分类id 默认20100
page int 页码 默认1
type int 类型 默认5
  • catId 20100-百货,20200-母婴,20300-食品,20400-女装,20500-电器,20600-鞋包,20700-内衣,20800-美妆,20900-男装,21000-水果,21100-家纺,21200-文具,21300-运动,21400-虚拟,21500-汽车,21600-家装,21700-家具,21800-医药;
  • type 0-1.9包邮, 1-今日爆款, 2-品牌好货,3-相似商品推荐,4-猜你喜欢,5-实时热销榜,6-实时收益榜,7-今日热销榜,8-高佣榜单,默认值5
  • 返回结果
{
    "coderYJ": "简书关注coderYJ 欢迎加QQ群讨论277030213",
    "code": 200,
    "msg": "请求成功",
    "data": {
        "page": 0,
        "limit": 20,
        "subject": {
            "goods_basic_detail_response": {
                "total": 1000,
                "list_id": "1611907405927_a856752b23211b05e88e3770c2b3f24b",
                "list": [
                    {
                        "category_name": "零食/坚果/特产",
                        "coupon_remain_quantity": 2400,
                        "promotion_rate": 140,
                        "cat_ids": [
                            6398,
                            6465,
                            6467,
                            7533
                        ],
                        "coupon_min_order_amount": 4300,
                        "category_id": "11876",
                        "mall_id": 422536299,
                        "mall_name": "猫脚丫食品官方旗舰店",
                        "coupon_total_quantity": 5000,
                        "merchant_type": "3",
                        "lgst_txt": "高",
                        "goods_name": "贝士优榴莲千层蛋糕爆浆6寸猫山王榴莲奶油网红生日蛋糕厂家直销",
                        "sales_tip": "2214",
                        "goods_id": 218622499808,
                        "desc_txt": "高",
                        "predict_promotion_rate": 140,
                        "goods_desc": "贝士优榴莲千层蛋糕爆浆6寸猫山王榴莲奶油网红生日蛋糕厂家直销",
                        "opt_name": "零食/坚果/特产",
                        "goods_thumbnail_url": "https://t00img.yangkeduo.com/goods/images/2021-01-23/d858c7960e04e059fd33ff894cd0f363.jpeg",
                        "share_rate": 0,
                        "opt_id": "11876",
                        "opt_ids": [
                            
                        ],
                        "search_id": "56f313bf145a34a689eb2eae9e1417fab76",
                        "goods_image_url": "https://img.pddpic.com/mms-material-img/2021-01-23/2021-01-23/b5c8abd5-8b98-4f2c-b2af-8df725210a22.jpeg.a.jpeg",
                        "has_coupon": true,
                        "min_normal_price": 6900,
                        "serv_txt": "高",
                        "coupon_start_time": 1611849600,
                        "min_group_price": 6590,
                        "coupon_discount": 4300,
                        "goods_sign": "c9_2kIykZXRPUq-xwfvYr5_rZ_6A_J2jAZR9Ld",
                        "coupon_end_time": 1612195199
                    }
                ],
                "request_id": "16119074058647256",
                "search_id": "56f313bf145a34a689eb2eae9e1417fab76"
            }
        }
    }
}

3.商品详情

  • api /detail
  • 参数:
参数名 必选 类型 说明
goodsId_list arr 商品id 示例 goodsId_list[]=218622499808&goodsId_list[]=182654909416
  • 返回结果
{
    "coderYJ": "简书关注coderYJ 欢迎加QQ群讨论277030213",
    "code": 200,
    "msg": "请求成功",
    "data": {
        "goods_detail_response": {
            "goods_details": [
                {
                    "mall_coupon_remain_quantity": 0,
                    "plan_type": 2,
                    "category_name": "零食/坚果/特产",
                    "coupon_remain_quantity": 8000,
                    "promotion_rate": 70,
                    "cat_ids": [
                        6398,
                        6465,
                        6467,
                        7533
                    ],
                    "coupon_min_order_amount": 3000,
                    "category_id": 11876,
                    "mall_coupon_discount_pct": 0,
                    "mall_id": 422536299,
                    "mall_name": "猫脚丫食品官方旗舰店",
                    "coupon_total_quantity": 10000,
                    "mall_coupon_end_time": 0,
                    "mall_coupon_min_order_amount": 0,
                    "merchant_type": 3,
                    "lgst_txt": "高",
                    "goods_name": "贝士优榴莲千层蛋糕爆浆6寸猫山王榴莲奶油网红生日蛋糕厂家直销",
                    "sales_tip": "2227",
                    "only_scene_auth": true,
                    "goods_gallery_urls": [
                        "https://img.pddpic.com/mms-material-img/2021-01-20/2021-01-20/a62f037d-df0d-4911-8d32-272a682bd59c.jpeg.a.jpeg",
                        "https://img.pddpic.com/mms-material-img/2021-01-29/2021-01-29/58ee236e-2bdc-4900-ad0d-8538290c59d7.jpeg.a.jpeg",
                        "https://img.pddpic.com/mms-material-img/2021-01-20/2021-01-20/fb238715-9dc3-488c-937f-cab4c3ebb24b.jpeg.a.jpeg",
                        "https://img.pddpic.com/mms-material-img/2021-01-20/2021-01-20/764d9177-44f5-4a25-afbd-675947ad199e.jpeg.a.jpeg",
                        "https://img.pddpic.com/mms-material-img/2021-01-20/2021-01-20/9cdfb550-0e35-4286-aa20-c97b909ea841.jpeg.a.jpeg",
                        "https://img.pddpic.com/mms-material-img/2021-01-20/2021-01-20/92f902dd-094d-4969-9708-cbb6dadf46ad.jpeg.a.jpeg",
                        "https://img.pddpic.com/mms-material-img/2021-01-23/2021-01-23/ca527112-6967-496c-ad78-a9a47277e83f.jpeg.a.jpeg",
                        "https://img.pddpic.com/mms-material-img/2021-01-23/2021-01-23/9f4590fb-2697-4836-9f09-4ef3a9bafd39.jpeg.a.jpeg",
                        "https://img.pddpic.com/mms-material-img/2021-01-23/2021-01-23/b5c8abd5-8b98-4f2c-b2af-8df725210a22.jpeg.a.jpeg"
                    ],
                    "goods_id": 218622499808,
                    "predict_promotion_rate": 70,
                    "desc_txt": "高",
                    "goods_desc": "贝士优榴莲千层蛋糕爆浆6寸猫山王榴莲奶油网红生日蛋糕厂家直销",
                    "opt_name": "零食/坚果/特产",
                    "share_rate": 0,
                    "goods_thumbnail_url": "https://t00img.yangkeduo.com/goods/images/2021-01-23/d858c7960e04e059fd33ff894cd0f363.jpeg",
                    "opt_ids": [
                        
                    ],
                    "opt_id": 11876,
                    "goods_image_url": "https://img.pddpic.com/mms-material-img/2021-01-23/2021-01-23/b5c8abd5-8b98-4f2c-b2af-8df725210a22.jpeg.a.jpeg",
                    "has_mall_coupon": false,
                    "has_coupon": true,
                    "min_normal_price": 6900,
                    "mall_coupon_start_time": 0,
                    "serv_txt": "高",
                    "unified_tags": [
                        "极速退款"
                    ],
                    "video_urls": [],
                    "mall_coupon_total_quantity": 0,
                    "mall_coupon_max_discount_amount": 0,
                    "coupon_start_time": 1611417600,
                    "min_group_price": 6590,
                    "mall_cps": 1,
                    "coupon_discount": 3000,
                    "goods_sign": "c9f2kIykZXRPUq-xwfHYr_d7Yw-p_J2jAZR9Ld",
                    "coupon_end_time": 1614527999,
                    "zs_duo_id": 0
                }
            ],
            "request_id": "16119077296800171"
        }
    }
}

4.商品推广

  • api /promotion
  • 参数:
参数名 必选 类型 说明
goodsId_list arr 商品id 示例 goodsId_list[]=218622499808&goodsId_list[]=182654909416
  • 返回结果
{
    "coderYJ": "简书关注coderYJ 欢迎加QQ群讨论277030213",
    "code": 200,
    "msg": "请求成功",
    "data": {
        "goods_promotion_url_generate_response": {
            "goods_promotion_url_list": [
                {
                    "mobile_url": "https://mobile.yangkeduo.com/app.html?use_reload=1&launch_url=duo_coupon_landing.html%3Fgoods_id%3D218622499808%26pid%3D9301013_115780797%26goods_sign%3Dc9D2kIykZXRPUq-xwfPYr8ejCmZZ_J2jAZR9Ld%26customParameters%3D%257B%2522uid%2522%253A%2522997745354%2522%252C%2522sid%2522%253A%2522coderYJ%2522%252C%2522sub%2522%253A%2522coderYJ%2522%257D%26cpsSign%3DCC_210129_9301013_115780797_6968e19ddb8ea9f2df4e31a92cc8123b%26duoduo_type%3D2&campaign=ddjb&cid=launch_dl_force_",
                    "schema_url": "pinduoduo://com.xunmeng.pinduoduo/duo_coupon_landing.html?goods_id=218622499808&pid=9301013_115780797&goods_sign=c9D2kIykZXRPUq-xwfPYr8ejCmZZ_J2jAZR9Ld&customParameters=%7B%22uid%22%3A%22997745354%22%2C%22sid%22%3A%22coderYJ%22%2C%22sub%22%3A%22coderYJ%22%7D&cpsSign=CC_210129_9301013_115780797_6968e19ddb8ea9f2df4e31a92cc8123b&duoduo_type=2",
                    "we_app_info": {
                        "we_app_icon_url": "http://xcxcdn.yangkeduo.com/pdd_logo.png",
                        "user_name": "gh_a6611aee87d6",
                        "page_path": "package_a/welfare_coupon/welfare_coupon?goods_id=218622499808&pid=9301013_115780797&goods_sign=c9D2kIykZXRPUq-xwfPYr8ejCmZZ_J2jAZR9Ld&customParameters=%7B%22uid%22%3A%22997745354%22%2C%22sid%22%3A%22coderYJ%22%2C%22sub%22%3A%22coderYJ%22%7D&cpsSign=CC_210129_9301013_115780797_6968e19ddb8ea9f2df4e31a92cc8123b&duoduo_type=2&_oc_cps_sign=CC_210129_9301013_115780797_6968e19ddb8ea9f2df4e31a92cc8123b&_oc_pid=9301013_115780797",
                        "source_display_name": "拼多多福利券",
                        "title": "贝士优榴莲千层蛋糕爆浆6寸猫山王榴莲奶油网红生日蛋糕厂家直销",
                        "app_id": "wxa918198f16869201",
                        "desc": "拼多多,多实惠,多乐趣。"
                    },
                    "mobile_short_url": "https://p.pinduoduo.com/rnUcQb9Y",
                    "we_app_web_view_url": "https://mobile.yangkeduo.com/duo_coupon_landing.html?goods_id=218622499808&pid=9301013_115780797&goods_sign=c9D2kIykZXRPUq-xwfPYr8ejCmZZ_J2jAZR9Ld&customParameters=%7B%22uid%22%3A%22997745354%22%2C%22sid%22%3A%22coderYJ%22%2C%22sub%22%3A%22coderYJ%22%7D&cpsSign=CC_210129_9301013_115780797_6968e19ddb8ea9f2df4e31a92cc8123b&duoduo_type=2",
                    "url": "https://mobile.yangkeduo.com/duo_coupon_landing.html?goods_id=218622499808&pid=9301013_115780797&goods_sign=c9D2kIykZXRPUq-xwfPYr8ejCmZZ_J2jAZR9Ld&customParameters=%7B%22uid%22%3A%22997745354%22%2C%22sid%22%3A%22coderYJ%22%2C%22sub%22%3A%22coderYJ%22%7D&cpsSign=CC_210129_9301013_115780797_6968e19ddb8ea9f2df4e31a92cc8123b&duoduo_type=2",
                    "short_url": "https://p.pinduoduo.com/2YncbHOf",
                    "we_app_web_view_short_url": "https://p.pinduoduo.com/2YncbHOf"
                }
            ],
            "request_id": "16119078269573410"
        }
    }
}
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 206,126评论 6 481
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 88,254评论 2 382
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 152,445评论 0 341
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 55,185评论 1 278
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 64,178评论 5 371
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 48,970评论 1 284
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 38,276评论 3 399
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 36,927评论 0 259
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 43,400评论 1 300
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,883评论 2 323
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 37,997评论 1 333
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 33,646评论 4 322
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 39,213评论 3 307
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 30,204评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 31,423评论 1 260
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 45,423评论 2 352
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 42,722评论 2 345

推荐阅读更多精彩内容