VideoInfoParams
VideoInfoParams: { methodType: "videoInfo"; bvid: string }
类型声明
methodType: "videoInfo"
bvid: string
VideoStreamParams
VideoStreamParams: { methodType: "videoStream"; avid: number; cid: number }
类型声明
methodType: "videoStream"
avid: number
cid: number
CommentParams: { methodType: "comments"; type: CommentType; oid: string; number?: number; mode?: 0 | 1 | 2 | 3; pagination_str?: string; plat?: number; seek_rpid?: string; web_location?: string;} 类型声明
methodType: "comments"
oid: string
可选number?: number
可选mode?: 0 | 1 | 2 | 3
可选pagination_str?: string
可选plat?: number
可选seek_rpid?: string
可选web_location?: string
CommentReplyParams: { methodType: "commentReplies"; type: CommentType; oid: string; root: string; number?: number;} 类型声明
methodType: "commentReplies"
oid: string
root: string
可选number?: number
UserParams
UserParams: {
methodType:
| "userCard"
| "userDynamicList"
| "uploaderTotalViews"
| "userSpaceInfo";
host_mid: number;
}
类型声明
methodType: "userCard" | "userDynamicList" | "uploaderTotalViews" | "userSpaceInfo"
host_mid: number
DynamicParams
DynamicParams: {
methodType: "dynamicDetail" | "dynamicCard";
dynamic_id: string;
}
类型声明
methodType: "dynamicDetail" | "dynamicCard"
dynamic_id: string
BangumiInfoParams
BangumiInfoParams: {
methodType: "bangumiInfo";
season_id?: string;
ep_id?: string;
}
类型声明
methodType: "bangumiInfo"
可选season_id?: string
可选ep_id?: string
BangumiStreamParams
BangumiStreamParams: { methodType: "bangumiStream"; cid: number; ep_id: string }
类型声明
methodType: "bangumiStream"
cid: number
ep_id: string
LiveRoomParams
LiveRoomParams: { methodType: "liveRoomInfo" | "liveRoomInit"; room_id: string }
类型声明
methodType: "liveRoomInfo" | "liveRoomInit"
room_id: string
QrcodeParams
QrcodeParams: { methodType: "qrcodeStatus"; qrcode_key: string }
类型声明
methodType: "qrcodeStatus"
qrcode_key: string
EmojiParams
EmojiParams: { methodType: "emojiList" }
LoginBaseInfoParams
LoginBaseInfoParams: { methodType: "loginStatus" }
GetQrcodeParams
GetQrcodeParams: { methodType: "loginQrcode" }
Bv2AvParams
Bv2AvParams: { methodType: "bvToAv"; bvid: string }
类型声明
methodType: "bvToAv"
bvid: string
Av2BvParams
Av2BvParams: { methodType: "avToBv"; avid: number }
类型声明
methodType: "avToBv"
avid: number
ArticleParams
ArticleParams: { methodType: "articleContent"; id: string }
类型声明
methodType: "articleContent"
id: string
ArticleCardParams
ArticleCardParams: { methodType: "articleCards"; ids: string | string[] }
类型声明
methodType: "articleCards"
ids: string | string[]
ArticleInfoParams
ArticleInfoParams: { methodType: "articleInfo"; id: string }
类型声明
methodType: "articleInfo"
id: string
ColumnInfoParams
ColumnInfoParams: { methodType: "articleListInfo"; id: string }
类型声明
methodType: "articleListInfo"
id: string
DanmakuParams
DanmakuParams: {
methodType: "videoDanmaku";
cid: number;
segment_index?: number;
}
类型声明
methodType: "videoDanmaku"
cid: number
可选segment_index?: number
ApplyVoucherCaptchaParams
ApplyVoucherCaptchaParams: {
methodType: "captchaFromVoucher";
csrf?: string;
v_voucher: string;
}
类型声明
methodType: "captchaFromVoucher"
可选csrf?: string
v_voucher: string
ValidateCaptchaParams
ValidateCaptchaParams: {
methodType: "validateCaptcha";
csrf?: string;
challenge: string;
token: string;
validate: string;
seccode: string;
}
类型声明
methodType: "validateCaptcha"
可选csrf?: string
challenge: string
token: string
validate: string
seccode: string
B站 API 方法参数映射接口
每个键对应一种 API 方法,值为该方法所需的参数接口