Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

Bilibili BV to AID Converter

APIドキュメント
https://api.sandbase.ai/v1/api/bilibili/web/bv-to-aid

Converts a Bilibili BV identifier to its corresponding numeric AID value. Input the target video BV string to return the legacy video identifier.

料金
$0.001USD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 1 件 · 任意 0 件

プレイグラウンド

入力
Video id
出力準備完了

出力はここに表示されます

入力を完了してから[実行]をクリックしてください。

API README

Bilibili BV to AID Converter API

Returns the numeric AID for a Bilibili video. You send the video's BV identifier in bv_id, for example BV1M1421t7hT. The response is a single integer.

Use cases

  • Convert a BV string taken from a Bilibili video URL into its numeric AID.
  • Normalize a list of mixed BV identifiers into numeric AIDs before storing them in a database.
  • Match BV identifiers from one dataset against records in another dataset that keys videos by AID.

Request

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

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.

1556386640

Response fields

FieldMeaning
$The numeric AID of the video. This is the legacy numeric video identifier that matches the BV string you sent.
$The value is a bare integer. No object or field names wrap it, so there are no keys to read.
$For the sample input BV1M1421t7hT, the value is 1556386640.

Notes

  • Pass the BV string exactly as it appears in the video link, including the BV prefix and letter case.
  • The body is a plain number, not a JSON object, so read it directly instead of looking up a key.
  • To get video metadata for the same video, call Bilibili Video Details or Bilibili Web Video Details.

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

質問

FAQ

Bilibili BV to AID Converter API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/bilibili/web/bv-to-aid に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

Bilibili BV to AID Converter API の料金はいくらですか?

1回あたり $0.001、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

Bilibili BV to AID Converter API はどのパラメータを受け付けますか?

必須: bv_id (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

Bilibili BV to AID Converter API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

Bilibili の開発者アカウントまたは API key は必要ですか?

いいえ。Bilibili BV to AID Converter は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Bilibili の API アクセスを別途申請する必要はありません。