Skip to content

Read API

The dashboard, as JSON.

The read API is a token from Account on Starter and Growth: the same visitors, pages, sources, live, and Growth funnels you already see. Not a user graph. All 17 MCP tools are free on every plan through OAuth, Hobby included, with daily limits on Hobby.

Auth

Plan → Account → Read API → name a token. We show cfa_live_… once. We store a hash. Send it as Authorization: Bearer. 60 reads per minute per token. Revoke on the same page.

Routes

GET /api/v1
GET /api/v1/openapi.json
GET /api/v1/sites
GET /api/v1/sites/:id/overview?range=7d
GET /api/v1/sites/:id/pages
GET /api/v1/sites/:id/sources
GET /api/v1/sites/:id/live
GET /api/v1/sites/:id/funnels   # Growth
GET /api/v1/sites/:id/watch
GET /api/v1/sites/:id/watch/incidents?range=30d
GET /api/v1/sites/:id/events?range=30d&event=purchase&property=plan&value=pro
GET /api/v1/sites/:id/revenue?range=30d&event=purchase
GET /api/v1/sites/:id/team
GET /api/v1/sites/:id/transfer   # site owner only

range is today, 7d, 30d, 90d, or YYYY-MM-DD..YYYY-MM-DD. f is the same filter string the dashboard puts in the URL. CORS is open for GET and POST. No visitor hashes. Live is last pageview in five minutes — no heartbeat. Events and revenue read event properties; revenue stays per currency. A key limited to one site only reads that site.

curl -sS https://www.cookiefreeanalytics.com/api/v1/sites \
  -H "Authorization: Bearer cfa_live_…"

MCP

Same numbers. POST /mcp is JSON-RPC. All 17 tools are free on every plan, Hobby included: list_sites, get_overview, get_pages, get_sources, get_live, get_funnels, get_watch, get_watch_incidents, get_traffic_pulse, get_top_pages, get_watch_status, add_website, get_tracking_script, get_event_properties, get_event_revenue, list_site_team, get_transfer_status — read-only except add_website. Hobby has 20 calls a minute and 10 to 30 calls per tool a day; paid plans have 60 a minute and no daily limit. Watch tools need Starter or Growth and funnels need Growth; on other plans they say so. Claude, Cursor, ChatGPT, and Grok use OAuth 2.1 on this host (RFC 9728 metadata, PKCE S256). Paste https://www.cookiefreeanalytics.com/mcp. Google signs people into the website — it does not sign the agent into your pageviews. curl can still paste cfa_live_… from Account. How-to. Official Registry name com.cookiefreeanalytics/mcp. In-app directories (Claude Connectors, ChatGPT Plugins) are a separate review; until they list us, paste the URL.

# Cursor / Claude: add https://www.cookiefreeanalytics.com/mcp
# The client discovers OAuth and opens /oauth/authorize.

claude mcp add --transport http cookie-free-analytics \
  https://www.cookiefreeanalytics.com/mcp

What this is not

Not PostHog. Not a dump of pageviews. Export of raw rows stays the JSON button on Account.