接口简介

  • 本接口主要用于查询单个专题下的信息流内容
  • 本接口支持page分页,每页最多返回10条内容

接口请求说明

请求方式

GET https://{hostname}.qianfanapi.com/openapi/subjects/feed

请求参数

参数名 类型 是否必须 说明
id int 专题id
tab_id int 专题下二级标签id,全部标签传 0
page int 普通分页

请求示例

# GET请求
curl -X GET  'https://{hostname}.qianfanapi.com/openapi/subjects/feed?id={subject_id}&tab_id={subject_tab_id}&page={page}' \
  -H 'Authorization: Bearer 5d39164d1f281' \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json'

接口响应说明

响应示例

{
    "code": 0,
    "text": "",
    "data": [
        {
            "id": 1600,
            "cid": 3,
            "sid": 1,
            "tid": 0,
            "target_type": 13,
            "target_value": 3248,
            "url": "",
            "title": "#旅途中,遇见最美的风景#",
            "desc": "",
            "manager_id": 0,
            "attaches_num": 3,
            "attaches": "[{\"url\":\"http://bbs1.qianfanyun.com/meipai/day_141101/2113842_5d5073b0-1187-4f7a-b592-5edfe391b0c8.s.960x720.s.452x348.jpg\",\"width\":\"452\",\"height\":\"348\",\"origin_url\":\"http://bbs1.qianfanyun.com/meipai/day_141101/2113842_5d5073b0-1187-4f7a-b592-5edfe391b0c8.s.960x720.s.452x348.jpg\",\"is_show\":1},{\"url\":\"http://bbs1.qianfanyun.com/meipai/day_141101/2113842_35730e64-dda5-4498-87b4-52039d340b14.s.960x720.s.452x348.jpg\",\"width\":\"452\",\"height\":\"348\",\"origin_url\":\"http://bbs1.qianfanyun.com/meipai/day_141101/2113842_35730e64-dda5-4498-87b4-52039d340b14.s.960x720.s.452x348.jpg\",\"is_show\":1},{\"url\":\"http://bbs1.qianfanyun.com/meipai/day_141101/2113842_ac80c5a5-f176-47b6-afe6-12737170238a.s.720x960.s.452x348.jpg\",\"width\":\"452\",\"height\":\"348\",\"origin_url\":\"http://bbs1.qianfanyun.com/meipai/day_141101/2113842_ac80c5a5-f176-47b6-afe6-12737170238a.s.720x960.s.452x348.jpg\",\"is_show\":1},{\"url\":\"http://bbs1.qianfanyun.com/meipai/day_141101/2113842_6d5db7c6-4543-4e15-9a38-341d9fac0eac.s.720x960.s.452x348.jpg\",\"width\":\"452\",\"height\":\"348\",\"origin_url\":\"http://bbs1.qianfanyun.com/meipai/day_141101/2113842_6d5db7c6-4543-4e15-9a38-341d9fac0eac.s.720x960.s.452x348.jpg\",\"is_show\":0}]",
            "views_num": 11,
            "likes_num": 0,
            "replies_num": 0,
            "rewards_num": 0,
            "author_id": 27,
            "author": "不高兴888",
            "show_mode": 1,
            "special": 0,
            "is_news": 0,
            "push_num": 0,
            "created_at": 1503548232,
            "update_at": 1513308714,
            "push_at": 1503548232,
            "fixed_position": 2,
            "fixed_start": 0,
            "fixed_expire": 0,
            "status": 1,
            "from_type": 0
        },
        {
            "id": 1572,
            "cid": 3,
            "sid": 1,
            "tid": 0,
            "target_type": 5,
            "target_value": 1972,
            "url": "",
            "title": "#有一种惆怅叫做:我觉得世界需要我去拯救!啦啦啦,中二病拯救世界#",
            "desc": "",
            "manager_id": 0,
            "attaches_num": 1,
            "attaches": "[{\"url\":\"http://bbs1.qianfanyun.com/meipai/day_141026/2098280_f773ec0c-5c12-4cf1-af66-dbe74a03b102.s.852x1136.s.452x348.jpg\",\"width\":\"452\",\"height\":\"348\",\"is_show\":1},{\"url\":\"http://bbs1.qianfanyun.com/meipai/day_141026/2098280_1b235c09-4701-45b9-89ca-39f008069f4e.s.640x858.s.452x348.jpg\",\"width\":\"452\",\"height\":\"348\",\"is_show\":0}]",
            "views_num": 502,
            "likes_num": 3,
            "replies_num": 4,
            "rewards_num": 0,
            "author_id": 23,
            "author": "sjh9989",
            "show_mode": 1,
            "special": 0,
            "is_news": 0,
            "push_num": 0,
            "created_at": 1503389061,
            "update_at": 1503389413,
            "push_at": 1503389061,
            "fixed_position": 0,
            "fixed_start": 0,
            "fixed_expire": 0,
            "status": 1,
            "from_type": 0
        },
        {
            "id": 1499,
            "cid": 3,
            "sid": 1,
            "tid": 0,
            "target_type": 1,
            "target_value": 4444,
            "url": "",
            "title": "[图]Surface和Macbook合体:惠普推出第二代Elite x2 1012",
            "desc": "",
            "manager_id": 0,
            "attaches_num": 0,
            "attaches": "[]",
            "views_num": 0,
            "likes_num": 0,
            "replies_num": 0,
            "rewards_num": 0,
            "author_id": 273,
            "author": "冬劲传",
            "show_mode": 0,
            "special": 0,
            "is_news": 0,
            "push_num": 0,
            "created_at": 1502851479,
            "update_at": 1502852472,
            "push_at": 1502851479,
            "fixed_position": 0,
            "fixed_start": 0,
            "fixed_expire": 0,
            "status": 1,
            "from_type": 0
        }
    ],
    "time": 1571727830
}

响应结果说明

字段名 类型 说明
id int id
cid int 信息类型:1 推荐,2 普通,3 专题
sid int 所属类别id:普通信息流关联tab_id,专题信息流关联subject_id
tid int 所属子类 专题信息流关联tag_id
target_type int 目标类型:1 论坛帖子,2 话题,3 外链,5 本地圈,8 视频,9 专题,14 分类信息
target_value int 目标值
url string
title string 标题
desc string
manager_id int 推荐人uid
attaches_num int 附件数
attaches array 附件
views_num int 浏览数(话题/广告/活动参与人数)
likes_num int 点赞数
replies_num int 回复数
rewards_num int 打赏数
author_id int 信息作者uid
author string 信息作者
show_mode int 显示模式: 0 默认,1 单张小图,2 单张(通栏)大图,3 单张通栏,4 三张小图,5 话题模式,6 活动模式
is_news int 是否显示新闻标签
push_num int 推荐次数
created_at int 推荐时间
update_at int 统计数据更新时间
push_at int 更新时间
fixed_position int
fixed_start int
fixed_expire int
status int 状态:0 关闭,1 开启
from_type int 推送类型:0 后台推送,1 APP管理页面推送,2 自动推送
文档更新时间: 2019-10-22 15:39   作者:puyf