网站列表

笔记
专家级
API 密钥应作为 Bearer 令牌发送,以请求的授权标头中发送 获取您的 API 密钥.
列表

API 端点:

GET
https://service.smartontoline.com/api/v1/websites

请求示例:

curl --location --request GET 'https://service.smartontoline.com/api/v1/websites' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
范围
类型
描述
search
可选的 string
搜索查询
search_by
可选的 string
搜索方式. 可能的值为:域名 的值 默认为:domain
favorite
可选的 boolean
按收藏夹过滤。
sort_by
可选的 string
排序方式. 可能的值为:创建日期 的值, 域名 的值 默认为:id
sort
可选的 string
排序. 可能的值为:降序 的值, 升序 的值 默认为:desc
per_page
可选的 integer
每页结果. 可能的值为:10, 25, 50, 100 默认为:10
查看

API 端点:

GET
https://service.smartontoline.com/api/v1/websites/{id}

请求示例:

curl --location --request GET 'https://service.smartontoline.com/api/v1/websites/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
创建

API 端点:

POST
https://service.smartontoline.com/api/v1/websites

请求示例:

curl --location --request POST 'https://service.smartontoline.com/api/v1/websites' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'domain={domain}'
范围
类型
描述
domain
必需的 string
域名
privacy
可选的 integer
统计页面隐私 可能的值为:公开 的值, 私人 的值, 密码 的值 默认为:0
password
可选的 string
统计页面的密码 仅适用于 privacy 设置为 2
email
可选的 integer
定期发送电子邮件报告 可能的值为:禁用 的值, 启用 的值 默认为:0
exclude_bots
可选的 integer
排除常见的爬虫机器人 可能的值为:禁用 的值, 启用 的值 默认为:1
exclude_params
可选的 string
Exclude URL query parameters from being tracked. 每行一个。.
exclude_ips
可选的 string
将 IP 排除在分析之外 每行一个。.
更新

API 端点:

PUT PATCH
https://service.smartontoline.com/api/v1/websites/{id}

请求示例:

curl --location --request PUT 'https://service.smartontoline.com/api/v1/websites/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}'
范围
类型
描述
privacy
可选的 integer
统计页面隐私 可能的值为:公开 的值, 私人 的值, 密码 的值
password
可选的 string
统计页面的密码 仅适用于 privacy 设置为 2
email
可选的 integer
定期发送电子邮件报告 可能的值为:禁用 的值, 启用 的值
exclude_bots
可选的 integer
排除常见的爬虫机器人 可能的值为:禁用 的值, 启用 的值
exclude_params
可选的 string
Exclude URL query parameters from being tracked. 每行一个。.
exclude_ips
可选的 string
将 IP 排除在分析之外 每行一个。.
favorite
可选的 boolean
网站是否被收藏。
删除

API 端点:

DELETE
https://service.smartontoline.com/api/v1/websites/{id}

请求示例:

curl --location --request DELETE 'https://service.smartontoline.com/api/v1/websites/{id}' \
--header 'Authorization: Bearer {api_key}'