Bilibili API
Returns bilibili popular videos, search suggestions, video details, parts, streams and related videos.
View as Markdown| GET | /bilibili/popular | The videos bilibili.com ranks as popular now. |
| GET | /bilibili/suggest | Search suggestions bilibili.com offers for a term. |
| GET | /bilibili/pages | The parts of a bilibili.com video: each part's page number, cid, title and duration. |
| GET | /bilibili/streams | The MP4 streams of one part of a bilibili.com video, with the qualities the player offers without a login. |
| GET | /bilibili/video | One bilibili.com video by its BV id: title, description, uploader, duration, counters and cover. |
| GET | /bilibili/related | Videos bilibili.com suggests next to one video. |
| GET | /bilibili/tags | The tags a video carries, as bilibili.com shows them under it. |
| GET | /bilibili/comments | Top comments of one video by its aid, with replies counted, 20 per page. |
| GET | /bilibili/commentReplies | Replies to one top comment of a bilibili.com video, by its aid and comment id, 20 per page. |
| GET | /bilibili/danmaku | Bullet comments (danmaku) of one bilibili.com video part by its cid, with the second each one shows at. Get the cid from bilibili/pages. |
| GET | /bilibili/ranking | The videos bilibili.com ranks highest in one category over the last 1, 3 or 7 days. |
| GET | /bilibili/liveRoom | Title, status, viewers and category of one bilibili.com live room. |
| GET | /bilibili/user | Profile of one bilibili.com account: name, sign, level, follower and following counts, and its video count. |
popular
/v1/bilibili/popularThe videos bilibili.com ranks as popular now.
Parameters
limitinteger | Items per page, 1 to 50. default 20 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
20 fields
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
bvid | string |
commentCount | integer (int64) |
description | string |
durationSeconds | integer (int64) |
id | string |
likeCount | integer (int64) |
publishedAt | string |
thumbnails | Image[] |
height | any |
url | string |
width | any |
title | string |
url | string |
viewCount | integer (int64) |
curl "https://api.hoshime.com/v1/bilibili/popular" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/bilibili/popular", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/bilibili/popular", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": { "avatarUrl": "", "id": "3747573653310360", "name": "星游记RS", "url": "", "username": "" }, "bvid": "BV1UB4v67Exr", "commentCount": 0, "description": "新版《再飞行!》MV,今日正式上线!\n作词:刘北\n作曲:格非\n演唱:逃跑计划-毛川\n吉他solo:张瑞欣\n特邀嘉宾:每一个等待《星游记》再飞行的你\n\n这一次,一起唱到最后一句。!", "durationSeconds": 188, "id": "117568270504061", "likeCount": 67417, "publishedAt": "2026-11-06T11:00:00Z", "thumbnails": [ { "height": 0, "url": "http://i2.hdslb.com/bfs/archive/0599180bc6ff6a9b8eb2eead9df07295961aa85f.jpg", "width": 0 } ], "title": "《再飞行!》MV:终于完整的旋律,是我们继续出发的BGM", "url": "https://www.bilibili.com/video/BV1UB4v67Exr", "viewCount": 383431 }, { "author": { "avatarUrl": "", "id": "50329118", "name": "哔哩哔哩英雄联盟赛事", "url": "", "username": "" }, "bvid": "BV1Zj4v6aEuj", "commentCount": 0, "description": "【2026全球总决赛】11月6日 DK vs BLG", "durationSeconds": 11640, "id": "117566290790345", "likeCount": 44330, "publishedAt": "2026-11-05T22:57:23Z", "thumbnails": [ { "height": 0, "url": "http://i1.hdslb.com/bfs/archive/7f17e804982c34e9b9fd788b1d160361c7f34cb0.jpg", "width": 0 } ], "title": "【2026全球总决赛】11月6日 DK vs BLG", "url": "https://www.bilibili.com/video/BV1Zj4v6aEuj", "viewCount": 6484818 } ], "meta": { "cached": false, "endpoint": "popular", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "bilibili", "requestId": "req_2Xb9kQ…", "units": 1 } }
suggest
/v1/bilibili/suggestSearch suggestions bilibili.com offers for a term.
Parameters
querystring required | Partial search text, such as lin. e.g. linux |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
1 fields
term | string |
curl "https://api.hoshime.com/v1/bilibili/suggest?query=linux" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/bilibili/suggest?query=linux", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/bilibili/suggest?query=linux", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "term": "linux操作系统零基础到入门" }, { "term": "linux" } ], "meta": { "cached": false, "endpoint": "suggest", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "bilibili", "requestId": "req_2Xb9kQ…", "units": 1 } }
pages
/v1/bilibili/pagesThe parts of a bilibili.com video: each part's page number, cid, title and duration.
Parameters
videostring required | BV id or bilibili.com/video/BV… URL. e.g. BV1GJ411x7h7 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
bvid | string |
items | Part[] |
cid | string |
duration | integer (int64) |
page | integer (int64) |
title | string |
curl "https://api.hoshime.com/v1/bilibili/pages?video=BV1GJ411x7h7" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/bilibili/pages?video=BV1GJ411x7h7", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/bilibili/pages?video=BV1GJ411x7h7", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "bvid": "BV1GJ411x7h7", "items": [ { "cid": "137649199", "duration": 213, "page": 1, "title": "Never Gonna Give You Up - Rick Astley" } ] }, "meta": { "cached": false, "endpoint": "pages", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "bilibili", "requestId": "req_2Xb9kQ…", "units": 1 } }
streams
/v1/bilibili/streamsThe MP4 streams of one part of a bilibili.com video, with the qualities the player offers without a login.
Parameters
videostring required | BV id or bilibili.com/video/BV… URL. e.g. BV1GJ411x7h7 |
partinteger | Part number, from 1 for a video with one part. default 1 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
13 fields
bvid | string |
cid | string |
page | integer (int64) |
qualities | Rendition[] |
description | string |
quality | integer (int64) |
quality | string |
segments | Segment[] |
length | integer (int64) |
order | integer (int64) |
size | integer (int64) |
url | string |
title | string |
curl "https://api.hoshime.com/v1/bilibili/streams?video=BV1GJ411x7h7" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/bilibili/streams?video=BV1GJ411x7h7", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/bilibili/streams?video=BV1GJ411x7h7", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "bvid": "BV1GJ411x7h7", "cid": "137649199", "page": 1, "qualities": [ { "description": "高清 720P", "quality": 64 }, { "description": "流畅 360P", "quality": 16 } ], "quality": "高清 720P", "segments": [ { "length": 213000, "order": 1, "size": 51973319, "url": "https://upos-sz-mirrorcosov.bilivideo.com/upgcxcode/99/91/137649199/137649199_da2-1-192.mp4?e=ig8euxZM2rNcNbNM7wdVhwdlhbKMhwdVhoNvNC8BqJIzNb…" } ], "title": "Never Gonna Give You Up - Rick Astley" }, "meta": { "cached": false, "endpoint": "streams", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "bilibili", "requestId": "req_2Xb9kQ…", "units": 1 } }
video
/v1/bilibili/videoOne bilibili.com video by its BV id: title, description, uploader, duration, counters and cover.
Parameters
videostring required | BV id or bilibili.com/video/BV… URL. e.g. BV1NZ4y1j7nw |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
20 fields
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
bvid | string |
commentCount | integer (int64) |
description | string |
durationSeconds | integer (int64) |
id | string |
likeCount | integer (int64) |
publishedAt | string |
thumbnails | Image[] |
height | any |
url | string |
width | any |
title | string |
url | string |
viewCount | integer (int64) |
curl "https://api.hoshime.com/v1/bilibili/video?video=BV1NZ4y1j7nw" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/bilibili/video?video=BV1NZ4y1j7nw", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/bilibili/video?video=BV1NZ4y1j7nw", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "author": { "avatarUrl": "https://…", "id": "abc123", "name": "…", "url": "https://…", "username": "…" }, "bvid": "…", "commentCount": 1280, "description": "…", "durationSeconds": 0, "id": "abc123", "likeCount": 1280, "publishedAt": "2026-11-06T09:41:00Z", "thumbnails": [ { "height": null, "url": "https://…", "width": null } ], "title": "…", "url": "https://…", "viewCount": 1280 }, "meta": { "cached": false, "endpoint": "video", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "bilibili", "requestId": "req_2Xb9kQ…", "units": 1 } }
tags
/v1/bilibili/tagsThe tags a video carries, as bilibili.com shows them under it.
Parameters
videostring required | BV id or bilibili.com/video/BV… URL. e.g. BV1GJ411x7h7 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
id | string |
likes | integer (int64) |
name | string |
url | string |
curl "https://api.hoshime.com/v1/bilibili/tags?video=BV1GJ411x7h7" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/bilibili/tags?video=BV1GJ411x7h7", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/bilibili/tags?video=BV1GJ411x7h7", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "id": "15223081", "likes": 53, "name": "Never Gonna Give You Up", "url": "https://www.bilibili.com/tag/15223081/" }, { "id": "2813196", "likes": 7, "name": "Rick Astley", "url": "https://www.bilibili.com/tag/2813196/" } ], "meta": { "cached": false, "endpoint": "tags", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "bilibili", "requestId": "req_2Xb9kQ…", "units": 1 } }
comments
/v1/bilibili/commentsTop comments of one video by its aid, with replies counted, 20 per page.
Parameters
aidinteger required | Video aid, the number bilibili.com shows as av<aid>. e.g. 2 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
11 fields
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
createdAt | string |
id | string |
likeCount | integer (int64) |
replyCount | integer (int64) |
text | string |
curl "https://api.hoshime.com/v1/bilibili/comments?aid=2" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/bilibili/comments?aid=2", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/bilibili/comments?aid=2", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": { "avatarUrl": "", "id": "2", "name": "碧诗", "url": "", "username": "" }, "createdAt": "2010-12-09T18:10:39Z", "id": "495059", "likeCount": 55589, "replyCount": 1554, "text": "wwwww" }, { "author": { "avatarUrl": "", "id": "24512285", "name": "古关忧的毛绒拖孩", "url": "", "username": "" }, "createdAt": "2020-03-23T06:34:57Z", "id": "2576184175", "likeCount": 55024, "replyCount": 1133, "text": "人类最古のav号(挂了的不算)也变成bv了[大哭][大哭][大哭]青春结束了" } ], "meta": { "cached": false, "endpoint": "comments", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "bilibili", "requestId": "req_2Xb9kQ…", "units": 1 } }
commentReplies
/v1/bilibili/commentRepliesReplies to one top comment of a bilibili.com video, by its aid and comment id, 20 per page.
Parameters
aidinteger required | Video aid, the number bilibili.com shows as av<aid>. e.g. 2 |
rootinteger required | Id of the top comment, from bilibili/comments. e.g. 495059 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
11 fields
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
createdAt | string |
id | string |
likeCount | integer (int64) |
replyCount | integer (int64) |
text | string |
curl "https://api.hoshime.com/v1/bilibili/commentReplies?aid=2&root=495059" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/bilibili/commentReplies?aid=2&root=495059", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/bilibili/commentReplies?aid=2&root=495059", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": { "avatarUrl": "https://…", "id": "abc123", "name": "…", "url": "https://…", "username": "…" }, "createdAt": "2026-11-06T09:41:00Z", "id": "abc123", "likeCount": 1280, "replyCount": 1280, "text": "…" } ], "meta": { "cached": false, "endpoint": "commentReplies", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "bilibili", "requestId": "req_2Xb9kQ…", "units": 1 } }
danmaku
/v1/bilibili/danmakuBullet comments (danmaku) of one bilibili.com video part by its cid, with the second each one shows at. Get the cid from bilibili/pages.
Parameters
cidinteger required | Part cid, from bilibili/pages. e.g. 137649199 |
limitinteger | Items per page, 1 to 1000. default 100 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
3 fields
sentAt | string |
text | string |
timeSeconds | number (double) |
curl "https://api.hoshime.com/v1/bilibili/danmaku?cid=137649199" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/bilibili/danmaku?cid=137649199", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/bilibili/danmaku?cid=137649199", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "sentAt": "2026-11-06T09:41:00Z", "text": "…", "timeSeconds": 0 } ], "meta": { "cached": false, "endpoint": "danmaku", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "bilibili", "requestId": "req_2Xb9kQ…", "units": 1 } }
ranking
/v1/bilibili/rankingThe videos bilibili.com ranks highest in one category over the last 1, 3 or 7 days.
Parameters
ridinteger | Category id, such as 1 for animation or 3 for music. default 1e.g. 1 |
dayinteger | Days the ranking covers: 1, 3 or 7. default 3e.g. 3 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
23 fields
author | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
bvid | string |
coins | integer (int64) |
commentCount | integer (int64) |
description | string |
durationSeconds | integer (int64) |
favorites | integer (int64) |
id | string |
likeCount | integer (int64) |
publishedAt | string |
rank | integer (int64) |
thumbnails | Image[] |
height | any |
url | string |
width | any |
title | string |
url | string |
viewCount | integer (int64) |
curl "https://api.hoshime.com/v1/bilibili/ranking?rid=1&day=3" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/bilibili/ranking?rid=1&day=3", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/bilibili/ranking?rid=1&day=3", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": { "avatarUrl": "", "id": "654552", "name": "圆桌动漫", "url": "", "username": "" }, "bvid": "BV1B8ZJYTEPg", "coins": 23203, "commentCount": 0, "description": "", "durationSeconds": 2960, "favorites": 129111, "id": "114256632618805", "likeCount": 0, "publishedAt": "2025-03-31T10:47:00Z", "rank": 1, "thumbnails": [ { "height": 0, "url": "http://i2.hdslb.com/bfs/archive/bd88ddaef2e676a386be293c12de0b9becab9f82.jpg", "width": 0 } ], "title": "现代修仙,没钱纯靠自律【自律狠人】【第一季超长电影版】", "url": "https://www.bilibili.com/video/BV1B8ZJYTEPg", "viewCount": 9398410 }, { "author": { "avatarUrl": "", "id": "293187959", "name": "寞桀緣才", "url": "", "username": "" }, "bvid": "BV1UbZ8YmEP8", "coins": 30994, "commentCount": 0, "description": "画稿协助:@阿诺筱筱筱 @Li_歌 @黑崎墨 @小V-VCD @衫山浣 @麻酥油卷masu @铅笔盒中 @混茫0017 @沃克Joseph \n\n3d制作:@叫花鲲 \n\n动图制作:@ques秦 \n\n配音:配音统筹:@DKK就是DKK \n卡提希娅:@名前桑 \n\n描改参考:BV1ui4…", "durationSeconds": 194, "favorites": 14722, "id": "114263226061418", "likeCount": 0, "publishedAt": "2025-04-01T14:43:00Z", "rank": 2, "thumbnails": [ { "height": 0, "url": "http://i1.hdslb.com/bfs/archive/0a30707c2ebcfb6bb1d2f8be1f7519440f2316c2.jpg", "width": 0 } ], "title": "【大鸣王潮1566】死告者", "url": "https://www.bilibili.com/video/BV1UbZ8YmEP8", "viewCount": 1692375 } ], "meta": { "cached": false, "endpoint": "ranking", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "bilibili", "requestId": "req_2Xb9kQ…", "units": 1 } }
liveRoom
/v1/bilibili/liveRoomTitle, status, viewers and category of one bilibili.com live room.
Parameters
idinteger required | Live room id, the number in live.bilibili.com/<id>. e.g. 23058 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
16 fields
area | string |
cover | string |
description | string |
id | string |
keyframe | string |
online | integer (int64) |
startedAt | string |
status | string |
tags | Tag[] |
id | string |
likes | integer (int64) |
name | string |
url | string |
title | string |
uid | string |
url | string |
curl "https://api.hoshime.com/v1/bilibili/liveRoom?id=23058" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/bilibili/liveRoom?id=23058", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/bilibili/liveRoom?id=23058", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "area": "电台 / 唱见电台", "cover": "", "description": "<p>这里是哔哩哔哩官方音乐台喔!</p><p>一起来听音乐吧ε=ε=(ノ≧∇≦)ノ</p><p>没想到蒸汽配圣诞下装,意外的很暴露呢=3=</p>", "id": "23058", "keyframe": "https://i0.hdslb.com/bfs/live-key-frame/keyframe040916010000000230589l8p96.jpg", "online": 0, "startedAt": "", "status": "offline", "tags": [], "title": "哔哩哔哩音悦台", "uid": "11153765", "url": "https://live.bilibili.com/23058" }, "meta": { "cached": false, "endpoint": "liveRoom", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "bilibili", "requestId": "req_2Xb9kQ…", "units": 1 } }
user
/v1/bilibili/userProfile of one bilibili.com account: name, sign, level, follower and following counts, and its video count.
Parameters
midinteger required | Account id (mid), the number in space.bilibili.com/<mid>. e.g. 2 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
13 fields
articleCount | integer (int64) |
avatar | string |
followers | integer (int64) |
following | integer (int64) |
id | string |
level | integer (int64) |
likes | integer (int64) |
name | string |
official | string |
registeredAt | string |
sign | string |
url | string |
videoCount | integer (int64) |
curl "https://api.hoshime.com/v1/bilibili/user?mid=2" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/bilibili/user?mid=2", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/bilibili/user?mid=2", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "articleCount": 0, "avatar": "https://i2.hdslb.com/bfs/face/ef0457addb24141e15dfac6fbf45293ccf1e32ab.jpg", "followers": 1436201, "following": 430, "id": "2", "level": 6, "likes": 5105156, "name": "碧诗", "official": "bilibili创始人(站长)", "registeredAt": "", "sign": "https://kami.im 直男过气网红 # We Are Star Dust", "url": "https://space.bilibili.com/2", "videoCount": 44 }, "meta": { "cached": false, "endpoint": "user", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "bilibili", "requestId": "req_2Xb9kQ…", "units": 1 } }