share_linkstringobbligatorio
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"
}
}
]Seleziona un esempio per caricare i suoi input e il risultato nel playground.
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.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
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"
}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
share_linkstringobbligatorioUser share link
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
[
{
"data": {
"user_id": "178360345"
}
}
]Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
Bilibili User ID ExtractionQuesta API Bilibili | $0.001 per chiamata | JSON |
Bilibili | $0.001 per chiamata | JSON |
Bilibili | $0.001 per chiamata | JSON |
Bilibili | $0.001 per chiamata | JSON |
Bilibili | $0.001 per chiamata | JSON |
Bilibili | $0.001 per chiamata | JSON |
Domande
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.
$0.001 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Richiesti: share_link (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
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.