uidstringобязательно
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
}
}
]Выберите пример, чтобы загрузить его входные данные и результат в 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.
Начните разработку
Конечная точка платформенного API с единообразной аутентификацией и учётом использования.
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"
}'Укажите свой ключ SandBase API в окружении сервера. Запросы используют аутентификацию Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Храните ключ на сервере. Не раскрывайте его в коде браузера.
uidstringобязательноUser UID
Сохранённый пример ответа для этого API; при просмотре живой запрос не выполняется.
[
{
"data": {
"black": 0,
"fans_effect": null,
"fans_medal_toast": null,
"follower": 71,
"following": 32,
"mid": 178360345,
"whisper": 0
}
}
]Посмотреть больше
| API | Цена | Ответ |
|---|---|---|
Bilibili | $0.001 за запрос | JSON |
Bilibili | $0.001 за запрос | JSON |
Bilibili | $0.001 за запрос | JSON |
Bilibili | $0.001 за запрос | JSON |
Bilibili | $0.001 за запрос | JSON |
Bilibili | $0.001 за запрос | JSON |
Руководства:Best Bilibili API in 2026: Pricing Compared
Вопросы
Отправьте POST-запрос на https://api.sandbase.ai/v1/api/bilibili/web/user-relation-stat, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
$0.001 за вызов. Каждой организации предоставляется 100 бесплатных вызовов в сутки по UTC, общих для всех подходящих API SandBase, включая этот; после этого каждый вызов тарифицируется по этой цене и списывается с баланса SandBase. Подписка не требуется.
Обязательные: uid (string). В таблице Parameters и в Playground на этой странице перечислены все поля.
JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.
Нет. Bilibili User Relation Statistics работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Bilibili.