分类搜索/ search by type

Bilibiliapi

About

分类搜索/ search by type

Documentation

分类搜索/ search by type

[中文]

用途:

  • 分类搜索(按类型搜索)

参数:

  • keyword: 搜索关键词(必填)
  • search_type: 搜索类型
    • video: 视频
    • bangumi: 番剧
    • pgc: 影视
    • live: 直播
    • article: 专栏
    • user: 用户
  • cursor: 翻页游标。首页留空;翻页时把上一页响应里返回的 data.pagination.next 原样传回。 本接口为游标翻页,不支持按页码随机跳转。
  • page_size: 每页结果数量
  • order: 排序方式
    • 0: 综合排序
    • 1: 最新发布
    • 2: 播放量
    • 3: 弹幕数

返回:

  • 搜索结果
  • 下一页游标:$.data.data.pagination.next,把它作为下一次请求的 cursor 传回; 当该字段缺失(末页时不返回 pagination)或为空字符串时,表示没有更多数据,应停止翻页

[English]

Purpose:

  • search by type

Parameters:

  • keyword: Search keyword (required)
  • search_type: Search type
    • video: Videos
    • bangumi: Anime
    • pgc: Movies/TV
    • live: Live streams
    • article: Articles
    • user: Users
  • cursor: Pagination cursor. Leave empty for the first page; for the next page pass back data.pagination.next from the previous response. This endpoint uses cursor pagination and does not support random access by page number.
  • page_size: Results per page
  • order: Sort order
    • 0: Comprehensive
    • 1: Latest
    • 2: Play count
    • 3: Danmaku count

Return:

  • Search results
  • Next-page cursor: $.data.data.pagination.next; pass it back as cursor on the next request. When this field is absent (pagination is omitted on the last page) or empty, there is no more data and you should stop paginating.

[示例/Example]

keyword = "原神" search_type = "video" cursor = ""

Imported from a validated TikHub OpenAPI document. Pricing must be reviewed before enabling.

Try 分类搜索/ search by type

Test this model in the Sandbase Playground with your own prompts.

Open in Playground

Related Models