API 接口

注意

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

RSSHub 提供下列 API 接口:

# 可用公共路由列表

提示

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

举例: https://rsshub.app/api/routes/bilibili

路由: /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/:uid/:cid",
                "/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"
}

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