链接统计

GET https://9qrcode.com/api/statistics/{link_id}
參數 细节 描述
start_date 需要 Y-m-d格式表示的開始日期
end_date 需要 結束日期以Y-m-d格式。
type 可選的 字符串 允许的值:overview, referrer_host, referrer_path, continent_code, country_code, city_name, os_name, browser_name, device_type, browser_language, utm_source, utm_medium, utm_campaign
country_code 可選的 字符串 Available when: type = city_name
utm_source 可選的 字符串 Available when: type = utm_medium, utm_campaign
utm_medium 可選的 字符串 Available when: type = utm_campaign
referrer_host 可選的 字符串 Available when: type = referrer_path
curl --request GET \
--url 'https://9qrcode.com/api/statistics/{link_id}?start_date=2020-01-01&end_date=2021-01-01' \
--header 'Authorization: Bearer {api_key}' \
{ "data": [ { "pageviews": 20, "visitors": 5, "formatted_date": "2021-01" }, { "pageviews": 35, "visitors": 10, "formatted_date": "2021-02" }, { "pageviews": 50, "visitors": 25, "formatted_date": "2021-03" } ] }