Bilibili Fetch General Search

2.07 credits/call
ae_bilibili_fetch_general_search

Search for videos by keyword and retrieve general search results for a selected page. Required inputs are `keyword`, `order`, `page`, and `page_size`. Supported documented order values are `totalrank` (comprehensive), `click` (most played), `pubdate` (latest), `dm` (most barrage), and `stow` (most collected). Optional `duration` values are 0 for all durations, 1 for under 10 minutes, 2 for 10–30 minutes, 3 for 30–60 minutes, and 4 for over 60 minutes. Optional `pubtime_begin_s` and `pubtime_end_s` define a publication-time range as 10-digit Unix timestamps; the start must be earlier than the end. The response provides general search data; its detailed fields depend on the returned result payload.

VideoSearch
2.07 credits/call

Pricing

2.07 credits/call
ConditionCharge
Each call2.07 credits/call

2.07 credits/call Charges are per query. A successful query is billed even if it returns no results.

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
pageintegerYes页码/Page number—
orderstringYes排序方式/Order method—
keywordstringYes搜索关键词/Search keyword—
durationintegerNo时长筛选/Duration filter0
page_sizeintegerYes每页数量/Number per page—
pubtime_end_sintegerNo结束日期/End date (10-digit timestamp)0
pubtime_begin_sintegerNo开始日期/Start date (10-digit timestamp)0

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_bilibili_fetch_general_search' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "keyword": "Hell Grind 开源 Higgsfield 提示词",
    "order": "totalrank",
    "page": 1,
    "page_size": 10
  }
}'
Response exampleresponse.json
JSONPartial content
{
  "code": 200,
  "data": {
    "code": 0,
    "data": {
      "egg_hit": 0,
      "exp_list": {
        "5500": true,
        "6699": true,
        "100010": true
      },
      "is_hit_web_inf": false,
      "numPages": 100,
      "numResults": 1000,
      "result": [
        {
          "aid": 117059686040862,
          "arcurl": "http://www.bilibili.com/video/av117059686040862",
          "author": "victoryoko",
          "id": 117059686040862,
          "title": "地狱磨砺-50万美元95分钟AI故事片《<em class=\"keyword\">Hell</em> <em class=\"keyword\">Grind</em>》完全<em class=\"keyword\">开源</em>(所有<em class=\"keyword\">提示词</em>和素材均已公开)视频已汉化(自己手搓的翻译),<em class=\"keyword\">开源</em>地址放简介了,供大家学习!",
          "type": "video"
        }
      ]
    },
    "message": "OK",
    "ttl": 1
  },
  "docs": "https://api.tikhub.io/#/Bilibili-Web-API/fetch_general_search_api_v1_bilibili_web_fetch_general_search_get",
  "message": "Request successful. This request will incur a charge.",
  "message_zh": "请求成功,本次请求将被计费。",
  "request_id": "e6411db5-a454-4325-bf85-27803ed59fb1"
}

This example shows part of the response. Copied content is valid JSON.