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

Bilibili Video Parts

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

Returns video part details for a specified Bilibili video using its video ID. The response includes the duration and creation timestamp for each segment.

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

Playground

อินพุต
Video id
เอาต์พุตตัวอย่าง
การตอบกลับoutputs · 574 B · 27 บรรทัด
[
  {
    "data": {
      "code": 0,
      "data": [
        {
          "cid": 42329116378,
          "ctime": 1790748319,
          "dimension": {
            "height": 2160,
            "rotate": 0,
            "width": 3840
          },
          "duration": 1171,
          "first_frame": "http://i1.hdslb.com/bfs/storyff/_000029mksn8nfp3wi26eln302viuwxb_firsti.jpg",
          "from": "vupload",
          "page": 1,
          "part": "老Y蜜月之旅 | 马尔代夫菲诺芙",
          "vid": "",
          "weblink": ""
        }
      ],
      "message": "OK",
      "ttl": 1
    }
  }
]

ตัวอย่าง

เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground

API README

Bilibili Video Parts API

Returns the list of parts (pages) of a Bilibili video. It needs the video's BV ID in bv_id. Each part comes with its cid, title, duration, resolution and first-frame image.

Use cases

  • List every part of a multi-part Bilibili video with its title and page number.
  • Sum the duration values to get the total running time of a multi-part video.
  • Collect each part's cid to use in other video calls that ask for a part-level ID.
  • Check the resolution of each part before choosing which videos to process.

Request

curl -X POST "https://api.sandbase.ai/v1/api/bilibili/web/video-parts" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"bv_id": "BV1dFad6aEz9"}'

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

Parameters

NameTypeRequiredDescription
bv_idstringYesVideo id

Example response

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

{
  "code": 0,
  "data": [
    {
      "asr_language": "eng",
      "cid": 42329116378,
      "ctime": 1790748319,
      "dimension": {
        "height": 2160,
        "rotate": 0,
        "width": 3840
      },
      "duration": 1171,
      "first_frame": "http://i1.hdslb.com/bfs/storyff/_000029mksn8nfp3wi26eln302viuwxb_firsti.jpg",
      "from": "vupload",
      "page": 1,
      "part": "老Y蜜月之旅 | 马尔代夫菲诺芙",
      "vid": "",
      "weblink": ""
    }
  ],
  "message": "OK",
  "ttl": 1
}

Response fields

FieldMeaning
data[].pagePosition of the part in the video, starting at 1.
data[].partTitle of the part.
data[].cidNumeric ID of the part.
data[].durationLength of the part. The value 1171 for this video suggests seconds, but the response does not state the unit.
data[].ctimeCreation time of the part as a Unix timestamp.
data[].dimension.width / data[].dimension.heightPixel size of the part's video. data[].dimension.rotate gives the rotation value.
data[].first_frameURL of the first-frame image of the part.
data[].asr_languageLanguage code for automatic speech recognition on the part, such as eng.
data[].fromSource label for the part, such as vupload.
code / messageStatus of the request. code is 0 and message is OK on success.

Notes

  • Take bv_id from the Bilibili video link. It starts with BV, for example BV1dFad6aEz9.
  • The data list has one item per part. A single-part video returns one item with page set to 1.
  • Use Bilibili Video Details for the video's general information.
  • Use Bilibili BV to AID Converter if you need the numeric AID of the video.

Pricing

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

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

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

APIs ทั้งหมด
APIราคาการตอบกลับ
Bilibili$0.001 ต่อการเรียก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 Parts API ได้อย่างไร?

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

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

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

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

ที่ต้องระบุ: bv_id (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

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

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

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

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