Skip to main content

查询指定分类下的链接列表

接口说明

  • 请求地址:http://domain.com/index.php?c=api&method=q_category_link&page=[page]&limit=[limit]
  • 请求方法:GET + POST

请求参数

参数名称 请求方法 示例值 类型 是否必须 说明
token POST 5c7d0c90cf9e0ce560956179e8e82e7d string(32) 请参考token生成
category_id POST 1 int 分类ID
page GET 1 int 当前页码
limit GET 10 int 每页显示条数

请求成功响应

{
    "code": 0,
    "msg": "",
    "count": 2,
    "data": [
        {
            "id": "20",
            "0": "20",
            "fid": "19",
            "1": "19",
            "title": "百度一下,你就知道",
            "2": "百度一下,你就知道",
            "url": "https:\/\/www.baidu.com\/index.php?tn=22073068_2_dg",
            "3": "https:\/\/www.baidu.com\/index.php?tn=22073068_2_dg",
            "description": "",
            "4": "",
            "add_time": "1650551209",
            "5": "1650551209",
            "up_time": null,
            "6": null,
            "weight": "0",
            "7": "0",
            "property": "0",
            "8": "0",
            "click": "2",
            "9": "2",
            "topping": "0",
            "10": "0",
            "url_standby": null,
            "11": null,
            "category_name": "默认分类",
            "12": "默认分类"
        },
        {
            "id": "19",
            "0": "19",
            "fid": "19",
            "1": "19",
            "title": "你好",
            "2": "你好",
            "url": "magnet:?xt=urn:btih:d212b7968eacb056301410bb6473436e51f2e395",
            "3": "magnet:?xt=urn:btih:d212b7968eacb056301410bb6473436e51f2e395",
            "description": "",
            "4": "",
            "add_time": "1650275033",
            "5": "1650275033",
            "up_time": null,
            "6": null,
            "weight": "0",
            "7": "0",
            "property": "0",
            "8": "0",
            "click": "0",
            "9": "0",
            "topping": "0",
            "10": "0",
            "url_standby": "",
            "11": "",
            "category_name": "默认分类",
            "12": "默认分类"
        }   
    ]
}
  • code:响应状态码,0代表成功
  • data.id:链接ID
  • data.fid:父及分类ID
  • data.title:链接标题
  • data.url:链接URL
  • data.add_time:分类添加时间
  • data.up_time:分类修改时间
  • data.weight:分类权重,权重越高,排名越靠前
  • data.property:分类熟悉,0:公开,1:私有
  • data.description:分类描述
  • data.click:链接点击数

请求失败响应

{
	"code": -1000,
	"err_msg": "Authorization failure!"
}
  • code:错误码
  • err_msg:错误描述