share_linkstringerforderlich
User share link
https://api.sandbase.ai/v1/api/bilibili/web/get-user-idExtracts and returns a Bilibili user ID from a provided space share link. Takes a user profile URL and resolves the numeric account identifier.
[
{
"data": {
"user_id": "178360345"
}
}
]Wählen Sie ein Beispiel aus, um seine Eingaben und das Ergebnis in den Playground zu laden.
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.
https://space.bilibili.com/... link into a numeric ID for storage or matching.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.
| Name | Type | Required | Description |
|---|---|---|---|
share_link | string | Yes | User share link |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"user_id": "178360345"
}
| Field | Meaning |
|---|---|
user_id | The numeric Bilibili account ID taken from the share link. For the example link https://space.bilibili.com/178360345, the value is "178360345". |
user_id | The value is a JSON string, not a number. Keep it as text when you store it or pass it on. |
user_id | This is the only field in the response. It matches the number at the end of the space link in share_link. |
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.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
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://static.sandbase.ai/examples/1d420101-6aa7-4cbd-a4d5-e04674de7ca9/input/1094426c-12a0-4ab7-aa39-e91b0f14d3c4.bin"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
share_linkstringerforderlichUser share link
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
[
{
"data": {
"user_id": "178360345"
}
}
]Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
Bilibili User ID ExtractionDiese API Bilibili | $0.001 pro Aufruf | JSON |
Bilibili | $0.001 pro Aufruf | JSON |
Bilibili | $0.001 pro Aufruf | JSON |
Bilibili | $0.001 pro Aufruf | JSON |
Bilibili | $0.001 pro Aufruf | JSON |
Bilibili | $0.001 pro Aufruf | JSON |
Anleitungen:Best Bilibili API in 2026: Pricing Compared
Fragen
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.
$0.001 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Erforderlich: share_link (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
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.