try out ↗

← API Index


/api/stats/links1

Per-day click counts for tracked shop links. Admin access only.

Change Note: typed LinkStat objects instead of the hand-rolled 'LinkStats' JSON; errors are now HTTP status codes instead of an inline error member

Parameters

Name Description Type
links the link identifiers to query, comma separated string
start only return data from this unix timestamp (seconds) on int
end only return data up to this unix timestamp (seconds) int
oo-rf optionally define the response-format for this call. One of: compact (default) | compacts | full | fulls | json | md | html | js | openapi | yaml String
oo-auth optionally force the API to check against the role (instead of silently not returning data). For guests or public access, the default is -1. 0 (regular customer) and above define the role for which the current session is expected to be authorized. int

Error Responses

HTTP Status Error Code Description
403 not_auth Not authenticated or no admin access
404 unknown_link One of the requested link identifiers is unknown
429 slower Rate limit hit, try again later

Response Types

Type Version Description
LinkStat 1 One day of click counts for a tracked shop link

OpenAPI

See links1.yaml

Referenced in skills