当前浏览的是 v7 预览版文档(v7 尚未正式发布,API 可能随版本调整)。本页是 v7 新增内容,去 v6 正式版文档首页
@ikenxuan/amagi

专栏文章基本信息

取文章页元信息(标题、头图、作者、阅读/点赞);正文用 `articleContent`。

GET
/api/bilibili/fetch_article_info

Authorization

bearerAuth
AuthorizationBearer <token>

仅在 startServer 传了 token 时生效

In: header

Query Parameters

id*string

专栏 ID,取自专栏链接

Length1 <= length

Response Body

application/json

application/json

curl -X GET "https://example.com/api/bilibili/fetch_article_info?id=string"
{  "success": true,  "data": {    "code": 0,    "data": {      "attention": true,      "author_name": "string",      "banner_url": "string",      "coin": 0,      "disable_share": true,      "favorite": true,      "image_urls": [        "string"      ],      "in_list": true,      "is_author": true,      "like": 0,      "location": "string",      "mid": 0,      "next": 0,      "origin_image_urls": [        "string"      ],      "pre": 0,      "share_channels": [        {          "name": "string",          "picture": "string",          "share_channel": "string"        }      ],      "shareable": true,      "show_later_watch": true,      "show_small_window": true,      "stats": {        "coin": 0,        "dislike": 0,        "dynamic": 0,        "favorite": 0,        "like": 0,        "reply": 0,        "share": 0,        "view": 0      },      "title": "string",      "type": 0,      "video_url": "string"    },    "message": "string",    "ttl": 0  },  "error": {    "kind": "validation",    "code": "string",    "message": "string",    "retryable": true,    "platform": {      "code": "string",      "message": "string"    },    "http": {      "status": 0,      "statusText": "string"    },    "issues": [      {        "path": "string",        "message": "string",        "received": null      }    ]  },  "message": "string",  "meta": {    "requestId": "string",    "clientId": "string",    "platform": "douyin",    "endpoint": "string",    "durationMs": 0,    "attempts": 0,    "trace": [      {        "url": "string",        "method": "string",        "status": 0,        "durationMs": 0,        "reason": "initial",        "retryOf": "string"      }    ]  },  "requestPath": "/api/bilibili/fetch_one_video?bvid=BV1xx"}