Stats API v2: the deep-dive reports as JSON or CSV
The deep dives answer bigger questions than a single breakdown.
Version 2 of the Stats API keeps every v1 call exactly as it was and adds topics, products, places, page deep dives and A/B test results.
Why quietstats: you get this without cookies, a consent banner or storing IP addresses, in every plan including Free.
In every plan, including Free. Data in and out.
📘 Step-by-step guide, with screenshots and diagrams →
Start free, no cardSee live demo
- No cookies or consent banner
- No IP addresses stored
- Groups under 5 visitors hidden
- 845-byte script
- Free plan, no card


What it is
Call /api/v2 with the same read-only keys, filters, pagination and rate limits as v1. The new endpoints /topics, /products, /places, /page and /ab_tests return the same numbers as the matching deep-dive screens, as JSON or CSV, with an OpenAPI 3.1 description at /api/v2/openapi.json.
Why it matters
The deep dives answer bigger questions than a single breakdown. Having them in the API means a weekly report, a client dashboard or an AI assistant can use them too.
How it works
- Create a read key in Settings → API keys (or reuse one).
- Swap /api/v1 for /api/v2 in your base URL; nothing else changes for existing calls.
- Call the new endpoints, for example /api/v2/topics?site=ID&period=90d, and add format=csv for a spreadsheet.
Privacy: what is and isn’t collected
Collected
- Nothing new
Never collected
- Visitor IDs, IP addresses or single visits
- Cookies, localStorage or anything else stored on the visitor’s device
- IP addresses or user agents (used in memory, then discarded)
- Anything that links a visitor across days (the visitor ID resets daily)
Rows and limits
- The deep-dive endpoints cover up to 92 days (period 7d, 30d or 90d, or from and to)
- Places keeps the under-5 grouping and shows cities only when city totals are on
- Same requests per hour per key as v1
- D1: each deep-dive response is cached for 10 minutes, so repeat calls read nothing
“Rows” are database rows written, which is what our hosting is billed on. Reads are not rows written. Methodology →
Questions
Do I have to move to v2?
No. v1 stays as it is. v2 is v1 plus the new endpoints.
Can I use the new reports in Sheets?
Yes: with a Google Sheets feed key, any of them works in =IMPORTDATA().
Related features
Data in and outGoogle Sheets feed: live numbers with =IMPORTDATA()
Data in and outTopic reports: how each part of your content performs over time
Behaviour and contentFree import from Google Analytics, Plausible and Fathom
Data in and outPivot table: cross any two dimensions
Data in and outSeveral domains as one site
Data in and outStats bookmarklet: one click from any page to its stats
See your trafficShareable stats cards
Reports, sharing and alerts
All data in and out features → · All features → · Docs: Stats API v2 guide → · Compare features with other tools →
Guides on this topic
Set it up
curl -H "Authorization: Bearer qs_…" "https://quietstats.co.uk/api/v2/products?site=YOUR_SITE_ID&period=30d&format=csv"Replace YOUR_SITE_ID with the ID on your site’s settings page. Install guides →
Try it on your own site
Free during launch: one site and 5,000 pageviews a month, no card needed. After launch, paid plans start at £5 a month.