Anonymetrics

DOCS · API + MCP

Anonymetrics API

A read-only REST API and an MCP server to query your analytics from your own apps or from AI assistants like Claude and ChatGPT.

Authentication

Create an API key in the panel, under “API keys”, and send it in the header. Each key is scoped to its organisation.

Authorization: Bearer anx_live_…

Endpoints

Base: https://app.anonymetrics.io/api/v1

GET /sitesLists the sites in your organisation.
GET /stats?site&daysSummary: visitors, page views, events.
GET /timeseries?site&daysDaily series of visitors and page views.
GET /breakdown?site&dimension&limitTop pages, referrers, countries, browsers…
GET /realtime?siteVisitors active in the last 5 minutes.

Full specification (OpenAPI 3.1): /api/v1/openapi.json

Example

curl https://app.anonymetrics.io/api/v1/stats?site=SITE_ID&days=28 \
  -H "Authorization: Bearer anx_live_..."

MCP · Connect your AI

The Anonymetrics MCP server lets Claude or ChatGPT query your analytics in plain language — “how many visitors did I get this week?”.

Remote connector — add it as a custom connector in Claude or ChatGPT (OAuth 2.1: you authorise with your API key, no headers to paste):

https://mcp.anonymetrics.io

Local package — for desktop or terminal clients:

npx anonymetrics-mcp   # con ANONYMETRICS_API_KEY=anx_live_…

For AI agents

We publish an llms.txt with a summary of the product and the API, so assistants can find and read it.