Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Bilibili Video Search

เอกสาร API
https://api.sandbase.ai/v1/api/bilibili/search-video

Search Bilibili videos by keyword with page-based pagination and sorting by general ranking, play count, publish time, danmaku count, or favorites.

ราคา
$0.014286USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 2 ไม่บังคับ

Playground

อินพุต
Search keyword.
Page number for pagination.
Sorting criteria for search results.
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

API README

Bilibili Video Search API

Returns one page of Bilibili video search results for a keyword. Each result has the video IDs, title-matched author, play, like, favorite and danmaku counts, duration and publish time. The only required input is keyword.

Use cases

  • Track which videos rank first for a game or brand keyword such as 原神.
  • Find the most played or most favorited videos on a topic by setting order to click or stow.
  • Monitor new uploads about a keyword by sorting with pubdate.
  • Collect bvid and mid values to feed into video detail or creator lookups.

Request

curl -X POST "https://api.sandbase.ai/v1/api/bilibili/search-video" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword": "原神"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
keywordstringYesSearch keyword.
orderstringNoSorting criteria for search results.
pagestringNoPage number for pagination.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "code": 0,
  "data": {
    "egg_hit": 0,
    "exp_list": {
      "100010": true,
      "105208": true,
      "106000": true,
      "5502": true,
      "55020101": true,
      "64778101": true,
      "65785101": true,
      "6600": true,
      "70529100": true,
      "73163100": true,
      "78757104": true,
      "78772100": true
    },
    "in_black_key": 0,
    "in_white_key": 0,
    "is_hit_web_inf": false,
    "next": 2,
    "numPages": 50,
    "numResults": 1000,
    "page": 1,
    "pagesize": 20,
    "result": [
      {
        "aid": 117547651307164,
        "arcurl": "http://www.bilibili.com/video/av117547651307164",
        "area": 0,
        "author": "原神",
        "badgepay": false,
        "biz_data": null,
        "bvid": "BV19b4A6PECX",
        "card_status": 0,
        "cate_name": "",
        "cny_flag": 0,
        "corner": "",
        "cover": ""
      }
    ],
    "rqt_type": "search"
  },
  "message": "OK",
  "ttl": 1
}

Response fields

FieldMeaning
data.result[].bvid / data.result[].aidThe BV ID and numeric AV ID of the video. arcurl holds the video page link when it is set.
data.result[].author / data.result[].midName and numeric ID of the uploader.
data.result[].play / data.result[].danmaku / data.result[].favorites / data.result[].likeCounts of plays, danmaku comments, favorites and likes for the video.
data.result[].durationVideo length as a text value such as 11:21.
data.result[].pubdatePublish time as a Unix timestamp in seconds.
data.result[].descriptionVideo description text. The desc field is empty in this response.
data.result[].picCover image URL. It starts with //, so add a scheme such as https: before use.
data.result[].hit_columnsLists which parts of the video matched the keyword, such as title, description, author or tag. It is null for some results.
data.result[].rank_indexPosition of the result in the ranking, starting at 1.
data.result[].biz_dataExtra block that holds ad data. It is null for normal results and filled for ad slots, where is_ad_loc is true.
data.page / data.pagesize / data.numPages / data.numResults / data.nextCurrent page number, results per page, total pages, total result count and the next page number.

Notes

  • Pass page to move through results. The response data.next gives the next page number, and data.page shows the current one.
  • Valid order values are general (default), click, pubdate, dm and stow.
  • Ad results can appear in data.result[]. They have a filled biz_data object, and some have an empty arcurl, pic, or zero like and favorites.
  • Use the bvid with Bilibili Video Details or Bilibili Video Comments. Use mid with Bilibili User Profile.

Pricing

$0.014286 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
Bilibili$0.014286 ต่อการเรียกJSON
Bilibili$0.001 ต่อการเรียกJSON
Bilibili$0.001 ต่อการเรียกJSON
Bilibili$0.001 ต่อการเรียกJSON
Bilibili$0.001 ต่อการเรียกJSON
Bilibili$0.001 ต่อการเรียกJSON

คู่มือ:Best Bilibili API in 2026: Pricing Compared

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ Bilibili Video Search API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/bilibili/search-video โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Bilibili Video Search API ราคาเท่าไร?

$0.014286 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

Bilibili Video Search API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: keyword (string). ตัวเลือก: page (string) และ order (หนึ่งใน general, click, pubdate, dm, stow). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Bilibili Video Search API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Bilibili ไหม?

ไม่จำเป็น Bilibili Video Search ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Bilibili API แยกต่างหาก