Skip to content

Latest commit

 

History

History
3006 lines (2244 loc) · 121 KB

File metadata and controls

3006 lines (2244 loc) · 121 KB

tikhub_sdk_v2.BilibiliWebAPIApi

All URIs are relative to http://localhost

Method HTTP request Description
fetch_collect_folders_api_v1_bilibili_web_fetch_all_live_areas_get GET /api/v1/bilibili/web/fetch_all_live_areas 获取所有直播分区列表/Get a list of all live areas
fetch_collect_folders_api_v1_bilibili_web_fetch_all_live_areas_get_0 GET /api/v1/bilibili/web/fetch_all_live_areas 获取所有直播分区列表/Get a list of all live areas
fetch_collect_folders_api_v1_bilibili_web_fetch_collect_folders_get GET /api/v1/bilibili/web/fetch_collect_folders 获取用户所有收藏夹信息/Get user collection folders
fetch_collect_folders_api_v1_bilibili_web_fetch_collect_folders_get_0 GET /api/v1/bilibili/web/fetch_collect_folders 获取用户所有收藏夹信息/Get user collection folders
fetch_collect_folders_api_v1_bilibili_web_fetch_com_popular_get GET /api/v1/bilibili/web/fetch_com_popular 获取综合热门视频信息/Get comprehensive popular video information
fetch_collect_folders_api_v1_bilibili_web_fetch_com_popular_get_0 GET /api/v1/bilibili/web/fetch_com_popular 获取综合热门视频信息/Get comprehensive popular video information
fetch_collect_folders_api_v1_bilibili_web_fetch_comment_reply_get GET /api/v1/bilibili/web/fetch_comment_reply 获取视频下指定评论的回复/Get reply to the specified comment
fetch_collect_folders_api_v1_bilibili_web_fetch_comment_reply_get_0 GET /api/v1/bilibili/web/fetch_comment_reply 获取视频下指定评论的回复/Get reply to the specified comment
fetch_collect_folders_api_v1_bilibili_web_fetch_live_room_detail_get GET /api/v1/bilibili/web/fetch_live_room_detail 获取指定直播间信息/Get information of specified live room
fetch_collect_folders_api_v1_bilibili_web_fetch_live_room_detail_get_0 GET /api/v1/bilibili/web/fetch_live_room_detail 获取指定直播间信息/Get information of specified live room
fetch_collect_folders_api_v1_bilibili_web_fetch_live_streamers_get GET /api/v1/bilibili/web/fetch_live_streamers 获取指定分区正在直播的主播/Get live streamers of specified live area
fetch_collect_folders_api_v1_bilibili_web_fetch_live_streamers_get_0 GET /api/v1/bilibili/web/fetch_live_streamers 获取指定分区正在直播的主播/Get live streamers of specified live area
fetch_collect_folders_api_v1_bilibili_web_fetch_live_videos_get GET /api/v1/bilibili/web/fetch_live_videos 获取直播间视频流/Get live video data of specified room
fetch_collect_folders_api_v1_bilibili_web_fetch_live_videos_get_0 GET /api/v1/bilibili/web/fetch_live_videos 获取直播间视频流/Get live video data of specified room
fetch_collect_folders_api_v1_bilibili_web_fetch_user_dynamic_get GET /api/v1/bilibili/web/fetch_user_dynamic 获取指定用户动态/Get dynamic information of specified user
fetch_collect_folders_api_v1_bilibili_web_fetch_user_dynamic_get_0 GET /api/v1/bilibili/web/fetch_user_dynamic 获取指定用户动态/Get dynamic information of specified user
fetch_collect_folders_api_v1_bilibili_web_fetch_user_profile_get GET /api/v1/bilibili/web/fetch_user_profile 获取指定用户的信息/Get information of specified user
fetch_collect_folders_api_v1_bilibili_web_fetch_user_profile_get_0 GET /api/v1/bilibili/web/fetch_user_profile 获取指定用户的信息/Get information of specified user
fetch_collect_folders_api_v1_bilibili_web_fetch_video_comments_get GET /api/v1/bilibili/web/fetch_video_comments 获取指定视频的评论/Get comments on the specified video
fetch_collect_folders_api_v1_bilibili_web_fetch_video_comments_get_0 GET /api/v1/bilibili/web/fetch_video_comments 获取指定视频的评论/Get comments on the specified video
fetch_general_search_api_v1_bilibili_web_fetch_general_search_get GET /api/v1/bilibili/web/fetch_general_search 获取综合搜索信息/Get general search data
fetch_general_search_api_v1_bilibili_web_fetch_general_search_get_0 GET /api/v1/bilibili/web/fetch_general_search 获取综合搜索信息/Get general search data
fetch_hot_search_api_v1_bilibili_web_fetch_hot_search_get GET /api/v1/bilibili/web/fetch_hot_search 获取热门搜索信息/Get hot search data
fetch_hot_search_api_v1_bilibili_web_fetch_hot_search_get_0 GET /api/v1/bilibili/web/fetch_hot_search 获取热门搜索信息/Get hot search data
fetch_one_video_api_v1_bilibili_web_bv_to_aid_get GET /api/v1/bilibili/web/bv_to_aid 通过bv号获得视频aid号/Generate aid by bvid
fetch_one_video_api_v1_bilibili_web_bv_to_aid_get_0 GET /api/v1/bilibili/web/bv_to_aid 通过bv号获得视频aid号/Generate aid by bvid
fetch_one_video_api_v1_bilibili_web_fetch_one_video_get GET /api/v1/bilibili/web/fetch_one_video 获取单个视频详情信息/Get single video data
fetch_one_video_api_v1_bilibili_web_fetch_one_video_get_0 GET /api/v1/bilibili/web/fetch_one_video 获取单个视频详情信息/Get single video data
fetch_one_video_api_v1_bilibili_web_fetch_video_danmaku_get GET /api/v1/bilibili/web/fetch_video_danmaku 获取视频实时弹幕/Get Video Danmaku
fetch_one_video_api_v1_bilibili_web_fetch_video_danmaku_get_0 GET /api/v1/bilibili/web/fetch_video_danmaku 获取视频实时弹幕/Get Video Danmaku
fetch_one_video_api_v1_bilibili_web_fetch_video_parts_get GET /api/v1/bilibili/web/fetch_video_parts 通过bv号获得视频分p信息/Get Video Parts By bvid
fetch_one_video_api_v1_bilibili_web_fetch_video_parts_get_0 GET /api/v1/bilibili/web/fetch_video_parts 通过bv号获得视频分p信息/Get Video Parts By bvid
fetch_one_video_api_v1_bilibili_web_fetch_video_playurl_get GET /api/v1/bilibili/web/fetch_video_playurl 获取视频流地址/Get video playurl
fetch_one_video_api_v1_bilibili_web_fetch_video_playurl_get_0 GET /api/v1/bilibili/web/fetch_video_playurl 获取视频流地址/Get video playurl
fetch_one_video_v2_api_v1_bilibili_web_fetch_one_video_v2_get GET /api/v1/bilibili/web/fetch_one_video_v2 获取单个视频详情信息V2/Get single video data V2
fetch_one_video_v2_api_v1_bilibili_web_fetch_one_video_v2_get_0 GET /api/v1/bilibili/web/fetch_one_video_v2 获取单个视频详情信息V2/Get single video data V2
fetch_user_collection_videos_api_v1_bilibili_web_fetch_user_collection_videos_get GET /api/v1/bilibili/web/fetch_user_collection_videos 获取指定收藏夹内视频数据/Gets video data from a collection folder
fetch_user_collection_videos_api_v1_bilibili_web_fetch_user_collection_videos_get_0 GET /api/v1/bilibili/web/fetch_user_collection_videos 获取指定收藏夹内视频数据/Gets video data from a collection folder
fetch_user_post_videos_api_v1_bilibili_web_fetch_user_post_videos_get GET /api/v1/bilibili/web/fetch_user_post_videos 获取用户主页作品数据/Get user homepage video data
fetch_user_post_videos_api_v1_bilibili_web_fetch_user_post_videos_get_0 GET /api/v1/bilibili/web/fetch_user_post_videos 获取用户主页作品数据/Get user homepage video data

fetch_collect_folders_api_v1_bilibili_web_fetch_all_live_areas_get

ResponseModel fetch_collect_folders_api_v1_bilibili_web_fetch_all_live_areas_get()

获取所有直播分区列表/Get a list of all live areas

[中文] ### 用途: - 获取所有直播分区列表 ### 参数: ### 返回: - 所有直播分区列表 # [English] ### Purpose: - Get a list of all live areas ### Parameters: ### Return: - list of all live areas # [示例/Example]

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    
    try:
        # 获取所有直播分区列表/Get a list of all live areas
        api_response = api_instance.fetch_collect_folders_api_v1_bilibili_web_fetch_all_live_areas_get()
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_collect_folders_api_v1_bilibili_web_fetch_all_live_areas_get: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_collect_folders_api_v1_bilibili_web_fetch_all_live_areas_get_0

ResponseModel fetch_collect_folders_api_v1_bilibili_web_fetch_all_live_areas_get_0()

获取所有直播分区列表/Get a list of all live areas

[中文] ### 用途: - 获取所有直播分区列表 ### 参数: ### 返回: - 所有直播分区列表 # [English] ### Purpose: - Get a list of all live areas ### Parameters: ### Return: - list of all live areas # [示例/Example]

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    
    try:
        # 获取所有直播分区列表/Get a list of all live areas
        api_response = api_instance.fetch_collect_folders_api_v1_bilibili_web_fetch_all_live_areas_get_0()
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_collect_folders_api_v1_bilibili_web_fetch_all_live_areas_get_0: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_collect_folders_api_v1_bilibili_web_fetch_collect_folders_get

ResponseModel fetch_collect_folders_api_v1_bilibili_web_fetch_collect_folders_get(uid)

获取用户所有收藏夹信息/Get user collection folders

[中文] ### 用途: - 获取用户收藏作品数据 ### 参数: - uid: 用户UID ### 返回: - 用户收藏夹信息 # [English] ### Purpose: - Get user collection folders ### Parameters: - uid: User UID ### Return: - user collection folders # [示例/Example] uid = "178360345"

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    uid = '178360345' # str | 用户UID

    try:
        # 获取用户所有收藏夹信息/Get user collection folders
        api_response = api_instance.fetch_collect_folders_api_v1_bilibili_web_fetch_collect_folders_get(uid)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_collect_folders_api_v1_bilibili_web_fetch_collect_folders_get: %s\n" % e)

Parameters

Name Type Description Notes
uid str 用户UID

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_collect_folders_api_v1_bilibili_web_fetch_collect_folders_get_0

ResponseModel fetch_collect_folders_api_v1_bilibili_web_fetch_collect_folders_get_0(uid)

获取用户所有收藏夹信息/Get user collection folders

[中文] ### 用途: - 获取用户收藏作品数据 ### 参数: - uid: 用户UID ### 返回: - 用户收藏夹信息 # [English] ### Purpose: - Get user collection folders ### Parameters: - uid: User UID ### Return: - user collection folders # [示例/Example] uid = "178360345"

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    uid = '178360345' # str | 用户UID

    try:
        # 获取用户所有收藏夹信息/Get user collection folders
        api_response = api_instance.fetch_collect_folders_api_v1_bilibili_web_fetch_collect_folders_get_0(uid)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_collect_folders_api_v1_bilibili_web_fetch_collect_folders_get_0: %s\n" % e)

Parameters

Name Type Description Notes
uid str 用户UID

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_collect_folders_api_v1_bilibili_web_fetch_com_popular_get

ResponseModel fetch_collect_folders_api_v1_bilibili_web_fetch_com_popular_get(pn=pn)

获取综合热门视频信息/Get comprehensive popular video information

[中文] ### 用途: - 获取综合热门视频信息 ### 参数: - pn: 页码 ### 返回: - 综合热门视频信息 # [English] ### Purpose: - Get comprehensive popular video information ### Parameters: - pn: Page number ### Return: - comprehensive popular video information # [示例/Example] pn = 1

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    pn = 1 # int | 页码/Page number (optional) (default to 1)

    try:
        # 获取综合热门视频信息/Get comprehensive popular video information
        api_response = api_instance.fetch_collect_folders_api_v1_bilibili_web_fetch_com_popular_get(pn=pn)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_collect_folders_api_v1_bilibili_web_fetch_com_popular_get: %s\n" % e)

Parameters

Name Type Description Notes
pn int 页码/Page number [optional] [default to 1]

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_collect_folders_api_v1_bilibili_web_fetch_com_popular_get_0

ResponseModel fetch_collect_folders_api_v1_bilibili_web_fetch_com_popular_get_0(pn=pn)

获取综合热门视频信息/Get comprehensive popular video information

[中文] ### 用途: - 获取综合热门视频信息 ### 参数: - pn: 页码 ### 返回: - 综合热门视频信息 # [English] ### Purpose: - Get comprehensive popular video information ### Parameters: - pn: Page number ### Return: - comprehensive popular video information # [示例/Example] pn = 1

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    pn = 1 # int | 页码/Page number (optional) (default to 1)

    try:
        # 获取综合热门视频信息/Get comprehensive popular video information
        api_response = api_instance.fetch_collect_folders_api_v1_bilibili_web_fetch_com_popular_get_0(pn=pn)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_collect_folders_api_v1_bilibili_web_fetch_com_popular_get_0: %s\n" % e)

Parameters

Name Type Description Notes
pn int 页码/Page number [optional] [default to 1]

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_collect_folders_api_v1_bilibili_web_fetch_comment_reply_get

ResponseModel fetch_collect_folders_api_v1_bilibili_web_fetch_comment_reply_get(bv_id, rpid, pn=pn)

获取视频下指定评论的回复/Get reply to the specified comment

[中文] ### 用途: - 获取视频下指定评论的回复 ### 参数: - bv_id: 作品id - pn: 页码 - rpid: 回复id ### 返回: - 指定评论的回复数据 # [English] ### Purpose: - Get reply to the specified comment ### Parameters: - bv_id: Video id - pn: Page number - rpid: Reply id ### Return: - Reply of the specified comment # [示例/Example] bv_id = "BV1M1421t7hT" pn = 1 rpid = "237109455120"

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    bv_id = 'BV1M1421t7hT' # str | 作品id/Video id
rpid = '237109455120' # str | 回复id/Reply id
pn = 1 # int | 页码/Page number (optional) (default to 1)

    try:
        # 获取视频下指定评论的回复/Get reply to the specified comment
        api_response = api_instance.fetch_collect_folders_api_v1_bilibili_web_fetch_comment_reply_get(bv_id, rpid, pn=pn)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_collect_folders_api_v1_bilibili_web_fetch_comment_reply_get: %s\n" % e)

Parameters

Name Type Description Notes
bv_id str 作品id/Video id
rpid str 回复id/Reply id
pn int 页码/Page number [optional] [default to 1]

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_collect_folders_api_v1_bilibili_web_fetch_comment_reply_get_0

ResponseModel fetch_collect_folders_api_v1_bilibili_web_fetch_comment_reply_get_0(bv_id, rpid, pn=pn)

获取视频下指定评论的回复/Get reply to the specified comment

[中文] ### 用途: - 获取视频下指定评论的回复 ### 参数: - bv_id: 作品id - pn: 页码 - rpid: 回复id ### 返回: - 指定评论的回复数据 # [English] ### Purpose: - Get reply to the specified comment ### Parameters: - bv_id: Video id - pn: Page number - rpid: Reply id ### Return: - Reply of the specified comment # [示例/Example] bv_id = "BV1M1421t7hT" pn = 1 rpid = "237109455120"

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    bv_id = 'BV1M1421t7hT' # str | 作品id/Video id
rpid = '237109455120' # str | 回复id/Reply id
pn = 1 # int | 页码/Page number (optional) (default to 1)

    try:
        # 获取视频下指定评论的回复/Get reply to the specified comment
        api_response = api_instance.fetch_collect_folders_api_v1_bilibili_web_fetch_comment_reply_get_0(bv_id, rpid, pn=pn)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_collect_folders_api_v1_bilibili_web_fetch_comment_reply_get_0: %s\n" % e)

Parameters

Name Type Description Notes
bv_id str 作品id/Video id
rpid str 回复id/Reply id
pn int 页码/Page number [optional] [default to 1]

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_collect_folders_api_v1_bilibili_web_fetch_live_room_detail_get

ResponseModel fetch_collect_folders_api_v1_bilibili_web_fetch_live_room_detail_get(room_id)

获取指定直播间信息/Get information of specified live room

[中文] ### 用途: - 获取指定直播间信息 ### 参数: - room_id: 直播间ID ### 返回: - 指定直播间信息 # [English] ### Purpose: - Get information of specified live room ### Parameters: - room_id: Live room ID ### Return: - information of specified live room # [示例/Example] room_id = "22816111"

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    room_id = '22816111' # str | 直播间ID/Live room ID

    try:
        # 获取指定直播间信息/Get information of specified live room
        api_response = api_instance.fetch_collect_folders_api_v1_bilibili_web_fetch_live_room_detail_get(room_id)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_collect_folders_api_v1_bilibili_web_fetch_live_room_detail_get: %s\n" % e)

Parameters

Name Type Description Notes
room_id str 直播间ID/Live room ID

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_collect_folders_api_v1_bilibili_web_fetch_live_room_detail_get_0

ResponseModel fetch_collect_folders_api_v1_bilibili_web_fetch_live_room_detail_get_0(room_id)

获取指定直播间信息/Get information of specified live room

[中文] ### 用途: - 获取指定直播间信息 ### 参数: - room_id: 直播间ID ### 返回: - 指定直播间信息 # [English] ### Purpose: - Get information of specified live room ### Parameters: - room_id: Live room ID ### Return: - information of specified live room # [示例/Example] room_id = "22816111"

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    room_id = '22816111' # str | 直播间ID/Live room ID

    try:
        # 获取指定直播间信息/Get information of specified live room
        api_response = api_instance.fetch_collect_folders_api_v1_bilibili_web_fetch_live_room_detail_get_0(room_id)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_collect_folders_api_v1_bilibili_web_fetch_live_room_detail_get_0: %s\n" % e)

Parameters

Name Type Description Notes
room_id str 直播间ID/Live room ID

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_collect_folders_api_v1_bilibili_web_fetch_live_streamers_get

ResponseModel fetch_collect_folders_api_v1_bilibili_web_fetch_live_streamers_get(area_id, pn=pn)

获取指定分区正在直播的主播/Get live streamers of specified live area

[中文] ### 用途: - 获取指定分区正在直播的主播 ### 参数: - area_id: 直播分区id - pn: 页码 ### 返回: - 指定分区正在直播的主播 # [English] ### Purpose: - Get live streamers of specified live area ### Parameters: - area_id: Live area ID - pn: Page number ### Return: - live streamers of specified live area # [示例/Example] area_id = "9" pn = 1

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    area_id = '9' # str | 直播分区id/Live area ID
pn = 1 # int | 页码/Page number (optional) (default to 1)

    try:
        # 获取指定分区正在直播的主播/Get live streamers of specified live area
        api_response = api_instance.fetch_collect_folders_api_v1_bilibili_web_fetch_live_streamers_get(area_id, pn=pn)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_collect_folders_api_v1_bilibili_web_fetch_live_streamers_get: %s\n" % e)

Parameters

Name Type Description Notes
area_id str 直播分区id/Live area ID
pn int 页码/Page number [optional] [default to 1]

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_collect_folders_api_v1_bilibili_web_fetch_live_streamers_get_0

ResponseModel fetch_collect_folders_api_v1_bilibili_web_fetch_live_streamers_get_0(area_id, pn=pn)

获取指定分区正在直播的主播/Get live streamers of specified live area

[中文] ### 用途: - 获取指定分区正在直播的主播 ### 参数: - area_id: 直播分区id - pn: 页码 ### 返回: - 指定分区正在直播的主播 # [English] ### Purpose: - Get live streamers of specified live area ### Parameters: - area_id: Live area ID - pn: Page number ### Return: - live streamers of specified live area # [示例/Example] area_id = "9" pn = 1

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    area_id = '9' # str | 直播分区id/Live area ID
pn = 1 # int | 页码/Page number (optional) (default to 1)

    try:
        # 获取指定分区正在直播的主播/Get live streamers of specified live area
        api_response = api_instance.fetch_collect_folders_api_v1_bilibili_web_fetch_live_streamers_get_0(area_id, pn=pn)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_collect_folders_api_v1_bilibili_web_fetch_live_streamers_get_0: %s\n" % e)

Parameters

Name Type Description Notes
area_id str 直播分区id/Live area ID
pn int 页码/Page number [optional] [default to 1]

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_collect_folders_api_v1_bilibili_web_fetch_live_videos_get

ResponseModel fetch_collect_folders_api_v1_bilibili_web_fetch_live_videos_get(room_id)

获取直播间视频流/Get live video data of specified room

[中文] ### 用途: - 获取指定直播间视频流 ### 参数: - room_id: 直播间ID ### 返回: - 指定直播间视频流 # [English] ### Purpose: - Get live video data of specified room ### Parameters: - room_id: Live room ID ### Return: - live video data of specified room # [示例/Example] room_id = "1815229528"

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    room_id = '1815229528' # str | 直播间ID/Live room ID

    try:
        # 获取直播间视频流/Get live video data of specified room
        api_response = api_instance.fetch_collect_folders_api_v1_bilibili_web_fetch_live_videos_get(room_id)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_collect_folders_api_v1_bilibili_web_fetch_live_videos_get: %s\n" % e)

Parameters

Name Type Description Notes
room_id str 直播间ID/Live room ID

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_collect_folders_api_v1_bilibili_web_fetch_live_videos_get_0

ResponseModel fetch_collect_folders_api_v1_bilibili_web_fetch_live_videos_get_0(room_id)

获取直播间视频流/Get live video data of specified room

[中文] ### 用途: - 获取指定直播间视频流 ### 参数: - room_id: 直播间ID ### 返回: - 指定直播间视频流 # [English] ### Purpose: - Get live video data of specified room ### Parameters: - room_id: Live room ID ### Return: - live video data of specified room # [示例/Example] room_id = "1815229528"

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    room_id = '1815229528' # str | 直播间ID/Live room ID

    try:
        # 获取直播间视频流/Get live video data of specified room
        api_response = api_instance.fetch_collect_folders_api_v1_bilibili_web_fetch_live_videos_get_0(room_id)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_collect_folders_api_v1_bilibili_web_fetch_live_videos_get_0: %s\n" % e)

Parameters

Name Type Description Notes
room_id str 直播间ID/Live room ID

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_collect_folders_api_v1_bilibili_web_fetch_user_dynamic_get

ResponseModel fetch_collect_folders_api_v1_bilibili_web_fetch_user_dynamic_get(uid, offset=offset)

获取指定用户动态/Get dynamic information of specified user

[中文] ### 用途: - 获取指定用户动态 ### 参数: - uid: 用户UID - offset: 开始索引 ### 返回: - 指定用户动态数据 # [English] ### Purpose: - Get dynamic information of specified user ### Parameters: - uid: User UID - offset: offset ### Return: - dynamic information of specified user # [示例/Example] uid = "178360345" offset = "953154282154098691"

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    uid = '16015678' # str | 用户UID
offset = '' # str | 开始索引/offset (optional) (default to '')

    try:
        # 获取指定用户动态/Get dynamic information of specified user
        api_response = api_instance.fetch_collect_folders_api_v1_bilibili_web_fetch_user_dynamic_get(uid, offset=offset)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_collect_folders_api_v1_bilibili_web_fetch_user_dynamic_get: %s\n" % e)

Parameters

Name Type Description Notes
uid str 用户UID
offset str 开始索引/offset [optional] [default to '']

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_collect_folders_api_v1_bilibili_web_fetch_user_dynamic_get_0

ResponseModel fetch_collect_folders_api_v1_bilibili_web_fetch_user_dynamic_get_0(uid, offset=offset)

获取指定用户动态/Get dynamic information of specified user

[中文] ### 用途: - 获取指定用户动态 ### 参数: - uid: 用户UID - offset: 开始索引 ### 返回: - 指定用户动态数据 # [English] ### Purpose: - Get dynamic information of specified user ### Parameters: - uid: User UID - offset: offset ### Return: - dynamic information of specified user # [示例/Example] uid = "178360345" offset = "953154282154098691"

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    uid = '16015678' # str | 用户UID
offset = '' # str | 开始索引/offset (optional) (default to '')

    try:
        # 获取指定用户动态/Get dynamic information of specified user
        api_response = api_instance.fetch_collect_folders_api_v1_bilibili_web_fetch_user_dynamic_get_0(uid, offset=offset)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_collect_folders_api_v1_bilibili_web_fetch_user_dynamic_get_0: %s\n" % e)

Parameters

Name Type Description Notes
uid str 用户UID
offset str 开始索引/offset [optional] [default to '']

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_collect_folders_api_v1_bilibili_web_fetch_user_profile_get

ResponseModel fetch_collect_folders_api_v1_bilibili_web_fetch_user_profile_get(uid)

获取指定用户的信息/Get information of specified user

[中文] ### 用途: - 获取指定用户的信息 ### 参数: - uid: 用户UID ### 返回: - 指定用户的个人信息 # [English] ### Purpose: - Get information of specified user ### Parameters: - uid: User UID ### Return: - information of specified user # [示例/Example] uid = "178360345"

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    uid = '178360345' # str | 用户UID

    try:
        # 获取指定用户的信息/Get information of specified user
        api_response = api_instance.fetch_collect_folders_api_v1_bilibili_web_fetch_user_profile_get(uid)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_collect_folders_api_v1_bilibili_web_fetch_user_profile_get: %s\n" % e)

Parameters

Name Type Description Notes
uid str 用户UID

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_collect_folders_api_v1_bilibili_web_fetch_user_profile_get_0

ResponseModel fetch_collect_folders_api_v1_bilibili_web_fetch_user_profile_get_0(uid)

获取指定用户的信息/Get information of specified user

[中文] ### 用途: - 获取指定用户的信息 ### 参数: - uid: 用户UID ### 返回: - 指定用户的个人信息 # [English] ### Purpose: - Get information of specified user ### Parameters: - uid: User UID ### Return: - information of specified user # [示例/Example] uid = "178360345"

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    uid = '178360345' # str | 用户UID

    try:
        # 获取指定用户的信息/Get information of specified user
        api_response = api_instance.fetch_collect_folders_api_v1_bilibili_web_fetch_user_profile_get_0(uid)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_collect_folders_api_v1_bilibili_web_fetch_user_profile_get_0: %s\n" % e)

Parameters

Name Type Description Notes
uid str 用户UID

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_collect_folders_api_v1_bilibili_web_fetch_video_comments_get

ResponseModel fetch_collect_folders_api_v1_bilibili_web_fetch_video_comments_get(bv_id, pn=pn)

获取指定视频的评论/Get comments on the specified video

[中文] ### 用途: - 获取指定视频的评论 ### 参数: - bv_id: 作品id - pn: 页码 ### 返回: - 指定视频的评论数据 # [English] ### Purpose: - Get comments on the specified video ### Parameters: - bv_id: Video id - pn: Page number ### Return: - comments of the specified video # [示例/Example] bv_id = "BV1M1421t7hT" pn = 1

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    bv_id = 'BV1M1421t7hT' # str | 作品id/Video id
pn = 1 # int | 页码/Page number (optional) (default to 1)

    try:
        # 获取指定视频的评论/Get comments on the specified video
        api_response = api_instance.fetch_collect_folders_api_v1_bilibili_web_fetch_video_comments_get(bv_id, pn=pn)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_collect_folders_api_v1_bilibili_web_fetch_video_comments_get: %s\n" % e)

Parameters

Name Type Description Notes
bv_id str 作品id/Video id
pn int 页码/Page number [optional] [default to 1]

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_collect_folders_api_v1_bilibili_web_fetch_video_comments_get_0

ResponseModel fetch_collect_folders_api_v1_bilibili_web_fetch_video_comments_get_0(bv_id, pn=pn)

获取指定视频的评论/Get comments on the specified video

[中文] ### 用途: - 获取指定视频的评论 ### 参数: - bv_id: 作品id - pn: 页码 ### 返回: - 指定视频的评论数据 # [English] ### Purpose: - Get comments on the specified video ### Parameters: - bv_id: Video id - pn: Page number ### Return: - comments of the specified video # [示例/Example] bv_id = "BV1M1421t7hT" pn = 1

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    bv_id = 'BV1M1421t7hT' # str | 作品id/Video id
pn = 1 # int | 页码/Page number (optional) (default to 1)

    try:
        # 获取指定视频的评论/Get comments on the specified video
        api_response = api_instance.fetch_collect_folders_api_v1_bilibili_web_fetch_video_comments_get_0(bv_id, pn=pn)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_collect_folders_api_v1_bilibili_web_fetch_video_comments_get_0: %s\n" % e)

Parameters

Name Type Description Notes
bv_id str 作品id/Video id
pn int 页码/Page number [optional] [default to 1]

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_general_search_api_v1_bilibili_web_fetch_general_search_get

ResponseModel fetch_general_search_api_v1_bilibili_web_fetch_general_search_get(keyword, order, page, page_size)

获取综合搜索信息/Get general search data

[中文] ### 用途: - 获取综合搜索信息 ### 参数: - keyword: 搜索关键词 - order: 排序方式 - totalrank 综合排序 - click 最多播放 - pubdate 最新发布 - dm 最多弹幕 - stow 最多收藏 - page: 页码 - page_size: 每页数量 ### 返回: - 综合搜索信息 # [English] ### Purpose: - Get general search data ### Parameters: - keyword: Search keyword - order: Order method - totalrank Comprehensive sorting - click Most played - pubdate Latest release - dm Most barrage - stow Most collection - page: Page number - page_size: Number per page ### Return: - General search data # [示例/Example] keyword = "火影忍者" order = "totalrank" page = 1 page_size = 42

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    keyword = '火影忍者' # str | 搜索关键词/Search keyword
order = 'totalrank' # str | 排序方式/Order method
page = 1 # int | 页码/Page number
page_size = 42 # int | 每页数量/Number per page

    try:
        # 获取综合搜索信息/Get general search data
        api_response = api_instance.fetch_general_search_api_v1_bilibili_web_fetch_general_search_get(keyword, order, page, page_size)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_general_search_api_v1_bilibili_web_fetch_general_search_get: %s\n" % e)

Parameters

Name Type Description Notes
keyword str 搜索关键词/Search keyword
order str 排序方式/Order method
page int 页码/Page number
page_size int 每页数量/Number per page

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_general_search_api_v1_bilibili_web_fetch_general_search_get_0

ResponseModel fetch_general_search_api_v1_bilibili_web_fetch_general_search_get_0(keyword, order, page, page_size)

获取综合搜索信息/Get general search data

[中文] ### 用途: - 获取综合搜索信息 ### 参数: - keyword: 搜索关键词 - order: 排序方式 - totalrank 综合排序 - click 最多播放 - pubdate 最新发布 - dm 最多弹幕 - stow 最多收藏 - page: 页码 - page_size: 每页数量 ### 返回: - 综合搜索信息 # [English] ### Purpose: - Get general search data ### Parameters: - keyword: Search keyword - order: Order method - totalrank Comprehensive sorting - click Most played - pubdate Latest release - dm Most barrage - stow Most collection - page: Page number - page_size: Number per page ### Return: - General search data # [示例/Example] keyword = "火影忍者" order = "totalrank" page = 1 page_size = 42

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    keyword = '火影忍者' # str | 搜索关键词/Search keyword
order = 'totalrank' # str | 排序方式/Order method
page = 1 # int | 页码/Page number
page_size = 42 # int | 每页数量/Number per page

    try:
        # 获取综合搜索信息/Get general search data
        api_response = api_instance.fetch_general_search_api_v1_bilibili_web_fetch_general_search_get_0(keyword, order, page, page_size)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_general_search_api_v1_bilibili_web_fetch_general_search_get_0: %s\n" % e)

Parameters

Name Type Description Notes
keyword str 搜索关键词/Search keyword
order str 排序方式/Order method
page int 页码/Page number
page_size int 每页数量/Number per page

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_hot_search_api_v1_bilibili_web_fetch_hot_search_get

ResponseModel fetch_hot_search_api_v1_bilibili_web_fetch_hot_search_get(limit)

获取热门搜索信息/Get hot search data

[中文] ### 用途: - 获取热门搜索信息 ### 参数: - limit: 返回数量 ### 返回: - 热门搜索信息 ### 说明: - limit默认为10,上限为50 # [English] ### Purpose: - Get hot search data ### Parameters: - limit: Return number ### Return: - Hot search data ### Note: - limit default is 10, maximum is 50 # [示例/Example] limit = 10

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    limit = '10' # str | 返回数量/Return number

    try:
        # 获取热门搜索信息/Get hot search data
        api_response = api_instance.fetch_hot_search_api_v1_bilibili_web_fetch_hot_search_get(limit)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_hot_search_api_v1_bilibili_web_fetch_hot_search_get: %s\n" % e)

Parameters

Name Type Description Notes
limit str 返回数量/Return number

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_hot_search_api_v1_bilibili_web_fetch_hot_search_get_0

ResponseModel fetch_hot_search_api_v1_bilibili_web_fetch_hot_search_get_0(limit)

获取热门搜索信息/Get hot search data

[中文] ### 用途: - 获取热门搜索信息 ### 参数: - limit: 返回数量 ### 返回: - 热门搜索信息 ### 说明: - limit默认为10,上限为50 # [English] ### Purpose: - Get hot search data ### Parameters: - limit: Return number ### Return: - Hot search data ### Note: - limit default is 10, maximum is 50 # [示例/Example] limit = 10

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    limit = '10' # str | 返回数量/Return number

    try:
        # 获取热门搜索信息/Get hot search data
        api_response = api_instance.fetch_hot_search_api_v1_bilibili_web_fetch_hot_search_get_0(limit)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_hot_search_api_v1_bilibili_web_fetch_hot_search_get_0: %s\n" % e)

Parameters

Name Type Description Notes
limit str 返回数量/Return number

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_one_video_api_v1_bilibili_web_bv_to_aid_get

ResponseModel fetch_one_video_api_v1_bilibili_web_bv_to_aid_get(bv_id)

通过bv号获得视频aid号/Generate aid by bvid

[中文] ### 用途: - 通过bv号获得视频aid号 ### 参数: - bv_id: 作品id ### 返回: - 视频aid号 # [English] ### Purpose: - Generate aid by bvid ### Parameters: - bv_id: Video id ### Return: - Video aid # [示例/Example] bv_id = "BV1M1421t7hT"

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    bv_id = 'BV1M1421t7hT' # str | 作品id/Video id

    try:
        # 通过bv号获得视频aid号/Generate aid by bvid
        api_response = api_instance.fetch_one_video_api_v1_bilibili_web_bv_to_aid_get(bv_id)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_one_video_api_v1_bilibili_web_bv_to_aid_get: %s\n" % e)

Parameters

Name Type Description Notes
bv_id str 作品id/Video id

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_one_video_api_v1_bilibili_web_bv_to_aid_get_0

ResponseModel fetch_one_video_api_v1_bilibili_web_bv_to_aid_get_0(bv_id)

通过bv号获得视频aid号/Generate aid by bvid

[中文] ### 用途: - 通过bv号获得视频aid号 ### 参数: - bv_id: 作品id ### 返回: - 视频aid号 # [English] ### Purpose: - Generate aid by bvid ### Parameters: - bv_id: Video id ### Return: - Video aid # [示例/Example] bv_id = "BV1M1421t7hT"

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    bv_id = 'BV1M1421t7hT' # str | 作品id/Video id

    try:
        # 通过bv号获得视频aid号/Generate aid by bvid
        api_response = api_instance.fetch_one_video_api_v1_bilibili_web_bv_to_aid_get_0(bv_id)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_one_video_api_v1_bilibili_web_bv_to_aid_get_0: %s\n" % e)

Parameters

Name Type Description Notes
bv_id str 作品id/Video id

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_one_video_api_v1_bilibili_web_fetch_one_video_get

ResponseModel fetch_one_video_api_v1_bilibili_web_fetch_one_video_get(bv_id)

获取单个视频详情信息/Get single video data

[中文] ### 用途: - 获取单个视频详情信息 ### 参数: - bv_id: 作品id ### 返回: - 视频详情信息 # [English] ### Purpose: - Get single video data ### Parameters: - bv_id: Video id ### Return: - Video data # [示例/Example] bv_id = "BV1M1421t7hT"

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    bv_id = 'BV1M1421t7hT' # str | 作品id/Video id

    try:
        # 获取单个视频详情信息/Get single video data
        api_response = api_instance.fetch_one_video_api_v1_bilibili_web_fetch_one_video_get(bv_id)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_one_video_api_v1_bilibili_web_fetch_one_video_get: %s\n" % e)

Parameters

Name Type Description Notes
bv_id str 作品id/Video id

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_one_video_api_v1_bilibili_web_fetch_one_video_get_0

ResponseModel fetch_one_video_api_v1_bilibili_web_fetch_one_video_get_0(bv_id)

获取单个视频详情信息/Get single video data

[中文] ### 用途: - 获取单个视频详情信息 ### 参数: - bv_id: 作品id ### 返回: - 视频详情信息 # [English] ### Purpose: - Get single video data ### Parameters: - bv_id: Video id ### Return: - Video data # [示例/Example] bv_id = "BV1M1421t7hT"

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    bv_id = 'BV1M1421t7hT' # str | 作品id/Video id

    try:
        # 获取单个视频详情信息/Get single video data
        api_response = api_instance.fetch_one_video_api_v1_bilibili_web_fetch_one_video_get_0(bv_id)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_one_video_api_v1_bilibili_web_fetch_one_video_get_0: %s\n" % e)

Parameters

Name Type Description Notes
bv_id str 作品id/Video id

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_one_video_api_v1_bilibili_web_fetch_video_danmaku_get

ResponseModel fetch_one_video_api_v1_bilibili_web_fetch_video_danmaku_get(cid)

获取视频实时弹幕/Get Video Danmaku

[中文] ### 用途: - 获取视频实时弹幕 ### 参数: - cid: 作品cid ### 返回: - 视频实时弹幕 # [English] ### Purpose: - Get Video Danmaku ### Parameters: - cid: Video cid ### Return: - Video Danmaku # [示例/Example] cid = "1639235405"

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    cid = '1639235405' # str | 作品cid/Video cid

    try:
        # 获取视频实时弹幕/Get Video Danmaku
        api_response = api_instance.fetch_one_video_api_v1_bilibili_web_fetch_video_danmaku_get(cid)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_one_video_api_v1_bilibili_web_fetch_video_danmaku_get: %s\n" % e)

Parameters

Name Type Description Notes
cid str 作品cid/Video cid

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_one_video_api_v1_bilibili_web_fetch_video_danmaku_get_0

ResponseModel fetch_one_video_api_v1_bilibili_web_fetch_video_danmaku_get_0(cid)

获取视频实时弹幕/Get Video Danmaku

[中文] ### 用途: - 获取视频实时弹幕 ### 参数: - cid: 作品cid ### 返回: - 视频实时弹幕 # [English] ### Purpose: - Get Video Danmaku ### Parameters: - cid: Video cid ### Return: - Video Danmaku # [示例/Example] cid = "1639235405"

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    cid = '1639235405' # str | 作品cid/Video cid

    try:
        # 获取视频实时弹幕/Get Video Danmaku
        api_response = api_instance.fetch_one_video_api_v1_bilibili_web_fetch_video_danmaku_get_0(cid)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_one_video_api_v1_bilibili_web_fetch_video_danmaku_get_0: %s\n" % e)

Parameters

Name Type Description Notes
cid str 作品cid/Video cid

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_one_video_api_v1_bilibili_web_fetch_video_parts_get

ResponseModel fetch_one_video_api_v1_bilibili_web_fetch_video_parts_get(bv_id)

通过bv号获得视频分p信息/Get Video Parts By bvid

[中文] ### 用途: - 通过bv号获得视频分p信息 ### 参数: - bv_id: 作品id ### 返回: - 视频分p信息 # [English] ### Purpose: - Get Video Parts By bvid ### Parameters: - bv_id: Video id ### Return: - Video Parts # [示例/Example] bv_id = "BV1vf421i7hV"

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    bv_id = 'BV1vf421i7hV' # str | 作品id/Video id

    try:
        # 通过bv号获得视频分p信息/Get Video Parts By bvid
        api_response = api_instance.fetch_one_video_api_v1_bilibili_web_fetch_video_parts_get(bv_id)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_one_video_api_v1_bilibili_web_fetch_video_parts_get: %s\n" % e)

Parameters

Name Type Description Notes
bv_id str 作品id/Video id

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_one_video_api_v1_bilibili_web_fetch_video_parts_get_0

ResponseModel fetch_one_video_api_v1_bilibili_web_fetch_video_parts_get_0(bv_id)

通过bv号获得视频分p信息/Get Video Parts By bvid

[中文] ### 用途: - 通过bv号获得视频分p信息 ### 参数: - bv_id: 作品id ### 返回: - 视频分p信息 # [English] ### Purpose: - Get Video Parts By bvid ### Parameters: - bv_id: Video id ### Return: - Video Parts # [示例/Example] bv_id = "BV1vf421i7hV"

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    bv_id = 'BV1vf421i7hV' # str | 作品id/Video id

    try:
        # 通过bv号获得视频分p信息/Get Video Parts By bvid
        api_response = api_instance.fetch_one_video_api_v1_bilibili_web_fetch_video_parts_get_0(bv_id)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_one_video_api_v1_bilibili_web_fetch_video_parts_get_0: %s\n" % e)

Parameters

Name Type Description Notes
bv_id str 作品id/Video id

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_one_video_api_v1_bilibili_web_fetch_video_playurl_get

ResponseModel fetch_one_video_api_v1_bilibili_web_fetch_video_playurl_get(bv_id, cid)

获取视频流地址/Get video playurl

[中文] ### 用途: - 获取视频流地址 ### 参数: - bv_id: 作品id - cid: 作品cid ### 返回: - 视频流地址 # [English] ### Purpose: - Get video playurl ### Parameters: - bv_id: Video id - cid: Video cid ### Return: - Video playurl # [示例/Example] bv_id = "BV1y7411Q7Eq" cid = "171776208"

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    bv_id = 'BV1y7411Q7Eq' # str | 作品id/Video id
cid = '171776208' # str | 作品cid/Video cid

    try:
        # 获取视频流地址/Get video playurl
        api_response = api_instance.fetch_one_video_api_v1_bilibili_web_fetch_video_playurl_get(bv_id, cid)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_one_video_api_v1_bilibili_web_fetch_video_playurl_get: %s\n" % e)

Parameters

Name Type Description Notes
bv_id str 作品id/Video id
cid str 作品cid/Video cid

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_one_video_api_v1_bilibili_web_fetch_video_playurl_get_0

ResponseModel fetch_one_video_api_v1_bilibili_web_fetch_video_playurl_get_0(bv_id, cid)

获取视频流地址/Get video playurl

[中文] ### 用途: - 获取视频流地址 ### 参数: - bv_id: 作品id - cid: 作品cid ### 返回: - 视频流地址 # [English] ### Purpose: - Get video playurl ### Parameters: - bv_id: Video id - cid: Video cid ### Return: - Video playurl # [示例/Example] bv_id = "BV1y7411Q7Eq" cid = "171776208"

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    bv_id = 'BV1y7411Q7Eq' # str | 作品id/Video id
cid = '171776208' # str | 作品cid/Video cid

    try:
        # 获取视频流地址/Get video playurl
        api_response = api_instance.fetch_one_video_api_v1_bilibili_web_fetch_video_playurl_get_0(bv_id, cid)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_one_video_api_v1_bilibili_web_fetch_video_playurl_get_0: %s\n" % e)

Parameters

Name Type Description Notes
bv_id str 作品id/Video id
cid str 作品cid/Video cid

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_one_video_v2_api_v1_bilibili_web_fetch_one_video_v2_get

ResponseModel fetch_one_video_v2_api_v1_bilibili_web_fetch_one_video_v2_get(a_id, c_id)

获取单个视频详情信息V2/Get single video data V2

[中文] ### 用途: - 获取单个视频详情信息V2 ### 参数: - a_id: 作品id - c_id: 作品cid ### 返回: - 视频详情信息V2 # [English] ### Purpose: - Get single video data V2 ### Parameters: - a_id: Video id - c_id: Video cid ### Return: - Video data V2 # [示例/Example] a_id = "114006081739452" c_id = "28400484458"

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    a_id = '114006081739452' # str | 作品id/Video id
c_id = '28400484458' # str | 作品cid/Video cid

    try:
        # 获取单个视频详情信息V2/Get single video data V2
        api_response = api_instance.fetch_one_video_v2_api_v1_bilibili_web_fetch_one_video_v2_get(a_id, c_id)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_one_video_v2_api_v1_bilibili_web_fetch_one_video_v2_get: %s\n" % e)

Parameters

Name Type Description Notes
a_id str 作品id/Video id
c_id str 作品cid/Video cid

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_one_video_v2_api_v1_bilibili_web_fetch_one_video_v2_get_0

ResponseModel fetch_one_video_v2_api_v1_bilibili_web_fetch_one_video_v2_get_0(a_id, c_id)

获取单个视频详情信息V2/Get single video data V2

[中文] ### 用途: - 获取单个视频详情信息V2 ### 参数: - a_id: 作品id - c_id: 作品cid ### 返回: - 视频详情信息V2 # [English] ### Purpose: - Get single video data V2 ### Parameters: - a_id: Video id - c_id: Video cid ### Return: - Video data V2 # [示例/Example] a_id = "114006081739452" c_id = "28400484458"

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    a_id = '114006081739452' # str | 作品id/Video id
c_id = '28400484458' # str | 作品cid/Video cid

    try:
        # 获取单个视频详情信息V2/Get single video data V2
        api_response = api_instance.fetch_one_video_v2_api_v1_bilibili_web_fetch_one_video_v2_get_0(a_id, c_id)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_one_video_v2_api_v1_bilibili_web_fetch_one_video_v2_get_0: %s\n" % e)

Parameters

Name Type Description Notes
a_id str 作品id/Video id
c_id str 作品cid/Video cid

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_user_collection_videos_api_v1_bilibili_web_fetch_user_collection_videos_get

ResponseModel fetch_user_collection_videos_api_v1_bilibili_web_fetch_user_collection_videos_get(folder_id, pn=pn)

获取指定收藏夹内视频数据/Gets video data from a collection folder

[中文] ### 用途: - 获取指定收藏夹内视频数据 ### 参数: - folder_id: 用户UID - pn: 页码 ### 返回: - 指定收藏夹内视频数据 # [English] ### Purpose: - Gets video data from a collection folder ### Parameters: - folder_id: collection folder id - pn: Page number ### Return: - video data from collection folder # [示例/Example] folder_id = "1756059545" pn = 1

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    folder_id = '1756059545' # str | 收藏夹id/collection folder id
pn = 1 # int | 页码/Page number (optional) (default to 1)

    try:
        # 获取指定收藏夹内视频数据/Gets video data from a collection folder
        api_response = api_instance.fetch_user_collection_videos_api_v1_bilibili_web_fetch_user_collection_videos_get(folder_id, pn=pn)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_user_collection_videos_api_v1_bilibili_web_fetch_user_collection_videos_get: %s\n" % e)

Parameters

Name Type Description Notes
folder_id str 收藏夹id/collection folder id
pn int 页码/Page number [optional] [default to 1]

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_user_collection_videos_api_v1_bilibili_web_fetch_user_collection_videos_get_0

ResponseModel fetch_user_collection_videos_api_v1_bilibili_web_fetch_user_collection_videos_get_0(folder_id, pn=pn)

获取指定收藏夹内视频数据/Gets video data from a collection folder

[中文] ### 用途: - 获取指定收藏夹内视频数据 ### 参数: - folder_id: 用户UID - pn: 页码 ### 返回: - 指定收藏夹内视频数据 # [English] ### Purpose: - Gets video data from a collection folder ### Parameters: - folder_id: collection folder id - pn: Page number ### Return: - video data from collection folder # [示例/Example] folder_id = "1756059545" pn = 1

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    folder_id = '1756059545' # str | 收藏夹id/collection folder id
pn = 1 # int | 页码/Page number (optional) (default to 1)

    try:
        # 获取指定收藏夹内视频数据/Gets video data from a collection folder
        api_response = api_instance.fetch_user_collection_videos_api_v1_bilibili_web_fetch_user_collection_videos_get_0(folder_id, pn=pn)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_user_collection_videos_api_v1_bilibili_web_fetch_user_collection_videos_get_0: %s\n" % e)

Parameters

Name Type Description Notes
folder_id str 收藏夹id/collection folder id
pn int 页码/Page number [optional] [default to 1]

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_user_post_videos_api_v1_bilibili_web_fetch_user_post_videos_get

ResponseModel fetch_user_post_videos_api_v1_bilibili_web_fetch_user_post_videos_get(uid, pn=pn)

获取用户主页作品数据/Get user homepage video data

[中文] ### 用途: - 获取用户发布的视频数据 ### 参数: - uid: 用户UID - pn: 页码 ### 返回: - 用户发布的视频数据 # [English] ### Purpose: - Get user post video data ### Parameters: - uid: User UID - pn: Page number ### Return: - User posted video data # [示例/Example] uid = "178360345" pn = 1

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    uid = '178360345' # str | 用户UID
pn = 1 # int | 页码/Page number (optional) (default to 1)

    try:
        # 获取用户主页作品数据/Get user homepage video data
        api_response = api_instance.fetch_user_post_videos_api_v1_bilibili_web_fetch_user_post_videos_get(uid, pn=pn)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_user_post_videos_api_v1_bilibili_web_fetch_user_post_videos_get: %s\n" % e)

Parameters

Name Type Description Notes
uid str 用户UID
pn int 页码/Page number [optional] [default to 1]

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_user_post_videos_api_v1_bilibili_web_fetch_user_post_videos_get_0

ResponseModel fetch_user_post_videos_api_v1_bilibili_web_fetch_user_post_videos_get_0(uid, pn=pn)

获取用户主页作品数据/Get user homepage video data

[中文] ### 用途: - 获取用户发布的视频数据 ### 参数: - uid: 用户UID - pn: 页码 ### 返回: - 用户发布的视频数据 # [English] ### Purpose: - Get user post video data ### Parameters: - uid: User UID - pn: Page number ### Return: - User posted video data # [示例/Example] uid = "178360345" pn = 1

Example

  • Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
    access_token = 'YOUR_BEARER_TOKEN'
)

# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = tikhub_sdk_v2.BilibiliWebAPIApi(api_client)
    uid = '178360345' # str | 用户UID
pn = 1 # int | 页码/Page number (optional) (default to 1)

    try:
        # 获取用户主页作品数据/Get user homepage video data
        api_response = api_instance.fetch_user_post_videos_api_v1_bilibili_web_fetch_user_post_videos_get_0(uid, pn=pn)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BilibiliWebAPIApi->fetch_user_post_videos_api_v1_bilibili_web_fetch_user_post_videos_get_0: %s\n" % e)

Parameters

Name Type Description Notes
uid str 用户UID
pn int 页码/Page number [optional] [default to 1]

Return type

ResponseModel

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -
422 Validation Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]