网站统计信息
GET https://www.tongji.ee/api/statistics/{website_id}
参数 | 详细信息 | 说明 |
---|---|---|
start_date | 必需 字符串 | 以 Y-m-d 格式表示的开始日期。 |
end_date | 必需 字符串 | 以 Y-m-d 格式表示的结束日期。 |
type | 可选 字符串 | 允许的值:overview , realtime , paths , referrers , screen_resolutions , utms , operating_systems , device_types , continents , countries , cities , browser_names , browser_languages , browser_timezones , goals |
country_code | 可选 字符串 | 可用时间:type = cities |
utm_source | 可选 字符串 | 可用时间:type = utms_medium_campaign |
curl --request GET \
--url 'https://www.tongji.ee/api/statistics/{website_id}?start_date=2020-01-01&end_date=2021-01-01' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://www.tongji.ee/api/statistics/{website_id}?start_date=2020-01-01&end_date=2021-01-01' \
--header 'Authorization: Bearer {api_key}' \
{
"data": [
{
"path": "/dashboard",
"pageviews": 500,
"bounces": 10
},
{
"path": "/websites",
"pageviews": 250,
"bounces": 0
},
{
"path": "/",
"pageviews": 200,
"bounces": 36
},
{
"path": "/register",
"pageviews": 100,
"bounces": 25
},
{
"path": "login",
"pageviews": 50,
"bounces": 10
},
]
}