GoatCounter integration
GoatCounter is a lightweight, privacy-friendly web analytics tool that counts pageviews without cookies or personal data. This integration covers its REST API: read pageview totals and per-path pageviews over a date range, broken down by hour or day and filtered to chosen paths, read the referrers that sent traffic to one path, read the browser, operating system, screen size, location, language, campaign and top-referrer breakdowns and drill into any one of them, list the tracked paths of a site, send pageviews in from your own code instead of the tracking script, start a CSV export of the raw hits and download it when it is ready, and manage the sites of an account together with the settings and linked domain of each. The host is part of the credential because a GoatCounter site has its own address: enter yourcode.goatcounter.com for the hosted service, or the hostname of your own install. Authentication is an API key created in GoatCounter under the user menu, sent as a bearer token; the key's permissions decide which of these calls it may make.
What you can do with GoatCounter
Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.
Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.
Site, 5 operations
- PUTcreate_site
Create a new site under this account.
- GETget_site
Get one site of this account.
- GETlist_sites
List the sites of this account, including the sites linked to it.
- POSTreplace_site
Replace a site with what is sent, blanking every field the request omits.
- PATCHupdate_site
Update only the fields of a site that the request sends.
Export, 3 operations
- POSTcreate_export
Start a background export of the raw hits of a site.
- GETdownload_export
Download the finished export file.
- GETget_export
Check the progress of an export.
Pageview, 3 operations
- POSTcount_pageviews
Send pageviews to GoatCounter from your own code instead of the tracking script.
- GETget_total_pageviews
Get the total number of pageviews and events over a date range.
- GETlist_pageviews
Get pageviews per path over a date range, with a count per hour or per day.
Stat, 2 operations
- GETlist_stats
Get one visitor breakdown of a site: browsers, operating systems, locations, languages, screen sizes, campaigns or top referrers.
- GETlist_stats_detail
Break one entry of a visitor breakdown down further, for example the versions of a browser.
Path, 1 operation
- GETlist_paths
List the paths recorded for this site, with their ids and titles but no statistics.
Referral, 1 operation
- GETlist_path_referrals
Get the referrers that sent traffic to one path over a date range.
User, 1 operation
- GETget_current_user
Get the user the API key belongs to and the permissions that key was granted.
Use GoatCounter from Claude Code, Cursor or Codex
Connect GoatCounter in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its GoatCounter operations become tools the client can call, next to every other integration you connected.
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"
[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"{
"mcpServers": {
"livecontext": {
"type": "http",
"url": "https://livecontext.ai/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}How to connect GoatCounter
Create your workspace
Sign up free. Nothing to install.
Connect GoatCounter once
Add your GoatCounter connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.
Describe the job in chat
The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.
GoatCounter integration FAQ
- What can you do with the GoatCounter integration?
- LiveContext exposes 16 operations on GoatCounter, covering site, export, pageview and stat.
Popular integrations
Instagram API with Instagram Login (graph.instagram.com). Manage a Business/Creator Instagram account…
Messaging platform API for building bots and integrations. Send messages, manage chats and channels, handle…
Google email service API for sending, receiving, and managing emails. Access messages, threads, labels,…
Google's video platform API for accessing video, channel, playlist, and comment data
Social media platform API for content creators and businesses. Access user info, manage videos, get…
Social media platform API for posting, reading, and managing Twitter/X content. Post tweets, read timelines,…
Professional networking platform API for managing profiles, connections, and content. Share posts, manage…
AI API from xAI (Elon Musk's AI company) powering Grok models. Access state-of-the-art language models with…