DeployGet started

GoatCounter Statistics API

Statistics-related endpoints from the GoatCounter API.

Version 0.12 endpoints
GoatCounter Statistics API logo

Endpoints

GET/api/v0/stats/hitsgetStatsHits

Get an overview of pageviews.

Parameters

NameInRequiredDescription
startqueryNoStart time, should be rounded to the hour.
endqueryNoEnd time, should be rounded to the hour.
limitqueryNoMaximum number of pages to get.
dailyqueryNoGroup by day instead of hour.
include_pathsqueryNoOnly include these paths.
exclude_pathsqueryNoExclude these paths.

Responses

StatusDescription
200Successful response
GET/api/v0/stats/totalgetStatsTotal

Count total number of pageviews for a date range.

Parameters

NameInRequiredDescription
startqueryNoStart time.
endqueryNoEnd time.
include_pathsqueryNoOnly include these paths.

Responses

StatusDescription
200Total counts

Need help deploying this MCP server?

Product Screenshot