获取douyin商品详情:API接口的力量

devtools/2024/9/25 15:13:54/

什么是DouYin商品详情API?

douyin商品详情API是douyin开放平台提供的一项服务,允许开发者通过编程方式获取douyin商品的详细信息。这些信息通常包括商品的标题、价格、销量、描述、图片等。

API返回值说明

商品详情API返回的数据通常包括以下字段:

  • 商品ID(num_iid):商品的唯一标识符。
  • 标题(title):商品的标题,通常包含关键字。
  • 价格(price):商品的价格信息。
  • 销量(sales):商品的销售数量。
  • 描述(description):商品的详细描述。
  • 图片URL(image_url):商品图片的URL地址。
  • SKU信息(skus):商品的不同规格和价格。

示例返回值

以下是一个示例的API返回值,展示了获取商品详情的结构:

item_get-获得douyin商品详情

douyin.item_get

公共参数

名称类型必须描述
keyString调用key(必须以GET方式拼接在URL中)
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=3514453298386183303

参数说明:num_iid:douyin商品ID

响应参数

Version: Date:

名称类型必须示例值描述

item

item[]0宝贝详情数据

响应示例

{"item": {"num_iid": "3514453298386183303","title": "【古蒂歌品牌】精致磨毛纹理 叠穿衬衣女春装新款 高档磨毛衬衫 ","desc_short": "","price": 72,"total_price": "","suggestive_price": "","orginal_price": 72,"nick": "黄岛区古蒂歌服饰店","num": "","detail_url": "","pic_url": "https://p9-aio.ecombdimg.com/obj/temai/e9ed9a7b06bbbf03b769075a4cf12045www876-876","brand": "Gudige/古蒂歌","brandId": null,"rootCatId": 20005,"cid": 20179,"desc": "<p><img src=\"https://p9-aio.ecombdimg.com/obj/temai/9a37b5d7b8c164e0dec78115f7239c48455376e7www750-1136\" style=\"max-width: 100%;\"/><img src=\"https://p6-aio.ecombdimg.com/obj/temai/50abfe5404fcc642266e97ccfba53d46afc51a0cwww750-1136\" style=\"max-width: 100%;\"/><img src=\"https://p9-aio.ecombdimg.com/obj/temai/c2390e8b150255cbe2311467091844c296eaf6bawww750-1095\" style=\"max-width: 100%;\"/><img src=\"https://p3-aio.ecombdimg.com/obj/temai/d312afa85676443c7a807688d4aab85cwww800-800\" style=\"max-width: 100%;\"/><img src=\"https://p9-aio.ecombdimg.com/obj/temai/1abe68729b067631cb5844bfcd88fa439c16a03cwww750-1070\" style=\"max-width: 100%;\"/><img src=\"https://p3-aio.ecombdimg.com/obj/temai/330154d06bd7acfbc9fe46744a84f295www750-987\" style=\"max-width: 100%;\"/><img src=\"https://p3-aio.ecombdimg.com/obj/temai/00ad2cafeffa2a85f3ef914fe1e17d35www1098-616\" style=\"max-width: 100%;\"/><img src=\"https://p3-aio.ecombdimg.com/obj/temai/5910e6bf5d211c448fa269d67b7b22bccbc7e01bwww750-1038\" style=\"max-width: 100%;\"/><img src=\"https://p9-aio.ecombdimg.com/obj/temai/ef7c2487660576bb1e35e0f675a7d5ee89566e7ewww750-971\" style=\"max-width: 100%;\"/><img src=\"https://p6-aio.ecombdimg.com/obj/temai/f3ba562f0e4762641049268a558a243d68d0f4d9www750-1136\" style=\"max-width: 100%;\"/><img src=\"https://p3-aio.ecombdimg.com/obj/temai/9130ca6f53486030a306f48f44923e8796e59ca9www750-1105\" style=\"max-width: 100%;\"/><img src=\"https://p9-aio.ecombdimg.com/obj/temai/a3bf398e3439fe5c42c6cec8c3b2d008523a6f99www750-1136\" style=\"max-width: 100%;\"/><img src=\"https://p6-aio.ecombdimg.com/obj/temai/25f773b7a62d0b789d015198261c3aac0224d676www750-1136\" style=\"max-width: 100%;\"/><img src=\"https://p6-aio.ecombdimg.com/obj/temai/216c81f4115d9866134976c4e55b79d1cdfcfbdbwww750-955\" style=\"max-width: 100%;\"/><img src=\"https://p3-aio.ecombdimg.com/obj/temai/c819abbf998aa58443c6e383fe8da9a9d7a25afewww750-834\" style=\"max-width: 100%;\"/><img src=\"https://p6-aio.ecombdimg.com/obj/temai/82c9518b7438a5d30fb58efa1d872e3b50fa4a2ewww750-1136\" style=\"max-width: 100%;\"/><img src=\"https://p9-aio.ecombdimg.com/obj/temai/78c6e8944f3d936654accf6059e6f5adwww800-800\" style=\"max-width: 100%;\"/><img src=\"https://p3-aio.ecombdimg.com/obj/temai/40c2fc84c9e265b8a9897b8b77ce7764f347d00fwww750-952\" style=\"max-width: 100%;\"/><img src=\"https://p9-aio.ecombdimg.com/obj/temai/79b4eecb3924bc01d2143270ebf015fdb2d0127fwww750-960\" style=\"max-width: 100%;\"/><img src=\"https://p9-aio.ecombdimg.com/obj/temai/502e0ebbb534d4bcbdbca0ce158ee0ef917d9d1fwww750-1014\" style=\"max-width: 100%;\"/><img src=\"https://p3-aio.ecombdimg.com/obj/temai/7c3272bbd8ae080d91636773df0c0bc8bc2c5b1cwww750-1038\" style=\"max-width: 100%;\"/><img src=\"https://p9-aio.ecombdimg.com/obj/temai/2f9805ac9215f89da063aa3da473b06fa0591780www750-1080\" style=\"max-width: 100%;\"/><img src=\"https://p6-aio.ecombdimg.com/obj/temai/2713d6e8adf3fe59c0fd3d2c15829e924f63a46ewww750-1136\" style=\"max-width: 100%;\"/><img src=\"https://p6-aio.ecombdimg.com/obj/temai/b7331dd00e686a261912a54af4ae3f2b61311082www750-1136\" style=\"max-width: 100%;\"/><img src=\"https://p3-aio.ecombdimg.com/obj/temai/682379cd908fc0ee170b6ab914e9df374651c44bwww750-1136\" style=\"max-width: 100%;\"/><img src=\"https://p3-aio.ecombdimg.com/obj/temai/c1bc79f0eec46b8d6dc0c363dadc2f013d32f4a7www750-1136\" style=\"max-width: 100%;\"/><img src=\"https://p9-aio.ecombdimg.com/obj/temai/3fc35a21ed6161836e78f18a0c506112dc6c19d2www750-1136\" style=\"max-width: 100%;\"/><img src=\"https://p3-aio.ecombdimg.com/obj/temai/3c5d22702e1cd2de45c9ec3671c4154fe33e5ebewww750-1136\" style=\"max-width: 100%;\"/><img src=\"https://p6-aio.ecombdimg.com/obj/temai/b4d1d18942ec15e5f64f6f5aadf9b467cd92e21bwww750-1136\" style=\"max-width: 100%;\"/><img src=\"https://p9-aio.ecombdimg.com/obj/temai/87a96eccbacf3b3a20d99266f2d4b801f2352fa5www750-1136\" style=\"max-width: 100%;\"/><img src=\"https://p3-aio.ecombdimg.com/obj/temai/7db68c13bfd5ed2b1d27e85248ba85f60a9d24d2www750-1136\" style=\"max-width: 100%;\"/><img src=\"https://p6-aio.ecombdimg.com/obj/temai/75a8aa104430fc1227019d3b38f7a83e2f451e0bwww750-1136\" style=\"max-width: 100%;\"/></p><img src=\"https://www.o0b.cn/i.php?t.png&rid=gw-1.6256890da39ad&p=1778786962&k=i_key&t=1649838349\" style=\"display:none\" />","item_imgs": [{"url": "https://p3-aio.ecombdimg.com/obj/temai/e9ed9a7b06bbbf03b769075a4cf12045www876-876"},{"url": "https://p3-aio.ecombdimg.com/obj/temai/f6543c94a2c3c724fd57a8c61d6e79ec7bb846f5www800-800"},{"url": "https://p6-aio.ecombdimg.com/obj/temai/d312afa85676443c7a807688d4aab85cwww800-800"},{"url": "https://p3-aio.ecombdimg.com/obj/temai/104f75934f295b6395ec792ad755eed8b10f543dwww800-800"},{"url": "https://p3-aio.ecombdimg.com/obj/temai/3d65927c478ab58d06ecc31e6f541d2099e2429cwww800-800"}],"item_weight": "","post_fee": 0,"freight": 0,"express_fee": "","ems_fee": "","shipping_to": "","video": [],"sample_id": "","props_name": "0:1716041646595119:颜色分类:米杏色;1:1716041646595135:颜色分类:灰蓝色;2:1716041646596108:颜色分类:卡其色;3:1716041646596124:颜色分类:珍珠白;0:1716041646596156:尺码:S 建议100斤内穿;1:1716151478027315:尺码:M 建议100-113斤;2:1716151478028291:尺码:L 建议110-123斤;3:1716151478028307:尺码:XL 建议120-133斤;4:1716151478028323:尺码:2XL 建议130-158斤穿","prop_imgs": {"prop_img": []},"props_imgs": {"prop_img": []},"property_alias": "","props": [{"name": "上市年份季节","value": "2022"},{"name": "品牌","value": "Gudige/古蒂歌"},{"name": "图案","value": "纯色"},{"name": "成分含量","value": "95%以上"},{"name": "服装款式细节","value": "口袋,纽扣"},{"name": "服装版型","value": "宽松"},{"name": "衣长","value": "常规款"},{"name": "衣门襟","value": "单排多扣"},{"name": "袖型","value": "常规"},{"name": "袖长","value": "长袖"},{"name": "货号","value": "251"},{"name": "面料材质","value": "聚酯纤维"},{"name": "面料材质成分含量","value": "95%以上"},{"name": "领型","value": "POLO领"},{"name": "风格","value": "通勤"}],"total_sold": "1.3万+","skus": [],"seller_id": "","sales": 13000,"shop_id": "sXahcZg","props_list": {"0:1716041646595119": "颜色分类:米杏色","1:1716041646595135": "颜色分类:灰蓝色","2:1716041646596108": "颜色分类:卡其色","3:1716041646596124": "颜色分类:珍珠白","0:1716041646596156": "尺码:S 建议100斤内穿","1:1716151478027315": "尺码:M 建议100-113斤","2:1716151478028291": "尺码:L 建议110-123斤","3:1716151478028307": "尺码:XL 建议120-133斤","4:1716151478028323": "尺码:2XL 建议130-158斤穿"},"seller_info": {"nick": "黄岛区古蒂歌服饰店","item_score": 4.86,"score_p": 4.95,"delivery_score": 4.99,"shop_type": null,"shop_logo": "https://p3-aio.ecombdimg.com/obj/temai/1611656872ab5f2645a9f6cf20810db68844e3e3f5cf248f0f","sid": 1716041646595087,"title": "古蒂歌精品女装店","shop_name": "古蒂歌精品女装店"},"tmall": "","error": "","location": "广东省","desc_img": ["https://p9-aio.ecombdimg.com/obj/temai/9a37b5d7b8c164e0dec78115f7239c48455376e7www750-1136","https://p6-aio.ecombdimg.com/obj/temai/50abfe5404fcc642266e97ccfba53d46afc51a0cwww750-1136","https://p9-aio.ecombdimg.com/obj/temai/c2390e8b150255cbe2311467091844c296eaf6bawww750-1095","https://p3-aio.ecombdimg.com/obj/temai/d312afa85676443c7a807688d4aab85cwww800-800","https://p9-aio.ecombdimg.com/obj/temai/1abe68729b067631cb5844bfcd88fa439c16a03cwww750-1070","https://p3-aio.ecombdimg.com/obj/temai/330154d06bd7acfbc9fe46744a84f295www750-987","https://p3-aio.ecombdimg.com/obj/temai/00ad2cafeffa2a85f3ef914fe1e17d35www1098-616","https://p3-aio.ecombdimg.com/obj/temai/5910e6bf5d211c448fa269d67b7b22bccbc7e01bwww750-1038","https://p9-aio.ecombdimg.com/obj/temai/ef7c2487660576bb1e35e0f675a7d5ee89566e7ewww750-971","https://p6-aio.ecombdimg.com/obj/temai/f3ba562f0e4762641049268a558a243d68d0f4d9www750-1136","https://p3-aio.ecombdimg.com/obj/temai/9130ca6f53486030a306f48f44923e8796e59ca9www750-1105","https://p9-aio.ecombdimg.com/obj/temai/a3bf398e3439fe5c42c6cec8c3b2d008523a6f99www750-1136","https://p6-aio.ecombdimg.com/obj/temai/25f773b7a62d0b789d015198261c3aac0224d676www750-1136","https://p6-aio.ecombdimg.com/obj/temai/216c81f4115d9866134976c4e55b79d1cdfcfbdbwww750-955","https://p3-aio.ecombdimg.com/obj/temai/c819abbf998aa58443c6e383fe8da9a9d7a25afewww750-834","https://p6-aio.ecombdimg.com/obj/temai/82c9518b7438a5d30fb58efa1d872e3b50fa4a2ewww750-1136","https://p9-aio.ecombdimg.com/obj/temai/78c6e8944f3d936654accf6059e6f5adwww800-800","https://p3-aio.ecombdimg.com/obj/temai/40c2fc84c9e265b8a9897b8b77ce7764f347d00fwww750-952","https://p9-aio.ecombdimg.com/obj/temai/79b4eecb3924bc01d2143270ebf015fdb2d0127fwww750-960","https://p9-aio.ecombdimg.com/obj/temai/502e0ebbb534d4bcbdbca0ce158ee0ef917d9d1fwww750-1014","https://p3-aio.ecombdimg.com/obj/temai/7c3272bbd8ae080d91636773df0c0bc8bc2c5b1cwww750-1038","https://p9-aio.ecombdimg.com/obj/temai/2f9805ac9215f89da063aa3da473b06fa0591780www750-1080","https://p6-aio.ecombdimg.com/obj/temai/2713d6e8adf3fe59c0fd3d2c15829e924f63a46ewww750-1136","https://p6-aio.ecombdimg.com/obj/temai/b7331dd00e686a261912a54af4ae3f2b61311082www750-1136","https://p3-aio.ecombdimg.com/obj/temai/682379cd908fc0ee170b6ab914e9df374651c44bwww750-1136","https://p3-aio.ecombdimg.com/obj/temai/c1bc79f0eec46b8d6dc0c363dadc2f013d32f4a7www750-1136","https://p9-aio.ecombdimg.com/obj/temai/3fc35a21ed6161836e78f18a0c506112dc6c19d2www750-1136","https://p3-aio.ecombdimg.com/obj/temai/3c5d22702e1cd2de45c9ec3671c4154fe33e5ebewww750-1136","https://p6-aio.ecombdimg.com/obj/temai/b4d1d18942ec15e5f64f6f5aadf9b467cd92e21bwww750-1136","https://p9-aio.ecombdimg.com/obj/temai/87a96eccbacf3b3a20d99266f2d4b801f2352fa5www750-1136","https://p3-aio.ecombdimg.com/obj/temai/7db68c13bfd5ed2b1d27e85248ba85f60a9d24d2www750-1136","https://p6-aio.ecombdimg.com/obj/temai/75a8aa104430fc1227019d3b38f7a83e2f451e0bwww750-1136"],"shop_item": [],"relate_items": []},"secache": "13dfb7af3b9afe151343f76cf8040cc2","secache_time": 1649832242,"secache_date": "2022-04-13 14:44:02","translate_status": "","translate_time": 0,"language": {"default_lang": "cn","current_lang": "cn"},"error": "","reason": "","error_code": "0000","cache": 1,"api_info": "today:44 max:11000","execution_time": "0.058","server_time": "Beijing/2022-04-13 16:25:49","client_ip": "106.6.34.146","call_args": {"num_iid": "3514453298386183303"},"api_type": "douyin","translate_language": "zh-CN","translate_engine": "google_new","server_memory": "3.05MB","request_id": "gw-1.6256890da39ad","last_id": "880670193"
}


http://www.ppmy.cn/devtools/117020.html

相关文章

【网页设计】前言

本专栏主要记录 “网页设计” 这一课程的相关笔记。 参考资料&#xff1a; 黑马程序员&#xff1a;黑马程序员pink老师前端入门教程&#xff0c;零基础必看的h5(html5)css3移动端前端视频教程_哔哩哔哩_bilibili 教材&#xff1a;《Adobe创意大学 Dreamweaver CS6标准教材》《…

二次记录服务器被(logrotate)木马入侵事件

现象&#xff1a;SSH失败、CPU满转 服务器ssh登录不上&#xff0c;一直处于登录中状态。 于是进入云服务器控制台&#xff0c;CPU打满状态&#xff0c;知道服务器被攻击了 腾讯云入侵检测&#xff0c;高危命令报警 排查过程 尝试 VNC 登录 由于SSH登录不上&#xff0c;进入云…

【日记】感觉自己已经魔怔了(817 字)

正文 下午装档案的时候&#xff0c;无意间朝外看了一眼&#xff0c;发现自己视力衰退了好多。感觉两只眼睛都有散光了&#xff0c;看东西有重影。有些担心。 兄长血检报告出来了&#xff0c;血红蛋白高&#xff0c;肌酐低。尿酸倒是正常了&#xff0c;但总体还是偏高。我觉得好…

鸿蒙OpenHarmony【小型系统基础内核(进程管理任务)】子系统开发

任务 基本概念 从系统的角度看&#xff0c;任务Task是竞争系统资源的最小运行单元。任务可以使用或等待CPU、使用内存空间等系统资源&#xff0c;并独立于其它任务运行。 OpenHarmony 内核中使用一个任务表示一个线程。 OpenHarmony 内核中同优先级进程内的任务统一调度、运…

弹性负载均衡ELB 详解和设置方法

一、弹性负载均衡ELB 详解 1. 定义与概念 弹性负载均衡&#xff08;Elastic Load Balancing&#xff0c;简称ELB&#xff09;是一种将访问流量自动分发到多台云服务器的流量分发控制服务。它通过在多个后端服务器之间均衡分配请求&#xff0c;提高应用程序的可用性、可扩展性…

前后端分离,使用MOCK进行数据模拟开发,让前端攻城师独立于后端进行开发

mock是什么 Mock生成随机数据,拦截Ajax 请求&#xff0c;前后端分离&#xff0c;让前端攻城师独立于后端进行开发。 增加单元测试的真实性 通过随机数据,模拟各种场景。 在实际开发过程中&#xff0c;前端是通过axios来请求数据的&#xff0c;很多时候前端开发者就是通过写固定…

【计算机网络】详解UDP套接字网络字节序IP地址端口号

一、网络字节序 我们已经知道, 内存中的多字节数据相对于内存地址有大端和小端之分, 磁盘文件中的多字节数据相对于文件中的偏移地址也有大端小端之分, 网络数据流同样有大端小端之分. 发送主机通常将发送缓冲区中的数据按内存地址从低到高的顺序发出; 接收主机把从网络上接到…

一个使用 PyTorch 实现的中文聊天机器人对话生成模型916

这是一个使用 PyTorch 实现的中文聊天机器人对话生成模型。 1数据准备 代码假设有两个文件&#xff1a;questions.txt 和 answers.txt&#xff0c;它们分别包含输入和输出序列。 load_data 函数读取这些文件并返回一个句子列表。 build_vocab 函数通过遍历句子来构建词汇表字…