Skip to content
Eden Engine

Bilibili Video Playback Formats

omnial/bilibili-video-playback-formats

Given a Bilibili video's BV id and the cid of one of its parts, returns that part's playback formats: the quality levels the video offers (numeric quality code and resolution label) with the codecs listed for each, the playback length, and a list of video streams (quality code, codec, bitrate, width, height, frame rate) and audio streams (id, codec, bitrate). The stream list can cover fewer levels than are offered: in the captured call it held streams for only the two lowest of five offered levels. No playback or download addresses are returned.

activeper callv1

Price

Up to $0.00205 per call; you pay what the call used

You pay the price shown. If a call turns out to cost more than its quote, you pay the actual price, capped at twice the quote. No monthly minimum. Top-ups start at $5.00.

Data source

Bilibili

Data from Bilibili.

Use it

Your AI assistant does the work: it finds this tool, shows you the price first, runs it, and you are charged when the run finishes. There is nothing to set up for this tool in particular.

Connect once and your AI can find and run this tool, and any other it needs.

For developers: the calls your assistant makes
agent
// 1. search: find the tool
omnial_search({ query: "what you need" })

// 2. inspect: price and input schema
omnial_inspect({ tool: "omnial/bilibili-video-playback-formats" })

// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "omnial/bilibili-video-playback-formats" })

// 4. run: price the exact call first, then run it
omnial_execute({ tool: "omnial/bilibili-video-playback-formats", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "omnial/bilibili-video-playback-formats", input: { /* ... */ } })

// 5. settle: the call is charged when it finishes, nothing to do

Not connected yet? Point your MCP client at https://mcp.eden-engine.com/mcp, then copy a config for your client.

Pricing

Every charge this tool can incur.

ChargePrice
Per call
$0.00205
Updated
Oct 27, 2026

Input and output schemas

Input schema
input_schema.json
{
  "type": "object",
  "required": [
    "bv_id",
    "cid"
  ],
  "properties": {
    "cid": {
      "type": "string",
      "description": "The numeric cid of one part (page) of that video, as a string."
    },
    "bv_id": {
      "type": "string",
      "description": "The video's Bilibili BV id (the id that starts with BV)."
    }
  },
  "additionalProperties": false
}
Output schema
output_schema.json
{
  "type": "object",
  "properties": {
    "code": {
      "type": "number",
      "description": "Bilibili's status code; 0 on success."
    },
    "data": {
      "type": "object",
      "properties": {
        "dash": {
          "type": "object",
          "properties": {
            "audio": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "number",
                    "description": "The audio stream's quality id."
                  },
                  "codecs": {
                    "type": "string",
                    "description": "The audio codec string."
                  },
                  "bandwidth": {
                    "type": "number",
                    "description": "The stream's bitrate in bits/s."
                  },
                  "mime_type": {
                    "type": "string",
                    "description": "The stream's media type."
                  }
                }
              },
              "description": "One entry per audio stream returned."
            },
            "video": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "number",
                    "description": "The stream's quality code (matches accept_quality)."
                  },
                  "width": {
                    "type": "number",
                    "description": "Frame width in pixels."
                  },
                  "codecs": {
                    "type": "string",
                    "description": "The stream's codec string."
                  },
                  "height": {
                    "type": "number",
                    "description": "Frame height in pixels."
                  },
                  "bandwidth": {
                    "type": "number",
                    "description": "The stream's bitrate in bits/s."
                  },
                  "mime_type": {
                    "type": "string",
                    "description": "The stream's media type."
                  },
                  "frame_rate": {
                    "type": "string",
                    "description": "Frames per second, as a decimal string."
                  }
                }
              },
              "description": "One entry per video stream returned; one quality can appear once per codec."
            },
            "duration": {
              "type": "number",
              "description": "The playback length in seconds."
            }
          }
        },
        "timelength": {
          "type": "number",
          "description": "The part's playback length in milliseconds."
        },
        "accept_quality": {
          "type": "array",
          "items": {
            "type": "number"
          },
          "description": "The numeric quality codes the video offers, highest first."
        },
        "support_formats": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "codecs": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "The codec strings listed for this quality."
              },
              "quality": {
                "type": "number",
                "description": "The quality code."
              },
              "superscript": {
                "type": "string",
                "description": "An extra badge on the label (a high-bitrate marker), or empty."
              },
              "display_desc": {
                "type": "string",
                "description": "The quality's short resolution label, such as 1080P."
              },
              "new_description": {
                "type": "string",
                "description": "The quality's full label, such as a resolution and a tier word."
              }
            }
          },
          "description": "One entry per offered quality, highest first."
        },
        "accept_description": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The label of each offered quality, in the same order (Chinese)."
        }
      }
    },
    "message": {
      "type": "string",
      "description": "Bilibili's status message."
    }
  },
  "description": "The playback formats of one video part, as returned after shaping."
}