# Bilibili Details API (bilibili.profile)

- Canonical page: https://everyinfra.com/en/bilibili-api/profile
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "bilibili", "action": "profile", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- Mode: sync; add "mode": "async" for slow tasks

Bilibili Details reads one uploader's public profile from the numeric `user_id`: name, bio, avatar, gender, user level, follower and following counts, number of videos, verification status and title, and premium membership. It tells you who runs a channel and how established it is, which sponsorship teams, agencies and researchers check before they contact an uploader or add a channel to a watch list.

Store each profile with the date of the call, since the counts change over time. `avatar_url` can be a sized link that stops working, so save the image itself when you need it later. `level`, `verified_title` and `is_vip` describe an account's standing on the site rather than its reach, and `video_count` shows how much it has published. To see the uploads themselves, pass the same `user_id` to the Bilibili Posts by user capability.

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=bilibili&action=profile

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| user_id | not declared | yes | not declared | Specifies a Bilibili uploader's numeric mid, extracted from https://space.bilibili.com/<mid>. Provide only the raw integer in user_id, without nicknames, BV IDs, or full space URLs. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| user_id | User's unique ID on the platform. |
| name | Name of the object itself, for account, product and business capabilities. |
| url | Link to the record on the platform. |
| bio | Profile bio written by the account; may contain line breaks and emoji. |
| avatar_url | Avatar image link. Some platforms return sized CDN links that can expire. |
| gender | platform-native meaning |
| level | platform-native meaning |
| follower_count | Followers. null means not disclosed, not 0. |
| following_count | Accounts followed. null means not disclosed, not 0. |
| video_count | platform-native meaning |
| like_count | Likes. null means the platform or this capability does not disclose it; it is not 0. |
| is_verified | Whether the platform verified the account. null means it cannot be determined. |
| verified_title | platform-native meaning |
| is_vip | platform-native meaning |
| vip_label | platform-native meaning |
| birthday | platform-native meaning |
| school | platform-native meaning |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
| recent_videos | Recently published videos, each with its title, link, view count, duration and so on; absent when there are none. |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "bilibili",
  "action": "profile",
  "params": {
    "user_id": "946974"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "bilibili",
        "action": "profile",
        "params": {
            "user_id": "946974",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-09-26T08:56:04Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "bilibili",
  "action": "profile",
  "results": {
    "user_id": "946974",
    "name": "影视飓风",
    "url": "https://space.bilibili.com/946974",
    "bio": "无限进步！｜商务合作请联系邮箱：•••（邮件中麻烦备注公司、咨询内容）｜店铺名：影视飓风",
    "avatar_url": "https://i0.hdslb.com/•••",
    "gender": "•••",
    "level": 6,
    "follower_count": 18402297,
    "following_count": 686,
    "video_count": 932,
    "is_verified": true,
    "verified_title": "2025百大UP主、2023年度最高人气奖UP主、课堂优质讲师",
    "is_vip": true,
    "vip_label": "十年大会员",
    "birthday": "•••",
    "platform": "bilibili",
    "recent_videos": [
      {
        "id": "BV1J7hE6aEDQ",
        "url": "https://www.bilibili.com/video/BV1J7hE6aEDQ",
        "title": "比电影更夸张？专业保镖到底在做什么？",
        "view_count": 6840704,
        "comment_count": 6722,
        "posted_at": "2026-09-22T09:00:00+00:00"
      },
      {
        "id": "BV1cSec6tEux",
        "url": "https://www.bilibili.com/video/BV1cSec6tEux",
        "title": "选哪个？iPhone 18 Pro&Duo深度上手",
        "view_count": 13290851,
        "comment_count": 206473,
        "posted_at": "2026-09-16T12:00:00+00:00"
      },
      {
        "id": "BV17PYC6KEXu",
        "url": "https://www.bilibili.com/video/BV17PYC6KEXu",
        "title": "和五月天阿信见了他",
        "view_count": 1874796,
        "comment_count": 3815,
        "posted_at": "2026-09-14T09:05:38+00:00"
      }
    ]
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### Where do I find an uploader's `user_id`?

Open the uploader's space page on Bilibili and read the address: the digits in https://space.bilibili.com/<mid> are the mid, and the mid is the `user_id`. Pass those digits alone. A nickname, a BV video ID or the full space link is not a valid value for this parameter.

### What do `level` and `verified_title` tell me?

`level` is the account's Bilibili user level on a scale from 0 to 6. `verified_title` is the verification title shown on the profile, such as a well-known uploader label. Read both with `is_verified`, where null means the verification status could not be determined, not that the account is unverified.

### Why is `follower_count` null for some uploaders?

A null `follower_count` means Bilibili did not disclose the figure for that account, not that the account has no followers. `following_count` and `like_count` work the same way. Keep these as missing values when you average or rank channels; filling them with zero drags every average down.

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=bilibili
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
