آمار

    یادداشت‌ها
    سطح حرفه‌ای
    The API key should be sent as a Bearer token in the Authorization header of the request. Get your API key.
    نمایش

    API endpoint:

    GET
    http://analytics.tik4.com/api/v1/stats/{id}

    درخواست نمونه:

    curl --location --request GET 'http://analytics.tik4.com/api/v1/stats/{id}?name={name}&from={from}&to={to}' \
    --header 'Accept: application/json' \
    --header 'Authorization: Bearer {api_key}'
    
    Parameter
    نوع
    توضیحات
    name
    الزامی string
    The name of the statistic. Possible values are: browser, campaign, city, continent, country, device, event, landing_page, language, os, page, pageviews, pageviews_hours, referrer, resolution, visitors, visitors_hours.
    from
    الزامی string
    The starting date in Y-m-d format.
    to
    الزامی string
    The ending date in Y-m-d format.
    search
    اختیاری string
    The search query.
    search_by
    اختیاری string
    جستجو بر اساس. Possible values are: value for Value. Defaults to: url.
    sort_by
    اختیاری string
    مرتب سازی بر اساس. Possible values are: count for Count, value for Value. Defaults to: count.
    sort
    اختیاری string
    Sort. Possible values are: desc for Descending, asc for Ascending. Defaults to: desc.
    per_page
    اختیاری int
    نتایج در هر صفحه. Possible values are: 10, 25, 50, 100. Defaults to: 10.