统计

备注
专家级
API密钥应作为Bearer令牌发送在请求的Authorization头中。 获取API密钥.
显示

API端点:

GET
https://pigpig.in/api/v1/stats/{website_id}

请求示例:

curl --location --request GET 'https://pigpig.in/api/v1/stats/{website_id}?name={name}&from={from}&to={to}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
参数
类型
描述
name
必填 string
姓名. 可能的值为:browser, campaign, city, continent, country, device, event, language, operating_system, page, pageview, referrer, screen_resolution, visitor
from
必填 string
开始日期格式为Y-m-d
to
必填 string
结束日期格式为Y-m-d
search
可选 string
搜索查询.
search_by
可选 string
搜索依据. 可能的值为:value
sort_by
可选 string
排序依据. 可能的值为:Countcount, value。 默认为:count
sort
可选 string
排序. 可能的值为:降序desc, 升序asc。 默认为:desc
per_page
可选 integer
每页结果数. 可能的值为:10, 25, 50, 100。 默认为:10