网站统计
GET https://t.essnn.com/api/statistics/{website_id}
curl --request GET \
--url 'https://t.essnn.com/api/statistics/{website_id}?start_date=2020-01-01&end_date=2021-01-01' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://t.essnn.com/api/statistics/{website_id}?start_date=2020-01-01&end_date=2021-01-01' \
--header 'Authorization: Bearer {api_key}' \
参数 | 详细信息 | 描述 |
---|---|---|
start_date | 必需 字符串 | 以Y-m-d 格式的开始日期。 |
end_date | 必需 字符串 | 以Y-m-d 格式的结束日期。 |
type | 可选 字符串 | 要返回的数据类型。允许的值为:overview 、paths 、referrers 、referrer_paths 、countries 、cities 、operating_systems 、device_types 、browser_names 、utms_source 、utms_medium_campaign 、screen_resolutions 、browser_languages 、goals 。默认为overview 。 |
country_code | 可选 字符串 | 仅在cities 类型下可用的参数。 |
utm_source | 可选 字符串 | 仅在utms_medium_campaign 类型下可用的参数。 |
{ "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 }, ] }