Docs / Platforms / Bilibili3 operations / 3 live / 0 mapped

Bilibili

Bilibili is exposed through 3 live operations covering posts, videos and catalog records, trends, markets and live signals, comments and reviews. The full reference is below; mapped routes are explicitly disabled and never charge credits.
Overview & use cases

What Bilibili data is for.

Live Bilibili capabilities, credit floor, and typical lookup workflows.

Use Bilibili when you need posts, videos and catalog records, trends, markets and live signals, comments and reviews without maintaining a separate adapter for each route. Start with the lowest-cost live operation, then add search or list endpoints only when the response shape fits your product.

Live

3

Paid only

0

Price floor

2 cr

Use cases

  • Bilibili video

    Call /v1/bilibili/videos/{bvid} when you need a normalized bilibili video response with the same credit and cache rules as the rest of the catalog.

  • Bilibili popular videos

    Call /v1/bilibili/popular when you need a normalized bilibili popular videos response with the same credit and cache rules as the rest of the catalog.

  • Bilibili video comments

    Call /v1/bilibili/videos/{aid}/comments when you need a normalized bilibili video comments response with the same credit and cache rules as the rest of the catalog.

Contract / auth

Auth & error contract.

The platform follows the same gateway and billing rules as the rest of CleanFetch.

Auth

Send x-api-key: cf_live_... or Authorization: Bearer cf_live_.... A missing or invalid key returns 401.

Billing

Successful lookups charge the listed credits. Cache hits, 5xx responses and mapped 503 routes cost 0 credits.

Limits

429 includes Retry-After and costs nothing. Paid-only routes return 403 plan_required before any provider call.

Mapped routes

Every route on this page is live.

Reference / 3

Operations

Live routes are expanded first with parameters, request example and response fields. Mapped routes are compact placeholders.

Live / 3

ready
GET

Bilibili video

/v1/bilibili/videos/{bvid}
2 credits3/day free0.5h cache
NameTypeRequiredDescription
bvidstringyesBilibili BV video id.
Request
curl -s "https://api.cleanfetch.dev/v1/bilibili/videos/{bvid}?bvid=example" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "data": {
    "platform": "bilibili",
    "count": 1,
    "items": [
      {
        "id": "123456",
        "url": "https://example.com/item/123456",
        "text": "Example public post returned by this endpoint.",
        "createdAt": "2026-11-30T00:00:00.000Z",
        "author": {
          "username": "nasa",
          "name": "NASA"
        }
      }
    ]
  },
  "meta": {
    "lookupStatus": "found",
    "creditsCharged": 2,
    "cached": false
  }
}

Returns

platformcountitems[].iditems[].urlitems[].textitems[].createdAt

Input notes

  • • Free accounts can call this endpoint up to 3 times per day.
  • • Responses are cached for 0.5h.
  • • A public record that does not exist returns not_found and is charged once.
GET

Bilibili video comments

/v1/bilibili/videos/{aid}/comments
3 credits3/day free0.08333333333333333h cache
NameTypeRequiredDescription
aidstringyesBilibili numeric video id.
limitstringnoMaximum records to return, from 1 to 20.
pagestringnoLookup parameter.
sortstringnoLookup parameter.
Request
curl -s "https://api.cleanfetch.dev/v1/bilibili/videos/{aid}/comments?aid=example" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "data": {
    "platform": "bilibili",
    "count": 1,
    "items": [
      {
        "id": "123456",
        "url": "https://example.com/item/123456",
        "text": "Example public post returned by this endpoint.",
        "createdAt": "2026-11-30T00:00:00.000Z",
        "author": {
          "username": "nasa",
          "name": "NASA"
        }
      }
    ]
  },
  "meta": {
    "lookupStatus": "found",
    "creditsCharged": 3,
    "cached": false
  }
}

Returns

platformcountitems[].iditems[].urlitems[].textitems[].createdAt

Input notes

  • • Free accounts can call this endpoint up to 3 times per day.
  • • Responses are cached for 0.08333333333333333h.
  • • A public record that does not exist returns not_found and is charged once.
FAQ / Bilibili

Common Bilibili API questions

Pricing, caching, authentication, and placeholder behavior.
How many Bilibili operations are live?

3 of 3 cataloged operations are live. Every operation in this reference is live.

What does a Bilibili call cost?

Live operations range from 2 to 3 credits. 3 are available on the free daily cap and 0 are paid-only. Cache hits cost 0 credits.

Are Bilibili responses cached?

Successful responses are cached between 0.08333333333333333h and 0.5h. A cache hit costs 0 credits and does not consume the free daily cap.

How do I authenticate Bilibili requests?

Send x-api-key or Authorization: Bearer with a CleanFetch key. Missing or invalid keys return 401; paid-only routes return 403 plan_required; rate limits return 429 with Retry-After. A 5xx or timeout costs 0 credits.

ready