Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

Bilibili BV to AID Converter

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

Cena
$0.001USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
1 wymaganych · 0 opcjonalnych

Playground

Wejście
Video id
WyjścieGotowe

Twój wynik pojawi się tutaj

Uzupełnij dane wejściowe, a następnie kliknij Uruchom.

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.

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
Bilibili$0.001 za wywołanieJSON
Bilibili$0.001 za wywołanieJSON
Bilibili$0.001 za wywołanieJSON
Bilibili$0.001 za wywołanieJSON
Bilibili$0.001 za wywołanieJSON
Bilibili$0.001 za wywołanieJSON

Przewodniki:Best Bilibili API in 2026: Pricing Compared

Pytania

FAQ

Jak używać API Bilibili BV to AID Converter?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/bilibili/web/bv-to-aid z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API Bilibili BV to AID Converter?

$0.001 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API Bilibili BV to AID Converter?

Wymagane: bv_id (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API Bilibili BV to AID Converter?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.

Czy potrzebuję konta deweloperskiego Bilibili lub klucza API?

Nie. Bilibili BV to AID Converter działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Bilibili.