Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

Bilibili User Dynamics

API 文档
https://api.sandbase.ai/v1/api/bilibili/web/user-dynamic

Retrieves dynamic feed posts and timeline updates for a specified Bilibili user by UID, with optional offset-based pagination.

价格
$0.001美元 / 次调用
方法
POST
响应
JSON
参数
1 个必填 · 1 个可选

Playground

输入
User UID
offset
输出示例
响应outputs · 30.4 KB · 823 行
[
  {
    "data": {
      "code": 0,
      "data": {
        "has_more": false,
        "items": [
          {
            "basic": {
              "aigc": false,
              "comment_id_str": "112873720252518",
              "comment_type": 1,
              "editable": false,
              "in_audit": false,
              "is_only_fans": false,
              "jump_url": "",
              "like_icon": {
                "action_url": "",
                "end_url": "",
                "id": "0",
                "start_url": ""
              },
              "open_app_extra": "",
              "rid_str": "112873720252518"
            },
            "id_str": "959831448727060483",
            "modules": {
              "module_author": {
                "avatar": {
                  "container_size": {
                    "height": 1.35,
                    "width": 1.35
                  },
                  "fallback_layers": {
                    "group_id": "",
                    "group_mask": null,
                    "is_critical_group": true,
                    "layers": [
                      {
                        "general_spec": {
                          "pos_spec": "…",
                          "render_spec": "…",
                          "size_spec": "…"
                        },
                        "layer_config": {
                          "allow_over_paint": false,
                          "is_critical": true,
                          "layer_mask": null,
                          "tags": "…"
                        },
                        "layer_id": "",
                        "resource": {
                          "res_image": "…",
                          "res_type": 3
                        },
                        "visible": true
                      }
                    ]
                  },
                  "layers": [],
                  "mid": "178360345"
                },
                "decorate": null,
                "decorate_card": {
                  "big_card_url": "https://i0.hdslb.com/bfs/garb/item/dc93ac108264d76c3377563f1d8b48e1427fd5b6.png",
                  "card_type": "2",
                  "card_type_name": "免费",
                  "card_url": "https://i0.hdslb.com/bfs/garb/item/dc93ac108264d76c3377563f1d8b48e1427fd5b6.png",
                  "expire_time": "0",
                  "fan": {
                    "color": "",
                    "color_format": null,
                    "is_fan": "0",
                    "name": "",
                    "num_desc": "",
                    "num_prefix": "",
                    "number": "0"
                  },
                  "id": "47665",
                  "image_enhance": "https://i0.hdslb.com/bfs/garb/item/dc93ac108264d76c3377563f1d8b48e1427fd5b6.png",
                  "image_group": null,
                  "item_id": "47665",
                  "jump_url": "https://www.bilibili.com/h5/mall/equity-link/collect-home?item_id=47665&isdiy=0&part=card&from=post&f_source=garb&vmid=178360345&native.theme=1&navhide=1",
                  "name": "蜡笔小新"
                },
                "decoration_card": {
                  "big_card_url": "https://i0.hdslb.com/bfs/garb/item/dc93ac108264d76c3377563f1d8b48e1427fd5b6.png",
                  "card_type": "2",
                  "card_type_name": "免费",
                  "card_url": "https://i0.hdslb.com/bfs/garb/item/dc93ac108264d76c3377563f1d8b48e1427fd5b6.png",
                  "expire_time": "0",
                  "fan": {
                    "color": "",
                    "color_format": null,
                    "is_fan": "0",
                    "name": "",
                    "num_desc": "",
                    "num_prefix": "",
                    "number": "0"
                  },
                  "id": "47665",
                  "image_enhance": "https://i0.hdslb.com/bfs/garb/item/dc93ac108264d76c3377563f1d8b48e1427fd5b6.png",
                  "image_group": null,
                  "item_id": "47665",
                  "jump_url": "https://www.bilibili.com/h5/mall/equity-link/collect-home?item_id=47665&isdiy=0&part=card&from=post&f_source=garb&vmid=178360345&native.theme=1&navhide=1",
                  "name": "蜡笔小新"
                },
                "face": "https://i1.hdslb.com/bfs/face/f31765ab779958c5e90ce4b6ff84d468f5342090.jpg",
                "face_nft": false,
                "following": 2,
                "icon_badge": null,
                "is_top": false,
                "jump_url": "//space.bilibili.com/178360345/dynamic",
                "label": "",
                "mid": 178360345,
                "more": null,
                "name": "Azulsolitan",
                "name_render": null,
                "nft_info": null,
                "official": null,
                "official_verify": {
                  "desc": "",
                  "type": -1
                },
                "pendant": {
                  "expire": "0",
                  "image": "",
                  "image_enhance": "",
                  "image_enhance_frame": "",
                  "n_pid": "0",
                  "name": "",
                  "pid": 0
                },
                "pub_action": "投稿了视频",
                "pub_location_text": "",
                "pub_time": "2024年07月30日",
                "pub_ts": "1722316574",
                "type": "AUTHOR_TYPE_NORMAL",
                "views_text": "",
                "vip": {
                  "avatar_icon": {
                    "icon_resource": {
                      "type": 0,
                      "url": ""
                    },
                    "icon_type": 0
                  },
                  "avatar_subscript": 0,
                  "avatar_subscript_url": "",
                  "due_date": "1568044800000",
                  "label": {
                    "bg_color": "",
                    "bg_style": 0,
                    "border_color": "",
                    "img_label_uri_hans": "",
                    "img_label_uri_hans_static": "https://i0.hdslb.com/bfs/vip/d7b702ef65a976b20ed854cbd04cb9e27341bb79.png",
                    "img_label_uri_hant": "",
                    "img_label_uri_hant_static": "https://i0.hdslb.com/bfs/activity-plat/static/20220614/e369244d0b14644f5e1a06431e22a4d5/KJunwh19T5.png",
                    "label_theme": "",
                    "path": "",
                    "text": "",
                    "text_color": "",
                    "use_img_label": true
                  },
                  "nickname_color": "",
                  "role": "0",
                  "status": 0,
                  "theme_type": 0,
                  "tv_due_date": "0",
                  "tv_vip_pay_type": 0,
                  "tv_vip_status": 0,
                  "type": 1,
                  "vip_pay_type": 0
                }
              },
              "module_dispute": null,
              "module_dynamic": {
                "additional": null,
                "desc": null,
                "major": {
                  "archive": {
                    "aid": "112873720252518",
                    "badge": {
                      "bg_color": "#FB7299",
                      "color": "#FFFFFF",
                      "icon_url": "",
                      "text": "投稿视频"
                    },
                    "bvid": "BV1d4vzenECe",
                    "cover": "http://i1.hdslb.com/bfs/archive/abda1865c5379d60092a1a5f3f4bca60f865d09c.jpg",
                    "desc": "",
                    "disable_preview": 0,
                    "duration_text": "01:51",
                    "enable_vt": 0,
                    "jump_url": "//www.bilibili.com/video/BV1d4vzenECe",
                    "premiere_online": "",
                    "stat": {
                      "danmaku": "3",
                      "play": "340",
                      "vt": ""
                    },
                    "stat_hidden": 0,
                    "title": "新手:太刀侠怎么打黄金吗喽?老手:↑ ↓ ↑ → ← → ← →",
                    "type": 1
                  },
                  "article": null,
                  "blocked": null,
                  "common": null,
                  "courses": null,
                  "draw": null,
                  "live": null,
                  "live_rcmd": null,
                  "medialist": null,
                  "music": null,
                  "none": null,
                  "opus": null,
                  "pgc": null,
                  "subscription": null,
                  "subscription_new": null,
                  "type": "MAJOR_TYPE_ARCHIVE",
                  "ugc_season": null,
                  "upower_common": null
                },
                "topic": null
              },
              "module_extend": null,
              "module_fold": null,
              "module_interaction": null,
              "module_more": {
                "rcmd_text": "",
                "three_point_items": [
                  {
                    "jump_url": "",
                    "label": "举报",
                    "modal": null,
                    "params": {},
                    "type": "THREE_POINT_REPORT"
                  }
                ]
              },
              "module_share_info": null,
              "module_stat": {
                "coin": null,
                "comment": {
                  "count": 3,
                  "disabled": false,
                  "forbidden": false,
                  "hidden": false,
                  "silent": false,
                  "status": false
                },
                "favorite": null,
                "forward": {
                  "count": 0,
                  "disabled": false,
                  "forbidden": false,
                  "hidden": false,
                  "silent": false,
                  "status": false
                },
                "like": {
                  "count": 8,
                  "disabled": false,
                  "forbidden": false,
                  "hidden": false,
                  "silent": false,
                  "status": false
                }
              },
              "module_tag": null
            },
            "orig": null,
            "type": "DYNAMIC_TYPE_AV",
            "visible": true
          },
          {
            "basic": {
              "aigc": false,
              "comment_id_str": "112659609422497",
              "comment_type": 1,
              "editable": false,
              "in_audit": false,
              "is_only_fans": false,
              "jump_url": "",
              "like_icon": {
                "action_url": "",
                "end_url": "",
                "id": "0",
                "start_url": ""
              },
              "open_app_extra": "",
              "rid_str": "112659609422497"
            },
            "id_str": "945801916603957254",
            "modules": {
              "module_author": {
                "avatar": {
                  "container_size": {
                    "height": 1.35,
                    "width": 1.35

示例

选择一个示例,将其输入和结果加载到 playground 中。

API README

Bilibili User Dynamics API

List a Bilibili user's dynamics (动态) feed: video uploads, text and image posts, reposts and articles, newest first, with author, publish time and like, comment and forward counts.

Use cases

  • Monitor a creator's new uploads and posts.
  • Collect a user's activity for analysis.

Request

curl -X POST "https://api.sandbase.ai/v1/api/bilibili/web/user-dynamic" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uid": "178360345"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
uidstringYesUser UID
offsetstringNooffset

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "code": 0,
  "data": {
    "has_more": false,
    "offset": "",
    "items": [
      {
        "id_str": "1252966819274162197",
        "type": "DYNAMIC_TYPE_AV",
        "modules": {
          "module_author": {
            "name": "Azulsolitan",
            "mid": 178360345,
            "pub_ts": "1790567471"
          },
          "module_dynamic": {
            "major": {
              "archive": {
                "bvid": "BV1RMaq65EAH",
                "title": "ATM10sky通关纪念",
                "duration_text": "06:50",
                "jump_url": "//www.bilibili.com/video/BV1RMaq65EAH",
                "stat": {
                  "danmaku": "0",
                  "play": "36",
                  "vt": ""
                }
              }
            }
          },
          "module_stat": {
            "comment": {
              "count": 0
            },
            "forward": {
              "count": 0
            },
            "like": {
              "count": 0
            }
          }
        }
      }
    ]
  }
}

Response fields

FieldMeaning
data.items[].typeKind of dynamic, e.g. DYNAMIC_TYPE_AV (video), DYNAMIC_TYPE_DRAW (images), DYNAMIC_TYPE_FORWARD (repost).
items[].modules.module_authorAuthor name, mid and pub_ts (Unix seconds).
items[].modules.module_dynamic.majorThe content; for videos archive with bvid, title, duration_text, play and danmaku counts.
items[].modules.module_statComment, forward and like counts.
data.has_more / offsetPass offset back to get the next page.

Pricing

$0.001 per successful call. Failed calls, including lookups whose target does not exist, are not charged. It is included in the daily free quota of each organization.

探索更多

相关 APIs

全部 APIs
API价格响应
Bilibili$0.001 每次调用JSON
Bilibili$0.001 每次调用JSON
Bilibili$0.001 每次调用JSON
Bilibili$0.001 每次调用JSON
Bilibili$0.001 每次调用JSON
Bilibili$0.001 每次调用JSON

指南:Best Bilibili API in 2026: Pricing Compared

问题

常见问题

如何使用 Bilibili User Dynamics API?

向 https://api.sandbase.ai/v1/api/bilibili/web/user-dynamic 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

Bilibili User Dynamics API 的价格是多少?

每次调用 $0.001,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。

Bilibili User Dynamics API 接受哪些参数?

必填:uid (string)。 可选:offset (string)。 Parameters 表和本页的 Playground 列出了每个字段。

Bilibili User Dynamics API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

我需要 Bilibili 开发者账户或 API key 吗?

不需要。Bilibili User Dynamics 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Bilibili API 访问权限。