Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

Bilibili User ID Extraction

Documentazione API
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.

Prezzo
$0.001USD / chiamata
Metodo
POST
Risposta
JSON
Parametri
1 obbligatori · 0 opzionali

Playground

Input
OutputEsempio
Rispostaoutputs · 60 B · 7 righe
[
  {
    "data": {
      "user_id": "178360345"
    }
  }
]

Esempi

Seleziona un esempio per caricare i suoi input e il risultato nel playground.

README API

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.

Esplora altro

API correlate

Tutte le API
APIPrezzoRisposta
Bilibili$0.001 per chiamataJSON
Bilibili$0.001 per chiamataJSON
Bilibili$0.001 per chiamataJSON
Bilibili$0.001 per chiamataJSON
Bilibili$0.001 per chiamataJSON
Bilibili$0.001 per chiamataJSON

Guide:Best Bilibili API in 2026: Pricing Compared

Domande

FAQ

Come uso l'API Bilibili User ID Extraction?

Invia una richiesta POST a https://api.sandbase.ai/v1/api/bilibili/web/get-user-id con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.

Quanto costa l'API Bilibili User ID Extraction?

$0.001 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.

Quali parametri accetta l'API Bilibili User ID Extraction?

Richiesti: share_link (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.

Cosa restituisce l'API Bilibili User ID Extraction?

Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.

Mi serve un account sviluppatore o una chiave API Bilibili?

No. Bilibili User ID Extraction funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Bilibili.