POST

API health

24h health
Normal
  • Healthy / normal
  • Available
Normal

Last 24 hours

Last 30 days

Read the dynamics a Bilibili user has posted (videos, image posts, text, reposts and more), newest first, about 12 per page and paged with page_token. A repost carries the original post in reposted_post.

Send POST https://api.everyinfra.com/api/v1/social with platform set to bilibili and action set to user_dynamics. Price $0.79 per 1,000 requests ($0.000792 per call). Failed calls and empty results are not charged. Synchronous. For slow jobs add "mode": "async" to the body, take the job_id and poll.

AI prompt

#
Please help me write a data collection script with the EveryInfra Bilibili User dynamics endpoint (bilibili/user_dynamics).

How the endpoint works:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to bilibili and action to user_dynamics, and put the parameters inside params.
- Required parameters:
  - user_id: 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.
- Optional parameters:
  - page_token: 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.
- Returns a list of records. Main fields of each record: id, type, media_type (Kind of dynamic (user_dynamics): video,…), dynamic_type (Bilibili's own dynamic type name (user_…), url, title, text, video_text (The video's description (user_dynamics,…), author_username, author_name, author_url, author_avatar_url (Uploader avatar link (popular)); 37 fields in total, full list at https://api.everyinfra.com/api/v1/social/catalog?platform=bilibili.
- Example request body:
{
  "platform": "bilibili",
  "action": "user_dynamics",
  "params": {
    "user_id": "946974"
  }
}
- Price: $0.79 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.

Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.

Request parameters

#
NameInTypeRequiredDefaultDescription
AuthorizationheaderstringYes-Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository.
platformbodystringYesbilibiliPlatform identifier, fixed value.
actionbodystringYesuser_dynamicsCapability identifier, fixed value.
user_idbody.paramsstringYes-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_tokenbody.paramsstringNo-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.

Code samples

#
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"
  }
}'

OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.

Response example

#
No sample response is available for these parameters yet. This preview shows the response shape and fields from the API definition, with … as placeholders; it is not the result of a live call.
json
{  "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": { … }}

Response fields

#

Business data is in results. The table lists the fields a record can contain. Values the platform does not show are never made up.

FieldMeaning
idThe record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms.
typeRecord type; values depend on the capability (for example video / image / text).
media_typeKind of dynamic (user_dynamics): video, image, text, repost, article, live, episode, audio, course or other. New values can appear.
dynamic_typeBilibili's own dynamic type name (user_dynamics), such as AV, DRAW, FORWARD or ARTICLE, returned as is.
urlLink to the record on the platform.
titleTitle. null when the platform has no titles (for example text-only posts).
textBody 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_textThe video's description (user_dynamics, video dynamics); the video title is in title.
author_usernameAuthor's username (@handle), usually usable in URLs.
author_nameAuthor's display name.
author_urlLink to the author's profile on the platform.
author_avatar_urlUploader avatar link (popular).
video_idBV number of the video.
thumbnail_urlThumbnail link, lower resolution than image_url.
topic_nameName of the topic attached to the dynamic (user_dynamics); absent when there is none.
ip_locationUpload location (popular): the IP region Bilibili shows on the video page, a province or country.
posted_atPublish 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_idAuthor's unique ID on the platform.
like_countLikes. null means the platform or this capability does not disclose it; it is not 0.
comment_countComments. null means not disclosed, not 0.
repost_countReposts (as distinct from quote posts). null means not disclosed.
image_countNumber of images in the dynamic (user_dynamics, image dynamics).
author_is_verifiedWhether the author is officially verified (user_dynamics).
is_pinnedWhether 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_repostWhether the dynamic is a repost (user_dynamics); if so, the original is in reposted_post.
is_truncatedWhether 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_paidWhether 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_availableWhether the reposted original can still be viewed (user_dynamics, inside reposted_post).
aidThe video's numeric av ID (popular); it names the same video as the BV ID in id.
article_idID of the column article (user_dynamics, article dynamics).
live_room_idLive room number of the user (user rows in user_search and general_search); absent when the user has never opened a live room.
image_urlsArray of image links in the platform's display order; absent when there are no images.
hashtagsHashtags in the text, in order of appearance; absent when there are none.
mentionsNicknames of users @-mentioned in the reply (comment_replies), as an array; the field is absent when there is no @.
duration_secondsDuration in seconds. null for content that is not video or audio.
duration_secVideo 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_postThe 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.
platformSource platform identifier, the same as platform in the request (for example xiaohongshu, tiktok).

Errors and billing

#
401
Missing or invalid key.
402
Insufficient balance. Top up first.
422
Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
429
Per-minute request limit reached. Wait for Retry-After, then try again.
503
Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
200 empty
No data. No charge.

Errors

Google Analytics needs consent. Privacy