API Description
Queries the number of Shake Nearby users, the number of Shake Nearby operations, the number of users tapping on Shake Nearby messages, and the number of taps on Shake Nearby messages by each device on a specified date.
Only the data of last 90 days can be queried, and only the data of one day can be queried at a time.
This API can only obtain the data of the previous day, but cannot obtain the data of the day.
Because the system processes the data of the previous day in the early hours of the morning, calling this API too early may not obtain the data. It is recommended to call this API after 8:00 am.
Note: Devices whose number of Shake Nearby users, number of Shake Nearby operations, number of users tapping on Shake Nearby messages, and number of taps on Shake Nearby messages are 0 are not returned in the result list.
API Request Format
HTTP request method: POST (use the HTTPS protocol)https://api.weixin.qq.com/shakearound/statistics/devicelist?access_token=ACCESS_TOKEN
POST data format: json
POST data example:
{
"date": 1438704000,
"page_index":1
}
Parameters
Parameter | Required | Description |
---|---|---|
access_token | Yes | The credential for calling the API |
date | Yes | Timestamp of the specified queried date (in sec) |
page_index | Yes | The number of result page of the specified query; the returned result is sorted in descending order by the number of users of Shake Nearby. 50 records per page. |
Response
Example of JSON packet returned for a successful request:
{
"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."
}
Parameters
Parameter | Description |
---|---|
device_id | Device ID |
major, minor, uuid | major, minor, uuid |
click_pv | Number of taps on Shake Nearby messages |
click_uv | Number of users tapping on Shake Nearby messages |
shake_pv | Number of Shake Nearby operations |
shake_uv | Number of users of Shake Nearby |
date | Timestamp of the queried date |
total_count | Total number of devices |
page_index | The number of result page of the query; the returned result is sorted in descending order by the number of users of Shake Nearby. 50 records per page. |