Skip to main content

Long-term statistics

Note

Visitors are counted as daily active users and monthly active users.

Active users (1-day increment)

As the unique user statistics aggregated for the day, etime cannot exceed 31 days based on stime.

GET https://api.whatap.io/open/api/json/visitor_d/stitme/etime

command
$ curl -L -w "\n" -H "x-whatap-token: {{PROJECT API TOKEN}}" -H "x-whatap-pcode: {{projectCode}}" "https://api.whatap.io/open/api/json/visitor_d/1554163200000/1554422400000"
response
{
"data": [
[
1554163200000, // 1-day increment (24*60*60*1000)
1007
],
[
1554249600000,
1007
],
[
1554336000000,
1007
]
],
"pcode": 3000000079,
"stime": 1554163200000,
"etime": 1554422400000,
"total": 3
}

Active users (1-month increment)

As the unique user statistics aggregated for 1 month, etime cannot exceed 365 days based on stime.

GET https://api.whatap.io/open/api/json/visitor_m/stitme/etime

command
$ curl -L -w "\n" -H "x-whatap-token: {{PROJECT API TOKEN}}" -H "x-whatap-pcode: {{projectCode}}" "https://api.whatap.io/open/api/json/visitor_m/1551398400000/1554076800000"
response
{
"data": [
{
"stime": 1535760000000, // month 1 day time (24*60*60*1000)
"etime": 1538352000000,
"sdate": "Sat Sep 01 00:00:00 GMT 2018",
"edate": "Mon Oct 01 00:00:00 GMT 2018",
"mau": 1007
},
{
"stime": 1538352000000,
"etime": 1541030400000,
"sdate": "Mon Oct 01 00:00:00 GMT 2018",
"edate": "Thu Nov 01 00:00:00 GMT 2018",
"mau": 1007
}
],
"pcode": 1234570141,
"stime": 1535760000000,
"etime": 1541030400000,
"sdate": "Sat Sep 01 00:00:00 GMT 2018",
"edate": "Thu Nov 01 00:00:00 GMT 2018",
"total": 2
}