Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

Bilibili User Relation Statistics

Dokumentacja API
https://api.sandbase.ai/v1/api/bilibili/web/user-relation-stat

Returns relationship statistics, including following and follower counts, for a specified Bilibili account using their user ID.

Cena
$0.001USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
1 wymaganych · 0 opcjonalnych
100 darmowych wywołań / dzieńPierwsze 100 wywołań dziennie za darmo (współdzielone w ramach organizacji) · Reset o 00:00 UTC. Później płatność za każde wywołanie.

Playground

Wejście
User UID
WyjściePrzykład
Odpowiedźoutputs · 196 B · 13 wierszy
[
  {
    "data": {
      "black": 0,
      "fans_effect": null,
      "fans_medal_toast": null,
      "follower": 71,
      "following": 32,
      "mid": 178360345,
      "whisper": 0
    }
  }
]

Przykłady

Wybierz przykład, aby wczytać jego dane wejściowe i wynik do playgroundu.

README API

Bilibili User Relation Statistics API

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.

Use cases

  • Record the follower count of a Bilibili creator each day to chart audience growth.
  • Show following and follower numbers on a creator card inside your own dashboard.
  • Compare follower to following across a list of accounts to sort them by audience size.
  • Confirm that a uid matches the mid you expect before you run further lookups on the account.

Request

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.

Parameters

NameTypeRequiredDescription
uidstringYesUser UID

Example response

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
}

Response fields

FieldMeaning
followerNumber of accounts that follow this user.
followingNumber of accounts this user follows.
midNumeric Bilibili user ID of the account. It matches the uid you sent.
blackBlacklist count for the account. The response shows 0 and gives no further detail.
whisperWhisper count for the account. The response shows 0 and gives no further detail.
fans_effect / fans_medal_toastFan-related display settings. Both are null in this response.

Notes

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
Bilibili$0.001 za wywołanieJSON
Bilibili$0.001 za wywołanieJSON
Bilibili$0.001 za wywołanieJSON
Bilibili$0.001 za wywołanieJSON
Bilibili$0.001 za wywołanieJSON
Bilibili$0.001 za wywołanieJSON

Przewodniki:Best Bilibili API in 2026: Pricing Compared

Pytania

FAQ

Jak używać API Bilibili User Relation Statistics?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/bilibili/web/user-relation-stat z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API Bilibili User Relation Statistics?

$0.001 za wywołanie. Każda organizacja otrzymuje 100 bezpłatnych wywołań na dzień UTC, współdzielonych między kwalifikującymi się API SandBase, w tym to; potem każde wywołanie jest rozliczane według tej stawki z salda SandBase. Nie ma subskrypcji.

Jakie parametry przyjmuje API Bilibili User Relation Statistics?

Wymagane: uid (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API Bilibili User Relation Statistics?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.

Czy potrzebuję konta deweloperskiego Bilibili lub klucza API?

Nie. Bilibili User Relation Statistics działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Bilibili.