论坛 RESTful Api 接口

获取热榜

按照浏览量倒序返回最多 5 条帖子。


接口地址: https://3yya.com/u/{rel_key}/bbs/app/hot

请求方式: get

返回参数:

参数名 类型 说明
results list 帖子列表。
title string 帖子标题。
post_id int 帖子 id。
visit_amount int 浏览量
thumbnail_url string 缩略图,如果文章中存在图片则返回第一张图片作为缩略图

JSON 返回示例:

{
    results: [
        {
            post_id: 22,
            title: "大学",
            visit_amount: 20,
            thumbnail_url: "https://qiniu.3yya.com/images/37edc98a89b040f8a6b350c06d7a82dc/Snipaste_2022-04-24_22-49-31.jpg"
        },
        {
            post_id: 23,
            title: "前出师表",
            visit_amount: 12,
            thumbnail_url: ""
        },
        {
            post_id: 24,
            title: "后出师表",
            visit_amount: 6,
            thumbnail_url: ""
        },
    ],
}