Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

Bilibili User Dynamics

Docs 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.

Prix
$0.001USD / appel
Méthode
POST
Réponse
JSON
Paramètres
1 obligatoires · 1 facultatifs

Bac à sable

Entrée
User UID
offset
SortieExemple
Réponseoutputs · 30.4 KB · 823 lignes
[
  {
    "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

Exemples

Sélectionnez un exemple pour charger ses entrées et son résultat dans le playground.

README de l'API

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.

Explorer plus

APIs associées

Toutes les APIs
APIPrixRéponse
Bilibili$0.001 par appelJSON
Bilibili$0.001 par appelJSON
Bilibili$0.001 par appelJSON
Bilibili$0.001 par appelJSON
Bilibili$0.001 par appelJSON
Bilibili$0.001 par appelJSON

Guides :Best Bilibili API in 2026: Pricing Compared

Questions

FAQ

Comment utiliser l’API Bilibili User Dynamics ?

Envoyez une requête POST à https://api.sandbase.ai/v1/api/bilibili/web/user-dynamic avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.

Combien coûte l’API Bilibili User Dynamics ?

$0.001 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.

Quels paramètres l’API Bilibili User Dynamics accepte-t-elle ?

Obligatoire : uid (string). Facultatif : offset (string). Le tableau des paramètres et le Playground sur cette page listent tous les champs.

Que renvoie l’API Bilibili User Dynamics ?

Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.

Ai-je besoin d’un compte développeur ou d’une clé API Bilibili ?

Non. Bilibili User Dynamics fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Bilibili séparément.