Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

Bilibili User Relation Statistics

Documentación de la 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.

Precio
$0.001USD / llamada
Método
POST
Respuesta
JSON
Parámetros
1 obligatorios · 0 opcionales
100 llamadas gratis / díaLas primeras 100 llamadas de cada día son gratis (compartidas por organización) · Se restablecen a las 00:00 UTC. Después, pago por llamada.

Entorno de pruebas

Entrada
User UID
SalidaEjemplo
Respuestaoutputs · 196 B · 13 líneas
[
  {
    "data": {
      "black": 0,
      "fans_effect": null,
      "fans_medal_toast": null,
      "follower": 71,
      "following": 32,
      "mid": 178360345,
      "whisper": 0
    }
  }
]

Ejemplos

Seleccione un ejemplo para cargar sus entradas y el resultado en el playground.

README de la 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.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
Bilibili$0.001 por llamadaJSON
Bilibili$0.001 por llamadaJSON
Bilibili$0.001 por llamadaJSON
Bilibili$0.001 por llamadaJSON
Bilibili$0.001 por llamadaJSON
Bilibili$0.001 por llamadaJSON

Guías:Best Bilibili API in 2026: Pricing Compared

Preguntas

FAQ

¿Cómo uso la API de Bilibili User Relation Statistics?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/bilibili/web/user-relation-stat con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de Bilibili User Relation Statistics?

$0.001 por llamada. Cada organización obtiene 100 llamadas gratis por día UTC, compartidas entre las APIs elegibles de SandBase, incluida esta; después, cada llamada se factura a este precio desde tu saldo de SandBase. No hay suscripción.

¿Qué parámetros acepta la API de Bilibili User Relation Statistics?

Requeridos: uid (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de Bilibili User Relation Statistics?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de Bilibili?

No. Bilibili User Relation Statistics funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Bilibili por separado.