Bilibili post API
REST 呼び出し1回で Bilibili の post データを取得——全プラットフォーム共通の安定した JSON スキーマに正規化。
- 公開エンドポイント 1 件
- GET /v1/bilibili/posts/{id}
契約サマリー(英語): Get a normalized Bilibili video (capability bilibili.post)
- 正規化されたレスポンスエンティティ
- bilibili/post
- capability
- bilibili.post
すべてのレスポンスには新鮮度(cache / default / live)と課金メタデータも含まれます。
活用シーン
- 構造化された {{platform}} 投稿(本文・指標・タイムスタンプ・メディア参照)でコンテンツ分析パイプラインを稼働。
- 原文とエンゲージメント数が必要なモデレーション・調査・モニタリングのワークフローを支えます。
- 脆い画面スクレイピングではなく、安定した正規化 JSON で {{platform}} コンテンツをアーカイブ。
レスポンスフィールド
Bilibili Post (normalized)
Normalized Bilibili post — the ONLY upper-layer format; provider-private fields are dropped. Serves bilibili.post and the post lists of /v1/bilibili.
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| id | string | 必須 | Platform-native post id (BV id / status id / answer or article id). |
| platform | "bilibili" | 必須 | — |
| type | "post" | 必須 | — |
| author.id | string | 必須 | Author platform id. |
| author.username | string | 必須 | Author addressing key without leading @. |
| author.display_name | string | null | 必須 | Author display name. |
| author.verified | boolean | 必須 | — |
| title | string | null | 任意 | Post title (the video title, article title or — for zhihu answers — the parent question title). |
| text | string | null | 必須 | Post text (desc/status/excerpt; null for media-only posts). |
| created_at | string | 必須 | Post publish time, UTC RFC3339. |
| metrics.likes | integer | 必須 | Like count (aggregate like/coins equivalent, recorded without conversion). |
| metrics.comments | integer | 必須 | Comment count. |
| metrics.collects | integer | 必須 | Collect/favorite count. |
| metrics.views | integer | 必須 | Play/view count. |
| attachments | object[] | 任意 | Media attachments (max 8): photo urls and/or the video block. |
| fetched_at | string | 必須 | Normalization time of the stored snapshot (UTC). |
フィールドの注記は契約英語の原文のまま表示されます。
レスポンスメタデータ
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
| mode | cache | default | live | 必須 | Effective mode after merging param > max_age > source policy (D-004). |
| age_seconds | integer | null | 任意 | Age of served data; null when unknown. |
| source_layer | cache | db | upstream | 必須 | Which layer served the response (PRD §10). |
| stale | boolean | 任意 | True when stale data was served under stale_if_error / SWR (D-004). |
| billing.amount_credits | integer | 必須 | Micro-USD (1e-6 USD) actually charged for this request. |
| billing.cache_hit | boolean | 必須 | — |
フィールドの注記は契約英語の原文のまま表示されます。
リクエストとレスポンスの例
/v1/bilibili/posts/{id}curl -H "Authorization: Bearer $MESHDATA_API_KEY" \
"https://api.fetchpi.com/v1/bilibili/posts/1842951234567890123"{
"data": {
"id": "BV1ma101c0001",
"platform": "bilibili",
"type": "post",
"author": {
"id": "3255000122",
"username": "MeshData 哔哩站",
"display_name": "MeshData 哔哩站",
"verified": true
},
"title": "哔哩哔哩:数据 API 实战",
"text": "一条关于数据 API 的视频。",
"created_at": "2026-09-16T11:20:00Z",
"metrics": {
"likes": 18220,
"comments": 940,
"collects": 2100,
"views": 480000
},
"attachments": [
{
"type": "video",
"preview_image_url": "https://cdn.example.com/cover/bilibili-BV1ma101c0001.jpeg"
}
],
"fetched_at": "2026-09-21T09:00:00Z"
},
"meta": {
"request_id": "req_01HTXQ8Z9HTQ",
"freshness": {
"mode": "default",
"age_seconds": 0,
"source_layer": "upstream",
"stale": false
},
"billing": {
"amount_credits": 100,
"cache_hit": false
}
}
}無料デモ
無料アカウントを作成して API キーを取得すれば、ブラウザ版 Playground からこのエンドポイントを呼び出せます。
Playground で試すこのエンドポイントのパラメータ表・エラーコード・レスポンスの詳細は API ドキュメントにあります。
エンドポイントリファレンスを開くよくある質問
レスポンスにはどんなコンテンツ項目が含まれますか?
正規化されたコンテンツエンティティ(本文・投稿者・タイムスタンプ・エンゲージメント指標・メディア参照)を下記フィールド表の定義どおりに返し、新鮮度と課金メタデータも付きます。
このエンドポイントを無料で試せますか?
はい——アカウント登録後に API キーを取得すれば、コンソールの Playground から呼び出せます。
post ケイパビリティの課金は?
Data API はリクエスト単位のクレジット課金で、cache/live の新鮮度により倍率が変わります。最新のケイパビリティ別価格は料金ページをご確認ください。
料金
リクエスト単位のクレジット課金、cache/live の新鮮度オプション対応——最新価格は料金ページをご確認ください。