Sand AISand AI MAGI-2MAGI-2 ist jetzt auf SandBase: 1080p-Video mit nativem AudioJetzt testen

Bilibili User ID Extraction

API-Dokumentation
https://api.sandbase.ai/v1/api/bilibili/web/get-user-id

Extracts and returns a Bilibili user ID from a provided space share link. Takes a user profile URL and resolves the numeric account identifier.

Preis
$0.001USD / Aufruf
Methode
POST
Antwort
JSON
Parameter
1 erforderlich · 0 optional

Playground

Eingabe
AusgabeBeispiel
Antwortoutputs · 60 B · 7 Zeilen
[
  {
    "data": {
      "user_id": "178360345"
    }
  }
]

Beispiele

Wählen Sie ein Beispiel aus, um seine Eingaben und das Ergebnis in den Playground zu laden.

API-README

Bilibili User ID Extraction API

This API takes a Bilibili user space share link in share_link and returns the numeric user ID found in it. The response has one field, user_id, returned as a string.

Use cases

  • Turn a copied https://space.bilibili.com/... link into a numeric ID for storage or matching.
  • Clean a list of creator profile URLs collected from web pages into one ID column.
  • Get the user ID you need before calling Bilibili profile, video, or dynamic endpoints.

Request

curl -X POST "https://api.sandbase.ai/v1/api/bilibili/web/get-user-id" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"share_link": "https://space.bilibili.com/178360345"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
share_linkstringYesUser share link

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "user_id": "178360345"
}

Response fields

FieldMeaning
user_idThe numeric Bilibili account ID taken from the share link. For the example link https://space.bilibili.com/178360345, the value is "178360345".
user_idThe value is a JSON string, not a number. Keep it as text when you store it or pass it on.
user_idThis is the only field in the response. It matches the number at the end of the space link in share_link.

Notes

  • Pass a full space link such as https://space.bilibili.com/178360345 in share_link.
  • user_id is a string, so keep it as text if you pass it on to other calls.
  • Use the ID with Bilibili User Profile to get account details, or with Bilibili User Post Videos to list the user's videos.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Mehr entdecken

Verwandte APIs

Alle APIs
APIPreisAntwort
Bilibili$0.001 pro AufrufJSON
Bilibili$0.001 pro AufrufJSON
Bilibili$0.001 pro AufrufJSON
Bilibili$0.001 pro AufrufJSON
Bilibili$0.001 pro AufrufJSON
Bilibili$0.001 pro AufrufJSON

Anleitungen:Best Bilibili API in 2026: Pricing Compared

Fragen

FAQ

Wie verwende ich die Bilibili User ID Extraction API?

Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/bilibili/web/get-user-id mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.

Was kostet die Bilibili User ID Extraction API?

$0.001 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.

Welche Parameter akzeptiert die Bilibili User ID Extraction API?

Erforderlich: share_link (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.

Was gibt die Bilibili User ID Extraction API zurück?

Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.

Benötige ich ein Bilibili-Entwicklerkonto oder einen API-Schlüssel?

Nein. Bilibili User ID Extraction läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Bilibili API beantragen.