Links statistics

GET https://www.myshorturl.link/api/statistics/{link_id}
๋งค๊ฐœ ๋ณ€์ˆ˜ Details Description
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://www.myshorturl.link/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" } ] }