Start free
new

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
Stats API v2: the deep-dive reports as JSON or CSV: example screenshot with made-up demo dataStats API v2: the deep-dive reports as JSON or CSV: example screenshot with made-up demo data
ExampleScreenshot with made-up demo data, not a real customer’s numbers.

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

  1. Create a read key in Settings → API keys (or reuse one).
  2. Swap /api/v1 for /api/v2 in your base URL; nothing else changes for existing calls.
  3. 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)

How quietstats works, and the legal caveats →

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

All data in and out features → · All features → · Docs: Stats API v2 guide → · Compare features with other tools →

Guides on this topic

All website analytics guides →

Set it up
Shell
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.

Start freeSee pricingSee live demo

Explore quietstats

See your traffic (119)

Live visitors and live eventsTrend charts, headline cards and any date rangeCompare any two date rangesWorld map, countries and regionsDevices, browsers, operating systems and screens

Sources and campaigns (63)

Sources and channelsAI search referralsUTM campaignsSearch keywords from Google Search ConsoleShort links

Behaviour and content (80)

Top pagesPage transitionsScroll depth and engaged timeClick mapVisitor journeys

Goals, events and conversions (83)

Goals and funnelsCustom events and conversion ratesRevenue cards and revenue by sourceEngagement goalsA/B tests with your own tags and a plain-English confidence note

Reports, sharing and alerts (44)

Alerts inbox and rulesReport snapshotsPassword-protected snapshotsOptional public stats pageAnonymous benchmarks against similar sites

Data in and out (42)

CSV and Excel downloadsStats APIImport from Plausible or GA4API playgroundTSV and XML export for every report

Privacy and performance (17)

Zero cookies, privacy built inUnder 1 KB script and single-page appsPages never countedPrivacy proof page and badge for your siteSigned-in sessions

Why quietstats

Why quietstatsPricingLive demoStart free

Compare

quietstats comparedFeature comparisonvs Google Analyticsvs Plausiblevs Fathom Analyticsvs Simple Analyticsvs Umamivs Matomovs Cloudflare Web Analyticsvs GoatCountervs Piwik PROvs PostHogvs Microsoft Clarityvs Pirsch Analyticsvs MixpanelGoogle Analytics alternatives

Learn

Website analytics guidesMetrics handbookAnalytics glossaryPlaybooksGDPR and cookie-free analyticsInstall on SquarespaceInstall on WixInstall on GhostInstall on Google Tag ManagerBlog

Playbooks and tools

Script size calculatorCookie banner checkerPlaybook: Local businessPlaybook: Online shopPlaybook: Blog or publisherPlaybook: SaaS or appPlaybook: Charity or community groupPlaybook: Agency with clientsUTM link checkerConversion rate calculatorCookie banner traffic-loss calculator