拼多多API接口:item_search - 根据关键词取商品列表
為了進行此平臺API的調用,首先我們需要做下面幾件事情。
1、 獲取一個KEY。
2、 參考API文檔里的接入方式和示例。
3、查看測試工具是否有需要的接口,響應實例的返回字段是否符合參數要求。
4、利用平臺的文檔中心和API測試工具,對接口進行測試、程序獲取。
更多API調用展示以及獲取Key和secret請注冊:
http://console.open.onebound.cn/console/?i=lucy
Result Object:
{
“items”: {
“keyword”: “玩具”,
“page”: “1”,
“real_total_results”: 811,
“total_results”: 811,
“list_count”: 19,
“item”: [
{
“title”: “兒童電動車四輪帶遙控寶寶汽車1-5歲男女小孩玩具車可坐人4驅充電”,
“pic_url”: “https://img.pddpic.com/gaudit-image/2022-02-20/f0a695f9ec99ee7c612e11eb1e5b5ed3.jpeg”,
“price”: 199,
“promotion_price”: 199,
“sales”: 100000,
“num_iid”: 325858177909,
“sample_id”: “”,
“seller_nick”: “蘋果嘉兒小果凍專賣店”,
“post_fee”: “”,
“area”: “”,
“detail_url”: “http://yangkeduo.com/goods.html?goods_id=325858177909”
},
{
“title”: “中動MK50鋼鐵俠漫威正版納米戰甲禮盒裝十周年紀念版mk123467”,
“pic_url”: “https://img.pddpic.com/gaudit-image/2022-01-27/10c1bfd14ea0c735df27e3c08fd22a24.jpeg”,
“price”: 39.88,
“promotion_price”: 39.88,
“sales”: 9073,
“num_iid”: 307937178042,
“sample_id”: “”,
“seller_nick”: “嗨嗨樂玩具多”,
“post_fee”: “”,
“area”: “”,
“detail_url”: “http://yangkeduo.com/goods.html?goods_id=307937178042”
},
{
“title”: “抖音同款網紅泡泡弓箭滋水槍一體戶外全自動燈光泡泡機男女孩玩具”,
“pic_url”: “https://img.pddpic.com/gaudit-image/2022-03-20/60d1ba3940f0de6ab28f6f8607f6aceb.jpeg”,
“price”: 25.9,
“promotion_price”: 25.9,
“sales”: 1878,
“num_iid”: 337002818131,
“sample_id”: “”,
“seller_nick”: “直亞箭玩具”,
“post_fee”: “”,
“area”: “”,
“detail_url”: “http://yangkeduo.com/goods.html?goods_id=337002818131”
},
{
“title”: “手勢感應遙控汽車機甲遙控坦克可發射水彈越野四驅男孩兒童玩具”,
“pic_url”: “https://img.pddpic.com/gaudit-image/2021-12-12/aa723208c0a0b35019899e6d363b0488.jpeg”,
“price”: 70.4,
“promotion_price”: 70.4,
“sales”: 31000,
“num_iid”: 310662092776,
“sample_id”: “”,
“seller_nick”: “諾巴曼玩具專營店”,
“post_fee”: “”,
“area”: “”,
“detail_url”: “http://yangkeduo.com/goods.html?goods_id=310662092776”
},
{
“title”: “兒童電動摩托車可坐人充電玩具車3-5-8-12歲歲男女寶寶雙人三輪車”,
“pic_url”: “https://img.pddpic.com/gaudit-image/2022-03-18/f4648789358310ea397d2727aec66d2f.jpeg”,
“price”: 355,
“promotion_price”: 355,
“sales”: 100000,
“num_iid”: 304051487471,
“sample_id”: “”,
“seller_nick”: “楊小君小店1”,
“post_fee”: “”,
“area”: “”,
“detail_url”: “http://yangkeduo.com/goods.html?goods_id=304051487471”
},
{
“title”: “萬高機械熊透視機甲模型成年高難度暴力熊積木大擺件拼裝玩具益智【4月15日發完】”,
“pic_url”: “https://img.pddpic.com/gaudit-image/2022-03-31/e4399c494d02ab3ef340e90fa05ef008.jpeg”,
“price”: 198,
“promotion_price”: 198,
“sales”: 3896,
“num_iid”: 343847485827,
“sample_id”: “”,
“seller_nick”: “子奕子奕玩具店”,
“post_fee”: “”,
“area”: “”,
“detail_url”: “http://yangkeduo.com/goods.html?goods_id=343847485827”
},
{
“title”: “偉力12429遙控越野四驅攀爬車1:12高速大腳漂移車RC模型電動玩具”,
“pic_url”: “https://img.pddpic.com/gaudit-image/2022-03-09/7e5393ad9ef7957a975c63bea1210a82.jpeg”,
“price”: 369,
“promotion_price”: 369,
“sales”: 15,
“num_iid”: 334903511283,
“sample_id”: “”,
“seller_nick”: “老頑童玩具之家”,
“post_fee”: “”,
“area”: “”,
“detail_url”: “http://yangkeduo.com/goods.html?goods_id=334903511283”
},
{
“title”: “巴克球1000顆便宜磁力球磁性魔力珠吸鐵石益智八克球拼裝磁鐵玩具”,
“pic_url”: “https://img.pddpic.com/gaudit-image/2022-03-05/920d13e229617d5cde0eed87ac592e24.jpeg”,
“price”: 2.8,
“promotion_price”: 2.8,
“sales”: 100000,
“num_iid”: 2129726905,
“sample_id”: “”,
“seller_nick”: “DIY 益智之家”,
“post_fee”: “”,
“area”: “”,
“detail_url”: “http://yangkeduo.com/goods.html?goods_id=2129726905”
},
{
“title”: “寶寶爬行圍欄防摔學步兒童地上圍欄護欄柵欄嬰兒游戲圍欄客廳家用”,
“pic_url”: “https://img.pddpic.com/gaudit-image/2021-08-27/a71819a4f2f58fe7826698ab26860c72.jpeg”,
“price”: 48.8,
“promotion_price”: 48.8,
“sales”: 100000,
“num_iid”: 271956892669,
“sample_id”: “”,
“seller_nick”: “hahafish旗艦店”,
“post_fee”: “”,
“area”: “”,
“detail_url”: “http://yangkeduo.com/goods.html?goods_id=271956892669”
},
{
“title”: “網紅迷你廚房食玩微縮小房子農家院全套兒童灶臺真煮可食用鍋具”,
“pic_url”: “https://img.pddpic.com/gaudit-image/2021-12-28/a69152c3ba53b6f7be771186ad8a53d5.jpeg”,
“price”: 54,
“promotion_price”: 54,
“sales”: 13000,
“num_iid”: 275206402942,
“sample_id”: “”,
“seller_nick”: “微型世界玩具店”,
“post_fee”: “”,
“area”: “”,
“detail_url”: “http://yangkeduo.com/goods.html?goods_id=275206402942”
},
{
“title”: “神奇水精靈 魔幻水寶寶玩具diy手工制作兒童益智水晶泥 女孩禮物”,
“pic_url”: “https://t00img.yangkeduo.com/goods/images/2020-09-29/a4749e2f9e18c94482e6ba902462750e.jpeg”,
“price”: 9.41,
“promotion_price”: 9.41,
“sales”: 100000,
“num_iid”: 182585791353,
“sample_id”: “”,
“seller_nick”: “蟲兒飛玩具屋”,
“post_fee”: “”,
“area”: “”,
“detail_url”: “http://yangkeduo.com/goods.html?goods_id=182585791353”
},
{
“title”: “寶寶游戲圍欄兒童安全柵欄家用爬行墊學步嬰兒圍擋室內玩具防護欄”,
“pic_url”: “https://t00img.yangkeduo.com/goods/images/2019-04-04/d423ef01d0e2c2f93741dd9112fa8211.jpeg”,
“price”: 87,
“promotion_price”: 87,
“sales”: 14000,
“num_iid”: 7181099272,
“sample_id”: “”,
“seller_nick”: “昌盛塑料制品廠”,
“post_fee”: “”,
“area”: “”,
“detail_url”: “http://yangkeduo.com/goods.html?goods_id=7181099272”
},
{
“title”: “正版盟卡車神之魔幻對決靈空戰神萌卡變形汽車機器人兒童男孩玩具”,
“pic_url”: “https://img.pddpic.com/gaudit-image/2022-03-06/1fdd331912584ce7e90fb788ea7a73b9.jpeg”,
“price”: 22.9,
“promotion_price”: 22.9,
“sales”: 16000,
“num_iid”: 273719737041,
“sample_id”: “”,
“seller_nick”: “上海趣童實業有限公司”,
“post_fee”: “”,
“area”: “”,
“detail_url”: “http://yangkeduo.com/goods.html?goods_id=273719737041”
},
{
“title”: “【紐奇熱賣】兒童仿真恐龍動物樂園農場動物模型44件套玩具禮盒”,
“pic_url”: “https://img.pddpic.com/gaudit-image/2021-11-23/093fd80af21936ddfaee5f7b1eb94450.jpeg”,
“price”: 34,
“promotion_price”: 34,
“sales”: 6998,
“num_iid”: 8530516764,
“sample_id”: “”,
“seller_nick”: “紐奇母嬰玩具旗艦店”,
“post_fee”: “”,
“area”: “”,
“detail_url”: “http://yangkeduo.com/goods.html?goods_id=8530516764”
},
{
“title”: “滑梯兒童室內家用多功能小型寶寶玩具游樂場幼兒園嬰兒家庭小滑梯”,
“pic_url”: “https://img.pddpic.com/gaudit-image/2021-09-08/21894400ef6bf3dca671119cdaf86364.jpeg”,
“price”: 53,
“promotion_price”: 53,
“sales”: 7617,
“num_iid”: 259174176136,
“sample_id”: “”,
“seller_nick”: “溫州感恩游樂設備有限公司”,
“post_fee”: “”,
“area”: “”,
“detail_url”: “http://yangkeduo.com/goods.html?goods_id=259174176136”
},
{
“title”: “兒童識字神器有聲掛圖手指點讀發聲書早教幼兒園1600字認字學習機”,
“pic_url”: “https://img.pddpic.com/gaudit-image/2022-03-16/02e88f1d8ce52f1f59deeffb61f50ec9.jpeg”,
“price”: 45.9,
“promotion_price”: 45.9,
“sales”: 100000,
“num_iid”: 326068219696,
“sample_id”: “”,
“seller_nick”: “天涯拾趣玩具店”,
“post_fee”: “”,
“area”: “”,
“detail_url”: “http://yangkeduo.com/goods.html?goods_id=326068219696”
},
{
“title”: “兒童游戲圍欄嬰兒室內爬行防護欄寶寶家用安全布柵欄床上地上兩用”,
“pic_url”: “https://img.pddpic.com/gaudit-image/2021-12-19/2aedc5c2399e8fedd83dfaf8a4fe24c3.jpeg”,
“price”: 49,
“promotion_price”: 49,
“sales”: 2455,
“num_iid”: 242305919004,
“sample_id”: “”,
“seller_nick”: “酷拉熊母嬰旗艦店”,
“post_fee”: “”,
“area”: “”,
“detail_url”: “http://yangkeduo.com/goods.html?goods_id=242305919004”
},
{
“title”: “兒童淘金沙玩具淘礦石沙袋工具套裝考古挖掘寶石水晶尋寶藏女孩”,
“pic_url”: “https://img.pddpic.com/gaudit-image/2022-03-28/faa73fd864bbc7627ae054233d1fb621.jpeg”,
“price”: 69,
“promotion_price”: 69,
“sales”: 957,
“num_iid”: 332804926341,
“sample_id”: “”,
“seller_nick”: “手工益智玩具”,
“post_fee”: “”,
“area”: “”,
“detail_url”: “http://yangkeduo.com/goods.html?goods_id=332804926341”
},
{
“title”: “兒童電動扭扭車靜音萬向輪防側翻溜溜車可坐大人玩具車兩用滑行車”,
“pic_url”: “https://img.pddpic.com/gaudit-image/2021-09-19/193b10858baaee8920f8a39bb08e07ba.jpeg”,
“price”: 168,
“promotion_price”: 168,
“sales”: 3338,
“num_iid”: 224490017355,
“sample_id”: “”,
“seller_nick”: “沃瑪玩具”,
“post_fee”: “”,
“area”: “”,
“detail_url”: “http://yangkeduo.com/goods.html?goods_id=224490017355”
}
]
},
“error_code”: “0000”,
“reason”: “ok”,
“secache”: “8abdb2c4571b2001665fd8ce2257b62b”,
“secache_time”: 1649814424,
“secache_date”: “2022-04-13 09:47:04”,
“translate_status”: “”,
“translate_time”: 0,
“language”: {
“default_lang”: “cn”,
“current_lang”: “cn”
},
“error”: “”,
“cache”: 0,
“api_info”: “today:9 max:11000”,
“execution_time”: “0.805”,
“server_time”: “Beijing/2022-04-13 09:47:04”,
“client_ip”: “106.6.35.69”,
“call_args”: {
“q”: “玩具”,
“start_price”: “0”,
“end_price”: “0”,
“page”: “1”,
“cat”: “0”
},
“api_type”: “pinduoduo”,
“translate_language”: “zh-CN”,
“translate_engine”: “baidu”,
“server_memory”: “3.18MB”,
“request_id”: “gw-1.62562b97b6064”,
“last_id”: “879943198”
}
總結
以上是生活随笔為你收集整理的拼多多API接口:item_search - 根据关键词取商品列表的全部內容,希望文章能夠幫你解決所遇到的問題。