Skip to main content
TinyAnalytics has two separate developer surfaces: Visitor measurement is client-side. Install the tracking script, then use the browser event API and browser identity API instead of building a separate ingestion client.

HTTP data API base URL

Authenticated data and management endpoints use:
The HTTP API covers 155 published endpoints across 30 groups. You can read reports, manage sites, define goals and funnels, read heatmaps, drive feature flags and experiments, run surveys, build dashboards, configure alerts and scheduled reports, and operate uptime monitors. Every published endpoint has its own page in the Endpoint reference section.

Authenticate data API requests

Create an API key in Settings → Account, then send it in the Authorization header. Reads and management use the key owner’s organization, role, and team access.
Never expose an API key in browser code, a public bundle, or a URL. The browser tracking API does not need one.
If an AI agent is doing the work, the MCP server exposes the data and management surface as tools for Claude Code, Cursor, VS Code, and Codex CLI.

Response conventions

Successful reads return 200 with a JSON body. List endpoints generally return an object with a data array. Common status codes:

Frequently asked questions

Install the tracking script and call window.tinyanalytics.event() in the browser. Browser collection is keyless; see the browser event API.
No. API keys grant access to private analytics and management capabilities. Keep them out of frontend code and use the keyless browser API for visitor measurement.
Browse Endpoint reference in the sidebar or use the in-product API playground, which generates examples for the current endpoint registry.

Browser event API

Send pageviews and custom events from client-side code.

Browser identity API

Identify users and update traits from client-side code.

Analytics read API

Read overview, time-series, breakdown, session, and event data.

API keys

Create a least-privilege credential for data and management calls.

API playground

Browse and generate examples for published endpoints.