Bilibili Account search API
API health
- 24h health
- Normal
- Healthy / normal
- Available
Last 24 hours
Last 30 days
Find Bilibili accounts by nickname or keyword, 20 per page. Each account has UID, name, bio, avatar, level, follower and video counts, verification, live status and the BV IDs of a few recent videos. Pass next_page_token back as page_token for more.
Send POST https://api.everyinfra.com/api/v1/social with platform set to bilibili and action set to user_search. Price $0.56 per 1,000 requests ($0.000556 per call). Failed calls and empty results are not charged. Synchronous. For slow jobs add "mode": "async" to the body, take the job_id and poll.
AI prompt
#Please help me write a data collection script with the EveryInfra Bilibili Account search endpoint (bilibili/user_search).
How the endpoint works:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to bilibili and action to user_search, and put the parameters inside params.
- Required parameters:
- keyword: Nickname or keyword to find Bilibili accounts. The returned user_id works in profile, user_posts and followers.
- Optional parameters:
- page_token: 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.
- Returns a list of records. Main fields of each record: user_id, name, url, bio, avatar_url, level, follower_count, video_count, is_verified, verified_type, verified_title, is_live; 15 fields in total, full list at https://api.everyinfra.com/api/v1/social/catalog?platform=bilibili.
- Example request body:
{
"platform": "bilibili",
"action": "user_search",
"params": {
"keyword": "编程"
}
}
- Price: $0.56 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.
Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.Request parameters
#| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
Authorization | header | string | Yes | - | Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository. |
platform | body | string | Yes | bilibili | Platform identifier, fixed value. |
action | body | string | Yes | user_search | Capability identifier, fixed value. |
keyword | body.params | string | Yes | - | Nickname or keyword to find Bilibili accounts. The returned user_id works in profile, user_posts and followers. |
page_token | body.params | string | No | - | 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. |
Code samples
#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": "编程"
}
}'OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.
Response example
#{ "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": { … }}
Response fields
#Business data is in results. The table lists the fields a record can contain. Values the platform does not show are never made up.
| 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 | Keeps the platform's own meaning |
follower_count | Followers. null means not disclosed, not 0. |
video_count | Keeps the platform's own meaning |
is_verified | Whether the platform verified the account. null means it cannot be determined. |
verified_type | Keeps the platform's own meaning |
verified_title | Keeps the platform's own meaning |
is_live | Keeps the platform's own meaning |
live_room_id | Keeps the platform's own meaning |
is_senior_member | Keeps the platform's own meaning |
recent_video_ids | Keeps the platform's own meaning |
platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
Errors and billing
#- 401
- Missing or invalid key.
- 402
- Insufficient balance. Top up first.
- 422
- Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
- 429
- Per-minute request limit reached. Wait for Retry-After, then try again.
- 503
- Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
- 200 empty
- No data. No charge.