API

注意

API 仍处于开发状态中, 并可能会有改动。欢迎提供建议!

RSSHub 提供下列 API:

# 可用公共路由列表

提示

protected_router.js下的路由不会被包含在此 API 返回的结果当中.

举例: https://rsshub.app/api/routes/bilibili (opens new window)

路由: /api/routes/:name?

参数:

成功请求将会返回 HTTP 状态码 200 OK 与 JSON 结果,格式如下:

{
    "status": "success",
    "data": {
        "bilibili": {
            "routes": [
                "/bilibili/user/video/:uid",
                "/bilibili/user/article/:uid",
                "/bilibili/user/fav/:uid",
                "/bilibili/user/coin/:uid",
                "/bilibili/user/dynamic/:uid",
                "/bilibili/user/followers/:uid",
                "/bilibili/user/followings/:uid",
                "/bilibili/user/channel/collections/:uid/:sid",
                "/bilibili/user/channel/series/:uid/:sid",
                "/bilibili/partion/:tid",
                "/bilibili/partion/ranking/:tid/:days?",
                "/bilibili/bangumi/:seasonid",
                "/bilibili/video/page/:aid",
                "/bilibili/video/reply/:aid",
                "/bilibili/link/news/:product",
                "/bilibili/live/room/:roomID",
                "/bilibili/live/search/:key/:order",
                "/bilibili/live/area/:areaID/:order",
                "/bilibili/fav/:uid/:fid",
                "/bilibili/blackboard",
                "/bilibili/mall/new",
                "/bilibili/mall/ip/:id",
                "/bilibili/ranking/:rid?/:day?",
                "/bilibili/topic/:topic"
            ]
        }
    },
    "message": "request returned 22 routes"
}
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

若无符合请求路由,请求将会返回 HTTP 状态码 204 No Content.