Discover/Bilibili API
live

Bilibili APIbilibili.com

Fetch trending Bilibili videos with metadata including title, view count, duration, uploader info, and upload date via a single paginated endpoint.

Endpoint health
verified 6d ago
get_popular_videos
1/1 passing latest checkself-healing
Endpoints
1
Updated
26d ago

What is the Bilibili API?

The Bilibili API provides access to trending video listings from bilibili.com through a single get_popular_videos endpoint, returning up to 20 videos per page with 10 distinct fields per video — including view counts, comment counts, duration, uploader details, and both canonical and short-form URLs. It covers the popular/trending feed and supports pagination to walk through the full rankings list.

Try it
Page number (starts from 1).
Number of videos per page (1-20, capped at 20).
api.parse.bot/scraper/1ec49d42-c5e3-4f48-bc10-1be2b9a4afbb/<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/1ec49d42-c5e3-4f48-bc10-1be2b9a4afbb/get_popular_videos?page=1&page_size=5' \
  -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 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.

from parse_apis.bilibili_popular_videos_api import Bilibili

bilibili = Bilibili()

for video in bilibili.videos.list(page_size=10, limit=5):
    print(video.title, video.bvid)
    print(video.uploader.name, video.uploader.mid)
    print(video.stats.views, video.stats.likes, video.stats.comments)
    print(video.category, video.duration, video.url)
All endpoints · 1 totalmissing one? ·

Get popular/trending videos from Bilibili with full metadata including title, URL, view count, comments, duration, uploader info, and upload date. Returns a paginated list ordered by trending rank. Each page contains up to 20 videos. The upstream API returns a fixed pool of ~100 trending videos; pages beyond the pool return empty.

Input
ParamTypeDescription
pageintegerPage number (starts from 1).
page_sizeintegerNumber of videos per page (1-20, capped at 20).
Response
{
  "type": "object",
  "fields": {
    "page": "integer, current page number",
    "count": "integer, number of videos returned on this page",
    "videos": "array of Video objects with metadata, uploader info, and engagement stats",
    "page_size": "integer, number of videos requested per page"
  },
  "sample": {
    "data": {
      "page": 1,
      "count": 5,
      "videos": [
        {
          "aid": 116720383625056,
          "url": "https://www.bilibili.com/video/BV1HAEm6HEox",
          "bvid": "BV1HAEm6HEox",
          "stats": {
            "coins": 7167,
            "likes": 28778,
            "views": 534909,
            "shares": 877,
            "danmaku": 2569,
            "comments": 2216,
            "favorites": 3228
          },
          "title": "小米 VS 大G VS 911",
          "category": "汽车生活",
          "duration": "18:05",
          "uploader": {
            "mid": 25150941,
            "name": "John Doe",
            "avatar": "http://i0.hdslb.com/bfs/face/e9035c3a7089ce7e11d72cb0cf15fa92064b14ef.jpg"
          },
          "short_url": "https://b23.tv/BV1HAEm6HEox",
          "thumbnail": "http://i1.hdslb.com/bfs/archive/d7d8ba8c68eb137b7b9d648d40a60c142f5ea89f.jpg",
          "description": "",
          "upload_date": "2026-06-10 03:00:00",
          "duration_seconds": 1085,
          "recommendation_reason": ""
        }
      ],
      "page_size": 5
    },
    "status": "success"
  }
}

About the Bilibili API

What the API Returns

The get_popular_videos endpoint returns the current popular/trending video feed from Bilibili. Each response includes a videos array along with top-level pagination fields: page, page_size, and count. Individual video objects carry both Bilibili identifier formats — aid (the legacy numeric ID) and bvid (the current alphanumeric ID) — so downstream systems can reference videos in whichever format their integration requires.

Video Metadata Fields

Each video object exposes title, description, url, short_url, and thumbnail for content display or deduplication. Timing data is available in two forms: duration_seconds (integer, machine-readable) and duration (human-formatted string). The upload_date field records when the video was published. Uploader information is included within the video object, allowing you to track which creators appear most frequently in the trending feed.

Engagement and Popularity Signals

View count and comment count are returned per video, giving a direct signal of audience engagement for each trending entry. These figures reflect the state of the trending feed at the time of the request. Since Bilibili's popular feed refreshes continuously, polling the endpoint at regular intervals is the standard pattern for monitoring shifts in ranking or detecting newly viral content.

Pagination

The page parameter accepts an integer starting from 1, and page_size accepts values between 1 and 20 (capped at 20). Use these to page through the full popular list. The count field in each response confirms how many videos were returned for the current page, which is useful for detecting the end of the feed.

Reliability & maintenanceVerified

The Bilibili API is a managed, monitored endpoint for bilibili.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when 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 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
6d 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 which video categories and topics dominate Bilibili's trending feed over time using title and description fields.
  • Monitor emerging creators by watching for new uploaders appearing in trending results via the uploader info fields.
  • Build a Bilibili trend dashboard that polls the popular feed and stores view_count and comment_count time series per bvid.
  • Seed a content recommendation engine with the current top 20 trending videos using thumbnail, title, and url.
  • Detect viral content early by comparing upload_date against ranking position for recently uploaded videos.
  • Aggregate trending video metadata for research into platform popularity patterns across different time windows.
  • Cross-reference bvid identifiers with external datasets to enrich Bilibili trending data with additional signals.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. 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.
What does `get_popular_videos` return beyond basic titles and URLs?+
Each video object includes aid and bvid identifiers, title, description, url, short_url, thumbnail, duration_seconds, duration, upload_date, uploader info, view count, and comment count. The dual-identifier format means you can reference videos using either the legacy numeric ID or the current alphanumeric BV ID.
Does the API cover Bilibili category feeds, search results, or individual channel pages?+
Not currently. The API covers only the platform-wide popular/trending feed. You can fork it on Parse and revise it to add endpoints for category-specific rankings, search results, or individual uploader channel pages.
How fresh is the data returned by `get_popular_videos`?+
The endpoint reflects the state of Bilibili's popular feed at the time of each request. Bilibili updates its trending rankings continuously, so data freshness is tied to when you call the endpoint. For time-series analysis, storing responses with timestamps on your end is the right approach.
Can I retrieve video analytics beyond view count and comment count, such as likes, shares, or coin counts?+
Not currently. The API exposes view count and comment count as the available engagement metrics. You can fork it on Parse and revise it to include additional engagement fields such as like counts, shares, or Bilibili's coin metric if those fields become useful for your use case.
Page content last updated . Spec covers 1 endpoint from bilibili.com.
Related APIs in Streaming VideoSee all →
top.baidu.com API
Access real-time trending search data from Baidu's Top platform. Retrieve ranked hot search terms, novels, movies, and TV dramas, with support for genre and category filtering across all board tabs.
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.
tiktok.com API
Retrieve detailed information about any public TikTok video including captions, media URLs, view counts, likes, and shares, plus access all comments posted on that video. Perfect for analyzing trending content, monitoring video performance, or building applications that need TikTok video data.
aniwatchtv.to API
Extract all
billboard.com API
Get access to Billboard's music charts, latest news, and interviews to stay updated on chart rankings, industry stories, and artist content. Search and retrieve specific articles or page content to find the music news and information you need.
viewstats.com API
viewstats.com API
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.
justwatch.com API
Search for movies and TV shows, retrieve streaming availability and detailed metadata, browse trending content, and discover similar titles — all via JustWatch.