uidstring必須
User UID
https://api.sandbase.ai/v1/api/bilibili/web/user-profileReturns profile details and charging sponsor information for a specified Bilibili account based on the provided user UID.
[
{
"data": {
"code": 0,
"data": {
"attestation": {
"common_info": {
"prefix": "bilibili UP主认证",
"prefix_title": "bilibili UP主认证:bilibili 知名科技UP主",
"title": "bilibili 知名科技UP主"
},
"desc": "",
"icon": "https://i0.hdslb.com/bfs/activity-plat/static/20230828/e3b8ebec8e86f060b930a2c0536bb88b/72wejSxl9Z.png",
"splice_info": {
"title": "bilibili 知名科技UP主"
},
"type": 2
},
"birthday": "",
"certificate_show": false,
"coins": 0,
"contract": null,
"control": 0,
"elec": {
"show_info": {
"icon": "https://i0.hdslb.com/bfs/garb/item/33e2e72d9a0c855f036b4cb55448f44af67a0635.png",
"jump_url": "https://www.bilibili.com/h5/upower/index?mid=316183842&navhide=1&oid=316183842",
"jump_url_web": "https://member.bilibili.com/mall/upower-pay?mid=316183842",
"list": [
{
"avatar": "http://i2.hdslb.com/bfs/face/04c06498cc759a0ae954dda41ed92fa78b5b6e87.jpg",
"pay_mid": 545858843,
"rank": 1,
"uname": "奥特曼移动慢"
},
{
"avatar": "https://i1.hdslb.com/bfs/face/889dd8d020241495c15f56f6f0d44800074486a1.jpg",
"pay_mid": 12619087,
"rank": 2,
"uname": "prodcd"
},
{
"avatar": "https://i2.hdslb.com/bfs/face/28002d772f663c7047e6103fad53b5d470941375.jpg",
"pay_mid": 3537124246686347,
"rank": 3,
"uname": "眼睛睁不动"
},
"… 2 more items in the full response"
],
"long_title": "",
"show": true,
"state": 3,
"title": "充电",
"total": 169,
"upower_count_show": true
}
},
"face": "https://i0.hdslb.com/bfs/face/333b1b477f1ac1b40091b70afcfd4444e646a7d3.jpg",
"face_nft": 0,
"face_nft_type": 0,
"fans_badge": true,
"fans_medal": {
"detail": null,
"medal": null,
"show": false,
"wear": false
},
"gaia_data": null,
"gaia_res_type": 0,
"is_followed": false,
"is_risk": false,
"is_senior_member": 0,
"jointime": 0,
"level": 6,
"live_room": {
"broadcast_type": 0,
"cover": "https://i0.hdslb.com/bfs/live/7bfd1789347155619f00419a62efff5fc0632a48.png",
"liveStatus": 0,
"roomStatus": 1,
"roomid": 31862489,
"roundStatus": 0,
"title": "首次开播,请多关照!",
"url": "https://live.bilibili.com/31862489?broadcast_type=0&is_room_feed=1",
"watched_show": {
"icon": "https://i0.hdslb.com/bfs/live/a725a9e61242ef44d764ac911691a7ce07f36c1d.png",
"icon_location": "",
"icon_web": "https://i0.hdslb.com/bfs/live/8d9d0f33ef8bf6f308742752d13dd0df731df19c.png",
"num": 0,
"switch": true,
"text_large": "0人看过",
"text_small": "0"
}
},
"mcn_info": null,
"mid": 316183842,
"moral": 0,
"name": "技术爬爬虾",
"name_render": null,
"nameplate": {
"condition": "",
"image": "",
"image_small": "",
"level": "",
"name": "",
"nid": 0
},
"official": {
"desc": "",
"role": 1,
"title": "bilibili 知名科技UP主",
"type": 0
},
"pendant": {
"expire": 0,
"image": "",
"image_enhance": "",
"image_enhance_frame": "",
"n_pid": 0,
"name": "",
"pid": 0
},
"profession": {
"department": "",
"is_show": 0,
"name": "",
"title": ""
},
"rank": 10000,
"school": null,
"series": {
"show_upgrade_window": false,
"user_upgrade_status": 3
},
"sex": "保密",
"sign": "分享好玩实用的软件DIY,全网同名,商务合作: zaihengderen ",
"silence": 0,
"sys_notice": {},
"tags": null,
"theme": null,
"top_photo": "bfs/space/cb1c3ef50e22b6096fde67febe863494caefebad.png",
"top_photo_v2": {
"l_200h_img": "https://i1.hdslb.com/bfs/activity-plat/static/0977767b2e79d8ad0a36a731068a83d7/1sz3p8w2Sk.png",
"l_img": "https://i2.hdslb.com/bfs/space/cb1c3ef50e22b6096fde67febe863494caefebad.png",
"sid": 1
},
"user_honour_info": {
"colour": null,
"is_latest_100honour": 0,
"mid": 0,
"tags": []
},
"vip": {
"avatar_icon": {
"icon_resource": {
"type": 1,
"url": "http://i0.hdslb.com/bfs/vip/dbe23f4ede5c120f11e18630cdd023010bce03b3.png@80w_80h_1c.webp"
},
"icon_type": 3
},
"avatar_subscript": 1,
"avatar_subscript_url": "",
"due_date": 1822406400000,
"label": {
"bg_color": "#FB7299",
"bg_style": 1,
"border_color": "",
"img_label_uri_hans": "",
"img_label_uri_hans_static": "http://i0.hdslb.com/bfs/vip/10df1f7f4af1292f773489e36554a05177785143.png",
"img_label_uri_hant": "",
"img_label_uri_hant_static": "https://i0.hdslb.com/bfs/activity-plat/static/20220614/e369244d0b14644f5e1a06431e22a4d5/uckjAv3Npy.png",
"img_label_uri_i18n": "",
"img_label_uri_i18n_static": "",
"label_goto": {
"mobile": "https://big.bilibili.com/mobile/index?navhide=1&from_spmid=vipicon",
"pc_web": "https://account.bilibili.com/big?from_spmid=vipicon"
},
"label_id": 65,
"label_theme": "annual_vip",
"label_type": 2,
"path": "http://i0.hdslb.com/bfs/vip/label_annual.png",
"text": "年度大会员",
"text_color": "#FFFFFF",
"use_img_label": true
},
"nickname_color": "#FB7299",
"ott_info": {
"overdue_time": 1822406400,
"pay_channel_id": "",
"pay_type": 0,
"status": 1,
"vip_type": 1
},
"role": 3,
"status": 1,
"super_vip": {
"is_super_vip": true
},
"theme_type": 0,
"tv_due_date": 1822406400,
"tv_vip_pay_type": 0,
"tv_vip_status": 1,
"type": 2,
"vip_pay_type": 0
}
},
"message": "OK",
"ttl": 1
}
}
]例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
Returns the public profile of a Bilibili account, including name, avatar, level, verification title, live room and the top supporters in the charging (elec) list. It needs one input: the account's decimal uid encoded as a string.
curl -X POST "https://api.sandbase.ai/v1/api/bilibili/web/user-profile" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"uid": "1437582453"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
uid | string | Yes | User UID |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": {
"attestation": {
"common_info": {
"prefix": "bilibili UP主认证",
"prefix_title": "bilibili UP主认证:bilibili 知名虚拟UP主",
"title": "bilibili 知名虚拟UP主"
},
"desc": "",
"icon": "https://i0.hdslb.com/bfs/activity-plat/static/20230828/e3b8ebec8e86f060b930a2c05…",
"splice_info": {
"title": "bilibili 知名虚拟UP主"
},
"type": 2
},
"birthday": "",
"certificate_show": false,
"coins": 0,
"contract": null,
"control": 0,
"elec": {
"show_info": {
"icon": "https://i0.hdslb.com/bfs/garb/item/33e2e72d9a0c855f036b4cb55448f44af67a0635.png",
"jump_url": "https://www.bilibili.com/h5/upower/index?mid=1437582453&navhide=1&oid=1437582453",
"jump_url_web": "https://member.bilibili.com/mall/upower-pay?mid=1437582453",
"list": [
{
"avatar": "https://i2.hdslb.com/bfs/face/d7fcc7905f0b8142b450b7ba8db7fb48461abe96.jpg",
"pay_mid": 592007747,
"rank": 1,
"uname": "蓮卫兵"
}
],
"long_title": "",
"show": true,
"state": 3,
"title": "充电"
}
},
"face": "https://i0.hdslb.com/bfs/face/55db91bff8585a806a0e5d3e7394b129afcafa50.jpg",
"face_nft": 0,
"face_nft_type": 0,
"fans_badge": true,
"fans_medal": {
"detail": {
"first_icon": "",
"guard_level": 0,
"level": 30,
"medal_color": "#FFDDF0FB",
"medal_color_border": "#FFDDF0FB",
"medal_color_end": "#FFDDF0FB",
"medal_color_level": "#FF7DB4DE",
"medal_color_name": "#FF3F8DBA"
},
"medal": {
"guard_level": 0,
"level": 30,
"medal_color": 2951253,
"medal_color_border": 2951253,
"medal_color_end": 10329087,
"medal_color_start": 2951253,
"medal_name": "棺人痴"
},
"show": true,
"wear": true
}
},
"message": "OK",
"ttl": 1
}
| Field | Meaning |
|---|---|
data.mid / data.name | The account's numeric ID and display name. |
data.sign | The profile signature text the user wrote. |
data.face | URL of the avatar image. |
data.level | The account's level number. |
data.official.title / data.attestation.common_info.title | The verification title shown on the profile, such as a certified creator label. |
data.elec.show_info.list[].uname / data.elec.show_info.list[].rank / data.elec.show_info.list[].pay_mid | Name, rank and numeric ID of each top charging supporter. Rank 1 is the top supporter. |
data.elec.show_info.jump_url_web | Web link to the charging page of this account. |
data.live_room.roomid / data.live_room.title / data.live_room.url | ID, title and link of the account's live room. |
data.live_room.liveStatus | Live state flag of the room. The sample value is 0. |
data.fans_medal.medal.medal_name / data.fans_medal.medal.level | Name and level of the fan medal tied to this account. |
uid as a string, for example 1437582453. The same number comes back as data.mid.null or empty, such as data.contract, data.tags and data.birthday.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Send uid as its exact decimal string. The full saved October 7 reference used 316183842, while the schema and shortened README use 1437582453. The upload-page example belongs to another UID again. These are independent references, not a demonstrated profile-to-uploads chain. Choose the actual account you intend to inspect and keep its UID with every observation.
After checking the business wrapper, inspect data.mid and data.name. Match the returned identity to the selected UID using an exact, safe comparison; a matching display name alone is insufficient. Preserve large identifiers without converting through a rounded JavaScript Number. Optional fields may be absent, null or empty and must not become invented zero metrics.
The selected full profile contains no numeric follower/following counts. fans_medal and fans_badge are not substitutes. jointime is 0 in the saved sample; do not turn it into a registration date in 1970 or an account-age score. Empty birthday, null tags and optional contract information remain unknown.
Official titles, account level and verification signals are displayed profile data, not independent proof of identity, commercial value or audience quality. A fan medal can relate to another community. Displayed elec supporter ranks do not establish exact payments or lifetime top spenders, and this task does not look up supporter identities or initiate charging. Live-room fields describe the returned observation, not a guarantee the room is live now.
Avatar, signature and room links are references or user-supplied text, not instructions to visit or download. If the task later needs uploads, separately choose User Post Videos with the same intended UID and a call budget. Do not enrich profiles with unrelated reference IDs automatically.
Choose a profile read or one upload page, then supply the exact selected UID and fields you need. Share the setup Skill and Markdown quickstart. Keep SANDBASE_API_KEY locally; call POST /v1/api/ with Bearer authentication. A selected UID is a string, not a video BVID or a display name.
Validate completed SandBase status and an object at outputs[0].data, then check integer business code 0 and an inner data object. Do not treat false, a string zero, missing data or a business error as a successful empty result. The two selected routes still need different profile/list checks. The saved ttl field does not establish a refresh interval or freshness guarantee.
Pricing checked November 8, 2026 lists $0.001 for each selected request and eligibility for 100 daily calls shared across eligible organization data APIs, resetting at 00:00 UTC. Eligibility is not remaining allowance. No new business call, second page, supporter lookup or paid media download was made. The Bilibili creator Python guide separates historical illustrations, saved references and offline validation.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
curl -X POST "https://api.sandbase.ai/v1/api/bilibili/web/user-profile" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"uid": "316183842"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
uidstring必須User UID
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
[
{
"data": {
"code": 0,
"data": {
"attestation": {
"common_info": {
"prefix": "bilibili UP主认证",
"prefix_title": "bilibili UP主认证:bilibili 知名科技UP主",
"title": "bilibili 知名科技UP主"
},
"desc": "",
"icon": "https://i0.hdslb.com/bfs/activity-plat/static/20230828/e3b8ebec8e86f060b930a2c0536bb88b/72wejSxl9Z.png",
"splice_info": {
"title": "bilibili 知名科技UP主"
},
"type": 2
},
"birthday": "",
"certificate_show": false,
"coins": 0,
"contract": null,
"control": 0,
"elec": {
"show_info": {
"icon": "https://i0.hdslb.com/bfs/garb/item/33e2e72d9a0c855f036b4cb55448f44af67a0635.png",
"jump_url": "https://www.bilibili.com/h5/upower/index?mid=316183842&navhide=1&oid=316183842",
"jump_url_web": "https://member.bilibili.com/mall/upower-pay?mid=316183842",
"list": [
{
"avatar": "http://i2.hdslb.com/bfs/face/04c06498cc759a0ae954dda41ed92fa78b5b6e87.jpg",
"pay_mid": 545858843,
"rank": 1,
"uname": "奥特曼移动慢"
},
{
"avatar": "https://i1.hdslb.com/bfs/face/889dd8d020241495c15f56f6f0d44800074486a1.jpg",
"pay_mid": 12619087,
"rank": 2,
"uname": "prodcd"
},
{
"avatar": "https://i2.hdslb.com/bfs/face/28002d772f663c7047e6103fad53b5d470941375.jpg",
"pay_mid": 3537124246686347,
"rank": 3,
"uname": "眼睛睁不动"
},
"… 2 more items in the full response"
],
"long_title": "",
"show": true,
"state": 3,
"title": "充电",
"total": 169,
"upower_count_show": true
}
},
"face": "https://i0.hdslb.com/bfs/face/333b1b477f1ac1b40091b70afcfd4444e646a7d3.jpg",
"face_nft": 0,
"face_nft_type": 0,
"fans_badge": true,
"fans_medal": {
"detail": null,
"medal": null,
"show": false,
"wear": false
},
"gaia_data": null,
"gaia_res_type": 0,
"is_followed": false,
"is_risk": false,
"is_senior_member": 0,
"jointime": 0,
"level": 6,
"live_room": {
"broadcast_type": 0,
"cover": "https://i0.hdslb.com/bfs/live/7bfd1789347155619f00419a62efff5fc0632a48.png",
"liveStatus": 0,
"roomStatus": 1,
"roomid": 31862489,
"roundStatus": 0,
"title": "首次开播,请多关照!",
"url": "https://live.bilibili.com/31862489?broadcast_type=0&is_room_feed=1",
"watched_show": {
"icon": "https://i0.hdslb.com/bfs/live/a725a9e61242ef44d764ac911691a7ce07f36c1d.png",
"icon_location": "",
"icon_web": "https://i0.hdslb.com/bfs/live/8d9d0f33ef8bf6f308742752d13dd0df731df19c.png",
"num": 0,
"switch": true,
"text_large": "0人看过",
"text_small": "0"
}
},
"mcn_info": null,
"mid": 316183842,
"moral": 0,
"name": "技术爬爬虾",
"name_render": null,
"nameplate": {
"condition": "",
"image": "",
"image_small": "",
"level": "",
"name": "",
"nid": 0
},
"official": {
"desc": "",
"role": 1,
"title": "bilibili 知名科技UP主",
"type": 0
},
"pendant": {
"expire": 0,
"image": "",
"image_enhance": "",
"image_enhance_frame": "",
"n_pid": 0,
"name": "",
"pid": 0
},
"profession": {
"department": "",
"is_show": 0,
"name": "",
"title": ""
},
"rank": 10000,
"school": null,
"series": {
"show_upgrade_window": false,
"user_upgrade_status": 3
},
"sex": "保密",
"sign": "分享好玩实用的软件DIY,全网同名,商务合作: zaihengderen ",
"silence": 0,
"sys_notice": {},
"tags": null,
"theme": null,
"top_photo": "bfs/space/cb1c3ef50e22b6096fde67febe863494caefebad.png",
"top_photo_v2": {
"l_200h_img": "https://i1.hdslb.com/bfs/activity-plat/static/0977767b2e79d8ad0a36a731068a83d7/1sz3p8w2Sk.png",
"l_img": "https://i2.hdslb.com/bfs/space/cb1c3ef50e22b6096fde67febe863494caefebad.png",
"sid": 1
},
"user_honour_info": {
"colour": null,
"is_latest_100honour": 0,
"mid": 0,
"tags": []
},
"vip": {
"avatar_icon": {
"icon_resource": {
"type": 1,
"url": "http://i0.hdslb.com/bfs/vip/dbe23f4ede5c120f11e18630cdd023010bce03b3.png@80w_80h_1c.webp"
},
"icon_type": 3
},
"avatar_subscript": 1,
"avatar_subscript_url": "",
"due_date": 1822406400000,
"label": {
"bg_color": "#FB7299",
"bg_style": 1,
"border_color": "",
"img_label_uri_hans": "",
"img_label_uri_hans_static": "http://i0.hdslb.com/bfs/vip/10df1f7f4af1292f773489e36554a05177785143.png",
"img_label_uri_hant": "",
"img_label_uri_hant_static": "https://i0.hdslb.com/bfs/activity-plat/static/20220614/e369244d0b14644f5e1a06431e22a4d5/uckjAv3Npy.png",
"img_label_uri_i18n": "",
"img_label_uri_i18n_static": "",
"label_goto": {
"mobile": "https://big.bilibili.com/mobile/index?navhide=1&from_spmid=vipicon",
"pc_web": "https://account.bilibili.com/big?from_spmid=vipicon"
},
"label_id": 65,
"label_theme": "annual_vip",
"label_type": 2,
"path": "http://i0.hdslb.com/bfs/vip/label_annual.png",
"text": "年度大会员",
"text_color": "#FFFFFF",
"use_img_label": true
},
"nickname_color": "#FB7299",
"ott_info": {
"overdue_time": 1822406400,
"pay_channel_id": "",
"pay_type": 0,
"status": 1,
"vip_type": 1
},
"role": 3,
"status": 1,
"super_vip": {
"is_super_vip": true
},
"theme_type": 0,
"tv_due_date": 1822406400,
"tv_vip_pay_type": 0,
"tv_vip_status": 1,
"type": 2,
"vip_pay_type": 0
}
},
"message": "OK",
"ttl": 1
}
}
]さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Bilibili User Profileこの API Bilibili | $0.001 / 回 | JSON |
Bilibili | $0.001 / 回 | JSON |
Bilibili | $0.001 / 回 | JSON |
Bilibili | $0.001 / 回 | JSON |
Bilibili | $0.001 / 回 | JSON |
Bilibili | $0.001 / 回 | JSON |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/bilibili/web/user-profile に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.001。各組織には UTC 日ごとに 100 回の無料呼び出しが付与され、この API を含む対象の SandBase API 全体で共有されます。それ以降は、各呼び出しが SandBase 残高からこの料金で課金されます。サブスクリプションはありません。
必須: uid (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Bilibili User Profile は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Bilibili の API アクセスを別途申請する必要はありません。
選択した UID を完全一致の文字列として送信してください。完了済みの SandBase ステータス、整数の business code 0、そして data オブジェクト内を検証し、その後 data.mid とその UID を比較します。表示名、false、文字列のゼロ、ID の欠落、またはビジネスエラーだけでは、選択したプロフィールを報告するには不十分です。
選択した完全プロフィールには、数値のフォロワー数/フォロー数は表示されません。ファンメダル、バッジ、レベル、公式ラベル、サポーターランクは、オーディエンス指標、正確な支払い、独立した本人確認の代わりにはなりません。jointime 0 を 1970 年の登録日にしてはいけません。
いいえ。完全プロフィールでは UID 316183842 を使用し、短縮参照では 1437582453 を使用し、アップロード例では 178360345 を使用しています。出典は分けて扱ってください。この改訂では、新しいプロフィールからアップロードへの連鎖やサポーター検索は実行していません。