WeChat shake data statistics
Data statistics interface with device as dimension
Interface Description
Query the number of people and times for a single device to perform the shaking operation, and the number of people and times to click on the shaking message;
The maximum time span of the query is 30 sky. Only data for the last 90 days can be queried.
This interface cannot obtain the data of the current day, and can only obtain the data of the previous day at the earliest.
Since the system processes the data of the previous day in the early morning, calling this interface too early may not obtain the data. It is recommended to call this interface after 8:00 in the morning.
Interface call request description
http request method: POST (please use https protocol) https: //api.weixin.qq.com/shakearound/statistics/device?access_token=ACCESS_TOKENPOST data format: json
POST data example:
{
"device_identifier":{
"device_id":10011 ,
"uuid":"FDA50693-A4E2-4FB1-AFCF-C6EB07647825",
"major":1002,
"minor":1223
},
"begin_date": 1438704000 ,
"end_date": 1438704000
}
Parameter Description
Parameter | Is it required | Description |
access_token | is the | calling interface credential |
device_identifier | is | The device ID of the specified page |
device_id | is | Device number, if you fill in UUID, major, minor, you don’t need to fill in the device number, choose one of the two |
##UUID , major, minor | is | UUID, major, minor. The three information need to be filled in. If you fill in the device edit, you can not Fill in this information, choose one of the two |
begin_date | is | Start date timestamp, the maximum time span is 30 days, the unit is seconds |
is the end date timestamp of | ##, the maximum time span is 30 days, the unit is seconds |
Parameter | Description |
ftime | The timestamp corresponding to 0 o'clock that day |
click_pv | Click shake Number of surrounding messages |
click_uv | The number of people who clicked to shake surrounding messages |
shake_pv | The number of times to shake the surrounding area |
shake_uv | The number of people shaking the surrounding area |
Interface Description
Query the number of people and times that each device under the merchant account performed the shaking operation at a specified time, and the number of people and times that clicked on the shaking message.
Only the data within the last 90 days can be queried, and only one day at a time can be queried.
This interface cannot obtain the data of the current day, and can only obtain the data of the previous day at the earliest.
Since the system processes the data of the previous day in the early morning, calling this interface too early may not obtain the data. It is recommended to call this interface after 8:00 in the morning.
Note: Devices whose number of people shaking the surroundings, number of shaking surroundings, number of people clicking shaking surrounding messages, and number of clicking shaking surrounding messages are all 0 will not be returned in the result list.
Interface calling instructions
http request method: POST (please use https protocol) https://api.weixin.qq .com/shakearound/statistics/devicelist?access_token=ACCESS_TOKENPOST Data format: json
POST data example:
{
"date": 1438704000,
"page_index":1
}
Parameter Description
Parameter | Is it required | Description |
access_token | is the | calling interface credential |
date | is | Specify the query date and timestamp in seconds |
page_index | ##Yes | Specify the query result page number; the returned results are sorted in descending order by the number of people nearby, and every 50 records are one page |
Parameters | Description |
##device_id | Device number |
major, minor, uuid | ##major, minor , uuid|
The number of clicks to shake surrounding messages | |
click_uv | The number of people who clicked to shake surrounding messages |
shake_pv | Number of shakes |
shake_uv | Shake the number of people nearby |
date | The date and time stamp queried |
total_count | Total number of devices |
page_index | The sequence number of the queried result page; the returned results are sorted in descending order by the number of people nearby, and every 50 records are one page |
Data statistics interface with page as dimension
Interface description
Query a single page The number of people and times that were shaken out by shaking around, and the number of people and times that they clicked on the shaking around page; the maximum time span of the query is 30 days. Only data for the last 90 days can be queried.
This interface cannot obtain the data of the current day, and can only obtain the data of the previous day at the earliest. Since the system processes the data of the previous day in the early morning, calling this interface too early may not obtain the data. It is recommended to call this interface after 8:00 in the morning.
Interface calling instructions
http request method: POST (please use https protocol) https:/ /api.weixin.qq.com/shakearound/statistics/page?access_token=ACCESS_TOKENPOST Data format: json
POST data example:
{
"page_id": 12345,
"begin_date": 1438704000 ,
"end_date": 1438704000
}
Parameter Description
Parameter | Is it required | Description |
access_token | is the | calling interface credential |
page_id | is | The device ID of the specified page |
begin_date | is | Start date timestamp, the maximum time span is 30 days, the unit is seconds |
end_date | is the end date timestamp of | , the maximum time span is 30 days, the unit is seconds |
Parameter | Description |
ftime | The timestamp corresponding to 0 o'clock that day |
click_pv | Open shake Number of surrounding pages |
click_uv | The number of people who opened the surrounding pages |
shake_pv | Number of times to shake out the surrounding pages |
shake_uv | The number of people who shook out the surrounding pages |
Batch query page statistical data interface
Interface description
Query each page under the merchant account at the specified time to shake The number of people and times of peripheral operations, and the number of people and times of clicking and shaking peripheral messages.
Only the data within the last 90 days can be queried, and only one day at a time can be queried.
This interface cannot obtain the data of the current day, and can only obtain the data of the previous day at the earliest.
Since the system processes the data of the previous day in the early morning, calling this interface too early may not obtain the data. It is recommended to call this interface after 8:00 in the morning.
Note: For pages where the number of people shaking around, the number of times shaking around, the number of people clicking on shaking around messages, and the number of times clicking on shaking around messages are all 0, they will not be returned in the result list.
Interface calling instructions
http request method: POST (please use https protocol) https://api. weixin.qq.com/shakearound/statistics/pagelist?access_token=ACCESS_TOKENPOST data format: json
POST data example:
{
"date": 1425139200,
"page_index":1
}
Parameter Description
Parameter | Is it required | Description |
access_token | is the | calling interface credential |
date | is | Specify query date timestamp |
page_index | is | Specify the query result page number; the returned results are sorted in descending order by the number of people nearby, and every 50 records are one page |
Return instructions
Example of normal return JSON data packet:
{ "data": { Parameter Description
"pages": [
"{
"page_id":1
"click_pv": 0,
"click_uv" : 0,
"shake_pv": 0,
"shake_uv": 0
,
click_uv": 0,
"shake_pv": 0,
"shake_uv": 0
},
" ": 151
"page_index":1
"errcode": 0,
"errmsg": "success."
}Parameter Description page_id Page ID click_pv Number of clicks to shake surrounding messages click_uv The number of people who clicked to shake surrounding messages shake_pv The number of times to shake the periphery shake_uv Shake the number of people around date queried Date timestamp, in seconds total_count Total number of pages page_index The sequence number of the queried result page; the returned results are sorted in descending order by the number of people nearby, and every 50 records are one page