XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/bilibili-API-collect

Add Getuser & Update space.md (#957)

* Update search.proto * Update view.proto add getuser * Update view.proto * Update space.md * Update space.md

6659958
stmtc233 <69023595+stmtc233@users.noreply.github.com>
提交于

代码差异

2 个文件 +322 -0
Modified docs/user/space.md +285 -0
@@ -44,6 +44,9 @@
44 44 - [查询用户追番预览列表](#查询用户追番预览列表)
45 45 - [查询用户追番(追剧)明细](#查询用户追番追剧明细)
46 46 - [查询用户关注的TAG(话题)](#查询用户关注的tag话题)
47 - [动作](#动作)
48 - [最近投币视频列表](#最近投币视频列表)
49 - [最近点赞视频列表](#最近点赞视频列表)
47 50
48 51 ---
49 52
@@ -3661,3 +3664,285 @@ curl -G 'http://space.bilibili.com/ajax/tags/getSubList' \
3661 3664 ```
3662 3665
3663 3666 </details>
3667
3668
3669 </details>
3670
3671 ## 动作
3672
3673 ### 最近点赞视频列表
3674
3675 > https://app.biliapi.net/x/v2/space/likearc
3676
3677 *请求方式:GET*
3678
3679 认证方式:Cookie(SESSDATA)
3680
3681
3682 **url参数:**
3683
3684 | 参数名 | 类型 | 内容 | 必要性 | 备注 |
3685 | ------ | ---- | ----------- | ------ | ------------- |
3686 | vmid | num | 目标用户mid | 必要 | |
3687 | pn | num | 页码 | 非必要 | 默认为1 最大30 |
3688 | ps | num | 每页项数 | 非必要 | 默认为20 最大20 |
3689
3690 **json回复:**
3691
3692 根对象:
3693
3694 | 字段 | 类型 | 内容 | 备注 |
3695 | ------- | ---- | -------- | ---------- |
3696 | code | num | 返回值 | 0:成功 |
3697 | message | str | 错误信息 | 默认为0 |
3698 | ttl | num | 1 | |
3699 | data | obj | 信息本体 | |
3700
3701 `data`对象:
3702
3703 | 字段 | 类型 | 内容 | 备注 |
3704 | ------ | ----- | ------------ | ------------ |
3705 | count | num | 点赞数 |最大600 |
3706 | item | array | 点赞视频列表 | |
3707
3708
3709 `data`中的`item`数组中的对象:
3710
3711 | 字段 | 类型 | 内容 | 备注 |
3712 | --------------- | ---- | --------------- | -------------------------------- |
3713 | author | str | up主名字 | |
3714 | cover | str | 封面图片url | |
3715 | ctime | num | 点赞时间 | |
3716 | danmaku | num | 弹幕数 | 时间戳 |
3717 | play | num | 播放量 | |
3718 | title | str | 视频标题 | |
3719 | param | str | av号 | |
3720
3721
3722 **示例:**
3723
3724 用户`mid=2`的点赞列表
3725
3726 ```shell
3727 curl -G 'https://app.biliapi.net/x/v2/space/likearc' \
3728 --data-urlencode 'vmid=2' \
3729 --data-urlencode 'ps=20' \
3730 --data-urlencode 'pn=1' \
3731 ```
3732
3733 <details>
3734 <summary>查看响应示例:</summary>
3735
3736 ```json
3737 {
3738 "code": 0,
3739 "message": "0",
3740 "ttl": 1,
3741 "data": {
3742 "count": 2,
3743 "item": [
3744 {
3745 "title": "兄弟难舍也难分",
3746 "subtitle": "",
3747 "tname": "",
3748 "cover": "http://i1.hdslb.com/bfs/archive/58f031a52eab6d5faec5a39dfaab5728f65672d5.jpg",
3749 "cover_icon": "",
3750 "uri": "bilibili://video/624351941?player_width=1080\u0026player_height=1920\u0026player_rotate=0",
3751 "param": "624351941",
3752 "goto": "av",
3753 "length": "",
3754 "duration": 216,
3755 "is_popular": false,
3756 "is_steins": false,
3757 "is_ugcpay": false,
3758 "is_cooperation": false,
3759 "is_pgc": false,
3760 "is_live_playback": false,
3761 "is_pugv": false,
3762 "is_fold": false,
3763 "play": 423652,
3764 "danmaku": 362,
3765 "ctime": 1706320200,
3766 "ugc_pay": 0,
3767 "author": "甜蜜老张",
3768 "state": true,
3769 "videos": 0,
3770 "view_content": "42.4万",
3771 "icon_type": 0,
3772 "publish_time_text": ""
3773 },
3774 {
3775 "title": "技能搭配不累,共赴热血团战!",
3776 "subtitle": "",
3777 "tname": "",
3778 "cover": "http://i2.hdslb.com/bfs/archive/2094b8e0be819222d320e2841ee1c39f5f2e4357.jpg",
3779 "cover_icon": "",
3780 "uri": "bilibili://video/793597196?player_width=1280\u0026player_height=720\u0026player_rotate=0",
3781 "param": "793597196",
3782 "goto": "av",
3783 "length": "",
3784 "duration": 41,
3785 "is_popular": false,
3786 "is_steins": false,
3787 "is_ugcpay": false,
3788 "is_cooperation": false,
3789 "is_pgc": false,
3790 "is_live_playback": false,
3791 "is_pugv": false,
3792 "is_fold": false,
3793 "play": 1237,
3794 "danmaku": 2,
3795 "ctime": 1704855559,
3796 "ugc_pay": 0,
3797 "author": "38047aa1-cb8a-4",
3798 "state": true,
3799 "videos": 0,
3800 "view_content": "1237",
3801 "icon_type": 0,
3802 "publish_time_text": ""
3803 }
3804 ]
3805 }
3806 }
3807 ```
3808
3809 </details>
3810
3811 ### 最近投币视频列表
3812
3813 > https://app.biliapi.net/x/v2/space/coinarc
3814
3815 *请求方式:GET*
3816
3817 认证方式:Cookie(SESSDATA)
3818
3819 **url参数:**
3820
3821 | 参数名 | 类型 | 内容 | 必要性 | 备注 |
3822 | ------ | ---- | ----------- | ------ | -------- |
3823 | vmid | num | 目标用户mid | 必要 | |
3824 | pn | num | 页码 | 非必要 | 默认为1 |
3825 | ps | num | 每页项数 | 非必要 | 默认为20 |
3826
3827 **json回复:**
3828
3829 根对象:
3830
3831 | 字段 | 类型 | 内容 | 备注 |
3832 | ------- | ---- | -------- | ------------ |
3833 | code | num | 返回值 | 0:成功 |
3834 | message | str | 错误信息 | 默认为0 |
3835 | ttl | num | 1 | |
3836 | data | obj | 信息本体 | |
3837
3838 `data`对象:
3839
3840 | 字段 | 类型 | 内容 | 备注 |
3841 | ------ | ----- | ------------ | ------------ |
3842 | count | num | 投币数 | |
3843 | item | array | 投币视频列表 | |
3844
3845
3846 `data`中的`item`数组中的对象:
3847
3848 | 字段 | 类型 | 内容 | 备注 |
3849 | --------------- | ---- | --------------- | -------------------------------- |
3850 | author | str | up主名字 | |
3851 | cover | str | 封面图片url | |
3852 | ctime | num | 投币时间 | |
3853 | danmaku | num | 弹幕数 | 时间戳 |
3854 | play | num | 播放量 | |
3855 | title | str | 视频标题 | |
3856 | param | str | av号 | |
3857
3858
3859
3860 **示例:**
3861
3862 用户`mid=2`的投币列表
3863
3864 ```shell
3865 curl -G 'https://app.biliapi.net/x/v2/space/coinarc' \
3866 --data-urlencode 'vmid=2' \
3867 --data-urlencode 'ps=2' \
3868 --data-urlencode 'pn=1' \
3869 ```
3870
3871 <details>
3872 <summary>查看响应示例:</summary>
3873
3874 ```json
3875 {
3876 "code": 0,
3877 "message": "0",
3878 "ttl": 1,
3879 "data": {
3880 "count": 2,
3881 "item": [
3882 {
3883 "title": "请打开麦克风交流",
3884 "subtitle": "",
3885 "tname": "",
3886 "cover": "http://i1.hdslb.com/bfs/archive/cf9aea43b72354ee8c9486e4bf8e07cb38920a65.jpg",
3887 "cover_icon": "",
3888 "uri": "bilibili://video/496832459?player_width=1080\u0026player_height=1920\u0026player_rotate=0",
3889 "param": "496832459",
3890 "goto": "av",
3891 "length": "",
3892 "duration": 134,
3893 "is_popular": false,
3894 "is_steins": false,
3895 "is_ugcpay": false,
3896 "is_cooperation": false,
3897 "is_pgc": false,
3898 "is_live_playback": false,
3899 "is_pugv": false,
3900 "is_fold": false,
3901 "play": 706480,
3902 "danmaku": 167,
3903 "ctime": 1706431476,
3904 "ugc_pay": 0,
3905 "author": "三个猪鼓励",
3906 "state": true,
3907 "videos": 0,
3908 "view_content": "70.6万",
3909 "icon_type": 0,
3910 "publish_time_text": ""
3911 },
3912 {
3913 "title": "【裏命】地球的内部【いよわ】【中文CC字幕】",
3914 "subtitle": "",
3915 "tname": "",
3916 "cover": "http://i0.hdslb.com/bfs/archive/e087224ae4a5ff9ef3f2f6b7644d635276b8f5c6.jpg",
3917 "cover_icon": "",
3918 "uri": "bilibili://video/860645391?player_width=1920\u0026player_height=1080\u0026player_rotate=0",
3919 "param": "860645391",
3920 "goto": "av",
3921 "length": "",
3922 "duration": 264,
3923 "is_popular": false,
3924 "is_steins": false,
3925 "is_ugcpay": false,
3926 "is_cooperation": false,
3927 "is_pgc": false,
3928 "is_live_playback": false,
3929 "is_pugv": false,
3930 "is_fold": false,
3931 "play": 194375,
3932 "danmaku": 173,
3933 "ctime": 1669713070,
3934 "ugc_pay": 0,
3935 "author": "精神安定剤",
3936 "state": true,
3937 "videos": 0,
3938 "view_content": "19.4万",
3939 "icon_type": 0,
3940 "publish_time_text": ""
3941 }
3942 ]
3943 }
3944 }
3945 ```
3946
3947 </details>
3948
Modified grpc_api/bilibili/app/view/v1/view.proto +37 -0
@@ -48,6 +48,8 @@ service View {
48 48 rpc SeasonWidgetExpose(SeasonWidgetExposeReq) returns (SeasonWidgetExposeReply);
49 49 //
50 50 rpc GetArcsPlayer(GetArcsPlayerReq) returns (GetArcsPlayerReply);
51 //
52 rpc GetUser(GetUserReq) returns (GetUserReply);
51 53 }
52 54
53 55 // 活动页资源包
@@ -881,6 +883,20 @@ message GetArcsPlayerReq {
881 883 bilibili.app.archive.middleware.v1.PlayerArgs player_args = 2;
882 884 }
883 885
886 //
887 message GetUserReq {
888 //
889 int64 aid = 1;
890 //
891 int64 up_mid = 1;
892 }
893
894 //
895 message GetUserReply {
896 //
897 User like_list = 1;
898 }
899
884 900 //
885 901 message GoodsInfo {
886 902 //
@@ -2121,6 +2137,27 @@ message TIcon {
2121 2137 string icon = 1;
2122 2138 }
2123 2139
2140 //
2141 message User {
2142 //
2143 int64 mid = 1;
2144 //
2145 string name = 2;
2146 //
2147 string face = 3;
2148 //
2149 bool isFollow = 4;
2150 //
2151 int64 isAttention = 5;
2152 //
2153 int64 isInterrelation = 6;
2154 //
2155 int64 follower = 7;
2156 //
2157 string interactDesc = 8;
2158 //
2159 }
2160
2124 2161 // UGC视频合集信息
2125 2162 message UgcSeason {
2126 2163 // 合集id