bv_idstringwajib
Video id
https://api.sandbase.ai/v1/api/bilibili/web/bv-to-aidConverts a Bilibili BV identifier to its corresponding numeric AID value. Input the target video BV string to return the legacy video identifier.
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
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.
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.
| Name | Type | Required | Description |
|---|---|---|---|
bv_id | string | Yes | Video id |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
1556386640
| Field | Meaning |
|---|---|
$ | 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. |
BV prefix and letter case.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
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"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
bv_idstringwajibVideo id
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Bilibili BV to AID ConverterAPI ini Bilibili | $0.001 per panggilan | JSON |
Bilibili | $0.001 per panggilan | JSON |
Bilibili | $0.001 per panggilan | JSON |
Bilibili | $0.001 per panggilan | JSON |
Bilibili | $0.001 per panggilan | JSON |
Bilibili | $0.001 per panggilan | JSON |
Pertanyaan
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.
$0.001 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: bv_id (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
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.