Skip to content

Commit 9aa1a81

Browse files
committed
feat(dynamic/detail.md): add forward dynamic detail
close SocialSisterYi#1356
1 parent a8c58a6 commit 9aa1a81

File tree

1 file changed

+220
-0
lines changed

1 file changed

+220
-0
lines changed

docs/dynamic/detail.md

Lines changed: 220 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2105,3 +2105,223 @@ curl 'https://api.bilibili.com/x/polymer/web-dynamic/v1/detail/forward' \
21052105
</details>
21062106

21072107
<!-- Generated by json-apidoc-gen @ 2025-07-23T01:44:31.058550428Z -->
2108+
2109+
## 获取转发动态信息
2110+
2111+
> https://api.bilibili.com/x/polymer/web-dynamic/v1/detail/forward/item
2112+
2113+
*请求方法: GET*
2114+
2115+
认证方式: Cookie (SESSDATA)
2116+
2117+
**URL 参数:**
2118+
2119+
| 字段 | 类型 | 内容 | 必要性 | 备注 |
2120+
| ---- | ------ | ------ | ---- | ---- |
2121+
| id | number | 动态 id | 必要 | |
2122+
| timezone_offset | number | 时区偏移 | 非必要 | `(new Date).getTimezoneOffset()` |
2123+
2124+
**JSON 回复:**
2125+
2126+
根对象:
2127+
2128+
| 字段 | 类型 | 内容 | 备注 |
2129+
| ---- | ---- | ---- | ---- |
2130+
| code | number | 返回值 | 0: 成功<br />500: 加载错误,请稍后再试<br />4101105: 请求数据发生错误, 请刷新或稍后重试 |
2131+
| data | object | 数据本体 | |
2132+
| message | string | 错误信息 | 成功时为 `0` |
2133+
| ttl | number | `1` | |
2134+
2135+
`data` 对象:
2136+
2137+
| 字段 | 类型 | 内容 | 备注 |
2138+
| ---- | ---- | ---- | ---- |
2139+
| item | object | 动态信息 | 套了个娃 |
2140+
2141+
`data.item` 对象:
2142+
2143+
| 字段 | 类型 | 内容 | 备注 |
2144+
| ---- | ---- | ---- | ---- |
2145+
| desc | object | 动态内容 | |
2146+
| id_str | string | 动态 id 字符串 | |
2147+
| pub_time | string | 发布时间 | |
2148+
| user | object | 发布用户信息 | |
2149+
2150+
`data.item.desc` 对象:
2151+
2152+
| 字段 | 类型 | 内容 | 备注 |
2153+
| ---- | ---- | ---- | ---- |
2154+
| rich_text_nodes | object[] | 富文本节点 | 参见 [富文本节点](../opus/rich_text_node.md) |
2155+
| text | string | 纯文本内容 | |
2156+
2157+
`data.item.user` 对象:
2158+
2159+
| 字段 | 类型 | 内容 | 备注 |
2160+
| ---- | ---- | ---- | ---- |
2161+
| face | string | 头像 URL | |
2162+
| face_nft | boolean | | |
2163+
| mid | number | 用户 mid (UID) | |
2164+
| name | string | 用户名 | |
2165+
| official | object | 认证信息 | |
2166+
| pendant | object | 装扮信息 | |
2167+
| vip | object | 大会员信息 | |
2168+
2169+
`data.item.user.official` 对象:
2170+
2171+
| 字段 | 类型 | 内容 | 备注 |
2172+
| ---- | ---- | ---- | ---- |
2173+
| desc | string | | |
2174+
| role | number | | |
2175+
| title | string | | |
2176+
| type | number | | |
2177+
2178+
`data.item.user.pendant` 对象:
2179+
2180+
| 字段 | 类型 | 内容 | 备注 |
2181+
| ---- | ---- | ---- | ---- |
2182+
| expire | number | | |
2183+
| image | string | | |
2184+
| image_enhance | string | | |
2185+
| image_enhance_frame | string | | |
2186+
| n_pid | number | | |
2187+
| name | string | | |
2188+
| pid | number | | |
2189+
2190+
`data.item.user.vip` 对象:
2191+
2192+
| 字段 | 类型 | 内容 | 备注 |
2193+
| ---- | ---- | ---- | ---- |
2194+
| avatar_icon | object | | |
2195+
| avatar_subscript | number | | |
2196+
| avatar_subscript_url | string | | |
2197+
| due_date | number | | |
2198+
| label | object | | |
2199+
| nickname_color | string | | |
2200+
| role | number | | |
2201+
| status | number | | |
2202+
| theme_type | number | | |
2203+
| tv_due_date | number | | |
2204+
| tv_vip_pay_type | number | | |
2205+
| tv_vip_status | number | | |
2206+
| type | number | | |
2207+
| vip_pay_type | number | | |
2208+
2209+
`data.item.user.vip.avatar_icon` 对象:
2210+
2211+
| 字段 | 类型 | 内容 | 备注 |
2212+
| ---- | ---- | ---- | ---- |
2213+
| icon_resource | object | | |
2214+
| icon_type | number | | |
2215+
2216+
`data.item.user.vip.avatar_icon.icon_resource` 对象:
2217+
2218+
| 字段 | 类型 | 内容 | 备注 |
2219+
| ---- | ---- | ---- | ---- |
2220+
2221+
`data.item.user.vip.label` 对象:
2222+
2223+
| 字段 | 类型 | 内容 | 备注 |
2224+
| ---- | ---- | ---- | ---- |
2225+
| bg_color | string | | |
2226+
| bg_style | number | | |
2227+
| border_color | string | | |
2228+
| img_label_uri_hans | string | | |
2229+
| img_label_uri_hans_static | string | | |
2230+
| img_label_uri_hant | string | | |
2231+
| img_label_uri_hant_static | string | | |
2232+
| label_theme | string | | |
2233+
| path | string | | |
2234+
| text | string | | |
2235+
| text_color | string | | |
2236+
| use_img_label | boolean | | |
2237+
2238+
**示例:**
2239+
2240+
```shell
2241+
curl -G 'https://api.bilibili.com/x/polymer/web-dynamic/v1/detail/forward/item' \
2242+
--url-query 'id=1100082020923473952' \
2243+
-b 'SESSDATA=xxx'
2244+
```
2245+
2246+
<details>
2247+
<summary>查看响应示例:</summary>
2248+
2249+
```json
2250+
{
2251+
"code": 0,
2252+
"data": {
2253+
"item": {
2254+
"desc": {
2255+
"rich_text_nodes": [
2256+
{
2257+
"orig_text": "分享视频",
2258+
"text": "分享视频",
2259+
"type": "RICH_TEXT_NODE_TYPE_TEXT"
2260+
}
2261+
],
2262+
"text": "分享视频"
2263+
},
2264+
"id_str": "1074491510557245446",
2265+
"pub_time": "06月04日",
2266+
"user": {
2267+
"face": "https://i0.hdslb.com/bfs/face/aebb2639a0d47f2ce1fec0631f412eaf53d4a0be.jpg",
2268+
"face_nft": false,
2269+
"mid": 293793435,
2270+
"name": "社会易姐QwQ",
2271+
"official": {
2272+
"desc": "",
2273+
"role": 0,
2274+
"title": "",
2275+
"type": -1
2276+
},
2277+
"pendant": {
2278+
"expire": 0,
2279+
"image": "https://i0.hdslb.com/bfs/garb/item/4f8f3f1f2d47f0dad84f66aa57acd4409ea46361.png",
2280+
"image_enhance": "https://i0.hdslb.com/bfs/garb/item/fe0b83b53e2342b16646f6e7a9370d8a867decdb.webp",
2281+
"image_enhance_frame": "https://i0.hdslb.com/bfs/garb/item/127c507ec8448be30cf5f79500ecc6ef2fd32f2c.png",
2282+
"n_pid": 2511,
2283+
"name": "初音未来13周年",
2284+
"pid": 2511
2285+
},
2286+
"vip": {
2287+
"avatar_icon": {
2288+
"icon_resource": {},
2289+
"icon_type": 1
2290+
},
2291+
"avatar_subscript": 1,
2292+
"avatar_subscript_url": "",
2293+
"due_date": 1770825600000,
2294+
"label": {
2295+
"bg_color": "#FB7299",
2296+
"bg_style": 1,
2297+
"border_color": "",
2298+
"img_label_uri_hans": "",
2299+
"img_label_uri_hans_static": "https://i0.hdslb.com/bfs/vip/8d4f8bfc713826a5412a0a27eaaac4d6b9ede1d9.png",
2300+
"img_label_uri_hant": "",
2301+
"img_label_uri_hant_static": "https://i0.hdslb.com/bfs/activity-plat/static/20220614/e369244d0b14644f5e1a06431e22a4d5/VEW8fCC0hg.png",
2302+
"label_theme": "annual_vip",
2303+
"path": "http://i0.hdslb.com/bfs/vip/label_annual.png",
2304+
"text": "年度大会员",
2305+
"text_color": "#FFFFFF",
2306+
"use_img_label": true
2307+
},
2308+
"nickname_color": "#FB7299",
2309+
"role": 3,
2310+
"status": 1,
2311+
"theme_type": 0,
2312+
"tv_due_date": 1640793600,
2313+
"tv_vip_pay_type": 0,
2314+
"tv_vip_status": 0,
2315+
"type": 2,
2316+
"vip_pay_type": 0
2317+
}
2318+
}
2319+
}
2320+
},
2321+
"message": "0",
2322+
"ttl": 1
2323+
}
2324+
```
2325+
</details>
2326+
2327+
<!-- Generated by json-apidoc-gen @ 2025-08-12T08:52:29.430524983Z -->

0 commit comments

Comments
 (0)