Start free

Stats API

A read-only REST API with Bearer keys: aggregates with comparison, timeseries, breakdowns, realtime and the new reports.

Integrations, API & AIFeature page: Stats API
API keys section in SettingsAPI keys section in Settings
A real quietstats screen, taken with a throwaway test account that was deleted afterwards.

What it does

JSON or CSV from /api/v1 with filters, pagination and an OpenAPI spec, for scripts, Google Sheets, Looker Studio or your own dashboards.

Why it matters

Put your numbers wherever your team already looks.

How to use it

  1. Open Settings → API keys and create a read key (optionally for one site). Copy it: it is shown once.
  2. Call the API with Authorization: Bearer qs_… (see the example below).
  3. Read the full reference on the API page.
Shell
curl -H "Authorization: Bearer qs_…" "https://quietstats.co.uk/api/v1/aggregate?site=YOUR_SITE_ID&period=30d&compare=year"

Replace YOUR_SITE_ID with the ID shown on your site’s Manage page.

How it works

A Stats API request1. Settings → API keys: create a read key. It is shown once; only a hash is stored. 2. Send a request with Authorization: Bearer qs_… 3. quietstats checks the key, its site scope and your plan’s hourly limit. (otherwise: Bad key: 401. Over limit: 429) 4. It reads totals for your site, range and filters. 5. JSON or CSV back: aggregates only, never a visitor code, IP or single visit.1Settings → API keys: create aread key. It is shown once;only a hash is stored.2Send a request withAuthorization: Bearer qs_…3quietstats checks the key, itssite scope and your plan’shourly limit.Bad key: 401.Over limit: 4294It reads totals for your site,range and filters.5JSON or CSV back: aggregatesonly, never a visitor code, IPor single visit.
From the Stats API code. The MCP server for AI assistants uses the same keys and limits.

Privacy

Limits

Plans

Every plan, including Free. Each key gets your plan’s hourly limit: 300 requests an hour on Free. See pricing.

Questions

Can it write data?

No. The Stats API is read-only. Events are sent by the scripts.

Related