当前服务器已升级cera高防,请放心使用。

统计数据

Notes
专家级
The API key should be sent as a Bearer token in the Authorization header of the request. Get your API key.
展示

API端点:

GET
https://jvdan.com/api/v1/stats/{id}

请求示例:

curl --location --request GET 'https://jvdan.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_hour, referrer, resolution, visitors, visitors_hour.
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 价格. 默认值 to: url.
sort_by
选修的 string
排序方式. Possible values are: count for Count, value for 价格. 默认值 to: count.
sort
选修的 string
种类. Possible values are: desc for 降序, asc for 上升. 默认值 to: desc.
per_page
选修的 integer
每页数量. Possible values are: 10, 25, 50, 100. 默认值 to: 10.