跳至主要內容

嗶哩嗶哩視頻詳情 API (V2) ​

GET
API 端點健康狀態
健康 可用 少量可用 基本不可用 暫無資料
正在載入健康狀態…

檢索由BVID標識的嗶哩嗶哩視頻詳情。用於查找已知視頻以進行內容審覈、編目或後續互動分析。

請求參數 ​

參數名 位置 類型 必填 預設值 說明
token query string 是 - API 的訪問令牌。
bvid query string 是 - 嗶哩嗶哩 視頻 ID (BVID)。

程式碼範例 ​

bash
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/bilibili/get-video-detail/v2?token=YOUR_API_KEY&bvid=VALUE'
text
我想使用 JustOneAPI 提供的“視頻詳情 (V2)”接口。
接入地址: https://api.justoneapi.com。
接口路徑: /api/bilibili/get-video-detail/v2?token=YOUR_API_KEY&bvid=VALUE
接口地址: BASE_URL + /api/bilibili/get-video-detail/v2?token=YOUR_API_KEY&bvid=VALUE
HTTP 方法: GET
身份驗證: 在 URL 中傳入 token 查詢參數。
OpenAPI 定義: https://docs.justoneapi.com/openapi/bilibili/video-details-v2-zh-hant.json

請求參數說明:
- token (query): API 的訪問令牌。 (必填)
- bvid (query): 嗶哩嗶哩 視頻 ID (BVID)。 (必填)

返回格式: 請根據實際 Content-Type 安全處理 JSON 或文本回應。

回應處理與錯誤代碼:
1. 需通過返回體中的 "code" 欄位判斷業務結果(code 為 0 表示成功)。
2. 逾時建議:建議將請求逾時時間設置為 120 秒;如果 120 秒偏長,請至少設置為 60 秒,但可能會有少量請求因逾時而未接收到結果。
3. 業務碼說明:
   - 0: 成功
   - 100: Token 無效或已失效
   - 301: 採集失敗,請重試
   - 302: 超出速率限制
   - 303: 超出每日配額
   - 400: 參數錯誤
   - 500: 內部伺服器錯誤
   - 600: 權限不足
   - 601: 帳戶餘額不足
   - 602: TOKEN 限額超限
4. code 601 表示帳戶共享餘額不足。code 602 表示當前 API TOKEN 自身的累計消費上限已達到。TOKEN 限額不是資金劃撥,多個 TOKEN 仍共享同一個帳戶餘額。

請幫我用我擅長的編程語言寫一個腳本來呼叫這個接口,並處理返回結果。
python
import requests

BASE_URL = "https://api.justoneapi.com"  # 由 OpenAPI servers 提供

url = BASE_URL + "/api/bilibili/get-video-detail/v2?token=YOUR_API_KEY&bvid=VALUE"
response = requests.get(url, timeout=120)
print(response.status_code)
if response.content:
    content_type = response.headers.get("content-type", "").lower()
    if "json" in content_type:
        try:
            print(response.json())
        except ValueError:
            print(response.text)
    elif content_type.startswith("text/") or "xml" in content_type or content_type.split(";", 1)[0].strip() in {"application/javascript", "application/x-www-form-urlencoded", "application/graphql"}:
        print(response.text)
    else:
        with open("response.bin", "wb") as output:
            output.write(response.content)
        print(f"Saved {len(response.content)} bytes to response.bin")
js
const BASE_URL = "https://api.justoneapi.com"; // 由 OpenAPI servers 提供
const url = BASE_URL + "/api/bilibili/get-video-detail/v2?token=YOUR_API_KEY&bvid=VALUE";

const response = await fetch(url, {
  method: "GET",
  signal: AbortSignal.timeout(120000)
});
console.log(response.status);
const responseBytes = await response.arrayBuffer();
if (responseBytes.byteLength) {
  const contentType = (response.headers.get("content-type") || "").toLowerCase();
  const mediaType = contentType.split(";", 1)[0].trim();
  const textual = contentType.startsWith("text/") || contentType.includes("json") || contentType.includes("xml") || ["application/javascript", "application/x-www-form-urlencoded", "application/graphql"].includes(mediaType);
  if (textual) {
    const responseText = new TextDecoder().decode(responseBytes);
    let data = responseText;
    if (contentType.includes("json")) {
      try { data = JSON.parse(responseText); } catch { /* Keep the raw body. */ }
    }
    console.log(data);
  } else {
    console.log(`Received ${responseBytes.byteLength} binary bytes`);
  }
}
java
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;

public class Main {
    public static void main(String[] args) throws Exception {
        final String BASE_URL = "https://api.justoneapi.com"; // 由 OpenAPI servers 提供
        final String url = BASE_URL + "/api/bilibili/get-video-detail/v2?token=YOUR_API_KEY&bvid=VALUE";

        HttpClient client = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(120)).build();
        HttpRequest.Builder builder = HttpRequest.newBuilder()
            .uri(URI.create(url))
            .timeout(Duration.ofSeconds(120))
            .method("GET", HttpRequest.BodyPublishers.noBody());

        HttpRequest request = builder.build();

        HttpResponse<byte[]> response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
        System.out.println(response.statusCode());
        String contentType = response.headers().firstValue("content-type").orElse("").toLowerCase();
        String mediaType = contentType.split(";", 2)[0].trim();
        if (contentType.startsWith("text/") || contentType.contains("json") || contentType.contains("xml") || mediaType.equals("application/javascript") || mediaType.equals("application/x-www-form-urlencoded") || mediaType.equals("application/graphql")) {
            System.out.println(new String(response.body(), StandardCharsets.UTF_8));
        } else {
            Files.write(Path.of("response.bin"), response.body());
            System.out.println("Saved " + response.body().length + " bytes to response.bin");
        }
    }
}
go
package main

import (
	"fmt"
	"io"
	"os"
	"strings"
	"net/http"
	"time"
)

const BASE_URL = "https://api.justoneapi.com" // 由 OpenAPI servers 提供

func main() {
	client := &http.Client{Timeout: 120 * time.Second}
	url := BASE_URL + "/api/bilibili/get-video-detail/v2?token=YOUR_API_KEY&bvid=VALUE"
	req, _ := http.NewRequest("GET", url, nil)
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	fmt.Println(resp.StatusCode)
	bodyBytes, _ := io.ReadAll(resp.Body)
	contentType := strings.ToLower(resp.Header.Get("Content-Type"))
	mediaType := strings.TrimSpace(strings.SplitN(contentType, ";", 2)[0])
	if strings.HasPrefix(contentType, "text/") || strings.Contains(contentType, "json") || strings.Contains(contentType, "xml") || mediaType == "application/javascript" || mediaType == "application/x-www-form-urlencoded" || mediaType == "application/graphql" {
		fmt.Println(string(bodyBytes))
	} else {
		os.WriteFile("response.bin", bodyBytes, 0600)
		fmt.Printf("Saved %d bytes to response.bin\n", len(bodyBytes))
	}
}
php
<?php
$BASE_URL = 'https://api.justoneapi.com'; // 由 OpenAPI servers 提供
$url = $BASE_URL . '/api/bilibili/get-video-detail/v2?token=YOUR_API_KEY&bvid=VALUE';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 120);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
$contentType = strtolower((string) curl_getinfo($ch, CURLINFO_CONTENT_TYPE));
curl_close($ch);
echo $status . PHP_EOL;
$mediaType = trim(explode(';', $contentType, 2)[0]);
if (str_starts_with($contentType, 'text/') || str_contains($contentType, 'json') || str_contains($contentType, 'xml') || in_array($mediaType, ['application/javascript', 'application/x-www-form-urlencoded', 'application/graphql'], true)) {
    echo $response;
} else {
    file_put_contents('response.bin', $response);
    echo 'Saved ' . strlen($response) . ' bytes to response.bin' . PHP_EOL;
}

返回欄位 ​

業務成功時(code = 0)的主要返回欄位。

視頻基本信息19 個欄位

data.videoData

所查詢的嗶哩嗶哩稿件詳情。

欄位 類型 說明
bvid string 嗶哩嗶哩視頻 ID(BV 號)。
aid integer 嗶哩嗶哩稿件的數字 ID(AV 號)。
videos integer 本稿件的分 P 數量。
tid integer 內容分區的數字 ID。
tid_v2 integer 第二套分區分類中的數字 ID。
tname string 內容分區名稱。
tname_v2 string 第二套分區分類中的分區名稱。
pic string 視頻封面圖片地址。
title string 視頻標題。
pubdate integer 發佈時間,Unix 時間戳,單位為秒。
ctime integer 稿件創建時間,Unix 時間戳,單位為秒。
desc string 視頻的純文本簡介。
desc_v2 array | null 結構化簡介條目,無可用資料時可為 null。
desc_v2[] object -
desc_v2[].raw_text string 該簡介條目的文本。
desc_v2[].type integer 該簡介條目的數字類型。
desc_v2[].biz_id integer 該簡介條目關聯的引用 ID。
state integer 嗶哩嗶哩記錄的稿件狀態碼。
duration integer 稿件總時長,單位為秒。多 P 稿件包含所有分 P 的時長。
分 P 與導航22 個欄位

data

欄位 類型 說明
aid integer 嗶哩嗶哩稿件的數字 ID(AV 號)。
bvid string 嗶哩嗶哩視頻 ID(BV 號)。
cid integer 當前分 P 的內容 ID。
p integer 當前分 P 序號,從 1 開始。
cidMap object 視頻及分 P ID 的查找表,鍵名隨所查詢的視頻變化。
availableVideoList array 當前頁面可切換的視頻條目,範圍可能超出所查詢視頻的分 P。
availableVideoList[] object -
availableVideoList[].aid integer 嗶哩嗶哩稿件的數字 ID(AV 號)。
availableVideoList[].bvid string 嗶哩嗶哩視頻 ID(BV 號)。
availableVideoList[].cid integer 列表視頻關聯的內容 ID。
availableVideoList[].title string 視頻標題。
availableVideoList[].cover string 視頻封面圖片地址。
availableVideoList[].upid integer 投稿者的嗶哩嗶哩數字用戶 ID。
availableVideoList[].is_lesson_video boolean 嗶哩嗶哩是否將此條目標記為課程視頻。
availableVideoList[].redirect_url string 打開此列表視頻的跳轉地址。
availableVideoList[].list array 此視頻條目中可跳轉的子條目。
availableVideoList[].list[] object -
availableVideoList[].list[].aid integer 嗶哩嗶哩稿件的數字 ID(AV 號)。
availableVideoList[].list[].bvid string 嗶哩嗶哩視頻 ID(BV 號)。
availableVideoList[].list[].cid integer 當前分 P 的內容 ID。
availableVideoList[].list[].p integer 分 P 序號,從 1 開始。
availableVideoList[].list[].title string 當前分 P 的顯示標題。
分 P 詳情12 個欄位

data.videoData.pages[]

此稿件的各個分 P。

欄位 類型 說明
cid integer 當前分 P 的內容 ID。
page integer 分 P 序號,從 1 開始。
part string 當前分 P 的顯示標題。
duration integer 當前分 P 的時長,單位為秒。
first_frame string 當前分 P 的首幀圖片地址。
ctime integer 分 P 創建時間,Unix 時間戳,單位為秒。
asr_language string 與此分 P 自動語音識別關聯的語言代碼。
weblink string 此分 P 關聯的網頁連結,存在時可用。
dimension object 視頻畫面尺寸和旋轉信息。
dimension.width integer 視頻畫面寬度,單位為像素。
dimension.height integer 視頻畫面高度,單位為像素。
dimension.rotate integer 視頻畫面旋轉角度,單位為度。
互動統計11 個欄位

data.videoData.stat

此稿件的互動統計。

欄位 類型 說明
aid integer 嗶哩嗶哩稿件的數字 ID(AV 號)。
view integer 嗶哩嗶哩返回的播放量。
danmaku integer 嗶哩嗶哩返回的彈幕數。
reply integer 嗶哩嗶哩返回的評論數。
favorite integer 嗶哩嗶哩返回的收藏數。
coin integer 嗶哩嗶哩返回的投幣數。
share integer 嗶哩嗶哩返回的分享數。
like integer 嗶哩嗶哩返回的點贊數。
dislike integer 嗶哩嗶哩返回的點踩數。
now_rank integer 嗶哩嗶哩返回的當前排名值。
his_rank integer 嗶哩嗶哩返回的歷史排名值。
作者與合作成員12 個欄位

data

欄位 類型 說明
staffData array 視頻頁面返回的合作成員列表,可能為空。
upData object 投稿者的公開資料。
upData.mid string 以文本表示的嗶哩嗶哩用戶 ID。
upData.name string 投稿者顯示名稱。
upData.face string 投稿者頭像地址。
upData.fans integer 返回的投稿者粉絲數。
upData.sign string 公開資料中的個性簽名。
upData.archiveCount integer 返回的投稿者稿件數。
upData.is_senior_member integer 資深會員數字標記。
upData.official_verify object 投稿者認證信息。
upData.official_verify.type integer 認證的數字類型。
upData.official_verify.desc string 個人資料展示的認證說明。
作者基本信息3 個欄位

data.videoData.owner

稿件作者的公開信息。

欄位 類型 說明
mid integer 嗶哩嗶哩用戶的數字 ID。
name string 投稿者顯示名稱。
face string 投稿者頭像地址。
版權與觀看權限28 個欄位

data.videoData

欄位 類型 說明
copyright integer 嗶哩嗶哩為此稿件記錄的數字版權分類。
rights object 嗶哩嗶哩返回的觀看與互動相關數字標記。
rights.elec integer 充電支持的數字標記。
rights.download integer 下載的數字標記。
rights.movie integer 電影內容數字標記。
rights.pay integer 付費訪問的數字標記。
rights.no_reprint integer 平台禁止轉載設置的數字標記。
rights.autoplay integer 自動播放的數字標記。
rights.ugc_pay integer 創作者內容付費訪問的數字標記。
rights.is_cooperation integer 聯合投稿數字標記。
rights.ugc_pay_preview integer 付費創作者內容的試看數字標記。
rights.no_background integer 限制後臺播放的數字標記。
rights.clean_mode integer 清爽模式數字標記。
rights.is_stein_gate integer 互動視頻數字標記。
rights.is_360 integer 360 度視頻數字標記。
rights.no_share integer 限制分享的數字標記。
rights.arc_pay integer 此稿件付費訪問的數字標記。
rights.free_watch integer 免費觀看的數字標記。
argue_info object 如平台返回,表示與此視頻關聯的提示信息。
argue_info.argue_msg string 平台提示文字。
argue_info.argue_type integer 平台提示的數字類型。
argue_info.argue_link string 與平台提示關聯的連結。
is_chargeable_season boolean 嗶哩嗶哩是否將合集標記為付費。
is_upower_exclusive boolean 此視頻是否標記為充電檔位專屬。
is_upower_play boolean 當前頁面上下文是否可以播放充電專屬視頻。
is_upower_preview boolean 嗶哩嗶哩是否將此視頻標記為可在當前頁面上下文中試看。
is_upower_exclusive_with_qa boolean 嗶哩嗶哩是否將此充電專屬視頻標記為關聯問答。
teenage_mode integer 此視頻的青少年模式數字標記。
充電與互動限制14 個欄位

data

欄位 類型 說明
elecFullInfo object 視頻頁面返回的充電和支持信息。
elecFullInfo.show_info object 充電信息展示設置。
elecFullInfo.show_info.show boolean 頁面是否顯示充電信息。
elecFullInfo.show_info.state integer 充電信息展示的狀態碼。
elecFullInfo.show_info.title string 充電信息的顯示標題。
elecFullInfo.show_info.high_level object 充電檔位的展示信息。
elecFullInfo.show_info.high_level.title string 充電檔位的顯示標題。
elecFullInfo.show_info.high_level.sub_title string 充電檔位的顯示副標題。
elecFullInfo.show_info.high_level.intro string 充電檔位的展示簡介。
emergencyBan object 當前頁面上下文中的互動操作限制。
emergencyBan.no_like boolean 此頁面是否限制點贊。
emergencyBan.no_coin boolean 此頁面是否限制投幣。
emergencyBan.no_fav boolean 此頁面是否限制收藏。
emergencyBan.no_share boolean 此頁面是否限制分享。
稿件所屬合集93 個欄位

data.videoData.ugc_season

此稿件所在的創作者合集,存在時可用。

欄位 類型 說明
id integer 合集的數字 ID。
title string 合集標題。
cover string 合集封面圖片地址。
mid integer 投稿者的嗶哩嗶哩數字用戶 ID。
intro string 合集簡介文本。
ep_count integer 返回的合集劇集數。
season_type integer 合集的數字類型。
is_pay_season boolean 嗶哩嗶哩是否將此合集標記為付費。
stat object 此合集的互動統計。
stat.season_id integer 合集的數字 ID。
stat.view integer 嗶哩嗶哩返回的播放量。
stat.danmaku integer 嗶哩嗶哩返回的彈幕數。
stat.reply integer 嗶哩嗶哩返回的評論數。
stat.fav integer 嗶哩嗶哩返回的收藏數。
stat.coin integer 嗶哩嗶哩返回的投幣數。
stat.share integer 嗶哩嗶哩返回的分享數。
stat.like integer 嗶哩嗶哩返回的點贊數。
stat.now_rank integer 嗶哩嗶哩返回的當前排名值。
stat.his_rank integer 嗶哩嗶哩返回的歷史排名值。
sections array 此合集下的分組。
sections[] object -
sections[].id integer 合集分組的數字 ID。
sections[].title string 合集分組標題。
sections[].season_id integer 合集的數字 ID。
sections[].type integer 該合集分組的數字類型。
sections[].episodes array 此合集中該分組的視頻列表。
sections[].episodes[] object -
sections[].episodes[].id integer 合集劇集的數字 ID。
sections[].episodes[].aid integer 嗶哩嗶哩稿件的數字 ID(AV 號)。
sections[].episodes[].bvid string 嗶哩嗶哩視頻 ID(BV 號)。
sections[].episodes[].cid integer 合集劇集關聯的內容 ID。
sections[].episodes[].title string 合集劇集標題。
sections[].episodes[].season_id integer 合集的數字 ID。
sections[].episodes[].section_id integer 合集分組的數字 ID。
sections[].episodes[].page object 劇集附帶的分 P 元資料。
sections[].episodes[].page.cid integer 當前分 P 的內容 ID。
sections[].episodes[].page.page integer 分 P 序號,從 1 開始。
sections[].episodes[].page.part string 當前分 P 的顯示標題。
sections[].episodes[].page.duration integer 當前分 P 的時長,單位為秒。
sections[].episodes[].page.weblink string 此分 P 關聯的網頁連結,存在時可用。
sections[].episodes[].page.dimension object 視頻畫面尺寸和旋轉信息。
sections[].episodes[].page.dimension.width integer 視頻畫面寬度,單位為像素。
sections[].episodes[].page.dimension.height integer 視頻畫面高度,單位為像素。
sections[].episodes[].page.dimension.rotate integer 視頻畫面旋轉角度,單位為度。
sections[].episodes[].pages array 此劇集返回的分 P。
sections[].episodes[].pages[] object -
sections[].episodes[].pages[].cid integer 當前分 P 的內容 ID。
sections[].episodes[].pages[].page integer 分 P 序號,從 1 開始。
sections[].episodes[].pages[].part string 當前分 P 的顯示標題。
sections[].episodes[].pages[].duration integer 當前分 P 的時長,單位為秒。
sections[].episodes[].pages[].weblink string 此分 P 關聯的網頁連結,存在時可用。
sections[].episodes[].pages[].dimension object 視頻畫面尺寸和旋轉信息。
sections[].episodes[].pages[].dimension.width integer 視頻畫面寬度,單位為像素。
sections[].episodes[].pages[].dimension.height integer 視頻畫面高度,單位為像素。
sections[].episodes[].pages[].dimension.rotate integer 視頻畫面旋轉角度,單位為度。
sections[].episodes[].arc object 劇集附帶的稿件摘要。
sections[].episodes[].arc.aid integer 嗶哩嗶哩稿件的數字 ID(AV 號)。
sections[].episodes[].arc.videos integer 本稿件的分 P 數量。
sections[].episodes[].arc.type_id integer 內容分區的數字 ID。
sections[].episodes[].arc.type_name string 內容分區名稱。
sections[].episodes[].arc.type_id_v2 integer 第二套分區分類中的數字 ID。
sections[].episodes[].arc.type_name_v2 string 第二套分區分類中的分區名稱。
sections[].episodes[].arc.copyright integer 嗶哩嗶哩為此稿件記錄的數字版權分類。
sections[].episodes[].arc.pic string 視頻封面圖片地址。
sections[].episodes[].arc.title string 視頻標題。
sections[].episodes[].arc.pubdate integer 發佈時間,Unix 時間戳,單位為秒。
sections[].episodes[].arc.ctime integer 稿件創建時間,Unix 時間戳,單位為秒。
sections[].episodes[].arc.desc string 視頻的純文本簡介。
sections[].episodes[].arc.state integer 嗶哩嗶哩記錄的稿件狀態碼。
sections[].episodes[].arc.duration integer 稿件總時長,單位為秒。多 P 稿件包含所有分 P 的時長。
sections[].episodes[].arc.author object 稿件作者的公開信息。
sections[].episodes[].arc.author.mid integer 嗶哩嗶哩用戶的數字 ID。
sections[].episodes[].arc.author.name string 投稿者顯示名稱。
sections[].episodes[].arc.author.face string 投稿者頭像地址。
sections[].episodes[].arc.stat object 此稿件的互動統計。
sections[].episodes[].arc.stat.aid integer 嗶哩嗶哩稿件的數字 ID(AV 號)。
sections[].episodes[].arc.stat.view integer 嗶哩嗶哩返回的播放量。
sections[].episodes[].arc.stat.danmaku integer 嗶哩嗶哩返回的彈幕數。
sections[].episodes[].arc.stat.reply integer 嗶哩嗶哩返回的評論數。
sections[].episodes[].arc.stat.fav integer 嗶哩嗶哩返回的收藏數。
sections[].episodes[].arc.stat.coin integer 嗶哩嗶哩返回的投幣數。
sections[].episodes[].arc.stat.share integer 嗶哩嗶哩返回的分享數。
sections[].episodes[].arc.stat.like integer 嗶哩嗶哩返回的點贊數。
sections[].episodes[].arc.stat.dislike integer 嗶哩嗶哩返回的點踩數。
sections[].episodes[].arc.stat.now_rank integer 嗶哩嗶哩返回的當前排名值。
sections[].episodes[].arc.stat.his_rank integer 嗶哩嗶哩返回的歷史排名值。
sections[].episodes[].arc.dimension object 視頻畫面尺寸和旋轉信息。
sections[].episodes[].arc.dimension.width integer 視頻畫面寬度,單位為像素。
sections[].episodes[].arc.dimension.height integer 視頻畫面高度,單位為像素。
sections[].episodes[].arc.dimension.rotate integer 視頻畫面旋轉角度,單位為度。
sections[].episodes[].arc.is_chargeable_season boolean 嗶哩嗶哩是否將合集標記為付費。
sections[].episodes[].arc.is_blooper boolean 嗶哩嗶哩是否將此視頻標記為花絮。
sections[].episodes[].arc.is_lesson_video integer 課程視頻數字標記。
頁面合集95 個欄位

data

欄位 類型 說明
sectionsInfo object 視頻頁面返回的合集信息,存在時可用。
sectionsInfo.id integer 合集的數字 ID。
sectionsInfo.title string 合集標題。
sectionsInfo.cover string 合集封面圖片地址。
sectionsInfo.mid integer 投稿者的嗶哩嗶哩數字用戶 ID。
sectionsInfo.intro string 合集簡介文本。
sectionsInfo.ep_count integer 返回的合集劇集數。
sectionsInfo.season_type integer 合集的數字類型。
sectionsInfo.is_pay_season boolean 嗶哩嗶哩是否將此合集標記為付費。
sectionsInfo.stat object 此合集的互動統計。
sectionsInfo.stat.season_id integer 合集的數字 ID。
sectionsInfo.stat.view integer 嗶哩嗶哩返回的播放量。
sectionsInfo.stat.danmaku integer 嗶哩嗶哩返回的彈幕數。
sectionsInfo.stat.reply integer 嗶哩嗶哩返回的評論數。
sectionsInfo.stat.fav integer 嗶哩嗶哩返回的收藏數。
sectionsInfo.stat.coin integer 嗶哩嗶哩返回的投幣數。
sectionsInfo.stat.share integer 嗶哩嗶哩返回的分享數。
sectionsInfo.stat.like integer 嗶哩嗶哩返回的點贊數。
sectionsInfo.stat.now_rank integer 嗶哩嗶哩返回的當前排名值。
sectionsInfo.stat.his_rank integer 嗶哩嗶哩返回的歷史排名值。
sectionsInfo.sections array 此合集下的分組。
sectionsInfo.sections[] object -
sectionsInfo.sections[].id integer 合集分組的數字 ID。
sectionsInfo.sections[].title string 合集分組標題。
sectionsInfo.sections[].season_id integer 合集的數字 ID。
sectionsInfo.sections[].type integer 該合集分組的數字類型。
sectionsInfo.sections[].episodes array 此合集中該分組的視頻列表。
sectionsInfo.sections[].episodes[] object -
sectionsInfo.sections[].episodes[].id integer 合集劇集的數字 ID。
sectionsInfo.sections[].episodes[].aid integer 嗶哩嗶哩稿件的數字 ID(AV 號)。
sectionsInfo.sections[].episodes[].bvid string 嗶哩嗶哩視頻 ID(BV 號)。
sectionsInfo.sections[].episodes[].cid integer 合集劇集關聯的內容 ID。
sectionsInfo.sections[].episodes[].title string 合集劇集標題。
sectionsInfo.sections[].episodes[].season_id integer 合集的數字 ID。
sectionsInfo.sections[].episodes[].section_id integer 合集分組的數字 ID。
sectionsInfo.sections[].episodes[].page object 劇集附帶的分 P 元資料。
sectionsInfo.sections[].episodes[].page.cid integer 當前分 P 的內容 ID。
sectionsInfo.sections[].episodes[].page.page integer 分 P 序號,從 1 開始。
sectionsInfo.sections[].episodes[].page.part string 當前分 P 的顯示標題。
sectionsInfo.sections[].episodes[].page.duration integer 當前分 P 的時長,單位為秒。
sectionsInfo.sections[].episodes[].page.weblink string 此分 P 關聯的網頁連結,存在時可用。
sectionsInfo.sections[].episodes[].page.dimension object 視頻畫面尺寸和旋轉信息。
sectionsInfo.sections[].episodes[].page.dimension.width integer 視頻畫面寬度,單位為像素。
sectionsInfo.sections[].episodes[].page.dimension.height integer 視頻畫面高度,單位為像素。
sectionsInfo.sections[].episodes[].page.dimension.rotate integer 視頻畫面旋轉角度,單位為度。
sectionsInfo.sections[].episodes[].pages array 此劇集返回的分 P。
sectionsInfo.sections[].episodes[].pages[] object -
sectionsInfo.sections[].episodes[].pages[].cid integer 當前分 P 的內容 ID。
sectionsInfo.sections[].episodes[].pages[].page integer 分 P 序號,從 1 開始。
sectionsInfo.sections[].episodes[].pages[].part string 當前分 P 的顯示標題。
sectionsInfo.sections[].episodes[].pages[].duration integer 當前分 P 的時長,單位為秒。
sectionsInfo.sections[].episodes[].pages[].weblink string 此分 P 關聯的網頁連結,存在時可用。
sectionsInfo.sections[].episodes[].pages[].dimension object 視頻畫面尺寸和旋轉信息。
sectionsInfo.sections[].episodes[].pages[].dimension.width integer 視頻畫面寬度,單位為像素。
sectionsInfo.sections[].episodes[].pages[].dimension.height integer 視頻畫面高度,單位為像素。
sectionsInfo.sections[].episodes[].pages[].dimension.rotate integer 視頻畫面旋轉角度,單位為度。
sectionsInfo.sections[].episodes[].arc object 劇集附帶的稿件摘要。
sectionsInfo.sections[].episodes[].arc.aid integer 嗶哩嗶哩稿件的數字 ID(AV 號)。
sectionsInfo.sections[].episodes[].arc.videos integer 本稿件的分 P 數量。
sectionsInfo.sections[].episodes[].arc.type_id integer 內容分區的數字 ID。
sectionsInfo.sections[].episodes[].arc.type_name string 內容分區名稱。
sectionsInfo.sections[].episodes[].arc.type_id_v2 integer 第二套分區分類中的數字 ID。
sectionsInfo.sections[].episodes[].arc.type_name_v2 string 第二套分區分類中的分區名稱。
sectionsInfo.sections[].episodes[].arc.copyright integer 嗶哩嗶哩為此稿件記錄的數字版權分類。
sectionsInfo.sections[].episodes[].arc.pic string 視頻封面圖片地址。
sectionsInfo.sections[].episodes[].arc.title string 視頻標題。
sectionsInfo.sections[].episodes[].arc.pubdate integer 發佈時間,Unix 時間戳,單位為秒。
sectionsInfo.sections[].episodes[].arc.ctime integer 稿件創建時間,Unix 時間戳,單位為秒。
sectionsInfo.sections[].episodes[].arc.desc string 視頻的純文本簡介。
sectionsInfo.sections[].episodes[].arc.state integer 嗶哩嗶哩記錄的稿件狀態碼。
sectionsInfo.sections[].episodes[].arc.duration integer 稿件總時長,單位為秒。多 P 稿件包含所有分 P 的時長。
sectionsInfo.sections[].episodes[].arc.author object 稿件作者的公開信息。
sectionsInfo.sections[].episodes[].arc.author.mid integer 嗶哩嗶哩用戶的數字 ID。
sectionsInfo.sections[].episodes[].arc.author.name string 投稿者顯示名稱。
sectionsInfo.sections[].episodes[].arc.author.face string 投稿者頭像地址。
sectionsInfo.sections[].episodes[].arc.stat object 此稿件的互動統計。
sectionsInfo.sections[].episodes[].arc.stat.aid integer 嗶哩嗶哩稿件的數字 ID(AV 號)。
sectionsInfo.sections[].episodes[].arc.stat.view integer 嗶哩嗶哩返回的播放量。
sectionsInfo.sections[].episodes[].arc.stat.danmaku integer 嗶哩嗶哩返回的彈幕數。
sectionsInfo.sections[].episodes[].arc.stat.reply integer 嗶哩嗶哩返回的評論數。
sectionsInfo.sections[].episodes[].arc.stat.fav integer 嗶哩嗶哩返回的收藏數。
sectionsInfo.sections[].episodes[].arc.stat.coin integer 嗶哩嗶哩返回的投幣數。
sectionsInfo.sections[].episodes[].arc.stat.share integer 嗶哩嗶哩返回的分享數。
sectionsInfo.sections[].episodes[].arc.stat.like integer 嗶哩嗶哩返回的點贊數。
sectionsInfo.sections[].episodes[].arc.stat.dislike integer 嗶哩嗶哩返回的點踩數。
sectionsInfo.sections[].episodes[].arc.stat.now_rank integer 嗶哩嗶哩返回的當前排名值。
sectionsInfo.sections[].episodes[].arc.stat.his_rank integer 嗶哩嗶哩返回的歷史排名值。
sectionsInfo.sections[].episodes[].arc.dimension object 視頻畫面尺寸和旋轉信息。
sectionsInfo.sections[].episodes[].arc.dimension.width integer 視頻畫面寬度,單位為像素。
sectionsInfo.sections[].episodes[].arc.dimension.height integer 視頻畫面高度,單位為像素。
sectionsInfo.sections[].episodes[].arc.dimension.rotate integer 視頻畫面旋轉角度,單位為度。
sectionsInfo.sections[].episodes[].arc.is_chargeable_season boolean 嗶哩嗶哩是否將合集標記為付費。
sectionsInfo.sections[].episodes[].arc.is_blooper boolean 嗶哩嗶哩是否將此視頻標記為花絮。
sectionsInfo.sections[].episodes[].arc.is_lesson_video integer 課程視頻數字標記。
sectionsFavState boolean 當前頁面上下文中的合集收藏狀態。
標籤與相關視頻27 個欄位

data

欄位 類型 說明
tags array 視頻頁面展示的標籤。
tags[] object -
tags[].tag_id integer 標籤的數字 ID。
tags[].tag_name string 嗶哩嗶哩展示的標籤名稱。
tags[].tag_type string 標籤類型標識。
tags[].music_id string 標籤關聯的音樂 ID,存在時可用。
tags[].jump_url string 標籤關聯的跳轉地址。
tags[].showDetail boolean 標籤是否標記為展示詳情。
tags[].showReport boolean 標籤是否標記為可舉報。
related array 視頻頁面返回的相關視頻。
related[] object -
related[].aid integer 嗶哩嗶哩稿件的數字 ID(AV 號)。
related[].cid integer 相關視頻關聯的內容 ID。
related[].bvid string 嗶哩嗶哩視頻 ID(BV 號)。
related[].duration integer 相關視頻時長,單位為秒。
related[].pic string 視頻封面圖片地址。
related[].title string 視頻標題。
related[].owner object 稿件作者的公開信息。
related[].owner.mid integer 嗶哩嗶哩用戶的數字 ID。
related[].owner.name string 投稿者顯示名稱。
related[].stat object 相關視頻的互動統計。
related[].stat.view integer 嗶哩嗶哩返回的播放量。
related[].stat.danmaku integer 嗶哩嗶哩返回的彈幕數。
related[].season_id integer 此稿件關聯的合集 ID。
related[].season_type integer 合集的數字類型。
related[].redirect_url string 打開此相關視頻的跳轉地址。
related[].redirected_url string 此相關視頻的已解析跳轉地址。
播放格式與時長52 個欄位

data.dash_info

當前分 P 的播放元資料。存在觀看限制時,此對象可能沒有 DASH 流信息。

欄位 類型 說明
quality integer 返回的播放元資料中的清晰度數字編碼。
format string 當前分 P 返回的播放格式標識。
timelength integer 當前分 P 的播放時長,單位為毫秒。
accept_format string 播放器接受的播放格式標識,以文本表示。
accept_description array 播放器接受的清晰度選項的顯示標籤列表。
accept_quality array 播放器接受的清晰度數字編碼列表。
video_codecid integer 視頻播放使用的編解碼器數字 ID。
support_formats array 可用播放清晰度與格式選項的詳情。
support_formats[] object -
support_formats[].quality integer 此播放選項的清晰度數字編碼。
support_formats[].format string 此播放選項的格式標識。
support_formats[].new_description string 此播放選項展示的說明。
support_formats[].display_desc string 此播放選項的簡短顯示標籤。
support_formats[].superscript string 此播放選項的補充顯示標籤。
support_formats[].codecs array | null 此格式的編解碼器標識列表,未提供列表時可為 null。
support_formats[].can_watch_qn_reason integer 平台返回的清晰度可觀看狀態原因碼。
support_formats[].limit_watch_reason integer 平台返回的清晰度觀看限制原因碼。
dash object 回應包含 DASH 流時返回的元資料。
dash.duration integer 當前分 P 的 DASH 時長,單位為秒。
dash.minBufferTime number DASH 聲明的最短緩衝時長,單位為秒。
dash.min_buffer_time number DASH 聲明的最短緩衝時長,單位為秒。
dash.video array DASH 清單中的視頻軌道版本。
dash.video[] object -
dash.video[].id integer 此媒體軌道版本的數字 ID。
dash.video[].bandwidth integer 此媒體軌道版本聲明的帶寬,單位為比特每秒。
dash.video[].mimeType string 媒體 MIME 類型。
dash.video[].mime_type string 媒體 MIME 類型。
dash.video[].codecs string 此媒體軌道版本的編解碼器標識。
dash.video[].codecid integer 此媒體軌道版本的編解碼器數字 ID。
dash.video[].width integer 視頻畫面寬度,單位為像素。
dash.video[].height integer 視頻畫面高度,單位為像素。
dash.video[].frameRate string DASH 軌道版本中表示的幀率。
dash.video[].frame_rate string DASH 軌道版本中表示的幀率。
dash.video[].sar string 視頻軌道版本的像素寬高比。
dash.audio array DASH 清單中的音頻軌道版本。
dash.audio[] object -
dash.audio[].id integer 此媒體軌道版本的數字 ID。
dash.audio[].bandwidth integer 此媒體軌道版本聲明的帶寬,單位為比特每秒。
dash.audio[].mimeType string 媒體 MIME 類型。
dash.audio[].mime_type string 媒體 MIME 類型。
dash.audio[].codecs string 此媒體軌道版本的編解碼器標識。
dash.audio[].codecid integer 此媒體軌道版本的編解碼器數字 ID。
dash.audio[].width integer 視頻畫面寬度,單位為像素。
dash.audio[].height integer 視頻畫面高度,單位為像素。
dash.audio[].frameRate string DASH 軌道版本中表示的幀率。
dash.audio[].frame_rate string DASH 軌道版本中表示的幀率。
dash.audio[].sar string 視頻軌道版本的像素寬高比。
durl array 播放回應提供時返回的媒體分段列表。
durl[] object -
durl[].order integer 此播放分段的順序。
durl[].length integer 此播放分段返回的時長值。
durl[].size integer 此播放分段返回的大小值。
其他欄位22 個欄位
欄位路徑 類型 說明
data.videoData.dynamic string 與此視頻關聯的 B 站動態文案。
data.videoData.cid integer 當前分 P 的內容 ID。
data.videoData.dimension object 視頻畫面尺寸和旋轉信息。
data.videoData.dimension.width integer 視頻畫面寬度,單位為像素。
data.videoData.dimension.height integer 視頻畫面高度,單位為像素。
data.videoData.dimension.rotate integer 視頻畫面旋轉角度,單位為度。
data.videoData.season_id integer 此稿件關聯的合集 ID。
data.videoData.is_season_display boolean 頁面是否標記為展示合集。
data.videoData.is_story boolean 嗶哩嗶哩是否將此稿件標記為 Story 視頻。
data.videoData.is_story_play integer Story 播放數字標記。
data.videoData.disable_show_up_info boolean 頁面是否隱藏投稿者信息。
data.videoData.is_view_self boolean 當前頁面是否處於投稿者查看本人視頻的上下文。
data.videoData.subtitle object 視頻頁面返回的字幕信息。
data.videoData.subtitle.allow_submit boolean 當前頁面上下文是否允許提交字幕。
data.videoData.subtitle.list array 稿件的字幕條目列表,可能為空。
data.videoData.honor_reply object 視頻展示的榮譽或認可信息。
data.videoData.honor_reply.honor array 榮譽或認可條目列表。
data.videoData.honor_reply.honor[] object -
data.videoData.honor_reply.honor[].aid integer 嗶哩嗶哩稿件的數字 ID(AV 號)。
data.videoData.honor_reply.honor[].type integer 榮譽的數字類型。
data.videoData.honor_reply.honor[].desc string 嗶哩嗶哩顯示的榮譽說明。
data.error object 視頻頁面的錯誤信息,可能是空對象。

回應示例 ​

正在載入回應範例…