Bağlantı istatistikleri
GET https://bibio.com.tr/api/statistics/{link_id}
Parametreler | Detaylar | Açıklama |
---|---|---|
start_date | Gerekli | Y-a-g biçiminde başlangıç tarihi.
|
end_date | Gerekli | Y-a-g biçiminde bitiş tarihi. |
type | İsteğe bağlı | 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 | İsteğe bağlı | Parameter only available for the city_name type. |
utm_source | İsteğe bağlı | Parameter only available for the utm_medium and utm_campaign type. |
utm_medium | İsteğe bağlı | Parameter only available for the utm_campaign type. |
curl --request GET \
--url 'https://bibio.com.tr/api/statistics/{link_id}?start_date=2020-01-01&end_date=2021-01-01' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://bibio.com.tr/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"
}
]
}