Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

Bilibili User homepage video data V2

API 文件
https://api.sandbase.ai/v1/api/bilibili/web/user-post-videos-v2

Get user homepage video data V2 on Bilibili. Returns the platform data as structured JSON.

價格
$0.001美元/次呼叫
方法
POST
回應
JSON
參數
1 個必填 · 3 個選填
每天 100 次免費呼叫每天前 100 次呼叫免費(按組織共用)· 於 UTC 00:00 重設。之後按次收費。

Playground

輸入
Page number, no cap
Page size, max 100
Keyword, empty returns all
輸出就緒

您的輸出會顯示在這裡

完成輸入後,點擊執行。

API README

Bilibili User homepage video data V2 API

Returns a page of videos posted by one Bilibili user, with title, video IDs, cover image, duration, publish time and view count for each video. It needs the user's numeric uid. You can filter by keyword and page with pn and ps.

Use cases

  • List all videos a creator has posted to track their upload history.
  • Search one creator's videos for a topic by passing keyword.
  • Collect bvid values to fetch full details for each video.
  • Compare view counts across a creator's videos to see which ones performed best.

Request

curl -X POST "https://api.sandbase.ai/v1/api/bilibili/web/user-post-videos-v2" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uid": "178360345", "pn": 1, "ps": 30}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
uidstringYes
keywordstringNoKeyword, empty returns all
pnintegerNoPage number, no cap
psintegerNoPage size, max 100

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "code": 0,
  "data": {
    "archives": [
      {
        "aid": 117346609990524,
        "bvid": "BV1RMaq65EAH",
        "ctime": 1790567471,
        "duration": 410,
        "enable_vt": 0,
        "interactive_video": false,
        "pic": "http://i0.hdslb.com/bfs/archive/224ab56f95a761db0a9bb5d58406109c37dfa55a.jpg",
        "playback_position": 0,
        "pubdate": 1790567470,
        "stat": {
          "view": 36
        },
        "state": 0,
        "title": "ATM10sky通关纪念"
      }
    ],
    "page": {
      "num": 1,
      "size": 30,
      "total": 6
    }
  },
  "message": "0",
  "ttl": 1
}

Response fields

FieldMeaning
data.archives[].bvid / data.archives[].aidThe two IDs of the video. bvid is the string form that starts with BV, and aid is the numeric form.
data.archives[].titleTitle of the video.
data.archives[].picURL of the cover image.
data.archives[].durationLength of the video. The value is a plain integer, for example 410.
data.archives[].pubdate / data.archives[].ctimeUnix timestamps in seconds for the video. pubdate is the publish time and ctime is the creation time.
data.archives[].stat.viewView count of the video.
data.archives[].upMidNumeric ID of the user who posted the video. It matches the uid in the request.
data.archives[].interactive_videotrue if the video is an interactive video, otherwise false.
data.page.num / data.page.size / data.page.totalCurrent page number, page size, and a total count. In the sample, total is 6 for a request with ps set to 30.

Notes

  • uid is the numeric user ID, for example 178360345. If you only have a profile link, use Bilibili User ID Extraction to get it.
  • Use pn for the page number (default 1) and ps for the page size (default 30, max 100). Leave keyword empty to return all videos.
  • To get full details for a video, pass its bvid to Bilibili Video Details.
  • The result is returned in outputs[0].data.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

探索更多

相關 APIs

所有 APIs
API價格回應
Bilibili每次呼叫 $0.001JSON
Bilibili每次呼叫 $0.001JSON
Bilibili每次呼叫 $0.001JSON
Bilibili每次呼叫 $0.001JSON
Bilibili每次呼叫 $0.001JSON
Bilibili每次呼叫 $0.001JSON

指南:Best Bilibili API in 2026: Pricing Compared

問題

常見問題

我要如何使用 Bilibili User homepage video data V2 API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/bilibili/web/user-post-videos-v2。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

Bilibili User homepage video data V2 API 的費用是多少?

每次 $0.001。每個組織每個 UTC 日可免費呼叫 100 次,並可在包含此 API 在內的所有符合資格之 SandBase APIs 間共用;超過後,每次呼叫都會從您的 SandBase 餘額中以此價格計費。沒有訂閱方案。

Bilibili User homepage video data V2 API 接受哪些參數?

必要:uid (string)。 選填:pn (integer), ps (integer) 和 keyword (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Bilibili User homepage video data V2 API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 Bilibili 開發者帳號或 API 金鑰嗎?

不需要。Bilibili User homepage video data V2 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Bilibili API 存取權。