Back to App

API Documentation

Bilibili User Info API Reference

Rate Limiting

All API endpoints are rate limited to 1 request per second. Requests exceeding this limit will be queued.

GET /info/:mid

Full User Info

Get comprehensive user information including profile, follower/following count, likes, video count, and total video plays. This is the recommended endpoint for complete user statistics.

Path Parameters

Name Type Description
mid required integer Bilibili user ID

Example Request

curl https://bili.owo.nz/info/2

Response Fields

card.name Username
card.face Avatar URL
card.sign User bio/signature
follower Follower count
card.attention Following count
like_num Total likes received
archive_count Number of videos uploaded
archive_view Total video play count
article_view Total article read count

Example Response

{
  "success": true,
  "data": {
    "card": {
      "mid": "2",
      "name": "碧诗",
      "face": "https://i0.hdslb.com/bfs/face/xxx.jpg",
      "sign": "bilibili",
      "level_info": { "current_level": 6 },
      "vip": { "vipStatus": 1 }
    },
    "follower": 919515,
    "like_num": 3547978,
    "archive_count": 37,
    "archive_view": 213567370,
    "article_view": 3230808
  },
  "error": null
}
GET /card/:mid

User Card

Get user card information including profile, follower count, following count, and more.

Path Parameters

Name Type Description
mid required integer Bilibili user ID

Example Request

curl https://bili.owo.nz/card/2

Response Fields

card.name Username
card.face Avatar URL
card.sign User bio/signature
card.level_info User level information
card.vip VIP membership info
follower Follower count
card.attention Following count
like_num Total likes received
archive_count Number of videos uploaded

Example Response

{
  "success": true,
  "data": {
    "card": {
      "mid": "2",
      "name": "碧诗",
      "face": "https://i0.hdslb.com/bfs/face/xxx.jpg",
      "sign": "bilibili",
      "level_info": { "current_level": 6 },
      "vip": { "vipStatus": 1 }
    },
    "follower": 919515,
    "like_num": 3547978,
    "archive_count": 37
  },
  "error": null
}
GET /stat/:mid

Relation Statistics

Get follower and following count only. Use this for lightweight requests when you only need statistics.

Path Parameters

Name Type Description
mid required integer Bilibili user ID

Example Request

curl https://bili.owo.nz/stat/2

Example Response

{
  "success": true,
  "data": {
    "mid": 2,
    "following": 234,
    "whisper": 0,
    "black": 0,
    "follower": 919515
  },
  "error": null
}
GET /user/:mid

User Space Info

Get detailed user space information with Wbi signature. Returns comprehensive user profile data but does not include follower/following counts.

Path Parameters

Name Type Description
mid required integer Bilibili user ID

Example Request

curl https://bili.owo.nz/user/2
GET /proxy

Image Proxy

Proxy for Bilibili CDN images to avoid CORS issues. Only allows URLs from Bilibili image domains (i0.hdslb.com, i1.hdslb.com, i2.hdslb.com).

Query Parameters

Name Type Description
url required string Full URL of the Bilibili image

Example Request

curl "https://bili.owo.nz/proxy?url=https://i0.hdslb.com/bfs/face/xxx.jpg"

Usage in HTML

<img src="/proxy?url=https://i0.hdslb.com/bfs/face/xxx.jpg" />