Bilibili App Cinema Tab
https://api.sandbase.ai/v1/api/bilibili/app/cinema-tabReturns cinema tab content from the Bilibili app, featuring curated movies, TV shows, and entertainment recommendations without requiring additional query parameters.
- Giá
- $0.001USD / lượt gọi
- Phương thức
- POST
- Phản hồi
- JSON
- Tham số
- 0 bắt buộc · 0 tùy chọn
Phòng thử nghiệm
[
{
"data": {
"code": 0,
"message": "success",
"result": {
"hot": {
"desc": "查看更多",
"items": [],
"title": "热点推荐",
"wid": 0
},
"modules": [
{
"attr": {
"follow": 0,
"header": 0,
"random": 0
},
"headers": [],
"items": [
{
"badge_info": {
"bg_color": "",
"bg_color_night": "",
"text": ""
},
"cover": "https://i0.hdslb.com/bfs/bangumi/image/ef8e0830ba7f817362c9d2166e71e3fbe4aaa2d9.jpg",
"is_preview": 0,
"item_id": 156505,
"link": "https://www.bilibili.com/bangumi/play/ss45270?theme=movie",
"oid": 45270,
"report": {
"card_type": "banner",
"item_id": "156505",
"module_id": "85",
"module_type": "banner",
"oid": "https://www.bilibili.com/bangumi/play/ss45270?theme=movie"
},
"season_id": 45270,
"title": "致敬!中国缉毒警察跨国缉拿金三角毒贩",
"type": "PGC"
},
{
"aid": 529671040,
"badge_info": {
"bg_color": "",
"bg_color_night": "",
"text": ""
},
"cid": 1214996648,
"cover": "https://i0.hdslb.com/bfs/bangumi/image/9baebe196735cf635d2041bad80e78a7e2a5c082.jpg",
"episode_id": 753930,
"is_preview": 0,
"item_id": 152656,
"link": "https://www.bilibili.com/bangumi/play/ep753930",
"oid": 753930,
"report": {
"card_type": "banner",
"item_id": "152656",
"module_id": "85",
"module_type": "banner",
"oid": "https://www.bilibili.com/bangumi/play/ep753930",
"season_type": "5"
},
"season_id": 45419,
"season_type": 5,
"stat": {
"danmaku": 471402,
"follow": 1868906,
"view": 325099969
},
"title": "初见即诀别 逆时空恋爱注定是悲剧?",
"type": "PGC"
},
{
"aid": 445064086,
"badge_info": {
"bg_color": "",
"bg_color_night": "",
"text": ""
},
"cid": 1172820133,
"cover": "https://i0.hdslb.com/bfs/bangumi/image/9a1db2f5b6715f0390da59569c0579ce34cebfb8.jpg",
"episode_id": 754440,
"is_preview": 0,
"item_id": 156124,
"link": "https://www.bilibili.com/bangumi/play/ep754440",
"oid": 754440,
"report": {
"card_type": "banner",
"item_id": "156124",
"module_id": "85",
"module_type": "banner",
"oid": "https://www.bilibili.com/bangumi/play/ep754440",
"season_type": "7"
},
"season_id": 45432,
"season_type": 7,
"stat": {
"danmaku": 44076,
"follow": 277519,
"view": 51886006
},
"title": "16首歌连唱!林俊杰独家首唱会",
"type": "PGC"
},
"… 2 more items in the full response"
],
"module_id": "85",
"report": {
"module_id": "85",
"module_type": "banner"
},
"size": 6,
"style": "banner",
"title": "banner",
"type": 1,
"wid": [
288
]
},
{
"attr": {
"follow": 0,
"header": 0,
"random": 0
},
"headers": [],
"items": [
{
"badge_info": {
"bg_color": "",
"bg_color_night": "",
"text": ""
},
"cover": "http://i0.hdslb.com/bfs/bangumi/image/c8ad7c4053e80927f0a29c508089ea2781aba317.png",
"is_preview": 0,
"item_id": 101859,
"link": "bilibili://pgc/cinema/doc",
"report": {
"card_type": "function",
"item_id": "101859",
"module_id": "1284",
"module_type": "function",
"oid": "bilibili://pgc/cinema/doc"
},
"title": "纪录片",
"wid": 10020
},
{
"badge_info": {
"bg_color": "",
"bg_color_night": "",
"text": ""
},
"cover": "http://i0.hdslb.com/bfs/bangumi/image/4c9cf9ddb9000880f60fbb93ee9c12d93feb0f33.png",
"is_preview": 0,
"item_id": 101860,
"link": "bilibili://pgc/cinema/movie",
"report": {
"card_type": "function",
"item_id": "101860",
"module_id": "1284",
"module_type": "function",
"oid": "bilibili://pgc/cinema/movie"
},
"title": "电影",
"wid": 10020
},
{
"badge_info": {
"bg_color": "",
"bg_color_night": "",
"text": ""
},
"cover": "http://i0.hdslb.com/bfs/bangumi/image/e6f8d144e8028604f36c4755febe8eedd135229a.png",
"is_preview": 0,
"item_id": 101861,
"link": "bilibili://pgc/cinema/tv",
"report": {
"card_type": "function",
"item_id": "101861",
"module_id": "1284",
"module_type": "function",
"oid": "bilibili://pgc/cinema/tv"
},
"title": "电视剧",
"wid": 10020
},
"… 2 more items in the full response"
],
"module_id": "1284",
"report": {
"module_id": "1284",
"module_type": "function"
},
"size": 5,
"style": "function",
"title": "功能入口(老icon+老链接)",
"type": 1,
"wid": [
10020
]
},
{
"attr": {
"follow": 0,
"header": 0,
"random": 0
},
"headers": [],
"items": [],
"module_id": "1436",
"report": {
"module_id": "1436",
"module_type": "static"
},
"size": 1,
"style": "static",
"title": "风犬-中插",
"type": 1,
"wid": [
10575
]
},
"… 32 more items in the full response"
],
"regions": [
{
"icon": "http://i0.hdslb.com/bfs/bangumi/image/c8ad7c4053e80927f0a29c508089ea2781aba317.png",
"report": {
"card_type": "function",
"item_id": "103591",
"module_id": "248",
"module_type": "function"
},
"title": "纪录片",
"url": "bilibili://pgc/partition_page?page_name=documentary-operation&title=%E7%BA%AA%E5%BD%95%E7%89%87&select_id=1"
},
{
"icon": "http://i0.hdslb.com/bfs/bangumi/image/4c9cf9ddb9000880f60fbb93ee9c12d93feb0f33.png",
"report": {
"card_type": "function",
"item_id": "103592",
"module_id": "248",
"module_type": "function"
},
"title": "电影",
"url": "bilibili://pgc/partition_page?page_name=movie-operation&title=%E7%94%B5%E5%BD%B1&select_id=1"
},
{
"icon": "http://i0.hdslb.com/bfs/bangumi/image/e6f8d144e8028604f36c4755febe8eedd135229a.png",
"report": {
"card_type": "function",
"item_id": "103593",
"module_id": "248",
"module_type": "function"
},
"title": "电视剧",
"url": "bilibili://pgc/partition_page?page_name=tv-operation&title=%E7%94%B5%E8%A7%86%E5%89%A7&select_id=1"
},
"… 2 more items in the full response"
]
}
}
}
]Ví dụ
Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
README API
Bilibili App Cinema Tab API
Returns the content layout of the Bilibili app cinema tab: banner modules, function entries, hot recommendations, and category regions. It needs no input. Send an empty JSON object as the request body.
Use cases
- Read the banner items to see which movies and shows Bilibili promotes on the cinema tab.
- Collect
season_idandepisode_idvalues from banners to feed a catalog of promoted titles. - Track changes in module titles and item order to study how the cinema tab layout changes over time.
- List the cinema category entries, such as documentary, movie and TV series, with their icons and app links.
Request
curl -X POST "https://api.sandbase.ai/v1/api/bilibili/app/cinema-tab" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"message": "success",
"result": {
"hot": {
"desc": "查看更多",
"items": [],
"title": "热点推荐",
"wid": 0
},
"modules": [
{
"attr": {
"follow": 0,
"header": 0,
"random": 0
},
"headers": [],
"items": [
{
"badge_info": {
"bg_color": "",
"bg_color_night": "",
"text": ""
},
"cover": "https://i0.hdslb.com/bfs/bangumi/image/ef8e0830ba7f817362c9d2166e71e3fbe4aaa2d9.…",
"is_preview": 0,
"item_id": 156505,
"link": "https://www.bilibili.com/bangumi/play/ss45270?theme=movie",
"oid": 45270,
"report": {
"card_type": "banner",
"item_id": "156505",
"module_id": "85",
"module_type": "banner",
"oid": "https://www.bilibili.com/bangumi/play/ss45270?theme=movie"
},
"season_id": 45270
}
],
"module_id": "85",
"report": {
"module_id": "85",
"module_type": "banner"
},
"size": 6,
"style": "banner",
"title": "banner",
"type": 1,
"wid": [
288
]
}
],
"regions": [
{
"icon": "http://i0.hdslb.com/bfs/bangumi/image/c8ad7c4053e80927f0a29c508089ea2781aba317.p…",
"report": {
"card_type": "function",
"item_id": "103591",
"module_id": "248",
"module_type": "function"
},
"title": "纪录片",
"url": "bilibili://pgc/partition_page?page_name=documentary-operation&title=%E7%BA%AA%E5…"
}
]
}
}
Response fields
| Field | Meaning |
|---|---|
result.modules[] | The content blocks of the tab. Each block has a title, a style (for example banner, function or static), a module_id, and a list of items. |
result.modules[].items[].cover | URL of the cover image for the item. |
result.modules[].items[].link | Link for the item. It is either a Bilibili web play page or an in-app bilibili:// link. |
result.modules[].items[].season_id / result.modules[].items[].episode_id | IDs of the season or episode the item points to. They appear only on items that link to a play page. |
result.modules[].items[].aid / result.modules[].items[].cid | Numeric video IDs attached to some items. |
result.modules[].items[].title | Label of an entry, such as 电影 (movie) or 电视剧 (TV series). It appears on function entries. |
result.modules[].items[].badge_info.text | Text of the badge shown on the item. It is an empty string when there is no badge. |
result.modules[].report | Tracking info for the module, with module_id and module_type. |
result.hot.title / result.hot.items | Title and items of the hot recommendation section. items can be empty. |
result.regions[].title / result.regions[].icon / result.regions[].url | Name, icon image and in-app link of each cinema category, such as documentary, movie and TV series. |
Notes
- The request takes no parameters. Send
{}as the body. - Some modules return an empty
itemslist, so check the list length before you read it. - Links that start with
bilibili://open inside the Bilibili app. Links that start withhttps://open a web page. - To see anime recommendations instead, call Bilibili App Bangumi Tab.
Pricing
$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Bắt đầu xây dựng
Gửi request đầu tiên của bạn
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/bilibili/app/cinema-tab" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'2. Xác thực
Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
3. Tham số
Chưa có schema tham số nào được công bố cho API này.
4. Phản hồi
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
[
{
"data": {
"code": 0,
"message": "success",
"result": {
"hot": {
"desc": "查看更多",
"items": [],
"title": "热点推荐",
"wid": 0
},
"modules": [
{
"attr": {
"follow": 0,
"header": 0,
"random": 0
},
"headers": [],
"items": [
{
"badge_info": {
"bg_color": "",
"bg_color_night": "",
"text": ""
},
"cover": "https://i0.hdslb.com/bfs/bangumi/image/ef8e0830ba7f817362c9d2166e71e3fbe4aaa2d9.jpg",
"is_preview": 0,
"item_id": 156505,
"link": "https://www.bilibili.com/bangumi/play/ss45270?theme=movie",
"oid": 45270,
"report": {
"card_type": "banner",
"item_id": "156505",
"module_id": "85",
"module_type": "banner",
"oid": "https://www.bilibili.com/bangumi/play/ss45270?theme=movie"
},
"season_id": 45270,
"title": "致敬!中国缉毒警察跨国缉拿金三角毒贩",
"type": "PGC"
},
{
"aid": 529671040,
"badge_info": {
"bg_color": "",
"bg_color_night": "",
"text": ""
},
"cid": 1214996648,
"cover": "https://i0.hdslb.com/bfs/bangumi/image/9baebe196735cf635d2041bad80e78a7e2a5c082.jpg",
"episode_id": 753930,
"is_preview": 0,
"item_id": 152656,
"link": "https://www.bilibili.com/bangumi/play/ep753930",
"oid": 753930,
"report": {
"card_type": "banner",
"item_id": "152656",
"module_id": "85",
"module_type": "banner",
"oid": "https://www.bilibili.com/bangumi/play/ep753930",
"season_type": "5"
},
"season_id": 45419,
"season_type": 5,
"stat": {
"danmaku": 471402,
"follow": 1868906,
"view": 325099969
},
"title": "初见即诀别 逆时空恋爱注定是悲剧?",
"type": "PGC"
},
{
"aid": 445064086,
"badge_info": {
"bg_color": "",
"bg_color_night": "",
"text": ""
},
"cid": 1172820133,
"cover": "https://i0.hdslb.com/bfs/bangumi/image/9a1db2f5b6715f0390da59569c0579ce34cebfb8.jpg",
"episode_id": 754440,
"is_preview": 0,
"item_id": 156124,
"link": "https://www.bilibili.com/bangumi/play/ep754440",
"oid": 754440,
"report": {
"card_type": "banner",
"item_id": "156124",
"module_id": "85",
"module_type": "banner",
"oid": "https://www.bilibili.com/bangumi/play/ep754440",
"season_type": "7"
},
"season_id": 45432,
"season_type": 7,
"stat": {
"danmaku": 44076,
"follow": 277519,
"view": 51886006
},
"title": "16首歌连唱!林俊杰独家首唱会",
"type": "PGC"
},
"… 2 more items in the full response"
],
"module_id": "85",
"report": {
"module_id": "85",
"module_type": "banner"
},
"size": 6,
"style": "banner",
"title": "banner",
"type": 1,
"wid": [
288
]
},
{
"attr": {
"follow": 0,
"header": 0,
"random": 0
},
"headers": [],
"items": [
{
"badge_info": {
"bg_color": "",
"bg_color_night": "",
"text": ""
},
"cover": "http://i0.hdslb.com/bfs/bangumi/image/c8ad7c4053e80927f0a29c508089ea2781aba317.png",
"is_preview": 0,
"item_id": 101859,
"link": "bilibili://pgc/cinema/doc",
"report": {
"card_type": "function",
"item_id": "101859",
"module_id": "1284",
"module_type": "function",
"oid": "bilibili://pgc/cinema/doc"
},
"title": "纪录片",
"wid": 10020
},
{
"badge_info": {
"bg_color": "",
"bg_color_night": "",
"text": ""
},
"cover": "http://i0.hdslb.com/bfs/bangumi/image/4c9cf9ddb9000880f60fbb93ee9c12d93feb0f33.png",
"is_preview": 0,
"item_id": 101860,
"link": "bilibili://pgc/cinema/movie",
"report": {
"card_type": "function",
"item_id": "101860",
"module_id": "1284",
"module_type": "function",
"oid": "bilibili://pgc/cinema/movie"
},
"title": "电影",
"wid": 10020
},
{
"badge_info": {
"bg_color": "",
"bg_color_night": "",
"text": ""
},
"cover": "http://i0.hdslb.com/bfs/bangumi/image/e6f8d144e8028604f36c4755febe8eedd135229a.png",
"is_preview": 0,
"item_id": 101861,
"link": "bilibili://pgc/cinema/tv",
"report": {
"card_type": "function",
"item_id": "101861",
"module_id": "1284",
"module_type": "function",
"oid": "bilibili://pgc/cinema/tv"
},
"title": "电视剧",
"wid": 10020
},
"… 2 more items in the full response"
],
"module_id": "1284",
"report": {
"module_id": "1284",
"module_type": "function"
},
"size": 5,
"style": "function",
"title": "功能入口(老icon+老链接)",
"type": 1,
"wid": [
10020
]
},
{
"attr": {
"follow": 0,
"header": 0,
"random": 0
},
"headers": [],
"items": [],
"module_id": "1436",
"report": {
"module_id": "1436",
"module_type": "static"
},
"size": 1,
"style": "static",
"title": "风犬-中插",
"type": 1,
"wid": [
10575
]
},
"… 32 more items in the full response"
],
"regions": [
{
"icon": "http://i0.hdslb.com/bfs/bangumi/image/c8ad7c4053e80927f0a29c508089ea2781aba317.png",
"report": {
"card_type": "function",
"item_id": "103591",
"module_id": "248",
"module_type": "function"
},
"title": "纪录片",
"url": "bilibili://pgc/partition_page?page_name=documentary-operation&title=%E7%BA%AA%E5%BD%95%E7%89%87&select_id=1"
},
{
"icon": "http://i0.hdslb.com/bfs/bangumi/image/4c9cf9ddb9000880f60fbb93ee9c12d93feb0f33.png",
"report": {
"card_type": "function",
"item_id": "103592",
"module_id": "248",
"module_type": "function"
},
"title": "电影",
"url": "bilibili://pgc/partition_page?page_name=movie-operation&title=%E7%94%B5%E5%BD%B1&select_id=1"
},
{
"icon": "http://i0.hdslb.com/bfs/bangumi/image/e6f8d144e8028604f36c4755febe8eedd135229a.png",
"report": {
"card_type": "function",
"item_id": "103593",
"module_id": "248",
"module_type": "function"
},
"title": "电视剧",
"url": "bilibili://pgc/partition_page?page_name=tv-operation&title=%E7%94%B5%E8%A7%86%E5%89%A7&select_id=1"
},
"… 2 more items in the full response"
]
}
}
}
]Khám phá thêm
APIs liên quan
| API | Giá | Phản hồi |
|---|---|---|
Bilibili App Cinema TabAPI này Bilibili | $0.001 mỗi lần gọi | JSON |
Bilibili | $0.001 mỗi lần gọi | JSON |
Bilibili | $0.001 mỗi lần gọi | JSON |
Bilibili | $0.001 mỗi lần gọi | JSON |
Bilibili | $0.001 mỗi lần gọi | JSON |
Bilibili | $0.001 mỗi lần gọi | JSON |
Câu hỏi
FAQ
Làm thế nào để dùng API Bilibili App Cinema Tab?
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/bilibili/app/cinema-tab với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
API Bilibili App Cinema Tab có giá bao nhiêu?
$0.001 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
API Bilibili App Cinema Tab chấp nhận những tham số nào?
Bilibili App Cinema Tab không nhận tham số đầu vào; hãy gửi một phần thân JSON rỗng.
API Bilibili App Cinema Tab trả về gì?
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Tôi có cần tài khoản nhà phát triển hoặc API key của Bilibili không?
Không. Bilibili App Cinema Tab chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Bilibili.
