图文分析数据接口指的是用于获得公众平台官网数据统计模块中图文分析数据的接口,具体接口列表如表13-4所示。
表13-4 图文分析数据接口列表说明
获取图文分析数据时,POST数据示例如下。
{ "begin_date":"2014-12-02", "end_date":"2014-12-07"}
上述数据的参数说明如表13-5所示。
表13-5 图文分析数据接口的参数说明
正常情况下,获取图文群发每日数据接口的返回JSON数据包如下。
{ "list":[ { "ref_date":"2014-12-08", "msgid":"10000050_1", "title":"12月27日 DiLi日报", "int_page_read_user":23676, "int_page_read_count":25615, "ori_page_read_user":29, "ori_page_read_count":34, "share_user":122, "share_count":994, "add_to_fav_user":1, "add_to_fav_count":3 } ]}
正常情况下,获取图文群发总数据接口的返回JSON数据包如下。
{ "list":[ { "ref_date":"2014-12-14", "msgid":"202457380_1", "title":"马航丢画记", "details":[ { "stat_date":"2014-12-14", "target_user":261917, "int_page_read_user":23676, "int_page_read_count":25615, "ori_page_read_user":29, "ori_page_read_count":34, "share_user":122, "share_count":994, "add_to_fav_user":1, "add_to_fav_count":3, "int_page_from_session_read_user":657283, "int_page_from_session_read_count":753486, "int_page_from_hist_msg_read_user":1669, "int_page_from_hist_msg_read_count":1920, "int_page_from_feed_read_user":367308, "int_page_from_feed_read_count":433422, "int_page_from_friends_read_user":15428, "int_page_from_friends_read_count":19645, "int_page_from_other_read_user":477, "int_page_from_other_read_count":703, "feed_share_from_session_user":63925, "feed_share_from_session_cnt":66489, "feed_share_from_feed_user":18249, "feed_share_from_feed_cnt":19319, "feed_share_from_other_user":731, "feed_share_from_other_cnt":775 } ] } ]}
正常情况下,获取图文统计数据接口的返回JSON数据包如下。
{ "list":[ { "ref_date":"2014-12-07", "int_page_read_user":45524, "int_page_read_count":48796, "ori_page_read_user":11, "ori_page_read_count":35, "share_user":11, "share_count":276, "add_to_fav_user":5, "add_to_fav_count":15 } ]}
正常情况下,获取图文统计分时数据接口的返回JSON数据包如下。
{ "list":[ { "ref_date":"2015-07-14", "ref_hour":0, "user_source":0, "int_page_read_user":6391, "int_page_read_count":7836, "ori_page_read_user":375, "ori_page_read_count":440, "share_user":2, "share_count":2, "add_to_fav_user":0, "add_to_fav_count":0 }, { "ref_date":"2015-07-14", "ref_hour":0, "user_source":1, "int_page_read_user":1, "int_page_read_count":1, "ori_page_read_user":0, "ori_page_read_count":0, "share_user":0, "share_count":0, "add_to_fav_user":0, "add_to_fav_count":0 }, { "ref_date":"2015-07-14", "ref_hour":0, "user_source":2, "int_page_read_user":3, "int_page_read_count":3, "ori_page_read_user":0, "ori_page_read_count":0, "share_user":0, "share_count":0, "add_to_fav_user":0, "add_to_fav_count":0 }, { "ref_date":"2015-07-14", "ref_hour":0, "user_source":4, "int_page_read_user":42, "int_page_read_count":100, "ori_page_read_user":0, "ori_page_read_count":0, "share_user":0, "share_count":0, "add_to_fav_user":0, "add_to_fav_count":0 } ]
正常情况下,获取图文分享转发数据接口的返回JSON数据包如下。
{ "list":[ { "ref_date":"2014-12-07", "share_scene":1, "share_count":207, "share_user":11 }, { "ref_date":"2014-12-07", "share_scene":5, "share_count":23, "share_user":11 } ]}
正常情况下,获取图文分享转发分时数据接口的返回JSON数据包如下。
{ "list":[ { "ref_date":"2014-12-07", "ref_hour":1200, "share_scene":1, "share_count":72, "share_user":4 } ]}
上述数据的参数说明如表13-6所示。
表13-6 图文分析数据接口返回参数说明