WeChat public platform launched an invitation-based internal test of the data interface on January 6, 2015. Through the data interface, developers can obtain data similar to the statistical module of the official WeChat public platform website but more flexible, and can also perform advanced processing as needed. During the invitation beta test, in order to ensure service quality, the data interface is only open to third-party platform developers. You can become a third-party platform developer by accessing the WeChat Open Platform and authorizing the public account login. The third-party platform can help operators manage public accounts and help authorized public accounts call data interfaces. In the permission set division of the public account login authorization mechanism, the message analysis data interface belongs to the message and menu permission set. The time for opening the data interface to all public account developers will be notified separately. Please note: 1. The database of the public account data on the interface side only stores data after December 1, 2014. Data before that date cannot be queried. Even if data is found, it is unreliable and dirty data. The message analysis data interface refers to the interface used to obtain the message analysis data in the data statistics module of the official website of the public platform. The specific interface list is as follows (there is no message keyword data interface):
***Time span refers to the time range in which data can be obtained when an API is called. For example, ***Time span of 7 means that a maximum of 7 days of data can be obtained at one time. The actual value of access_token can be obtained through "Get access_token". Regarding weekly and monthly data, please note that the data of each monthly/weekly periodic data is marked on the last day of the month/week (the 1st of the month or Monday). You can only get the data of that period by calling the interface after a month/week. For example, on December 1, calling the monthly data acquisition interface with (November 1st-November 5th) as (begin_date and end_date) can get the monthly data of November 1st (i.e. the monthly data of November). Interface call request description The message analysis data interface (including all interfaces in the interface list) needs to POST the following sample data packet to the corresponding interface call address: { "begin_date": "2014-12-07", "end_date": "2014-12-08" } Call parameter description
Return Description To obtain the message sending profile data interface, you need to POST the following data packet to the corresponding interface call address:
To obtain the message distribution time-sharing data interface, you need to POST the following data packet to the corresponding interface call address:
The JSON data packet returned by the interface for obtaining monthly data of message sending is as follows:
The JSON data packet returned by the interface for getting message sending distribution data is as follows:
The JSON data packet returned by the interface for obtaining weekly data of message sending distribution is as follows:
The JSON data packet returned by the interface for obtaining the monthly data of message sending distribution is as follows:
Return parameter description
WeChat will return error codes and other information when an error occurs. For specific error code queries, please see: Global Return Code Description |
<<: Data statistics interface-graphic and text analysis data interface
>>: Data statistics interface - interface analysis data interface
Who doesn't want to have clear skin? But ther...
one Over the years of work, I have participated i...
In outdoor sports, as a high-performance protecti...
Pain is a warning signal from the body Just like ...
Before the concept of "sinking" appeare...
When operating short videos, topic selection, dir...
Competition in the smart TV industry is becoming i...
Since its formation on November 4, Typhoon Ginkgo...
In recent years, the state has been increasing th...
When it comes to e-commerce platforms, everyone k...
Q: How can I make my program installation package...
On Russia's Kola Peninsula, in the wilderness...
[[159325]] On December 16, Google's mobile pa...
What exactly is a 4K TV? In a nutshell, a 4K TV i...
Hi everyone, I am Geek. In the last issue, we rev...