网站统计

GET https://china.tn/api/statistics/{website_id}
参数 细节 描述
start_date 必填 字符串 开始日期以Y-m-d格式。
end_date 必填 字符串 Y-m-d格式表示的结束日期
type 可选 字符串 返回的数据类型。允许的值有:overviewpathsreferrersreferrer_pathscountriescitiesoperating_systemsdevice_typesbrowser_namesutms_sourceutms_medium_campaignscreen_resolutionsbrowser_languagesgoals。默认为overview
country_code 可选 字符串 仅适用于cities类型的参数
utm_source 可选 字符串 参数仅适用于 utms_medium_campaign 类型
curl --request GET \
--url 'https://china.tn/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 }, ] }