Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

Bilibili User Relation Statistics

Docs 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.

Prix
$0.001USD / appel
Méthode
POST
Réponse
JSON
Paramètres
1 obligatoires · 0 facultatifs
100 appels gratuits / jourLes 100 premiers appels par jour sont gratuits (partagés par organisation) · Réinitialisation à 00:00 UTC. Ensuite, paiement à l'appel.

Bac à sable

Entrée
User UID
SortieExemple
Réponseoutputs · 196 B · 13 lignes
[
  {
    "data": {
      "black": 0,
      "fans_effect": null,
      "fans_medal_toast": null,
      "follower": 71,
      "following": 32,
      "mid": 178360345,
      "whisper": 0
    }
  }
]

Exemples

Sélectionnez un exemple pour charger ses entrées et son résultat dans le playground.

README de l'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.

Explorer plus

APIs associées

Toutes les APIs
APIPrixRéponse
Bilibili$0.001 par appelJSON
Bilibili$0.001 par appelJSON
Bilibili$0.001 par appelJSON
Bilibili$0.001 par appelJSON
Bilibili$0.001 par appelJSON
Bilibili$0.001 par appelJSON

Guides :Best Bilibili API in 2026: Pricing Compared

Questions

FAQ

Comment utiliser l’API Bilibili User Relation Statistics ?

Envoyez une requête POST à https://api.sandbase.ai/v1/api/bilibili/web/user-relation-stat avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.

Combien coûte l’API Bilibili User Relation Statistics ?

$0.001 par appel. Chaque organisation bénéficie de 100 appels gratuits par jour UTC, partagés entre les API SandBase éligibles, y compris celle-ci ; au-delà, chaque appel est facturé à ce tarif depuis votre solde SandBase. Aucun abonnement.

Quels paramètres l’API Bilibili User Relation Statistics accepte-t-elle ?

Obligatoire : uid (string). Le tableau des paramètres et le Playground sur cette page listent tous les champs.

Que renvoie l’API Bilibili User Relation Statistics ?

Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.

Ai-je besoin d’un compte développeur ou d’une clé API Bilibili ?

Non. Bilibili User Relation Statistics fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Bilibili séparément.