Link statistics
GET https://qrcode.by/api/statistics/{link_id}
curl --request GET \
--url 'https://qrcode.by/api/statistics/{link_id}?start_date=2020-01-01&end_date=2021-01-01' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://qrcode.by/api/statistics/{link_id}?start_date=2020-01-01&end_date=2021-01-01' \
--header 'Authorization: Bearer {api_key}' \
Parameters | Details | Description |
---|---|---|
start_date | Required | Start date in Y-m-d format. |
end_date | Required | End date in Y-m-d format. |
type | Optional | Type of data to be returned. Allowed values are: overview , referrer_host , referrer_path , country_code , city_name , os_name , browser_name , device_type , browser_language , utm_source , utm_medium , utm_campaign . Defaults to overview . |
country_code | Optional | Parameter only available for the city_name type. |
utm_source | Optional | Parameter only available for the utm_medium and utm_campaign type. |
utm_medium | Optional | Parameter only available for the utm_campaign type. |
{ "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" } ] }