Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

Bilibili User Dynamics

Documentación de la 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.

Precio
$0.001USD / llamada
Método
POST
Respuesta
JSON
Parámetros
1 obligatorios · 1 opcionales

Entorno de pruebas

Entrada
User UID
offset
SalidaEjemplo
Respuestaoutputs · 30.4 KB · 823 líneas
[
  {
    "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

Ejemplos

Seleccione un ejemplo para cargar sus entradas y el resultado en el playground.

README de la 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.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
Bilibili$0.001 por llamadaJSON
Bilibili$0.001 por llamadaJSON
Bilibili$0.001 por llamadaJSON
Bilibili$0.001 por llamadaJSON
Bilibili$0.001 por llamadaJSON
Bilibili$0.001 por llamadaJSON

Guías:Best Bilibili API in 2026: Pricing Compared

Preguntas

FAQ

¿Cómo uso la API de Bilibili User Dynamics?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/bilibili/web/user-dynamic con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de Bilibili User Dynamics?

$0.001 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de Bilibili User Dynamics?

Requeridos: uid (string). Opcionales: offset (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de Bilibili User Dynamics?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de Bilibili?

No. Bilibili User Dynamics funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Bilibili por separado.