وب‌سایت‌ها

    یادداشت‌ها
    سطح حرفه‌ای
    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/websites

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

    curl --location --request GET 'http://analytics.tik4.com/api/v1/websites' \
    --header 'Accept: application/json' \
    --header 'Authorization: Bearer {api_key}'
    
    Parameter
    نوع
    توضیحات
    search
    اختیاری string
    The search query.
    search_by
    اختیاری string
    جستجو بر اساس. Possible values are: domain for دامنه. Defaults to: domain.
    sort_by
    اختیاری string
    مرتب سازی بر اساس. Possible values are: id for تاریخ ایجاد, domain for دامنه. Defaults to: id.
    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.
    نمایش

    API endpoint:

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

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

    curl --location --request GET 'http://analytics.tik4.com/api/v1/websites/{id}' \
    --header 'Accept: application/json' \
    --header 'Authorization: Bearer {api_key}'
    
    فروشگاه

    API endpoint:

    POST
    http://analytics.tik4.com/api/v1/websites

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

    curl --location --request POST 'http://analytics.tik4.com/api/v1/websites' \
    --header 'Content-Type: application/x-www-form-urlencoded' \
    --header 'Authorization: Bearer {api_key}' \
    --data-urlencode 'domain={domain}'
    
    Parameter
    نوع
    توضیحات
    domain
    الزامی string
    نام دامنه.
    privacy
    اختیاری integer
    Stats page privacy. Possible values are: 0 for عمومی, 1 for خصوصی, 2 for کلمه عبور. Defaults to: 1.
    password
    اختیاری string
    The password for the statistics page. Only works with privacy set to 2.
    email
    اختیاری integer
    گزارش‌های ایمیل دوره‌ای Possible values are: 0 for غیرفعال, 1 for فعال شد. Defaults to: 0.
    exclude_bots
    اختیاری integer
    ربات های رایج را از ردیابی حذف کنید. Possible values are: 0 for غیرفعال, 1 for فعال شد. Defaults to: 1.
    exclude_params
    اختیاری string
    Exclude URL query parameters from being tracked. هر خط یکی..
    exclude_ips
    اختیاری string
    IP ها را از ردیابی مستثنی کنید. هر خط یکی..
    بروزرسانی

    API endpoint:

    PUT PATCH
    http://analytics.tik4.com/api/v1/websites/{id}

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

    curl --location --request PUT 'http://analytics.tik4.com/api/v1/websites/{id}' \
    --header 'Content-Type: application/x-www-form-urlencoded' \
    --header 'Authorization: Bearer {api_key}'
    
    Parameter
    نوع
    توضیحات
    privacy
    اختیاری integer
    Stats page privacy. Possible values are: 0 for عمومی, 1 for خصوصی, 2 for کلمه عبور.
    password
    اختیاری string
    The password for the statistics page. Only works with privacy set to 2.
    email
    اختیاری integer
    گزارش‌های ایمیل دوره‌ای Possible values are: 0 for غیرفعال, 1 for فعال شد.
    exclude_bots
    اختیاری integer
    ربات های رایج را از ردیابی حذف کنید. Possible values are: 0 for غیرفعال, 1 for فعال شد.
    exclude_params
    اختیاری string
    Exclude URL query parameters from being tracked. هر خط یکی..
    exclude_ips
    اختیاری string
    IP ها را از ردیابی مستثنی کنید. هر خط یکی..
    حذف

    API endpoint:

    DELETE
    http://analytics.tik4.com/api/v1/websites/{id}

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

    curl --location --request DELETE 'http://analytics.tik4.com/api/v1/websites/{id}' \
    --header 'Authorization: Bearer {api_key}'