uidstringobbligatorio
User UID
https://api.sandbase.ai/v1/api/bilibili/web/user-relation-statReturns relationship statistics, including following and follower counts, for a specified Bilibili account using their user ID.
[
{
"data": {
"black": 0,
"fans_effect": null,
"fans_medal_toast": null,
"follower": 71,
"following": 32,
"mid": 178360345,
"whisper": 0
}
}
]Seleziona un esempio per caricare i suoi input e il risultato nel playground.
Returns relationship counts for one Bilibili account, including how many accounts it follows and how many follow it. It needs the numeric user ID in uid.
follower count of a Bilibili creator each day to chart audience growth.follower to following across a list of accounts to sort them by audience size.uid matches the mid you expect before you run further lookups on the account.curl -X POST "https://api.sandbase.ai/v1/api/bilibili/web/user-relation-stat" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"uid": "178360345"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
uid | string | Yes | User UID |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"black": 0,
"fans_effect": null,
"fans_medal_toast": null,
"follower": 73,
"following": 27,
"mid": 178360345,
"whisper": 0
}
| Field | Meaning |
|---|---|
follower | Number of accounts that follow this user. |
following | Number of accounts this user follows. |
mid | Numeric Bilibili user ID of the account. It matches the uid you sent. |
black | Blacklist count for the account. The response shows 0 and gives no further detail. |
whisper | Whisper count for the account. The response shows 0 and gives no further detail. |
fans_effect / fans_medal_toast | Fan-related display settings. Both are null in this response. |
uid, for example 178360345.$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/user-relation-stat" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"uid": "178360345"
}'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.
uidstringobbligatorioUser UID
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
[
{
"data": {
"black": 0,
"fans_effect": null,
"fans_medal_toast": null,
"follower": 71,
"following": 32,
"mid": 178360345,
"whisper": 0
}
}
]Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
Bilibili User Relation StatisticsQuesta 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/user-relation-stat 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. Ogni organizzazione riceve 100 chiamate gratuite al giorno UTC, condivise tra le API SandBase idonee, inclusa questa; dopo, ogni chiamata viene addebitata a questo prezzo dal tuo saldo SandBase. Non c'è alcun abbonamento.
Richiesti: uid (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 Relation Statistics 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.