
Plausible Has a Free API — Google Analytics Alternative That Respects Privacy
Plausible is a lightweight, open-source web analytics tool. Under 1KB script, no cookies, and a clean API for programmatic access. What Is Plausible? Plausible is privacy-first analytics. It gives you essential metrics without the bloat of Google Analytics. Self-hosted: Free and unlimited Cloud: From $9/month REST API # Realtime visitors curl https://plausible.io/api/v1/stats/realtime/visitors?site_id = YOUR_SITE \ -H "Authorization: Bearer YOUR_TOKEN" # Aggregate stats curl "https://plausible.io/api/v1/stats/aggregate?site_id=YOUR_SITE&period=30d&metrics=visitors,pageviews,bounce_rate" \ -H "Authorization: Bearer YOUR_TOKEN" # Top pages curl "https://plausible.io/api/v1/stats/breakdown?site_id=YOUR_SITE&period=30d&property=event:page&limit=10" \ -H "Authorization: Bearer YOUR_TOKEN" # Traffic sources curl "https://plausible.io/api/v1/stats/breakdown?site_id=YOUR_SITE&period=30d&property=visit:source" \ -H "Authorization: Bearer YOUR_TOKEN" Add to Website <script defer data-domain= "yo
Continue reading on Dev.to Webdev
Opens in a new tab




