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 for a single page. The longest time span of the query is 30 days. Only the data of last 90 days can be queried.
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.
API Request Format
HTTP request method: POST (use the HTTPS protocol)https://api.weixin.qq.com/shakearound/statistics/page?access_token=ACCESS_TOKEN
POST data format: json
POST data example:
{
"page_id": 12345,
"begin_date": 1438704000,
"end_date": 1438704000
}
Parameters
Parameter | Required | Description |
---|---|---|
access_token | Yes | The credential for calling the API |
page_id | Yes | The device ID of the specified page |
begin_date | Yes | Timestamp of the start date (in sec). The longest time span is 30 days. |
end_date | Yes | Timestamp of the end date (in sec). The longest time span is 30 days. |
Response
Example of JSON packet returned for a successful request:
{
"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."
}
Parameters
Parameter | Description |
---|---|
ftime | Timestamp corresponding to 0 o'clock on the day |
click_pv | Number of operations opening the Shake Nearby page |
click_uv | Number of users opening the Shake Nearby page |
shake_pv | Number of Shake Nearby operations |
shake_uv | Number of Shake Nearby users |