Amagi API 文档 - v5.6.3
    正在准备搜索索引...

    接口 BilibiliMethodOptionsMap

    interface BilibiliMethodOptionsMap {
        VideoInfoParams: { methodType: "单个视频作品数据"; bvid: string };
        VideoStreamParams: { methodType: "单个视频下载信息数据"; avid: number; cid: number };
        CommentParams: {
            methodType: "评论数据";
            type: number;
            oid: string;
            number?: number;
            mode?: 0 | 1 | 2 | 3;
            pagination_str?: string;
            plat?: number;
            seek_rpid?: string;
            web_location?: string;
        };
        UserParams: {
            methodType: "用户主页数据"
            | "用户主页动态列表数据"
            | "获取UP主总播放量";
            host_mid: number;
        };
        DynamicParams: { methodType: "动态详情数据"
        | "动态卡片数据"; dynamic_id: string };
        BangumiInfoParams: {
            methodType: "番剧基本信息数据";
            season_id?: string;
            ep_id?: string;
        };
        BangumiStreamParams: { methodType: "番剧下载信息数据"; cid: number; ep_id: string };
        LiveRoomParams: { methodType: "直播间信息" | "直播间初始化信息"; room_id: string };
        QrcodeParams: { methodType: "二维码状态"; qrcode_key: string };
        EmojiParams: { methodType: "Emoji数据" };
        LoginBaseInfoParams: { methodType: "登录基本信息" };
        GetQrcodeParams: { methodType: "申请二维码" };
        Bv2AvParams: { methodType: "BV转AV"; bvid: string };
        Av2BvParams: { methodType: "AV转BV"; avid: number };
    }
    索引

    属性

    VideoInfoParams: { methodType: "单个视频作品数据"; bvid: string }

    类型声明

    • methodType: "单个视频作品数据"
    • bvid: string

      稿件BVID

    VideoStreamParams: { methodType: "单个视频下载信息数据"; avid: number; cid: number }

    类型声明

    • methodType: "单个视频下载信息数据"
    • avid: number

      稿件AVID

    • cid: number

      稿件cid

    CommentParams: {
        methodType: "评论数据";
        type: number;
        oid: string;
        number?: number;
        mode?: 0 | 1 | 2 | 3;
        pagination_str?: string;
        plat?: number;
        seek_rpid?: string;
        web_location?: string;
    }

    类型声明

    • methodType: "评论数据"
    • type: number

      评论区类型代码,详见 评论区类型代码

    • oid: string

      稿件ID,也就是AV号去除前缀后的内容

    • 可选number?: number

      获取的评论数量,默认20

      20
      
    • 可选mode?: 0 | 1 | 2 | 3

      排序方式 默认为3 0和3: 仅热度 1: 按热度+按时间 2: 仅时间

      3
      
    • 可选pagination_str?: string

      翻页信息,用于懒加载分页 首次请求时不传,后续请求使用上次响应中的 data.cursor.pagination_reply.next_offset

    • 可选plat?: number

      平台类型

      1
      
    • 可选seek_rpid?: string

      当获取第一页评论时存在

    • 可选web_location?: string

      web位置参数

      1315875
      
    UserParams: {
        methodType: "用户主页数据" | "用户主页动态列表数据" | "获取UP主总播放量";
        host_mid: number;
    }

    类型声明

    • methodType: "用户主页数据" | "用户主页动态列表数据" | "获取UP主总播放量"
    • host_mid: number

      UP主UID

    DynamicParams: { methodType: "动态详情数据" | "动态卡片数据"; dynamic_id: string }

    类型声明

    • methodType: "动态详情数据" | "动态卡片数据"
    • dynamic_id: string

      动态ID

    BangumiInfoParams: {
        methodType: "番剧基本信息数据";
        season_id?: string;
        ep_id?: string;
    }

    类型声明

    BangumiStreamParams: { methodType: "番剧下载信息数据"; cid: number; ep_id: string }

    类型声明

    LiveRoomParams: { methodType: "直播间信息" | "直播间初始化信息"; room_id: string }

    类型声明

    • methodType: "直播间信息" | "直播间初始化信息"
    • room_id: string

      直播间ID

    QrcodeParams: { methodType: "二维码状态"; qrcode_key: string }

    类型声明

    • methodType: "二维码状态"
    • qrcode_key: string

      扫码登录秘钥

    EmojiParams: { methodType: "Emoji数据" }
    LoginBaseInfoParams: { methodType: "登录基本信息" }
    GetQrcodeParams: { methodType: "申请二维码" }
    Bv2AvParams: { methodType: "BV转AV"; bvid: string }

    类型声明

    • methodType: "BV转AV"
    • bvid: string

      视频BV号

    Av2BvParams: { methodType: "AV转BV"; avid: number }

    类型声明

    • methodType: "AV转BV"
    • avid: number

      视频AV号