feat(dynamic/detail.md): detail pic

close #1303
This commit is contained in:
SessionHu 2025-07-23 09:49:59 +08:00
parent 955efaa948
commit 1def9554d4
No known key found for this signature in database
GPG Key ID: 9E7E64C25FE3301A

View File

@ -2030,3 +2030,78 @@ curl 'https://api.bilibili.com/x/polymer/web-dynamic/v1/detail/forward' \
</details>
<!-- Generated by json-apidoc-gen @ 2025-07-22T03:25:21.567940914Z -->
## 获取动态中图片
> https://api.bilibili.com/x/polymer/web-dynamic/v1/detail/pic
*请求方法: GET*
<!-- #1303 -->
**URL 参数:**
| 字段 | 类型 | 内容 | 必要性 | 备注 |
| ---- | ------ | ------- | ------ | ---- |
| id | number | 动态 id | 必要 | |
**JSON 回复:**
根对象:
| 字段 | 类型 | 内容 | 备注 |
| ---- | ---- | ---- | ---- |
| code | number | 返回值 | |
| data | object[] | 数据本体 | |
| message | string | 错误信息 | 成功时为 `0` |
| ttl | number | `1` | |
`data[]` 对象:
| 字段 | 类型 | 内容 | 备注 |
| ---- | ---- | ---- | ---- |
| height | number | 图片高度 | |
| size | number | 图片大小 | k |
| src | string | 图片 URL | |
| width | number | 图片宽度 | |
**示例:**
```shell
-curl -G 'https://api.bilibili.com/x/polymer/web-dynamic/v1/detail/pic' \
--url-query 'id=1092404028147499014'
```
<details>
<summary>查看响应示例:</summary>
```json
{
"code": 0,
"data": [
{
"height": 20112,
"size": 9609.4560546875,
"src": "http://i0.hdslb.com/bfs/new_dyn/b3ca19b4a65c2f847fa91d925495eb3f36081646.jpg",
"width": 4167
},
{
"height": 21146,
"size": 6948.43359375,
"src": "http://i0.hdslb.com/bfs/new_dyn/60b1549d91ce580a8499f63368b283fc36081646.jpg",
"width": 4167
},
{
"height": 29531,
"size": 10990.845703125,
"src": "http://i0.hdslb.com/bfs/new_dyn/598a158fff8a5814fe85ae0f9212b1cf36081646.jpg",
"width": 4167
}
],
"message": "0",
"ttl": 1
}
```
</details>
<!-- Generated by json-apidoc-gen @ 2025-07-23T01:44:31.058550428Z -->