哔哩哔哩bilibili 部分接口

哔哩哔哩bilibili 部分接口API

      • bilibili网站API
        • 获取动态
          • 参数
          • 响应示例

bilibili网站API

获取动态

GET https://api.vc.bilibili.com/dynamic_svr/v1/dynamic_svr/space_history

参数
名称 含义 示例 是否必需
visitor_uid 可能是访客的用户ID 0
host_uid 访问的动态主页UP的用户ID 9008159
offset_dynamic_id 页ID 0
need_top 暂不清楚 1
响应示例

GET https://api.vc.bilibili.com/dynamic_svr/v1/dynamic_svr/space_history?host_uid=9008159&offset_dynamic_id=0

{
    "code": 0,
    "msg": "",
    "message": "",
    "data": {
        "has_more": 1,
        "cards": [
            {
                "desc": {
                    "uid": 9008159,
                    "type": 16,
                    "rid": 2870864,
                    "acl": 0,
                    "view": 420946,
                    "repost": 28,
                    "comment": 552,
                    "like": 11259,
                    "is_liked": 0,
                    "dynamic_id": 353921256704982728,
                    "timestamp": 1581242114,
                    "pre_dy_id": 0,
                    "orig_dy_id": 0,
                    "orig_type": 0,
                    "user_profile": {
                        "info": {
                            "uid": 9008159,
                            "uname": "花花与三猫CatLive",
                            "face": "https://i1.hdslb.com/bfs/face/1871c834255ffea531f699164e70f0daebc7558b.jpg"
                        },
                        "card": {
                            "official_verify": {
                                "type": 0,
                                "desc": "bilibili 2019百大UP主、 知名UP主"
                            }
                        },
                        "vip": {
                            "vipType": 2,
                            "vipDueDate": 1606406400000,
                            "dueRemark": "",
                            "accessStatus": 0,
                            "vipStatus": 1,
                            "vipStatusWarn": "",
                            "themeType": 0,
                            "label": {
                                "path": ""
                            }
                        },
                        "pendant": {
                            "pid": 0,
                            "name": "",
                            "image": "",
                            "expire": 0
                        },
                        "decorate_card": {
                            "mid": 9008159,
                            "id": 37,
                            "card_url": "https://i0.hdslb.com/bfs/vip/ffbedda82ae66ada1945619a2debb74e7d855625.png",
                            "card_type": 1,
                            "name": "圣诞节快乐",
                            "expire_time": 0,
                            "card_type_name": "大会员",
                            "uid": 9008159,
                            "item_id": 37,
                            "item_type": 2,
                            "big_card_url": "https://i0.hdslb.com/bfs/vip/d7d539450386877cf4ec9ce6fc3728070680dd26.png",
                            "jump_url": "https://www.bilibili.com/h5/mall/card/detail?navhide=1&stahide=0&id=37",
                            "fan": {
                                "is_fan": 0,
                                "number": 0,
                                "color": ""
                            }
                        },
                        "rank": "10000",
                        "sign": "会有猫的。公众号/微博@花花与三猫CatLive;合作邮箱[email protected];Q群:318242314",
                        "level_info": {
                            "current_level": 6,
                            "current_min": 0,
                            "current_exp": 0,
                            "next_exp": "0"
                        }
                    },
                    "uid_type": 1,
                    "stype": 0,
                    "r_type": 1,
                    "inner_id": 0,
                    "status": 1,
                    "report": 0,
                    "dynamic_id_str": "353921256704982728",
                    "pre_dy_id_str": "0",
                    "orig_dy_id_str": "0",
                    "rid_str": "2870864"
                },
                "card": "{ \"user\": { \"uid\": \"9008159\", \"head_url\": \"https:\/\/i1.hdslb.com\/bfs\/face\/1871c834255ffea531f699164e70f0daebc7558b.jpg\", \"is_vip\": 1, \"name\": \"花花与三猫CatLive\" }, \"item\": { \"id\": 2870864, \"cover\": { \"default\": \"https:\/\/i0.hdslb.com\/bfs\/vc\/[email protected]\", \"unclipped\": \"https:\/\/i0.hdslb.com\/bfs\/vc\/f5ef57f503ee5c9cb7dbf61a5794b64c62b95d7a.jpg\" }, \"tags\": [ \"小视频\" ], \"description\": \"学校还没有开学,每天在家孝敬老母亲[赞了]\\n#喵星人#\", \"video_time\": 56, \"upload_time_text\": \"1小时前\", \"upload_time\": \"2020-02-09 17:55:14\", \"at_control\": \"\", \"video_playurl\": \"http:\/\/upos-hz-mirrorks3u.acgvideo.com\/dspxcode\/m200209ws18w1fo5wvp25x3qfdezaw1d-1-56.mp4?e=ig8euxZM2rNcNbdlhoNvNC8BqJIzNbfq9rVEuxTEnE8L5F6VnEsSTx0vkX8fqJeYTj_lta53NCM=&uipk=5&nbs=1&deadline=1581255989&gen=playurl&os=ks3u&oi=2886868247&trid=ded66c2c2b1a4b5a9eb458009b4542aes&platform=html5&upsig=5e0d0f566a695f28e0cd6a02c6946996&uparams=e,uipk,nbs,deadline,gen,os,oi,trid,platform&mid=0&wsTime=1581255989\", \"backup_playurl\": [ ], \"video_size\": \"16380324\", \"verify_status\": \"1\", \"verify_status_text\": \"审核通过\", \"reply\": 552, \"width\": 480, \"height\": 864, \"watched_num\": 958881 } }",
                "extend_json": "{\"from\":{\"emoji_type\":1,\"from\":\"\",\"verify\":{\"cc\":{\"nv\":1}}},\"like_icon\":{\"action\":\"\",\"action_url\":\"\",\"end\":\"\",\"end_url\":\"\",\"start\":\"\",\"start_url\":\"\"},\"topic\":{\"is_attach_topic\":1}}",
                "extra": {
                    "is_space_top": 0
                },
                "display": {
                    "topic_info": {
                        "topic_details": [
                            {
                                "topic_id": 1562,
                                "topic_name": "喵星人",
                                "is_activity": 0,
                                "topic_link": ""
                            }
                        ]
                    },
                    "emoji_info": {
                        "emoji_details": [
                            {
                                "emoji_name": "[赞了]",
                                "id": 84,
                                "package_id": 3,
                                "state": 0,
                                "type": 1,
                                "attr": 0,
                                "text": "[赞了]",
                                "url": "https://i0.hdslb.com/bfs/emote/40ded585bbd6328fc390076b5de224fd38b46793.png",
                                "meta": {
                                    "size": 1
                                },
                                "mtime": 1560325317
                            }
                        ]
                    }
                }
            },
            ...
        ],
        "next_offset": 348832489258825885,
        "_gt_": 0
    }
}

注:cards 为动态信息列表,has_more指示是否还有下一页(懒加载使用),next_offset 用作请求下一页的offset_dynamic_id参数

你可能感兴趣的:(nodejs,JavaScript)