File size: 4,898 Bytes
0aee47a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
{
  "info": {
    "timeline": {
      "url": "https://api.bilibili.com/pgc/web/timeline", 
      "method": "GET", 
      "verify": false, 
      "params": {
        "types": "int: 类型, 1. 番剧, 3. 影视, 4. 国创", 
        "before": "几天前开始, 0~7", 
        "after": "几天后结束, 0~7"
      }
    },
    "index": {
      "url": "https://api.bilibili.com/pgc/season/index/result",
      "method": "GET",
      "verify": false,
      "params": {
        "order": "int: 排序字段",
        "sort": "int: 排序方式",
        "page": "int: 页数",
        "season_type": "番剧类型",
        "pagesize": "int: 每页数量",
        "type": "int: unknown"
      }
    },
    "meta": {
      "url": "https://api.bilibili.com/pgc/review/user",
      "method": "GET",
      "verify": false,
      "params": {
        "media_id": "int: 番剧的 media_id(URL 中的/mdxxxx)"
      },
      "comment": "获取番剧信息"
    },
    "episodes_list": {
      "url": "https://api.bilibili.com/pgc/web/season/section",
      "method": "GET",
      "verify": false,
      "params": {
        "season_id": "int: 番剧的 season_id"
      },
      "comment": "获取番剧剧集列表"
    },
    "season_status": {
      "url": "https://api.bilibili.com/pgc/web/season/stat",
      "method": "GET",
      "verify": false,
      "params": {
        "season_id": "int: 番剧的 season_id"
      },
      "comment": "获取番剧播放量,追番等信息"
    },
    "short_comment": {
      "url": "https://api.bilibili.com/pgc/review/short/list",
      "method": "GET",
      "verify": false,
      "params": {
        "media_id": "int: 番剧的 media_id",
        "ps": "const int: 20",
        "sort": "int: 排序方式 0 默认 1 按时间倒序",
        "cursor": "int: 循环获取用,第一次调用本 API 返回中的 next 值"
      },
      "comment": "获取番剧短评"
    },
    "long_comment": {
      "url": "https://api.bilibili.com/pgc/review/long/list",
      "method": "GET",
      "verify": false,
      "params": {
        "media_id": "int: 番剧的 media_id",
        "ps": "const int: 20",
        "sort": "int: 排序方式 0 默认 1 按时间倒序",
        "cursor": "int: 循环获取用,第一次调用本 API 返回中的 next 值"
      },
      "comment": "获取番剧长评"
    },
    "relate_video": {
      "url": "https://api.bilibili.com/x/web-interface/tag/top?pn=10&ps=24&tid=8583026",
      "method": "GET",
      "verify": false,
      "params": {
        "tid": "int: 频道 ID",
        "ps": "const int: 20",
        "sort": "int: 排序方式 0 默认 1 按时间倒序",
        "cursor": "int: 循环获取用,第一次调用本 API 返回中的 next 值"
      },
      "comment": "获取番剧长评"
    },
    "collective_info": {
      "url": "https://api.bilibili.com/pgc/view/web/season",
      "method": "GET",
      "verify": false,
      "params": {
        "season_id": "int: B 站每个剧集会对应一个唯一 ID"
      },
      "comment": "获取一个剧集的全面概括信息"
    },
    "collective_info_oversea": {
      "url": "https://bangumi.bilibili.com/view/web_api/season",
      "method": "GET",
      "verify": false,
      "params": {
        "season_id": "int: B 站每个剧集会对应一个唯一 ID,适用于港澳台番剧和内陆番剧"
      },
      "comment": "获取一个剧集的全面概括信息"
    },
    "playurl": {
      "url": "https://api.bilibili.com/pgc/player/web/playurl",
      "method": "GET",
      "verify": false,
      "params": {
        "avid": "int: av 号",
        "cid": "int: 分 P 编号",
        "qn": "int: 视频质量编号,最高 127",
        "otype": "const str: json",
        "fnval": "const int: 4048",
        "platform": "int: 平台"
      },
      "comment": "视频下载的信息,下载链接需要提供 headers 伪装浏览器请求(Referer 和 User-Agent)"
    }
  },
  "operate": {
    "follow_add": {
      "url": "https://api.bilibili.com/pgc/web/follow/add",
      "method": "POST",
      "verify": true,
      "data": {
        "season_id": "int: 番剧的 season_id"
      },
      "comment": "追番"
    },
    "follow_del": {
      "url": "https://api.bilibili.com/pgc/web/follow/del",
      "method": "POST",
      "verify": true,
      "data": {
        "season_id": "int: 番剧的 season_id"
      },
      "comment": "取消追番"
    },
    "follow_status": {
      "url": "https://api.bilibili.com/pgc/web/follow/status/update",
      "method": "POST",
      "verify": true,
      "data": {
        "season_id": "int: 番剧的 season_id",
        "status": "int: 1 想看 2 在看 3 已看"
      },
      "comment": "追番状态"
    }
  }
}