Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Bilibili User homepage video data V2

Tài liệu 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.

Giá
$0.001USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 3 tùy chọn
100 lượt gọi miễn phí / ngày100 lượt gọi đầu tiên mỗi ngày miễn phí (chia sẻ theo tổ chức) · Đặt lại lúc 00:00 UTC. Sau đó tính phí theo mỗi lượt gọi.

Phòng thử nghiệm

Đầu vào
Page number, no cap
Page size, max 100
Keyword, empty returns all
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

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.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Bilibili$0.001 mỗi lần gọiJSON
Bilibili$0.001 mỗi lần gọiJSON
Bilibili$0.001 mỗi lần gọiJSON
Bilibili$0.001 mỗi lần gọiJSON
Bilibili$0.001 mỗi lần gọiJSON
Bilibili$0.001 mỗi lần gọiJSON

Hướng dẫn:Best Bilibili API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API Bilibili User homepage video data V2?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/bilibili/web/user-post-videos-v2 với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Bilibili User homepage video data V2 có giá bao nhiêu?

$0.001 mỗi lần gọi. Mỗi tổ chức được 100 lần gọi miễn phí mỗi ngày UTC, dùng chung cho các API SandBase đủ điều kiện, bao gồm API này; sau đó mỗi lần gọi sẽ được tính theo mức giá này từ số dư SandBase của bạn. Không có gói đăng ký.

API Bilibili User homepage video data V2 chấp nhận những tham số nào?

Bắt buộc: uid (string). Tùy chọn: pn (integer), ps (integer) và keyword (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Bilibili User homepage video data V2 trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của Bilibili không?

Không. Bilibili User homepage video data V2 chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Bilibili.