Bilibili Video Details API (V2)
Retrieves details for a Bilibili video identified by its BVID. Use it to look up a known video for content review, cataloging, or subsequent engagement analysis.
Parameters
| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
token | query | string | Yes | - | Access token for the API. |
bvid | query | string | Yes | - | Bilibili Video ID (BVID). |
Code Samples
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/bilibili/get-video-detail/v2?token=YOUR_API_KEY&bvid=VALUE'I want to use the "Video Details (V2)" API from JustOneAPI.
Base URL: https://api.justoneapi.com.
API Path: /api/bilibili/get-video-detail/v2?token=YOUR_API_KEY&bvid=VALUE
API Endpoint: BASE_URL + /api/bilibili/get-video-detail/v2?token=YOUR_API_KEY&bvid=VALUE
HTTP Method: GET
Authentication: Append the "token" query parameter to the URL.
OpenAPI Definition: https://docs.justoneapi.com/openapi/bilibili/video-details-v2-en.json
Parameters:
- token (query): Access token for the API. (Required)
- bvid (query): Bilibili Video ID (BVID). (Required)
Return format: safely handle JSON or text according to the actual Content-Type.
Response Handling & Error Codes:
1. Business results should be determined by the "code" field in the response body (code 0 means success).
2. Timeout Recommendation: Set the request timeout to 120 seconds. If 120 seconds is too long for your use case, use at least 60 seconds, but a small number of requests may time out before receiving a result.
3. Business Code Reference:
- 0: Success
- 100: Invalid or Inactive Token
- 301: Collection Failed. Please Retry.
- 302: Rate Limit Exceeded
- 303: Daily Quota Exceeded
- 400: Invalid Parameters
- 500: Internal Server Error
- 600: Permission Denied
- 601: Insufficient Balance
- 602: Token Budget Exceeded
4. Code 601 means the shared account balance is insufficient. Code 602 means the current API token's own cumulative budget limit has been reached. Token budget limits do not transfer funds out of the shared account balance.
Please help me write a script in my preferred programming language to call this API and handle the response.import requests
BASE_URL = "https://api.justoneapi.com" # Provided by 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")const BASE_URL = "https://api.justoneapi.com"; // Provided by 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`);
}
}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"; // Provided by 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");
}
}
}package main
import (
"fmt"
"io"
"os"
"strings"
"net/http"
"time"
)
const BASE_URL = "https://api.justoneapi.com" // Provided by 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
$BASE_URL = 'https://api.justoneapi.com'; // Provided by 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;
}Response Fields
Key fields in a successful response (code = 0).
Video overview19 fields
data.videoData
Details of the requested Bilibili submission.
| Field | Type | Description |
|---|---|---|
bvid | string | Bilibili video ID (BV ID). |
aid | integer | Numeric Bilibili submission ID (AV ID). |
videos | integer | Number of parts in this submission. |
tid | integer | Numeric content category ID. |
tid_v2 | integer | Numeric content category ID in the second category classification. |
tname | string | Content category name. |
tname_v2 | string | Content category name in the second category classification. |
pic | string | Video cover image URL. |
title | string | Video title. |
pubdate | integer | Publication time as a Unix timestamp in seconds. |
ctime | integer | Submission creation time as a Unix timestamp in seconds. |
desc | string | Plain-text video description. |
desc_v2 | array | null | Structured description entries when available, or null. |
desc_v2[] | object | - |
desc_v2[].raw_text | string | Text of this description entry. |
desc_v2[].type | integer | Numeric type of this description entry. |
desc_v2[].biz_id | integer | Reference ID associated with this description entry. |
state | integer | Submission state code recorded by Bilibili. |
duration | integer | Total duration of the submission in seconds, including all parts of a multipart submission. |
Video parts and navigation22 fields
data
| Field | Type | Description |
|---|---|---|
aid | integer | Numeric Bilibili submission ID (AV ID). |
bvid | string | Bilibili video ID (BV ID). |
cid | integer | Content ID of the selected video part. |
p | integer | Number of the selected video part, starting at 1. |
cidMap | object | Lookup table for video and part IDs. Its keys depend on the requested video. |
availableVideoList | array | Video entries available for navigation on this page. This list can include more than the requested video's parts. |
availableVideoList[] | object | - |
availableVideoList[].aid | integer | Numeric Bilibili submission ID (AV ID). |
availableVideoList[].bvid | string | Bilibili video ID (BV ID). |
availableVideoList[].cid | integer | Content ID associated with the listed video. |
availableVideoList[].title | string | Video title. |
availableVideoList[].cover | string | Video cover image URL. |
availableVideoList[].upid | integer | Numeric Bilibili member ID of the uploader. |
availableVideoList[].is_lesson_video | boolean | Whether Bilibili marks the entry as a lesson video. |
availableVideoList[].redirect_url | string | Redirect URL supplied for opening this listed video. |
availableVideoList[].list | array | Subentries available for navigation within this video entry. |
availableVideoList[].list[] | object | - |
availableVideoList[].list[].aid | integer | Numeric Bilibili submission ID (AV ID). |
availableVideoList[].list[].bvid | string | Bilibili video ID (BV ID). |
availableVideoList[].list[].cid | integer | Content ID of this part. |
availableVideoList[].list[].p | integer | Part number, starting at 1. |
availableVideoList[].list[].title | string | Display title of this part. |
Part details12 fields
data.videoData.pages[]
Individual parts of this submission.
| Field | Type | Description |
|---|---|---|
cid | integer | Content ID of this part. |
page | integer | Part number, starting at 1. |
part | string | Display title of this part. |
duration | integer | Duration of this video part in seconds. |
first_frame | string | First-frame image URL for this part. |
ctime | integer | Part creation time as a Unix timestamp in seconds. |
asr_language | string | Language code associated with automatic speech recognition for this part. |
weblink | string | Web link associated with this part, when present. |
dimension | object | Video frame dimensions and rotation. |
dimension.width | integer | Video frame width in pixels. |
dimension.height | integer | Video frame height in pixels. |
dimension.rotate | integer | Video frame rotation in degrees. |
Engagement statistics11 fields
data.videoData.stat
Engagement statistics for this submission.
| Field | Type | Description |
|---|---|---|
aid | integer | Numeric Bilibili submission ID (AV ID). |
view | integer | View count returned by Bilibili. |
danmaku | integer | Danmaku count returned by Bilibili. |
reply | integer | Comment count returned by Bilibili. |
favorite | integer | Favorite count returned by Bilibili. |
coin | integer | Coin count returned by Bilibili. |
share | integer | Share count returned by Bilibili. |
like | integer | Like count returned by Bilibili. |
dislike | integer | Dislike count returned by Bilibili. |
now_rank | integer | Current ranking value returned by Bilibili. |
his_rank | integer | Historical ranking value returned by Bilibili. |
Uploader and collaborators12 fields
data
| Field | Type | Description |
|---|---|---|
staffData | array | Collaborator list returned by the video page. The list may be empty. |
upData | object | Public profile information for the uploader. |
upData.mid | string | Bilibili member ID represented as text. |
upData.name | string | Uploader display name. |
upData.face | string | Uploader avatar URL. |
upData.fans | integer | Follower count returned for the uploader. |
upData.sign | string | Public profile signature. |
upData.archiveCount | integer | Submission count returned for the uploader. |
upData.is_senior_member | integer | Numeric senior-member flag. |
upData.official_verify | object | Uploader verification information. |
upData.official_verify.type | integer | Numeric verification type. |
upData.official_verify.desc | string | Verification description shown on the profile. |
Submission owner3 fields
data.videoData.owner
Public information for the submission owner.
| Field | Type | Description |
|---|---|---|
mid | integer | Numeric Bilibili member ID. |
name | string | Uploader display name. |
face | string | Uploader avatar URL. |
Copyright and viewing rights28 fields
data.videoData
| Field | Type | Description |
|---|---|---|
copyright | integer | Bilibili's numeric copyright classification for this submission. |
rights | object | Numeric viewing and interaction flags supplied by Bilibili. |
rights.elec | integer | Numeric charging support flag. |
rights.download | integer | Numeric download flag. |
rights.movie | integer | Numeric movie flag. |
rights.pay | integer | Numeric paid-access flag. |
rights.no_reprint | integer | Numeric flag for the platform's no-repost setting. |
rights.autoplay | integer | Numeric autoplay flag. |
rights.ugc_pay | integer | Numeric paid-access flag for creator content. |
rights.is_cooperation | integer | Numeric joint-submission flag. |
rights.ugc_pay_preview | integer | Numeric preview flag for paid creator content. |
rights.no_background | integer | Numeric flag for restricting background playback. |
rights.clean_mode | integer | Numeric clean-mode flag. |
rights.is_stein_gate | integer | Numeric interactive-video flag. |
rights.is_360 | integer | Numeric 360-degree video flag. |
rights.no_share | integer | Numeric flag for restricting sharing. |
rights.arc_pay | integer | Numeric paid-access flag for this submission. |
rights.free_watch | integer | Numeric free-viewing flag. |
argue_info | object | Platform notice associated with the video, when provided. |
argue_info.argue_msg | string | Text of the platform notice. |
argue_info.argue_type | integer | Numeric type of the platform notice. |
argue_info.argue_link | string | Link associated with the platform notice. |
is_chargeable_season | boolean | Whether Bilibili marks the collection as chargeable. |
is_upower_exclusive | boolean | Whether this video is marked as exclusive to a charging tier. |
is_upower_play | boolean | Whether the current page context can play the charging-exclusive video. |
is_upower_preview | boolean | Whether Bilibili marks the video as available for preview in this page context. |
is_upower_exclusive_with_qa | boolean | Whether Bilibili marks this charging-exclusive video as associated with a Q&A. |
teenage_mode | integer | Numeric youth-mode flag recorded for this video. |
Charging and engagement restrictions14 fields
data
| Field | Type | Description |
|---|---|---|
elecFullInfo | object | Charging and support information returned by the video page. |
elecFullInfo.show_info | object | Display settings for charging information. |
elecFullInfo.show_info.show | boolean | Whether the page displays charging information. |
elecFullInfo.show_info.state | integer | Display state code for charging information. |
elecFullInfo.show_info.title | string | Title displayed for the charging information. |
elecFullInfo.show_info.high_level | object | Information shown for a charging tier. |
elecFullInfo.show_info.high_level.title | string | Displayed title for the charging tier. |
elecFullInfo.show_info.high_level.sub_title | string | Displayed subtitle for the charging tier. |
elecFullInfo.show_info.high_level.intro | string | Introduction displayed for the charging tier. |
emergencyBan | object | Restrictions on engagement actions for this page context. |
emergencyBan.no_like | boolean | Whether likes are restricted on this page. |
emergencyBan.no_coin | boolean | Whether coin contributions are restricted on this page. |
emergencyBan.no_fav | boolean | Whether favorites are restricted on this page. |
emergencyBan.no_share | boolean | Whether sharing is restricted on this page. |
Submission collection93 fields
data.videoData.ugc_season
Creator collection containing the submission, when available.
| Field | Type | Description |
|---|---|---|
id | integer | Numeric collection ID. |
title | string | Collection title. |
cover | string | Collection cover image URL. |
mid | integer | Numeric Bilibili member ID of the uploader. |
intro | string | Collection introduction text. |
ep_count | integer | Episode count returned for the collection. |
season_type | integer | Numeric collection type. |
is_pay_season | boolean | Whether Bilibili marks this collection as paid. |
stat | object | Engagement statistics for the collection. |
stat.season_id | integer | Numeric collection ID. |
stat.view | integer | View count returned by Bilibili. |
stat.danmaku | integer | Danmaku count returned by Bilibili. |
stat.reply | integer | Comment count returned by Bilibili. |
stat.fav | integer | Favorite count returned by Bilibili. |
stat.coin | integer | Coin count returned by Bilibili. |
stat.share | integer | Share count returned by Bilibili. |
stat.like | integer | Like count returned by Bilibili. |
stat.now_rank | integer | Current ranking value returned by Bilibili. |
stat.his_rank | integer | Historical ranking value returned by Bilibili. |
sections | array | Sections in this collection. |
sections[] | object | - |
sections[].id | integer | Numeric collection section ID. |
sections[].title | string | Collection section title. |
sections[].season_id | integer | Numeric collection ID. |
sections[].type | integer | Numeric type of this collection section. |
sections[].episodes | array | Videos listed in this section of the collection. |
sections[].episodes[] | object | - |
sections[].episodes[].id | integer | Numeric collection episode ID. |
sections[].episodes[].aid | integer | Numeric Bilibili submission ID (AV ID). |
sections[].episodes[].bvid | string | Bilibili video ID (BV ID). |
sections[].episodes[].cid | integer | Content ID associated with the collection episode. |
sections[].episodes[].title | string | Collection episode title. |
sections[].episodes[].season_id | integer | Numeric collection ID. |
sections[].episodes[].section_id | integer | Numeric collection section ID. |
sections[].episodes[].page | object | Part metadata attached to the episode. |
sections[].episodes[].page.cid | integer | Content ID of this part. |
sections[].episodes[].page.page | integer | Part number, starting at 1. |
sections[].episodes[].page.part | string | Display title of this part. |
sections[].episodes[].page.duration | integer | Duration of this video part in seconds. |
sections[].episodes[].page.weblink | string | Web link associated with this part, when present. |
sections[].episodes[].page.dimension | object | Video frame dimensions and rotation. |
sections[].episodes[].page.dimension.width | integer | Video frame width in pixels. |
sections[].episodes[].page.dimension.height | integer | Video frame height in pixels. |
sections[].episodes[].page.dimension.rotate | integer | Video frame rotation in degrees. |
sections[].episodes[].pages | array | Parts returned for the episode. |
sections[].episodes[].pages[] | object | - |
sections[].episodes[].pages[].cid | integer | Content ID of this part. |
sections[].episodes[].pages[].page | integer | Part number, starting at 1. |
sections[].episodes[].pages[].part | string | Display title of this part. |
sections[].episodes[].pages[].duration | integer | Duration of this video part in seconds. |
sections[].episodes[].pages[].weblink | string | Web link associated with this part, when present. |
sections[].episodes[].pages[].dimension | object | Video frame dimensions and rotation. |
sections[].episodes[].pages[].dimension.width | integer | Video frame width in pixels. |
sections[].episodes[].pages[].dimension.height | integer | Video frame height in pixels. |
sections[].episodes[].pages[].dimension.rotate | integer | Video frame rotation in degrees. |
sections[].episodes[].arc | object | Submission summary attached to the episode. |
sections[].episodes[].arc.aid | integer | Numeric Bilibili submission ID (AV ID). |
sections[].episodes[].arc.videos | integer | Number of parts in this submission. |
sections[].episodes[].arc.type_id | integer | Numeric content category ID. |
sections[].episodes[].arc.type_name | string | Content category name. |
sections[].episodes[].arc.type_id_v2 | integer | Numeric content category ID in the second category classification. |
sections[].episodes[].arc.type_name_v2 | string | Content category name in the second category classification. |
sections[].episodes[].arc.copyright | integer | Bilibili's numeric copyright classification for this submission. |
sections[].episodes[].arc.pic | string | Video cover image URL. |
sections[].episodes[].arc.title | string | Video title. |
sections[].episodes[].arc.pubdate | integer | Publication time as a Unix timestamp in seconds. |
sections[].episodes[].arc.ctime | integer | Submission creation time as a Unix timestamp in seconds. |
sections[].episodes[].arc.desc | string | Plain-text video description. |
sections[].episodes[].arc.state | integer | Submission state code recorded by Bilibili. |
sections[].episodes[].arc.duration | integer | Total duration of the submission in seconds, including all parts of a multipart submission. |
sections[].episodes[].arc.author | object | Public information for the submission owner. |
sections[].episodes[].arc.author.mid | integer | Numeric Bilibili member ID. |
sections[].episodes[].arc.author.name | string | Uploader display name. |
sections[].episodes[].arc.author.face | string | Uploader avatar URL. |
sections[].episodes[].arc.stat | object | Engagement statistics for this submission. |
sections[].episodes[].arc.stat.aid | integer | Numeric Bilibili submission ID (AV ID). |
sections[].episodes[].arc.stat.view | integer | View count returned by Bilibili. |
sections[].episodes[].arc.stat.danmaku | integer | Danmaku count returned by Bilibili. |
sections[].episodes[].arc.stat.reply | integer | Comment count returned by Bilibili. |
sections[].episodes[].arc.stat.fav | integer | Favorite count returned by Bilibili. |
sections[].episodes[].arc.stat.coin | integer | Coin count returned by Bilibili. |
sections[].episodes[].arc.stat.share | integer | Share count returned by Bilibili. |
sections[].episodes[].arc.stat.like | integer | Like count returned by Bilibili. |
sections[].episodes[].arc.stat.dislike | integer | Dislike count returned by Bilibili. |
sections[].episodes[].arc.stat.now_rank | integer | Current ranking value returned by Bilibili. |
sections[].episodes[].arc.stat.his_rank | integer | Historical ranking value returned by Bilibili. |
sections[].episodes[].arc.dimension | object | Video frame dimensions and rotation. |
sections[].episodes[].arc.dimension.width | integer | Video frame width in pixels. |
sections[].episodes[].arc.dimension.height | integer | Video frame height in pixels. |
sections[].episodes[].arc.dimension.rotate | integer | Video frame rotation in degrees. |
sections[].episodes[].arc.is_chargeable_season | boolean | Whether Bilibili marks the collection as chargeable. |
sections[].episodes[].arc.is_blooper | boolean | Whether Bilibili marks this video as a blooper or bonus clip. |
sections[].episodes[].arc.is_lesson_video | integer | Numeric lesson-video flag. |
Page collection95 fields
data
| Field | Type | Description |
|---|---|---|
sectionsInfo | object | Collection information provided by the video page, when available. |
sectionsInfo.id | integer | Numeric collection ID. |
sectionsInfo.title | string | Collection title. |
sectionsInfo.cover | string | Collection cover image URL. |
sectionsInfo.mid | integer | Numeric Bilibili member ID of the uploader. |
sectionsInfo.intro | string | Collection introduction text. |
sectionsInfo.ep_count | integer | Episode count returned for the collection. |
sectionsInfo.season_type | integer | Numeric collection type. |
sectionsInfo.is_pay_season | boolean | Whether Bilibili marks this collection as paid. |
sectionsInfo.stat | object | Engagement statistics for the collection. |
sectionsInfo.stat.season_id | integer | Numeric collection ID. |
sectionsInfo.stat.view | integer | View count returned by Bilibili. |
sectionsInfo.stat.danmaku | integer | Danmaku count returned by Bilibili. |
sectionsInfo.stat.reply | integer | Comment count returned by Bilibili. |
sectionsInfo.stat.fav | integer | Favorite count returned by Bilibili. |
sectionsInfo.stat.coin | integer | Coin count returned by Bilibili. |
sectionsInfo.stat.share | integer | Share count returned by Bilibili. |
sectionsInfo.stat.like | integer | Like count returned by Bilibili. |
sectionsInfo.stat.now_rank | integer | Current ranking value returned by Bilibili. |
sectionsInfo.stat.his_rank | integer | Historical ranking value returned by Bilibili. |
sectionsInfo.sections | array | Sections in this collection. |
sectionsInfo.sections[] | object | - |
sectionsInfo.sections[].id | integer | Numeric collection section ID. |
sectionsInfo.sections[].title | string | Collection section title. |
sectionsInfo.sections[].season_id | integer | Numeric collection ID. |
sectionsInfo.sections[].type | integer | Numeric type of this collection section. |
sectionsInfo.sections[].episodes | array | Videos listed in this section of the collection. |
sectionsInfo.sections[].episodes[] | object | - |
sectionsInfo.sections[].episodes[].id | integer | Numeric collection episode ID. |
sectionsInfo.sections[].episodes[].aid | integer | Numeric Bilibili submission ID (AV ID). |
sectionsInfo.sections[].episodes[].bvid | string | Bilibili video ID (BV ID). |
sectionsInfo.sections[].episodes[].cid | integer | Content ID associated with the collection episode. |
sectionsInfo.sections[].episodes[].title | string | Collection episode title. |
sectionsInfo.sections[].episodes[].season_id | integer | Numeric collection ID. |
sectionsInfo.sections[].episodes[].section_id | integer | Numeric collection section ID. |
sectionsInfo.sections[].episodes[].page | object | Part metadata attached to the episode. |
sectionsInfo.sections[].episodes[].page.cid | integer | Content ID of this part. |
sectionsInfo.sections[].episodes[].page.page | integer | Part number, starting at 1. |
sectionsInfo.sections[].episodes[].page.part | string | Display title of this part. |
sectionsInfo.sections[].episodes[].page.duration | integer | Duration of this video part in seconds. |
sectionsInfo.sections[].episodes[].page.weblink | string | Web link associated with this part, when present. |
sectionsInfo.sections[].episodes[].page.dimension | object | Video frame dimensions and rotation. |
sectionsInfo.sections[].episodes[].page.dimension.width | integer | Video frame width in pixels. |
sectionsInfo.sections[].episodes[].page.dimension.height | integer | Video frame height in pixels. |
sectionsInfo.sections[].episodes[].page.dimension.rotate | integer | Video frame rotation in degrees. |
sectionsInfo.sections[].episodes[].pages | array | Parts returned for the episode. |
sectionsInfo.sections[].episodes[].pages[] | object | - |
sectionsInfo.sections[].episodes[].pages[].cid | integer | Content ID of this part. |
sectionsInfo.sections[].episodes[].pages[].page | integer | Part number, starting at 1. |
sectionsInfo.sections[].episodes[].pages[].part | string | Display title of this part. |
sectionsInfo.sections[].episodes[].pages[].duration | integer | Duration of this video part in seconds. |
sectionsInfo.sections[].episodes[].pages[].weblink | string | Web link associated with this part, when present. |
sectionsInfo.sections[].episodes[].pages[].dimension | object | Video frame dimensions and rotation. |
sectionsInfo.sections[].episodes[].pages[].dimension.width | integer | Video frame width in pixels. |
sectionsInfo.sections[].episodes[].pages[].dimension.height | integer | Video frame height in pixels. |
sectionsInfo.sections[].episodes[].pages[].dimension.rotate | integer | Video frame rotation in degrees. |
sectionsInfo.sections[].episodes[].arc | object | Submission summary attached to the episode. |
sectionsInfo.sections[].episodes[].arc.aid | integer | Numeric Bilibili submission ID (AV ID). |
sectionsInfo.sections[].episodes[].arc.videos | integer | Number of parts in this submission. |
sectionsInfo.sections[].episodes[].arc.type_id | integer | Numeric content category ID. |
sectionsInfo.sections[].episodes[].arc.type_name | string | Content category name. |
sectionsInfo.sections[].episodes[].arc.type_id_v2 | integer | Numeric content category ID in the second category classification. |
sectionsInfo.sections[].episodes[].arc.type_name_v2 | string | Content category name in the second category classification. |
sectionsInfo.sections[].episodes[].arc.copyright | integer | Bilibili's numeric copyright classification for this submission. |
sectionsInfo.sections[].episodes[].arc.pic | string | Video cover image URL. |
sectionsInfo.sections[].episodes[].arc.title | string | Video title. |
sectionsInfo.sections[].episodes[].arc.pubdate | integer | Publication time as a Unix timestamp in seconds. |
sectionsInfo.sections[].episodes[].arc.ctime | integer | Submission creation time as a Unix timestamp in seconds. |
sectionsInfo.sections[].episodes[].arc.desc | string | Plain-text video description. |
sectionsInfo.sections[].episodes[].arc.state | integer | Submission state code recorded by Bilibili. |
sectionsInfo.sections[].episodes[].arc.duration | integer | Total duration of the submission in seconds, including all parts of a multipart submission. |
sectionsInfo.sections[].episodes[].arc.author | object | Public information for the submission owner. |
sectionsInfo.sections[].episodes[].arc.author.mid | integer | Numeric Bilibili member ID. |
sectionsInfo.sections[].episodes[].arc.author.name | string | Uploader display name. |
sectionsInfo.sections[].episodes[].arc.author.face | string | Uploader avatar URL. |
sectionsInfo.sections[].episodes[].arc.stat | object | Engagement statistics for this submission. |
sectionsInfo.sections[].episodes[].arc.stat.aid | integer | Numeric Bilibili submission ID (AV ID). |
sectionsInfo.sections[].episodes[].arc.stat.view | integer | View count returned by Bilibili. |
sectionsInfo.sections[].episodes[].arc.stat.danmaku | integer | Danmaku count returned by Bilibili. |
sectionsInfo.sections[].episodes[].arc.stat.reply | integer | Comment count returned by Bilibili. |
sectionsInfo.sections[].episodes[].arc.stat.fav | integer | Favorite count returned by Bilibili. |
sectionsInfo.sections[].episodes[].arc.stat.coin | integer | Coin count returned by Bilibili. |
sectionsInfo.sections[].episodes[].arc.stat.share | integer | Share count returned by Bilibili. |
sectionsInfo.sections[].episodes[].arc.stat.like | integer | Like count returned by Bilibili. |
sectionsInfo.sections[].episodes[].arc.stat.dislike | integer | Dislike count returned by Bilibili. |
sectionsInfo.sections[].episodes[].arc.stat.now_rank | integer | Current ranking value returned by Bilibili. |
sectionsInfo.sections[].episodes[].arc.stat.his_rank | integer | Historical ranking value returned by Bilibili. |
sectionsInfo.sections[].episodes[].arc.dimension | object | Video frame dimensions and rotation. |
sectionsInfo.sections[].episodes[].arc.dimension.width | integer | Video frame width in pixels. |
sectionsInfo.sections[].episodes[].arc.dimension.height | integer | Video frame height in pixels. |
sectionsInfo.sections[].episodes[].arc.dimension.rotate | integer | Video frame rotation in degrees. |
sectionsInfo.sections[].episodes[].arc.is_chargeable_season | boolean | Whether Bilibili marks the collection as chargeable. |
sectionsInfo.sections[].episodes[].arc.is_blooper | boolean | Whether Bilibili marks this video as a blooper or bonus clip. |
sectionsInfo.sections[].episodes[].arc.is_lesson_video | integer | Numeric lesson-video flag. |
sectionsFavState | boolean | Whether the collection is shown as favorited in this page context. |
Tags and related videos27 fields
data
| Field | Type | Description |
|---|---|---|
tags | array | Tags shown on the video page. |
tags[] | object | - |
tags[].tag_id | integer | Numeric tag ID. |
tags[].tag_name | string | Tag name shown by Bilibili. |
tags[].tag_type | string | Tag type label. |
tags[].music_id | string | Music ID associated with the tag, when provided. |
tags[].jump_url | string | Navigation URL associated with the tag. |
tags[].showDetail | boolean | Whether the tag is marked to show details. |
tags[].showReport | boolean | Whether the tag is marked to offer reporting. |
related | array | Related videos returned with this page. |
related[] | object | - |
related[].aid | integer | Numeric Bilibili submission ID (AV ID). |
related[].cid | integer | Content ID associated with the related video. |
related[].bvid | string | Bilibili video ID (BV ID). |
related[].duration | integer | Duration of the related video in seconds. |
related[].pic | string | Video cover image URL. |
related[].title | string | Video title. |
related[].owner | object | Public information for the submission owner. |
related[].owner.mid | integer | Numeric Bilibili member ID. |
related[].owner.name | string | Uploader display name. |
related[].stat | object | Engagement statistics for the related video. |
related[].stat.view | integer | View count returned by Bilibili. |
related[].stat.danmaku | integer | Danmaku count returned by Bilibili. |
related[].season_id | integer | Collection ID associated with the submission. |
related[].season_type | integer | Numeric collection type. |
related[].redirect_url | string | Redirect URL supplied for opening this related video. |
related[].redirected_url | string | Resolved navigation URL supplied for this related video. |
Playback formats and duration52 fields
data.dash_info
Playback metadata for the selected part. Access restrictions can leave this object without DASH streams.
| Field | Type | Description |
|---|---|---|
quality | integer | Numeric quality code for the returned playback metadata. |
format | string | Playback format identifier returned for the selected part. |
timelength | integer | Playback duration for the selected part in milliseconds. |
accept_format | string | Playback format identifiers accepted by the player, provided as text. |
accept_description | array | Display labels for quality options accepted by the player. |
accept_quality | array | Numeric quality options accepted by the player. |
video_codecid | integer | Numeric codec ID for video playback. |
support_formats | array | Details of the available playback quality and format options. |
support_formats[] | object | - |
support_formats[].quality | integer | Numeric quality code for this playback option. |
support_formats[].format | string | Format identifier for this playback option. |
support_formats[].new_description | string | Description displayed for this playback option. |
support_formats[].display_desc | string | Short display label for this playback option. |
support_formats[].superscript | string | Supplemental display label for this playback option. |
support_formats[].codecs | array | null | Codec identifiers for this format, or null when no list is supplied. |
support_formats[].can_watch_qn_reason | integer | Platform reason code for availability of this quality option. |
support_formats[].limit_watch_reason | integer | Platform reason code for a restriction on this quality option. |
dash | object | DASH stream metadata when it is included in the response. |
dash.duration | integer | DASH duration for the selected part in seconds. |
dash.minBufferTime | number | Minimum buffering time declared by DASH, in seconds. |
dash.min_buffer_time | number | Minimum buffering time declared by DASH, in seconds. |
dash.video | array | Video representations in the DASH manifest. |
dash.video[] | object | - |
dash.video[].id | integer | Numeric ID of this media representation. |
dash.video[].bandwidth | integer | Bandwidth declared for this media representation, in bits per second. |
dash.video[].mimeType | string | Media MIME type. |
dash.video[].mime_type | string | Media MIME type. |
dash.video[].codecs | string | Codec identifier for this media representation. |
dash.video[].codecid | integer | Numeric codec ID for this media representation. |
dash.video[].width | integer | Video frame width in pixels. |
dash.video[].height | integer | Video frame height in pixels. |
dash.video[].frameRate | string | Frame rate as expressed in the DASH representation. |
dash.video[].frame_rate | string | Frame rate as expressed in the DASH representation. |
dash.video[].sar | string | Sample aspect ratio for the video representation. |
dash.audio | array | Audio representations in the DASH manifest. |
dash.audio[] | object | - |
dash.audio[].id | integer | Numeric ID of this media representation. |
dash.audio[].bandwidth | integer | Bandwidth declared for this media representation, in bits per second. |
dash.audio[].mimeType | string | Media MIME type. |
dash.audio[].mime_type | string | Media MIME type. |
dash.audio[].codecs | string | Codec identifier for this media representation. |
dash.audio[].codecid | integer | Numeric codec ID for this media representation. |
dash.audio[].width | integer | Video frame width in pixels. |
dash.audio[].height | integer | Video frame height in pixels. |
dash.audio[].frameRate | string | Frame rate as expressed in the DASH representation. |
dash.audio[].frame_rate | string | Frame rate as expressed in the DASH representation. |
dash.audio[].sar | string | Sample aspect ratio for the video representation. |
durl | array | Segments listed by the playback response when present. |
durl[] | object | - |
durl[].order | integer | Order of this playback segment. |
durl[].length | integer | Duration value returned for this playback segment. |
durl[].size | integer | Size value returned for this playback segment. |
Other fields22 fields
| Field path | Type | Description |
|---|---|---|
data.videoData.dynamic | string | Text associated with the video's Bilibili feed post. |
data.videoData.cid | integer | Content ID of the selected video part. |
data.videoData.dimension | object | Video frame dimensions and rotation. |
data.videoData.dimension.width | integer | Video frame width in pixels. |
data.videoData.dimension.height | integer | Video frame height in pixels. |
data.videoData.dimension.rotate | integer | Video frame rotation in degrees. |
data.videoData.season_id | integer | Collection ID associated with the submission. |
data.videoData.is_season_display | boolean | Whether the page indicates that the collection is shown. |
data.videoData.is_story | boolean | Whether Bilibili marks this submission as a Story video. |
data.videoData.is_story_play | integer | Numeric Story playback flag. |
data.videoData.disable_show_up_info | boolean | Whether the page hides uploader information. |
data.videoData.is_view_self | boolean | Whether this video is shown in an uploader's own viewing context. |
data.videoData.subtitle | object | Subtitle information provided by the video page. |
data.videoData.subtitle.allow_submit | boolean | Whether subtitle submission is allowed in this page context. |
data.videoData.subtitle.list | array | Subtitle entries returned for the submission. The list may be empty. |
data.videoData.honor_reply | object | Recognition or honors displayed for the video. |
data.videoData.honor_reply.honor | array | List of recognition or honor entries. |
data.videoData.honor_reply.honor[] | object | - |
data.videoData.honor_reply.honor[].aid | integer | Numeric Bilibili submission ID (AV ID). |
data.videoData.honor_reply.honor[].type | integer | Numeric type of the honor. |
data.videoData.honor_reply.honor[].desc | string | Description of the honor shown by Bilibili. |
data.error | object | Video page error information. It may be an empty object. |