当前服务器已升级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/websites

请求示例:

curl --location --request GET 'https://jvdan.com/api/v1/websites' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parameter
类型
描述
search
选修的 string
The search query.
search_by
选修的 string
搜索依据. Possible values are: domain for 域名. 默认值 to: domain.
sort_by
选修的 string
排序方式. Possible values are: id for 创建日期, domain for 域名. 默认值 to: id.
sort
选修的 string
种类. Possible values are: desc for 降序, asc for 上升. 默认值 to: desc.
per_page
选修的 integer
每页数量. Possible values are: 10, 25, 50, 100. 默认值 to: 10.
展示

API端点:

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

请求示例:

curl --location --request GET 'https://jvdan.com/api/v1/websites/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
店铺

API端点:

POST
https://jvdan.com/api/v1/websites

请求示例:

curl --location --request POST 'https://jvdan.com/api/v1/websites' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'domain={domain}'
Parameter
类型
描述
domain
必需的 string
The domain name.
privacy
选修的 integer
Stats page privacy. Possible values are: 0 for 开启, 1 for 隐私, 2 for 密码. 默认值 to: 0.
password
选修的 string
The password for the statistics page. Only works with privacy set to 2.
email
选修的 integer
定期电子邮件报告。 Possible values are: 0 for 关闭的, 1 for 启用. 默认值 to: 0.
exclude_bots
选修的 integer
排除常见机器人的跟踪。 Possible values are: 0 for 关闭的, 1 for 启用. 默认值 to: 1.
exclude_params
选修的 string
Exclude URL query parameters from being tracked. 每行一个。.
exclude_ips
选修的 string
排除 IP 被跟踪。 每行一个。.
更新

API端点:

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

请求示例:

curl --location --request PUT 'https://jvdan.com/api/v1/websites/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}'
Parameter
类型
描述
privacy
选修的 integer
Stats page privacy. Possible values are: 0 for 开启, 1 for 隐私, 2 for 密码.
password
选修的 string
The password for the statistics page. Only works with privacy set to 2.
email
选修的 integer
定期电子邮件报告。 Possible values are: 0 for 关闭的, 1 for 启用.
exclude_bots
选修的 integer
排除常见机器人的跟踪。 Possible values are: 0 for 关闭的, 1 for 启用.
exclude_params
选修的 string
Exclude URL query parameters from being tracked. 每行一个。.
exclude_ips
选修的 string
排除 IP 被跟踪。 每行一个。.
删除

API端点:

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

请求示例:

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