# Bilibili Account search API (bilibili.user_search)

- Canonical page: [https://everyinfra.com/en/bilibili-api/user_search](https://everyinfra.com/en/bilibili-api/user_search?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "bilibili", "action": "user_search", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, one page of up to 20 per call; the number of rows varies from page to page and a short page is not the end (limit is ignored; pass the top-level next_page_token from the response as page_token for the next page; no next_page_token means the end)
- Pagination: pass next_page_token back as page_token for the next page, other params unchanged; one call per page, tokens last 24 hours
- Mode: sync; add "mode": "async" for slow tasks

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | Nickname or keyword to find Bilibili accounts. The returned `user_id` works in `profile`, `user_posts` and `followers`. |
| page_token | not declared | no | not declared | Page token. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received, with the other parameters unchanged. Up to 20 accounts per page; each page is one call and `limit` has no effect. Tokens last 24 hours, and the last page has no `next_page_token`. |

## 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. |
| level | platform-native meaning |
| follower_count | Followers. null means not disclosed, not 0. |
| video_count | platform-native meaning |
| is_verified | Whether the platform verified the account. null means it cannot be determined. |
| verified_type | platform-native meaning |
| verified_title | platform-native meaning |
| is_live | platform-native meaning |
| live_room_id | platform-native meaning |
| is_senior_member | platform-native meaning |
| recent_video_ids | platform-native meaning |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## 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": "user_search",
  "params": {
    "keyword": "编程"
  }
}'
```

```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": "user_search",
        "params": {
            "keyword": "编程",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-11-21T07:17:18Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 20. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "bilibili",
  "action": "user_search",
  "results": [
    {
      "user_id": "•••",
      "name": "编•••",
      "url": "https://space.bilibili.com/•••",
      "avatar_url": "https://i1.hdslb.com/•••",
      "level": 5,
      "follower_count": 250,
      "video_count": 28,
      "is_verified": false,
      "live_room_id": "26882677",
      "recent_video_ids": [
        "BV1QhdHY4EEc",
        "BV1ej411v7dp",
        "BV1Em4y187Ji"
      ],
      "platform": "bilibili"
    },
    {
      "user_id": "•••",
      "name": "动•••程",
      "url": "https://space.bilibili.com/•••",
      "avatar_url": "https://i2.hdslb.com/•••",
      "level": 6,
      "follower_count": 110367,
      "video_count": 130,
      "is_verified": true,
      "verified_type": "organization",
      "verified_title": "动画讲编程官方账号",
      "live_room_id": "22732641",
      "recent_video_ids": [
        "BV18H4y1c7dW",
        "BV1Ym42137k8",
        "BV1Uz421z7ay"
      ],
      "platform": "bilibili"
    }
  ],
  "next_page_token": …,
  "pagination": { … },
  "count": 20,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## 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
