Bilibili User homepage video data V2
https://api.sandbase.ai/v1/api/bilibili/web/user-post-videos-v2Get user homepage video data V2 on Bilibili. Returns the platform data as structured JSON.
- 料金
- $0.001USD / 回
- メソッド
- POST
- レスポンス
- JSON
- パラメータ
- 必須 1 件 · 任意 3 件
プレイグラウンド
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
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
bvidvalues 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
| Name | Type | Required | Description |
|---|---|---|---|
uid | string | Yes | |
keyword | string | No | Keyword, empty returns all |
pn | integer | No | Page number, no cap |
ps | integer | No | Page 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
| Field | Meaning |
|---|---|
data.archives[].bvid / data.archives[].aid | The two IDs of the video. bvid is the string form that starts with BV, and aid is the numeric form. |
data.archives[].title | Title of the video. |
data.archives[].pic | URL of the cover image. |
data.archives[].duration | Length of the video. The value is a plain integer, for example 410. |
data.archives[].pubdate / data.archives[].ctime | Unix timestamps in seconds for the video. pubdate is the publish time and ctime is the creation time. |
data.archives[].stat.view | View count of the video. |
data.archives[].upMid | Numeric ID of the user who posted the video. It matches the uid in the request. |
data.archives[].interactive_video | true if the video is an interactive video, otherwise false. |
data.page.num / data.page.size / data.page.total | Current page number, page size, and a total count. In the sample, total is 6 for a request with ps set to 30. |
Notes
uidis the numeric user ID, for example178360345. If you only have a profile link, use Bilibili User ID Extraction to get it.- Use
pnfor the page number (default1) andpsfor the page size (default30, max100). Leavekeywordempty to return all videos. - To get full details for a video, pass its
bvidto 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.
開発を始める
最初のリクエストを送信
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
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 '{
"pn": 1,
"ps": 30,
"uid": "178360345"
}'2. 認証
SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
3. パラメータ
pninteger
Page number, no cap
デフォルト: 1
psinteger
Page size, max 100
デフォルト: 30
keywordstring
Keyword, empty returns all
4. レスポンス
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
関連 APIs
| API | 価格 | レスポンス |
|---|---|---|
Bilibili | $0.001 / 回 | JSON |
Bilibili | $0.001 / 回 | JSON |
Bilibili | $0.001 / 回 | JSON |
Bilibili | $0.001 / 回 | JSON |
Bilibili | $0.001 / 回 | JSON |
Bilibili | $0.001 / 回 | JSON |
質問
FAQ
Bilibili User homepage video data V2 API はどのように使いますか?
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/bilibili/web/user-post-videos-v2 に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
Bilibili User homepage video data V2 API の料金はいくらですか?
1回あたり $0.001。各組織には UTC 日ごとに 100 回の無料呼び出しが付与され、この API を含む対象の SandBase API 全体で共有されます。それ以降は、各呼び出しが 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 key は必要ですか?
いいえ。Bilibili User homepage video data V2 は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Bilibili の API アクセスを別途申請する必要はありません。
