Discover/Bilibili API
live

Bilibili APIspace.bilibili.com

Fetch paginated video feeds from any Bilibili user channel. Returns titles, view counts, danmaku counts, thumbnails, durations, and category breakdowns.

This API takes change requests — .
Endpoint health
verified 3h ago
get_channel_videos
1/1 passing latest checkself-healing
Endpoints
1
Updated
3h ago

What is the Bilibili API?

The Bilibili Channel Videos API exposes a single endpoint, get_channel_videos, that returns up to 50 videos per page from any Bilibili user space, with 10 response fields per video including bvid, play_count, danmaku_count, duration, and created timestamp. You can filter by category using tid values returned in the same response, sort by publish date or popularity, and search by keyword within a channel — all by specifying a channel's numeric mid.

This call costs10 credits / call— charged only on success
Try it
Bilibili user/channel numeric ID (e.g. '261168118').
Category/type ID to filter videos. Use '0' for all categories. Category IDs are returned in the categories field of the response.
Page number for pagination (1-indexed).
Sort order for videos. Omitted defaults to pubdate (newest first).
Search keyword to filter videos within this channel. Omitted returns all videos.
Number of videos per page (1-50).
api.parse.bot/scraper/e2c6ce2c-d987-4efe-9785-ce57978ea8ab/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/e2c6ce2c-d987-4efe-9785-ce57978ea8ab/get_channel_videos?mid=261168118&order=pubdate' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace space-bilibili-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Walkthrough: Bilibili Channel Videos API — browse a creator's uploads."""
from parse_apis.space_bilibili_com_api import Bilibili, VideoOrder, InputFormatInvalid

client = Bilibili()

# Paginate through the most-viewed videos for a channel, capped at 5 total.
for video in client.videos.list(mid="261168118", order=VideoOrder.CLICK, limit=5):
    print(video.title, f"▶ {video.play_count}", video.duration)

# Drill into the first result from a keyword search.
hit = client.videos.list(mid="261168118", keyword="旅游", limit=1).first()
if hit is not None:
    print(hit.bvid, hit.title, hit.comment_count, "comments")

# Fetch the full feed page to access category breakdown and pagination info.
try:
    feed = client.video_feeds.get(mid="261168118", page_size=5)
except InputFormatInvalid:
    print("Invalid channel ID format")
else:
    print(f"Total videos: {feed.page.total}, this page: {feed.page.current}")
    for tid, cat in feed.categories.items():
        print(f"  {cat.name}: {cat.count} videos")

print("exercised: videos.list / video_feeds.get / VideoOrder / InputFormatInvalid")
All endpoints · 1 totalmissing one? ·

Fetches the paginated video list for a Bilibili channel (user space). Returns video metadata including title, description, thumbnail, duration, view/comment/danmaku counts, and publish timestamp. Also returns the channel's video category breakdown. Sorted by publish date by default; supports sorting by play count or favorites. Each call makes up to 8 upstream requests (session warmup + signed API call with one retry). Pagination is caller-controlled via page and page_size; total video count is returned in the response.

Input
ParamTypeDescription
midrequiredstringBilibili user/channel numeric ID (e.g. '261168118').
tidstringCategory/type ID to filter videos. Use '0' for all categories. Category IDs are returned in the categories field of the response.
pageintegerPage number for pagination (1-indexed).
orderstringSort order for videos. Omitted defaults to pubdate (newest first).
keywordstringSearch keyword to filter videos within this channel. Omitted returns all videos.
page_sizeintegerNumber of videos per page (1-50).
Response
{
  "type": "object",
  "fields": {
    "page": "object with current page number, page_size, and total video count",
    "videos": "array of video objects with bvid, aid, title, description, thumbnail, duration, play_count, comment_count, danmaku_count, created, author, mid, type_id, is_union_video",
    "categories": "object mapping category tid to name and video count for this channel"
  },
  "sample": {
    "data": {
      "page": {
        "total": 187,
        "current": 1,
        "page_size": 5
      },
      "videos": [
        {
          "aid": 117002676996042,
          "mid": 261168118,
          "bvid": "BV1wp326PEQH",
          "title": "不到30岁就裸辞,现在后悔了吗?探访年薪10-90万职场女性",
          "author": "Jane Doe",
          "created": 1785320504,
          "type_id": 209,
          "duration": "27:11",
          "thumbnail": "http://i2.hdslb.com/bfs/archive/02c730a2578d002ada1735e6bf20f712f0c282e2.jpg",
          "play_count": 144831,
          "description": "你会放弃一份年薪50万的工作吗?",
          "comment_count": 323,
          "danmaku_count": 444,
          "is_union_video": false
        }
      ],
      "categories": {
        "36": {
          "tid": 36,
          "name": "知识",
          "count": 6
        },
        "160": {
          "tid": 160,
          "name": "生活",
          "count": 173
        }
      }
    },
    "status": "success"
  }
}

About the Bilibili API

What the endpoint returns

get_channel_videos accepts a Bilibili user's numeric mid and returns a paginated list of their uploaded videos. Each video object includes identifiers (bvid, aid), display fields (title, description, thumbnail), engagement metrics (play_count, comment_count, danmaku_count), playback info (duration), and a Unix created timestamp. The response also includes a page object with the current page number, page size, and total video count across the channel.

Filtering and sorting

The tid parameter filters videos to a specific category. Valid category IDs for a given channel are returned in the categories field of every response — a mapping of tid to category name and video count — so you can enumerate available categories before filtering. Pass tid=0 to retrieve all categories. The order parameter controls sort order (defaulting to newest-first by publish date), and keyword filters results to videos whose metadata matches a search term within the channel.

Pagination

Results are paginated via the page and page_size parameters. page is 1-indexed, and page_size accepts values from 1 to 50. The page.total field in the response tells you the total number of videos, so you can calculate how many pages exist for a given channel and category combination before walking through them.

Reliability & maintenanceVerified

The Bilibili API is a managed, monitored endpoint for space.bilibili.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when space.bilibili.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official space.bilibili.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
3h ago
Latest check
1/1 endpoint passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Track a creator's upload history by paginating all videos sorted by created timestamp.
  • Build a category-aware video browser using the categories map returned per channel.
  • Monitor engagement trends by polling play_count, comment_count, and danmaku_count over time.
  • Index channel thumbnails and titles for a Bilibili content discovery or recommendation feed.
  • Search within a specific creator's uploads using the keyword parameter to surface relevant clips.
  • Compare video output across channels by collecting page.total from multiple mid values.
  • Filter a prolific channel's content to a single content type by passing category tid values.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo2005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min
Team$300/mo20,000300 req/min
Company$1,000/mo100,000500 req/min

Each endpoint has a fixed posted price per successful call — most fall between 1 and 10 credits — shown on this API's page before you run it. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Bilibili have an official developer API?+
Bilibili does not publish a general-purpose public developer API for third-party use. There is no official API portal or documented REST API available to external developers.
How do I find the right `tid` value to filter a channel by category?+
Every response from get_channel_videos includes a categories field that maps each tid integer to a category name and the count of videos in that category for the requested channel. Call the endpoint once with tid=0 (all categories) to retrieve this map, then re-call with the specific tid you want.
Does the API return private or members-only videos on a channel?+
The API returns publicly visible videos on a channel's upload page. Videos that are private, hidden, or gated behind Bilibili membership are not included in the response. You can fork this API on Parse and revise it to handle authenticated sessions if your use case requires access to restricted content.
Does the API return channel subscriber counts, channel-level bios, or live stream data?+
Not currently. The API covers the video feed for a channel, including per-video metadata and the channel's category breakdown, but does not include subscriber counts, channel descriptions, or live stream listings. You can fork it on Parse and revise to add an endpoint covering those fields.
What is the maximum number of videos I can retrieve per request?+
The page_size parameter accepts a maximum value of 50. To retrieve more videos, increment the page parameter and continue paginating. The page.total field in the response tells you the total number of videos available for the current filter, so you can determine upfront how many requests are needed.
Page content last updated . Spec covers 1 endpoint from space.bilibili.com.
Related APIs in Streaming VideoSee all →
bilibili.com API
Discover and monitor trending videos on Bilibili with access to video metadata, uploader information, and engagement statistics. Stay updated on what's popular across the platform to find the latest viral content and emerging creators.
youtube.com API
Retrieve public YouTube channel information, discover featured channels and recommendations, and access liked videos playlists to understand what content creators are promoting and enjoying. Perfect for researching creator profiles, finding related channels, and exploring curated video collections without needing direct channel access.
m.youtube.com API
Get video titles and metadata from the Mindplicit YouTube channel to track content updates and organize channel information. Access a complete list of videos to monitor new uploads and retrieve detailed information about each video's performance and details.
app.channelcrawler.com API
Search and discover YouTube channels across a database of 22M+ channels to find creators, communities, and content in your areas of interest. Get detailed channel information including stats and metadata to research creators and understand their audience.
viewstats.com API
viewstats.com API
toutiao.com API
Browse personalized news feeds, discover trending articles and hot topics, search content across categories, view detailed articles with comments, and explore author profiles on Toutiao. Access video feeds and stay updated with the latest news and trending stories all in one place.
twitch.tv API
Search for Twitch streamers and channels, view their profiles and streaming details, and discover live streams organized by category. Find the content and creators you want to watch all in one place.
kick.com API
Discover all active livestreams from any Kick.com category and access detailed information about each channel, including viewer counts, tags, language, and creator profiles. Monitor live content across specific categories to find streamers and trending broadcasts in real-time.