统计数据

笔记
专家级
应用API接口密钥应该作为承载令牌在请求的授权头中发送 获取您的应用API接口密钥.
显示

API 接口:

GET
https://yyds.lt/api/v1/stats/{id}

请求示例:

curl --location --request GET 'https://yyds.lt/api/v1/stats/{id}?name={name}&from={from}&to={to}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
参数
类型
描述
name
需要 string
The name of the statistic. Possible values are: 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
搜索依据. Possible values are: value for 服务器ip(个别用户可能显示的不是真实的IP). Defaults to: url.
sort_by
可选择的 string
Sort by. Possible values are: count for Count, value for 服务器ip(个别用户可能显示的不是真实的IP). Defaults to: count.
sort
可选择的 string
分类. 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.