Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

Bilibili BV to AID Converter

Dokumentasi 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.

Harga
$0.001USD / panggilan
Metode
POST
Respons
JSON
Parameter
1 wajib · 0 opsional

Playground

Input
Video id
OutputSiap

Output Anda akan muncul di sini

Lengkapi input, lalu klik Run.

README API

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.

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
Bilibili$0.001 per panggilanJSON
Bilibili$0.001 per panggilanJSON
Bilibili$0.001 per panggilanJSON
Bilibili$0.001 per panggilanJSON
Bilibili$0.001 per panggilanJSON
Bilibili$0.001 per panggilanJSON

Panduan:Best Bilibili API in 2026: Pricing Compared

Pertanyaan

FAQ

Bagaimana cara menggunakan API Bilibili BV to AID Converter?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/bilibili/web/bv-to-aid dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.

Berapa biaya API Bilibili BV to AID Converter?

$0.001 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.

Parameter apa yang diterima API Bilibili BV to AID Converter?

Wajib: bv_id (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API Bilibili BV to AID Converter?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.

Apakah saya memerlukan akun developer atau kunci API Bilibili?

Tidak. Bilibili BV to AID Converter berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Bilibili secara terpisah.