Bilibili Fetch User Relation Stat

2.07 credits/call
ae_bilibili_fetch_user_relation_stat

### Purpose Retrieve relationship counts for a user identified by their UID. ### Input - `uid` (string, required): The user's ID. ### Result The returned relationship statistics include `following` (the number of accounts the user follows) and `follower` (the number of followers).

Social
2.07 credits/call

Pricing

2.07 credits/call
ConditionCharge
Each call2.07 credits/call

2.07 credits/call Charges are per query. A successful query is billed even if it returns no results.

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
uidstringYes用户UID/User UID—

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_bilibili_fetch_user_relation_stat' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "uid": "20260678"
  }
}'
Response exampleresponse.json
JSONPartial content
{
  "code": 200,
  "data": {
    "black": 0,
    "fans_effect": null,
    "fans_medal_toast": null,
    "follower": 54078,
    "following": 218,
    "mid": 20260678
  },
  "docs": "https://api.tikhub.io/#/Bilibili-Web-API/fetch_user_relation_stat_api_v1_bilibili_web_fetch_user_relation_stat_get",
  "message": "Request successful. This request will incur a charge.",
  "message_zh": "请求成功,本次请求将被计费。",
  "params": {
    "uid": "20260678"
  }
}

This example shows part of the response. Copied content is valid JSON.