Statistics page visit data

API call address

{域名地址}/api/log

Description:{域名地址}Replace it with your domain name, such ashttps://en.anqicms.com/api/log

The html template defaults to injection. If it is a next.js frontend, then it needs to be called manually.

Call method

GET

Request parameters

Field name Type Required Description
action string No Type of record, supported values: views: document access, it will count the number of document accesses, other: other values
id int No Document ID
type string No Record type, supported values: archive: action=views is required
code int Is HTTP status code
path string Is Access path

Return parameters

None

example of data request

get https://en.anqicms.com/api/log?action=views&id=1&type=archive&code=200&path=/article/1.html