Bilibili API

Bilibili API for Video Search, Details, Uploaders, and Comments

Scrappa's Bilibili API returns structured JSON from Bilibili, China's largest video platform. Search videos by keyword with filters and pagination, fetch video details with stats and uploader, read uploader profiles and their uploaded videos, and get video comments. Scrappa is an independent service and is not affiliated with or endorsed by Bilibili.

500 free credits
No card needed
From $0.20 / 1k
Pay as you go
Structured JSON
Ready for apps
API key access
Test in minutes
6
Endpoints
Bilibili
Source coverage
$0.20
Per 1k requests

Try it now

Make one request. Inspect structured JSON.

Use the first endpoint in this API family with a Scrappa API key. Every account includes 500 free monthly credits, so you can validate the response shape before buying credits.

Request preview
Request
curl -X GET "https://scrappa.co/api/bilibili/search?search_type=video&keyword=python&page=1" \
  -H "Accept: application/json" \
  -H "X-API-KEY: YOUR_API_KEY"
JSON response
{
  "results": [
    {
      "bvid": "BV1rpWjevEip",
      "aid": 113006243481679,
      "title": "Python tutorial course",
      "author": "Python Official",
      "mid": 3546597933714079,
      "play": 20709037,
      "danmaku": 132790,
      "reply": 2457,
      "favorite": 69881,
      "coin": 18662,
      "duration": "39:58",
      "pic": "https://i2.hdslb.com/bfs/archive/abc123.jpg",
      "pubdate": 1660000000,
      "tag": "Python,programming"
    }
  ],
  "count": 1000,
  "page": 1,
  "pages": 50,
  "page_size": 20,
  "has_more": true,
  "meta": { "endpoint_family": "search" }
}

What you can build

Structured data for real applications. Here are some ideas.

Video Discovery

Search Bilibili videos by keyword with filters for type, ordering, duration and category, then paginate through results.

Content Analytics

Fetch video details with views, danmaku, replies, favorites, coins, shares and likes for content performance analysis.

Creator Research

Read uploader profiles with level, fans, follower count and verification status, then list their uploaded videos.

Comment Sentiment

Get video comments with like counts and reply counts for audience engagement and sentiment analysis.

Bilibili scraper API

Bilibili API for video search, details, and comments

The Bilibili API is built for video analytics, creator research, and content discovery. Each search result carries the BV id, title, author, play count, danmaku count, reply count, favorite count, coin count, duration, thumbnail, publish date and tags. Detail responses add the full statistics, uploader profile and multi-part video pages.

Search videos by keyword with type, ordering, duration and category filters.

Fetch video details with views, danmaku, replies, favorites, coins, shares and likes.

Read uploader profiles with level, fans, follower count and verification status.

List uploaded videos with pagination and get video comments with like counts.

Choose the right Bilibili API endpoint

Use Video Search for content discovery

Search Bilibili videos by keyword with filters and pagination to collect matching videos with full metadata.

Open Bilibili Search API docs

Use Video Details for content analytics

Open a video by BV id to get the full statistics, uploader profile and multi-part video pages.

Open Bilibili Video API docs

Use User Profile for creator research

Pass an uploader mid to get the public profile with level, fans, follower count and verification status.

Open Bilibili User API docs

Available endpoints

Everything you need in one API.

Scrappa vs ScrapingBee / ScraperAPI

See how Scrappa compares to the official API.

Bilibili video data as JSON
Scrappa:
ScrapingBee / ScraperAPI: Build your own parser
Uploader profiles and videos
Scrappa:
ScrapingBee / ScraperAPI: Parse it yourself
Video comments
Scrappa:
ScrapingBee / ScraperAPI:
Price per 1k requests
Scrappa: From $0.20
ScrapingBee / ScraperAPI: Varies by credits per request
Unified API key
Scrappa: Yes (80+ APIs)
ScrapingBee / ScraperAPI: Scraping only
Free tier
Scrappa: 500 credits/month
ScrapingBee / ScraperAPI: Trial credits

Key features

Video search with keyword, type, ordering, duration and category filters
Video details with views, danmaku, replies, favorites, coins, shares and likes
Uploader profiles with level, fans, follower count and verification status
Uploaded videos list with pagination and video comments with like counts
Multi-part video pages with cid, part name and duration

Frequently asked questions

No. Scrappa is an independent service and is not affiliated with or endorsed by Bilibili. The Bilibili API returns structured JSON from public video data through a Scrappa API key.

Every Scrappa account includes 500 free credits each month. After that, each request costs one credit, which works out to $0.20 to $0.30 per 1,000 requests depending on the credit pack or plan. Failed requests are never charged.

Search uses a 1-based page parameter with 20 results per page and up to 50 pages. User videos and comments use pn/ps parameters. The response returns has_more as true while more pages exist. A valid empty result is a successful response.

The video details endpoint requires from=search to bypass baseline anti-bot. The user videos endpoint requires app signing with common params. All other endpoints work with plain parameters.

Start using the Bilibili API

Sign up and get 500 free credits. No credit card required.