# Bilibili User dynamics API (bilibili.user_dynamics)

- Canonical page: [https://everyinfra.com/en/bilibili-api/user_dynamics](https://everyinfra.com/en/bilibili-api/user_dynamics?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "bilibili", "action": "user_dynamics", "params": {...}}
- Price: $0.000792 per call ($0.79 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, one page of up to 12 per call; the number of rows varies from page to page and a short page is not the end (limit is ignored; pass the top-level next_page_token from the response as page_token for the next page; no next_page_token means the end)
- Pagination: pass next_page_token back as page_token for the next page, other params unchanged; one call per page, tokens last 24 hours
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=bilibili&action=user_dynamics

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| user_id | not declared | yes | not declared | The account's numeric mid, the number in `https://space.bilibili.com/<mid>`. Nicknames are not accepted: find the `user_id` with `user_search` first. |
| page_token | not declared | no | not declared | Page token. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received, with the other parameters unchanged. About 12 rows per page, set by the platform; each page is one call and `limit` has no effect. Tokens last 24 hours, and the last page has no `next_page_token`. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
| type | Record type; values depend on the capability (for example video / image / text). |
| media_type | Kind of dynamic (user_dynamics): video, image, text, repost, article, live, episode, audio, course or other. New values can appear. |
| dynamic_type | Bilibili's own dynamic type name (user_dynamics), such as AV, DRAW, FORWARD or ARTICLE, returned as is. |
| url | Link to the record on the platform. |
| title | Title. null when the platform has no titles (for example text-only posts). |
| text | Body text with HTML removed, returned in full and never cut short (on a few platforms the list results themselves carry only an excerpt; the platform's field notes say so). |
| video_text | The video's description (user_dynamics, video dynamics); the video title is in title. |
| author_username | Author's username (@handle), usually usable in URLs. |
| author_name | Author's display name. |
| author_url | Link to the author's profile on the platform. |
| author_avatar_url | Uploader avatar link (popular). |
| video_id | BV number of the video. |
| thumbnail_url | Thumbnail link, lower resolution than image_url. |
| topic_name | Name of the topic attached to the dynamic (user_dynamics); absent when there is none. |
| ip_location | Upload location (popular): the IP region Bilibili shows on the video page, a province or country. |
| posted_at | Publish time in ISO 8601, UTC (for example 2026-08-07T12:34:56+00:00). Non-standard strings from the platform are passed through as is, so parse defensively. null means the platform does not disclose it. |
| author_id | Author's unique ID on the platform. |
| like_count | Likes. null means the platform or this capability does not disclose it; it is not 0. |
| comment_count | Comments. null means not disclosed, not 0. |
| repost_count | Reposts (as distinct from quote posts). null means not disclosed. |
| image_count | Number of images in the dynamic (user_dynamics, image dynamics). |
| author_is_verified | Whether the author is officially verified (user_dynamics). |
| is_pinned | Whether the dynamic is pinned (user_dynamics). A pinned dynamic is only on the first page, at the top, and may be older than the ones after it. |
| is_repost | Whether the dynamic is a repost (user_dynamics); if so, the original is in reposted_post. |
| is_truncated | Whether the text is only a summary (user_dynamics): articles and very long image posts come as a summary in the dynamics list, and then this is true. |
| is_paid | Whether the dynamic is for the uploader's paying supporters only (user_dynamics), through Bilibili's charging feature; if so, the text and images may not be returned. |
| is_available | Whether the reposted original can still be viewed (user_dynamics, inside reposted_post). |
| aid | The video's numeric av ID (popular); it names the same video as the BV ID in id. |
| article_id | ID of the column article (user_dynamics, article dynamics). |
| live_room_id | Live room number of the user (user rows in user_search and general_search); absent when the user has never opened a live room. |
| image_urls | Array of image links in the platform's display order; absent when there are no images. |
| hashtags | Hashtags in the text, in order of appearance; absent when there are none. |
| mentions | Nicknames of users @-mentioned in the reply (comment_replies), as an array; the field is absent when there is no @. |
| duration_seconds | Duration in seconds. null for content that is not video or audio. |
| duration_sec | Video length in seconds, the same value as duration_seconds (both names are returned); on video_parts it is the length of that one part, elsewhere a multi-part video gives the total of all parts. |
| reposted_post | The original dynamic that was reposted (user_dynamics), an object with the same fields as a dynamic row but without like, comment and repost counts. When the original was deleted or cannot be viewed, is_available is false and text is Bilibili's notice. Absent when the dynamic is not a repost. |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "bilibili",
  "action": "user_dynamics",
  "params": {
    "user_id": "946974"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "bilibili",
        "action": "user_dynamics",
        "params": {
            "user_id": "946974",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "bilibili",
  "action": "user_dynamics",
  "results": [
    {
      "id": …,
      "type": …,
      "media_type": …,
      "dynamic_type": …,
      "url": …,
      "title": …,
      "text": …,
      "video_text": …,
      "author_username": …,
      "author_name": …,
      "author_url": …,
      "author_avatar_url": …,
      "video_id": …,
      "thumbnail_url": …,
      "topic_name": …,
      "ip_location": …,
      "posted_at": …,
      "author_id": …,
      "like_count": …,
      "comment_count": …,
      "repost_count": …,
      "image_count": …,
      "author_is_verified": …,
      "is_pinned": …,
      "is_repost": …,
      "is_truncated": …,
      "is_paid": …,
      "is_available": …,
      "aid": …,
      "article_id": …,
      "live_room_id": …,
      "image_urls": …,
      "hashtags": …,
      "mentions": …,
      "duration_seconds": …,
      "duration_sec": …,
      "reposted_post": …,
      "platform": …
    }
  ],
  "next_page_token": …,
  "pagination": { … },
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=bilibili
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
