Keçid statistikası
GET https://test.hosteam.space/api/statistics/{link_id}
| Parametrlər | Ətraflı | Təsvir |
|---|---|---|
| start_date | Tələb olunur | Başlanğıc tarixi Y-m-d formatında. |
| end_date | Tələb olunur | Bitmə tarixi Y-m-d formatında. |
| type | İxtiyaridir String | İcazə verilən dəyərlər: 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 | İxtiyaridir String | Mövcud olduğu zaman: type = city_name |
| utm_source | İxtiyaridir String | Mövcud olduğu zaman: type = utm_medium, utm_campaign |
| utm_medium | İxtiyaridir String | Mövcud olduğu zaman: type = utm_campaign |
| referrer_host | İxtiyaridir String | Mövcud olduğu zaman: type = referrer_path |
curl --request GET \
--url 'https://test.hosteam.space/api/statistics/{link_id}?start_date=2020-01-01&end_date=2021-01-01' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://test.hosteam.space/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"
}
]
}