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.001USD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 1 件 · 任意 1 件

プレイグラウンド

入力
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

例

例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。

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

質問

FAQ

Bilibili User Dynamics API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/bilibili/web/user-dynamic に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

Bilibili User Dynamics API の料金はいくらですか?

1回あたり $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 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Bilibili の API アクセスを別途申請する必要はありません。