wx/opensearchapi/content_list
根据条件列出公众号某日文章
URL
http://open.gsdata.cn/api/wx/opensearchapi/content_list
请求方式
POST
访问授权限制
访问级别:普通接口
频次限制:是
请求参数
参数名称 | 必选 | 类型及范围 | 说明 |
---|---|---|---|
appid | true | string | 此参数为API用户唯一标识,数值为平台分配的用户appid |
appkey | true | string | 此参数为API用户签名私钥,值为平台分配的用户appkey |
wx_name | true | string | 搜公众号官方英文ID,例:cctvnewscenter |
start | true | int | 搜索结果开始位置(默认为0,start=start+num 假定num=10 例:0,10;10,10;20,10;30,10...) |
num | true | int | 返回数据最大记录数(默认为10,最大不超过10) |
postdate | false | string | 发布时间(格式:yyyy-MM-dd) |
datestart | false | string | 开始时间(格式:yyyy-MM-dd) |
dateend | false | string | 结束时间(格式:yyyy-MM-dd) |
sortname | true | string | 排序条件-字段[readnum|likenum|readnum_pm|likenum_pm|readnum_week|likenum_week|posttime] |
sort | true | string | 排序条件[asc|desc] |
nickname_id | true | string | 平台内公众号ID |
is_top | false | boolean | 是否是头条文章 |
返回结果
JSON示例
- "returnCode" :"1001",
- "returnMsg" :"接口调用成功",
- "feeCount" :793,
- "returnData" :{
"searchtime" :0.018809,
"total" :1278,
"num" :10,
"viewtotal" :1278,
"items" :[{
"id" :"201507-700852",
"table_name" :"201507",
"table_id" :"700852",
"name" :"托克逊县地税局",
"wx_name" :"tkxxdsj",
"nickname_id" :"831742",
"posttime" :"2015-07-02 23:59:53",
"title" :"人民日报:共产党员,今天请再读一遍党章",
"content" :"作为8700多万名中国共产党党员中的一员,你读过党章吗?你读完过党章全文吗?如果没有,那请你在今天这个",
"url" :"http://mp.weixin.qq.com/s?__biz=MzA4ODQ2MDgxMA==&mid=210176467&idx=6&sn=ede1974d166a8318e27c1b3f093e5223&scene=4#wechat_redirect",
"status" :"1",
"add_time" :"2015-07-03 00:33:36",
"get_time" :"2015-07-03 11:33:45",
"readnum" :"2",
"likenum" :"0",
"get_time_pm" :"2015-07-03 11:33:45",
"readnum_pm" :"2",
"likenum_pm" :"0",
"get_time_week" :"2015-07-04 13:12:50",
"readnum_week" :"2",
"likenum_week" :"0",
"top" :"6",
"ispush" :"0",
"picurl" :"http://mmbiz.qpic.cn/mmbiz/jAGEodxdBBibGwYMvWxznVqkpblFfjaElqcfoqtf3TVAaFdRy8e97P1x0HodlebiclaoOEowFj1Nrl9y4sqlv0LQ/0?wx_fmt=jpeg",
"sourceurl" :"",
"author" :"搜狐网",
"copyright" :"",
"index_name" :"wx_url"
}, {
"id" :"201507-407880",
"table_name" :"201507",
"table_id" :"407880",
"name" :"中国汽车流通协会",
"wx_name" :"cada2013",
"nickname_id" :"62697",
"posttime" :"2015-07-02 23:55:19",
"title" :"【政策动态】6省试点跨省异地缴纳交通违法罚款",
"content" :"公安部、财政部、中国人民银行决定自2015年7月1日起,在河北、安徽、山东、四川、贵州、云南6省开展跨省异地",
"url" :"http://mp.weixin.qq.com/s?__biz=MjM5ODk1NzUxMw==&mid=209781765&idx=4&sn=1b20cb2b697551334f73141560ecba59&scene=4#wechat_redirect",
"status" :"1",
"add_time" :"2015-07-03 00:09:21",
"get_time" :"2015-07-03 10:20:55",
"readnum" :"108",
"likenum" :"0",
"get_time_pm" :"2015-07-03 10:20:55",
"readnum_pm" :"108",
"likenum_pm" :"0",
"get_time_week" :"2015-07-04 09:00:05",
"readnum_week" :"143",
"likenum_week" :"0",
"top" :"4",
"ispush" :"0",
"picurl" :"http://mmbiz.qpic.cn/mmbiz/PoRszWyBcLgyqgicMq0xhiaAPaMFFnSD0Jd8BMcYFhogKtwRWEDevyu8zA9nkOsWnJdupEdnVHF6xMPm8OvIyib4w/0?wx_fmt=jpeg",
"sourceurl" :"",
"author" :"人民日报",
"copyright" :"",
"index_name" :"wx_url"
}, {
"id" :"201507-816578",
"table_name" :"201507",
"table_id" :"816578",
"name" :"陕科大机电党务中心",
"wx_name" :"jidiandangjian",
"nickname_id" :"1461595",
"posttime" :"2015-07-02 23:08:52",
"title" :"过有信仰的生活",
"content" :"过有信仰的生活徐贵相《人民日报》(2015年07月02日 05 版)信仰是什么?信仰是融于灵",
"url" :"http://mp.weixin.qq.com/s?__biz=MjM5ODY5NjM5OA==&mid=215232425&idx=4&sn=1d828a73a423e1397398e5be72478c5f&scene=4#wechat_redirect",
"status" :"1",
"add_time" :"2015-07-03 00:47:00",
"get_time" :"2015-07-03 12:02:45",
"readnum" :"16",
"likenum" :"2",
"get_time_pm" :"2015-07-03 12:02:45",
"readnum_pm" :"16",
"likenum_pm" :"2",
"get_time_week" :"2015-07-04 13:42:06",
"readnum_week" :"20",
"likenum_week" :"2",
"top" :"4",
"ispush" :"0",
"picurl" :"http://mmbiz.qpic.cn/mmbiz/5RUticefy9jen4yWTkClBx1NeH5lUAFwCWwVqpCRGViakjM7QIHI8QKNiasDbjdglVajhoMiaDcGoH8GFQvZhAyFpA/0?wx_fmt=jpeg",
"sourceurl" :"",
"author" :"徐贵相",
"copyright" :"",
"index_name" :"wx_nickname"
}],
"facet" :[]
- }
关于错误返回值与错误代码,参见 错误代码说明
返回值字段 | 类型 | 说明 |
---|---|---|
searchtime | double | 本次搜索耗时时间 |
total | int | 符合条件数据条数 |
num | int | 本次返回条数 |
viewtotal | int | 显示条数 |
id | int | 平台内公众号ID |
table_name | string | 数据表名称 |
table_id | int | 数据表ID |
name | string | 公众号官方昵称 |
wx_name | string | 微信公众号账号 |
nickname_id | int | 平台内公众号ID |
posttime | string | 微信文章发布时间 |
title | string | 微信文章标题 |
content | string | 微信文章正文摘要 |
url | string | 微信文章url地址 |
status | string | 数据获取状态[1表示已获取,0表示未获取] |
add_time | string | 微信文章入库时间 |
get_time | string | 微信文章获取时间 |
readnum | int | 微信文章阅读数 |
likenum | int | 微信文章点赞数 |
get_time_pm | string | 微信日文章获取时间(下午) |
readnum_pm | int | 微信当日文章阅读数(下午) |
likenum_pm | int | 微信当日文章点赞数 (下午) |
get_time_week | string | 微信周阅读数获取时间 |
readnum_week | int | 微信文章阅读数(周) |
likenum_week | int | 微信文章点赞数(周) |
top | int | 文章位置 |
ispush | int | 是否同步 |
picurl | string | 微信文章中图片地址 |
sourceurl | string | 原文地址 |
author | string | 微信文章作者 |
copyright | string | 是否原创(原创|非原创|未知) |
index_name | string | 搜索引擎名称 |
文档更新时间: 2016-01-07