import{_ as o,c as t,b as n,a as p,d as a,e,w as c,r,o as D}from"./app-Dgsdh8A6.js";const i={};function d(y,s){const l=r("RouteLink");return D(),t("div",null,[s[3]||(s[3]=n("h1",{id:"动态卡片信息字段",tabindex:"-1"},[n("a",{class:"header-anchor",href:"#动态卡片信息字段"},[n("span",null,"动态卡片信息字段")])],-1)),n("p",null,[s[1]||(s[1]=a("不同动态内容卡片的具体信息。包含在 ")),e(l,{to:"/docs/dynamic/get_dynamic_detail.html#%E8%8E%B7%E5%8F%96%E7%89%B9%E5%AE%9A%E5%8A%A8%E6%80%81%E5%8D%A1%E7%89%87%E4%BF%A1%E6%81%AF"},{default:c(()=>s[0]||(s[0]=[a("获取特定动态卡片信息")])),_:1,__:[0]}),s[2]||(s[2]=a(" 等 API 的 JSON 回复中"))]),s[4]||(s[4]=p(`

以card字段的形式出现,内容为一个可被解析为Json对象的字符串。

不同类型的动态内容拥有不同的字段。

注: 本处 type 一般不包含在 card 字符串代表的对象内


转发动态 (type=1)

需注意账号转发视频投稿,其他用户的动态以及分享收藏夹等均为转发类内容,并不属于type=4300的收藏类动态等。

在type=1的转发类动态中,解析出的对象包含以下内容:

字段类型内容备注
userobj转发者用户信息包含用户名,用户id和头像
itemobj转发相关信息content字段为转发附言
originstr被转发动态信息即本文档所描述的动态详细信息字段。
动态类型为item对象的orig_type字段
origin_extend_jsonstr被转发动态补充信息
origin_userobj被转发用户信息
activity_infosobj被转发动态参与的活动
查看字段内容示例:
{
  "user": {
    "uid": 1704629193,
    "uname": "钢板狗的狐",
    "face": "https://i0.hdslb.com/bfs/face/443bfd128429f84c0d81c20c4354ea5007f7480c.jpg"
  },
  "item": {
    "rp_id": 587236631985408400,
    "uid": 1704629193,
    "content": "#阅机无数#这是什么本子",
    "ctrl": "",
    "orig_dy_id": 587058081595689300,
    "pre_dy_id": 587058081595689300,
    "timestamp": 1635565083,
    "reply": 0,
    "orig_type": 8
  },
  "origin": "{\\"aid\\":933765713,\\"attribute\\":0,\\"cid\\":433047365,\\"copyright\\":1,\\"ctime\\":1635523511,\\"desc\\":\\"-\\",\\"dimension\\":{\\"height\\":1920,\\"rotate\\":0,\\"width\\":1080},\\"duration\\":200,\\"dynamic\\":\\"\\",\\"first_frame\\":\\"https:\\\\/\\\\/i2.hdslb.com\\\\/bfs\\\\/storyff\\\\/n211029a2nf13h6fhybt231isumtaj9x_firsti.jpg\\",\\"jump_url\\":\\"bilibili:\\\\/\\\\/video\\\\/933765713\\\\/?page=1&player_preload=null&player_width=1080&player_height=1920&player_rotate=0\\",\\"owner\\":{\\"face\\":\\"https:\\\\/\\\\/i0.hdslb.com\\\\/bfs\\\\/face\\\\/e4c06054bc9d6c564637f70a7565a6a2d24ee521.jpg\\",\\"mid\\":492755628,\\"name\\":\\"Leojdj\\"},\\"pic\\":\\"https:\\\\/\\\\/i2.hdslb.com\\\\/bfs\\\\/archive\\\\/8b3bd4387d4041389ba7f02ce813b17f96a7f1e2.jpg\\",\\"player_info\\":null,\\"pubdate\\":1635523511,\\"rights\\":{\\"autoplay\\":1,\\"bp\\":0,\\"download\\":0,\\"elec\\":0,\\"hd5\\":0,\\"is_cooperation\\":0,\\"movie\\":0,\\"no_background\\":0,\\"no_reprint\\":1,\\"pay\\":0,\\"ugc_pay\\":0,\\"ugc_pay_preview\\":0},\\"short_link\\":\\"https:\\\\/\\\\/b23.tv\\\\/BV16T4y1R7H9\\",\\"short_link_v2\\":\\"https:\\\\/\\\\/b23.tv\\\\/BV16T4y1R7H9\\",\\"stat\\":{\\"aid\\":933765713,\\"coin\\":0,\\"danmaku\\":0,\\"dislike\\":0,\\"favorite\\":1,\\"his_rank\\":0,\\"like\\":2,\\"now_rank\\":0,\\"reply\\":2,\\"share\\":1,\\"view\\":70},\\"state\\":0,\\"tid\\":95,\\"title\\":\\"试图安装Windows10\\",\\"tname\\":\\"数码\\",\\"up_from_v2\\":9,\\"videos\\":1}",
  "origin_extend_json": "{\\"\\":{\\"ogv\\":{\\"ogv_id\\":0}},\\"dispute\\":{\\"content\\":\\"\\"},\\"from\\":{\\"from\\":\\"\\"},\\"like_icon\\":{\\"action\\":\\"\\",\\"action_url\\":\\"\\",\\"end\\":\\"\\",\\"end_url\\":\\"\\",\\"start\\":\\"\\",\\"start_url\\":\\"\\"},\\"topic\\":{\\"is_attach_topic\\":1}}",
  "origin_user": {
    "info": {
      "uid": 492755628,
      "uname": "Leojdj",
      "face": "https://i0.hdslb.com/bfs/face/e4c06054bc9d6c564637f70a7565a6a2d24ee521.jpg"
    },
    "card": {
      "official_verify": {
        "type": -1,
        "desc": ""
      }
    },
    "vip": {
      "vipType": 0,
      "vipDueDate": 0,
      "vipStatus": 0,
      "themeType": 0,
      "label": {
        "path": "",
        "text": "",
        "label_theme": "",
        "text_color": "",
        "bg_style": 0,
        "bg_color": "",
        "border_color": ""
      },
      "avatar_subscript": 0,
      "nickname_color": "",
      "role": 0,
      "avatar_subscript_url": ""
    },
    "pendant": {
      "pid": 0,
      "name": "",
      "image": "",
      "expire": 0,
      "image_enhance": "",
      "image_enhance_frame": ""
    },
    "rank": "10000",
    "sign": "",
    "level_info": {
      "current_level": 3
    }
  },
  "activity_infos": {
    "details": [
      {
        "type": 1,
        "detail": "{\\"is_show\\":1,\\"topic_id\\":10511051,\\"topic_link\\":\\"https:\\\\/\\\\/member.bilibili.com\\\\/york\\\\/punch-card?navhide=1\\",\\"topic_name\\":\\"打卡挑战\\"}"
      }
    ]
  }
}

图片动态 (type=2)

在type=2的图片动态中,解析出的对象包含以下内容:

字段类型内容备注
itemobj图片动态内容description字段为文字内容
pictures字段图片
userobj发布者用户信息包含用户名,用户id和头像
查看字段内容示例:
{
  "item": {
    "at_control": "",
    "category": "daily",
    "description": "#阅机无数#已知这个笔记本的品牌为Dell,隶属于灵越系列,主打外观的设计,目测应该是4代酷睿之前的型号,CPU应该是低压i5/i3,不知道能否找出具体型号",
    "id": 172408258,
    "is_fav": 0,
    "pictures": [
      {
        "img_height": 2400,
        "img_size": 1425.97998046875,
        "img_src": "https://i0.hdslb.com/bfs/album/3716f26eeede4d77874f3eeacd49b0e2e597fcc3.jpg",
        "img_tags": null,
        "img_width": 1080
      }
    ],
    "pictures_count": 1,
    "reply": 2,
    "role": [],
    "settings": {
      "copy_forbidden": "0"
    },
    "source": [],
    "title": "",
    "upload_time": 1635433727
  },
  "user": {
    "head_url": "https://i1.hdslb.com/bfs/face/98f88e00306ac92d30bae013f8295d26bd018093.jpg",
    "name": "LostCity失落之城",
    "uid": 169216498,
    "vip": {
      "avatar_subscript": 0,
      "due_date": 0,
      "label": {
        "label_theme": "",
        "path": "",
        "text": ""
      },
      "nickname_color": "",
      "status": 0,
      "theme_type": 0,
      "type": 0,
      "vip_pay_type": 0
    }
  }
}

文字动态 (type=4)

在type=4的文字动态中,解析出的对象包含以下内容:

字段类型内容备注
itemobj文字动态内容description字段为文字内容
userobj发布者用户信息包含用户名,用户id和头像
查看字段内容示例:
{
  "user": {
    "uid": 403417570,
    "uname": "杯子人一君羊",
    "face": "https://i1.hdslb.com/bfs/face/cf0772f2e4d76f75ca4c230d9ab1b50012a8bbfa.jpg"
  },
  "item": {
    "rp_id": 586612173803463700,
    "uid": 403417570,
    "content": "#阅机无数# 文字题\\nthinkpad 09-15年\\n触控笔\\nenergy star\\ncore i5\\n[藏狐]",
    "ctrl": "",
    "orig_dy_id": 0,
    "pre_dy_id": 0,
    "timestamp": 1635419690,
    "reply": 2
  }
}

视频投稿动态 (type=8)

在type=8的视频投稿动态中,解析出的对象包含以下内容:

字段类型内容备注
aidnum视频avid
attributenum0可能已弃用
cidnum视频cid
copyrightnum原创信息1为原创,2为转载
descstr视频简介
dimensionobj视频1p分辨率
durationnum视频时长单位秒
dynamicstr动态文字内容
first_framestr视频第一帧图片图片链接
jump_urlstr视频跳转链接
mission_idnum稿件参与的活动id
ownerobj动态作者信息即up主
picstr视频封面
player_info?可能是播放器信息
pubdatenum发布时间时间戳
rightsobj联合投稿,是否付费等信息可能用来代替原attribute字段
statobj视频数据点赞投币等
statenum视频状态详情见属性数据文档
tidnum视频分区编号
titlestr视频标题
tnamestr视频分区名称
videonum视频数
查看字段内容示例:
{
  "aid": 506318410,
  "attribute": 0,
  "cid": 432711595,
  "copyright": 1,
  "ctime": 1635403080,
  "desc": "我看谁敢欺负天依依?都别动啊,放那儿让我来!\\n好久不写萌歌歌了,耐心心看到结尾,有天依依激萌嚎叫(不\\n\\n作曲曲/编曲曲/混音音:iKz @Signal-E | 作词词:叫叫与壶壶\\n唱歌歌:洛天依 | 调校校:Creuzer\\n曲绘绘:pelokio & 贝贝web & 壶芬奇\\nPVV:AYWC八毛 @Signal-E\\n制作人:iKz\\n\\n蛀牙牙版:BV1FR4y1n7rt",
  "dimension": {
    "height": 1080,
    "rotate": 0,
    "width": 1920
  },
  "duration": 265,
  "dynamic": "我看谁敢欺负天依依?都别动啊,放那儿让我来!\\n好久不写萌歌歌了,耐心心看到结尾,有洛天依激萌嚎叫(不",
  "first_frame": "https://i1.hdslb.com/bfs/storyff/n211029a21oldgobzh2ob1uf3tqav4yy_firsti.jpg",
  "jump_url": "bilibili://video/506318410/?page=1&player_preload=null&player_width=1920&player_height=1080&player_rotate=0",
  "mission_id": 122069,
  "owner": {
    "face": "https://i1.hdslb.com/bfs/face/4935c75aecf986c3c129400882ee9c5ceeeec4b5.jpg",
    "mid": 25681,
    "name": "iKz_茶壶"
  },
  "pic": "https://i0.hdslb.com/bfs/archive/06749bfe8b9505b00bd572950615912fecadb513.jpg",
  "player_info": null,
  "pubdate": 1635501604,
  "rights": {
    "autoplay": 1,
    "bp": 0,
    "download": 0,
    "elec": 0,
    "hd5": 1,
    "is_cooperation": 1,
    "movie": 0,
    "no_background": 0,
    "no_reprint": 1,
    "pay": 0,
    "ugc_pay": 0,
    "ugc_pay_preview": 0
  },
  "short_link": "https://b23.tv/BV13u411o7Ht",
  "short_link_v2": "https://b23.tv/BV13u411o7Ht",
  "stat": {
    "aid": 506318410,
    "coin": 5490,
    "danmaku": 486,
    "dislike": 0,
    "favorite": 6017,
    "his_rank": 0,
    "like": 8526,
    "now_rank": 0,
    "reply": 597,
    "share": 568,
    "view": 44737
  },
  "state": 0,
  "tid": 30,
  "title": "【超萌萌洛天依!万圣节原创】嘤嘤大作战【iKz-茶壶壶】",
  "tname": "VOCALOID·UTAU",
  "videos": 1
}

小视频 (type=16)

戏剧? (type=32)

专栏投稿动态 (type=64)

在type=64的专栏投稿动态中,解析出的对象包含以下内容:

字段类型内容备注
idnum专栏的id,即cv号
categoryobj分类号和分类名称
categoriesobj分类信息
titlestr专栏标题
summarystr专栏简介
banner_urlstr头图链接
template_idnum模板信息
statenum专栏状态
authorobj作者信息包含了头像挂件和勋章等
reprintnum可能是转载
image_urlsobj图片链接
publish_timenum发布时间时间戳,应该指专栏
ctimenum发布时间时间戳,应该指动态
statsobj专栏数据,点赞之类有点踩字段,但并未实装此功能
wordsnum字数
origin_image_urlsobj源图片地址
list?可能为文集
is_likebool是否点赞
mediaobj番剧电影相关内容影评的分数,是否有剧透等
apply_time??
check_time??
originalnum是否原创
act_idnum?
dispute?可能为是否争议内容
authenMark??
cover_avidnum相关视频id例如笔记专栏的原视频
top_video_info??
typenum可能是专栏类别
查看字段内容示例:
{
  "id": 12457797,
  "category": {
    "id": 42,
    "parent_id": 41,
    "name": "全部笔记"
  },
  "categories": [
    {
      "id": 41,
      "parent_id": 0,
      "name": "笔记"
    },
    {
      "id": 42,
      "parent_id": 41,
      "name": "全部笔记"
    }
  ],
  "title": "【编曲教程】弦乐如何编写?二十分钟学会弦乐基础写法~",
  "summary": "点击进入查看全文",
  "banner_url": "https://i0.hdslb.com/bfs/archive/9c0f743f0d79bf3f73ea196eced55a9211ef363f.jpg",
  "template_id": 4,
  "state": 0,
  "author": {
    "mid": 310236726,
    "name": "珞林ltyxh",
    "face": "https://i0.hdslb.com/bfs/face/8c4aebb01b3cc34154168be51241b0345f110aeb.webp",
    "pendant": {
      "pid": 2155,
      "name": "洛天依8th生日纪念",
      "image": "https://i0.hdslb.com/bfs/garb/item/e98718ae0d09e48bc85df969820b88241bc06883.png",
      "expire": 0
    },
    "official_verify": {
      "type": -1,
      "desc": ""
    },
    "nameplate": {
      "nid": 4,
      "name": "青铜殿堂",
      "image": "https://i0.hdslb.com/bfs/face/2879cd5fb8518f7c6da75887994c1b2a7fe670bd.png",
      "image_small": "https://i2.hdslb.com/bfs/face/6707c120e00a3445933308fd9b7bd9fad99e9ec4.png",
      "level": "普通勋章",
      "condition": "单个自制视频总播放数>=1万"
    },
    "vip": {
      "type": 2,
      "status": 1,
      "due_date": 0,
      "vip_pay_type": 0,
      "theme_type": 0,
      "label": {
        "path": "",
        "text": "年度大会员",
        "label_theme": "annual_vip"
      },
      "avatar_subscript": 1,
      "nickname_color": "#FB7299"
    }
  },
  "reprint": 0,
  "image_urls": [
    "https://i0.hdslb.com/bfs/article/banner/6daa4ac60ddec2456bb720dbb4979b07dd705e8a.png"
  ],
  "publish_time": 1627921161,
  "ctime": 1627921161,
  "stats": {
    "view": 107,
    "favorite": 5,
    "like": 11,
    "dislike": 0,
    "reply": 1,
    "share": 0,
    "coin": 1,
    "dynamic": 0
  },
  "words": 225,
  "origin_image_urls": [
    "https://i0.hdslb.com/bfs/article/banner/6daa4ac60ddec2456bb720dbb4979b07dd705e8a.png"
  ],
  "list": null,
  "is_like": false,
  "media": {
    "score": 0,
    "media_id": 0,
    "title": "",
    "cover": "",
    "area": "",
    "type_id": 0,
    "type_name": "",
    "spoiler": 0,
    "season_id": 0
  },
  "apply_time": "",
  "check_time": "",
  "original": 1,
  "act_id": 0,
  "dispute": null,
  "authenMark": null,
  "cover_avid": 57337301,
  "top_video_info": null,
  "type": 2
}

音频投稿动态 (type=256)

在type=256的音频投稿动态中,解析出的对象包含以下内容:

字段类型内容备注
idnum投稿编号即au号
upIdnum音乐人id与用户uid不同
titlestr音频标题
upperstr上传者名称
coverstr封面图链接
authorstr作者名称
ctimenum上传时间时间戳的后面加了三个0
playCntnum播放量
introstr音频介绍
schemastr跳转链接似乎并不只是url
typeInfostr分区信息
upperAvatarstr上传者的头像链接
查看字段内容示例:
{
  "id": 2562895,
  "upId": 482834,
  "title": "[蓝猫原创伴奏]无衣",
  "upper": "NBluecat",
  "cover": "https://i0.hdslb.com/bfs/music/1e7c4d04bd405159b66893d4cb68977ddf784b42.jpg",
  "author": "NBluecat",
  "ctime": 1632115270000,
  "replyCnt": 1,
  "playCnt": 252,
  "intro": "_(:з」∠)_这是无衣的伴奏,非常简单",
  "schema": "bilibili://music/detail/2562895?name=%5B%E8%93%9D%E7%8C%AB%E5%8E%9F%E5%88%9B%E4%BC%B4%E5%A5%8F%5D%E6%97%A0%E8%A1%A3&uperName=&cover_url=http%3A%2F%2Fi0.hdslb.com%2Fbfs%2Fmusic%2F1e7c4d04bd405159b66893d4cb68977ddf784b42.jpg&upperId=&author=NBluecat",
  "typeInfo": "音乐 · 纯音乐/演奏",
  "upperAvatar": "https://i2.hdslb.com/bfs/face/d5bf3c9f179803134172ff1c6090ba6b999651c6.jpg"
}

番剧 (type=512)

??? (type=1000)

??? (type=1001)

??? (type=1024)

H5 活动动态 (type=2048)

根对象:

字段类型内容备注
ridnumber动态 id
sketchobject动态卡片内容
userobject用户信息
vestobject动态正文内容

sketch 对象:

字段类型内容备注
cover_urlstring封面 URL
desc_textstring描述文本
sketch_idnumber卡片 id即动态 id
target_urlstring目标 URL
textstring文本?空?
titlestring标题

user 对象:

字段类型内容备注
facestring头像 URL
uidnumbermid (UID)
unamestring用户名

vest 对象:

字段类型内容备注
contentstring内容
uidnumber用户 mid (UID)

示例:

查看示例:
{
  "rid": 1093384350151475200,
  "sketch": {
    "cover_url": "https://i0.hdslb.com/bfs/game/65e4fa4b3cf2d177148328e2ff76535500bc563c.png",
    "desc_text": "分享了一条动态",
    "sketch_id": 1093755435448533000,
    "target_url": "https://space.bilibili.com/645769214",
    "text": "",
    "title": "你好,世界"
  },
  "user": {
    "face": "https://i2.hdslb.com/bfs/face/77906db03b1eefac02613de184afad03f7bc58d7.jpg",
    "uid": 645769214,
    "uname": "Session小胡"
  },
  "vest": {
    "content": "[笑哭]",
    "uid": 645769214
  }
}

漫画分享 (type=2049)

PGC 番剧 (type=4097)

电影 (type=4098)

电视剧 (type=4099)

国创动漫 (type=4100)

纪录片 (type=4101)

直播 (type=4200)

直播 (type=4201)

收藏夹 (type=4300)

付费课程 (type=4302)

付费课程 (type=4303)

直播 (type=4308)

合集 (type=4310)

??? (type=4311)

??? (type=268435455)

`,61))])}const C=o(i,[["render",d]]),q=JSON.parse('{"path":"/docs/dynamic/card_info.html","title":"动态卡片信息字段","lang":"zh-CN","frontmatter":{},"git":{"updatedTime":1753494689000,"contributors":[{"name":"SocialSisterYi","username":"SocialSisterYi","email":"1440239038@qq.com","commits":1,"url":"https://github.com/SocialSisterYi"},{"name":"LaMerChiang","username":"LaMerChiang","email":"catlair@qq.com","commits":1,"url":"https://github.com/LaMerChiang"},{"name":"EssentialCuber","username":"EssentialCuber","email":"111330534+EssentialCuber@users.noreply.github.com","commits":1,"url":"https://github.com/EssentialCuber"},{"name":"SessionHu","username":"SessionHu","email":"102411014+SessionHu@users.noreply.github.com","commits":3,"url":"https://github.com/SessionHu"}],"changelog":[{"hash":"23b492044c0959fcf7d95eda8d5ae33e2de8ffd9","time":1753494689000,"email":"102411014+SessionHu@users.noreply.github.com","author":"SessionHu","message":"feat(dynamic/card_info.md): add type=2048"},{"hash":"05fbbce54f946f2d1b027aae43a51e328c7e6fa0","time":1753493094000,"email":"102411014+SessionHu@users.noreply.github.com","author":"SessionHu","message":"feat(dynamic): update get_dynamic_detail"},{"hash":"3a0a0a5dc464f7f4025c19a77b3fd9797de0e5c1","time":1752238829000,"email":"102411014+SessionHu@users.noreply.github.com","author":"SessionHu","message":"feat(dynamic): merge topic & tag_dynamic"},{"hash":"a01ef3bdc218ba777d4f3aac00acabaf543019f3","time":1700718054000,"email":"111330534+EssentialCuber@users.noreply.github.com","author":"EssentialCuber","message":"整理主目录,更新AI总结文档 (#871)"},{"hash":"92b30f354ab21b97fe52357161fd04e2ca687c97","time":1693842068000,"email":"catlair@qq.com","author":"LaMerChiang","message":"fix: 修正文档中存在的错误路径,标签和目录 (#806)"},{"hash":"7d89ece2ac46425810647c4ac92acf5f3721cb68","time":1676998806000,"email":"1440239038@qq.com","author":"SocialSisterYi","message":"🚀调整项目结构"}]},"filePathRelative":"docs/dynamic/card_info.md"}');export{C as comp,q as data};