آمار

یادداشت ها
Expert level
The API key should be sent as a Bearer token in the Authorization header of the request. Get your API key.
نمایش

API endpoint:

GET
https://links.pkso.ir/api/v1/stats/{id}

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

curl --location --request GET 'https://links.pkso.ir/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. مقادیر ممکن عبارتند از: browser, cities, clicks, clicks_hours, country, device, language, platform, referrer.
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
جستجو. مقادیر ممکن عبارتند از: value for مقدار. Defaults to: url.
sort_by
اختیاری string
ترتیب . مقادیر ممکن عبارتند از: count for Count, value for مقدار. Defaults to: count.
sort
اختیاری string
مرتب سازی. مقادیر ممکن عبارتند از: desc for نزولی, asc for صعودی. Defaults to: desc.
per_page
اختیاری int
نتایج در هر صفحه. مقادیر ممکن عبارتند از: 10, 25, 50, 100. Defaults to: 10.