WeChat shake data statistics


Data statistics interface with device as dimension

1475205218138256.jpg

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

##end_date##


Return description

##Example of normal returned JSON data packet:

##{

"data": [ " " ftime": 1425052800,
"shake_pv": 0,
"shake_uv": 0
" },
"click_pv": 0,
" "click_uv": 0,
"ftime": 1425139200,
"shake_pv": 0,
"shake_uv": 0
"errcode": 0,
"errmsg" : "success."
}



Parameter Description

ParameterIs it requiredDescription
access_token is the calling interface credential
device_identifierisThe device ID of the specified page
device_idisDevice 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
ParameterDescription
ftimeThe timestamp corresponding to 0 o'clock that day
click_pvClick shake Number of surrounding messages
click_uvThe number of people who clicked to shake surrounding messages
shake_pvThe number of times to shake the surrounding area
shake_uvThe number of people shaking the surrounding area


##Batch Query Device Statistics Interface

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


Return description

Example of normal returned JSON data packet:

{
  "data": {
      "devices": [
          {
              "device_id": 10097,
              "major": 10001,
              "minor": 12102,
              "uuid": "FDA50693-A4E2-4FB1-AFCF-C6EB07647825"
              "shake_pv": 1
              "shake_uv": 2
              "click_pv": 3
              "click_uv":4
          },
          {
              "device_id": 10097,
              "major": 10001,
              "minor": 12102,
              "uuid": "FDA50693-A4E2-4FB1-AFCF-C6EB07647825"
              "shake_pv":1
              "shake_uv":2
              "click_pv":3
              "click_uv":4
           } 
      ], 
   },
  "date":1435075200
  "total_count": 151
  "page_index":1
   "errcode": 0,
   "errmsg": "success."
}

Parameter Description

ParameterIs it requiredDescription
access_token is the calling interface credential
dateisSpecify 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
##major, minor , uuid##click_pv
ParametersDescription
##device_idDevice number
major, minor, uuid
The number of clicks to shake surrounding messages
click_uvThe number of people who clicked to shake surrounding messages
shake_pvNumber of shakes
shake_uv Shake the number of people nearby
dateThe date and time stamp queried
total_countTotal number of devices
page_indexThe 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

##

Return instructions

Normal return JSON data packet example:

{
"data": [
"{
"click_pv": 0,
"click_uv": 0,
"ftime": 1425052800,
"shake_pv": 0,
"shake_uv": 0
},
"click_pv": 0,
"click_uv": 0,
"ftime": 1425139200,
"shake_pv": 0,
"shake_uv": 0
}
],
"errcode": 0,
"errmsg": "success."
}

Parameter Description

ParameterIs it requiredDescription
access_token is the calling interface credential
page_idisThe device ID of the specified page
begin_date isStart 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
ParameterDescription
ftimeThe timestamp corresponding to 0 o'clock that day
click_pvOpen shake Number of surrounding pages
click_uvThe number of people who opened the surrounding pages
shake_pvNumber of times to shake out the surrounding pages
shake_uvThe 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

ParameterIs it requiredDescription
access_token is the calling interface credential
dateisSpecify query date timestamp
page_indexisSpecify 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": {
"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

ParameterDescription
page_idPage ID
click_pvNumber of clicks to shake surrounding messages
click_uvThe number of people who clicked to shake surrounding messages
shake_pvThe number of times to shake the periphery
shake_uvShake the number of people around
datequeried Date timestamp, in seconds
total_countTotal number of pages
page_indexThe 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



#