DEV Community

Alex Spinov
Alex Spinov

Posted on

PostHog Has a Free API You're Not Using

PostHog is an open-source product analytics platform. Most teams use it for pageviews — but PostHog ships feature flags, A/B testing, session replay, and surveys in one tool.

The Free APIs You're Missing

1. Feature Flags — Runtime Configuration

Toggle features per user, group, or percentage. Evaluate flags server-side or client-side with automatic analytics.

2. A/B Testing — Built Into Feature Flags

Create multivariate experiments. PostHog tracks which variant converts better automatically.

3. Custom Events — Track Anything

Capture purchase completions, search queries, feature usage — any user action with custom properties.

4. Group Analytics — B2B Product Analytics

Track metrics per company, workspace, or team. Understand how organizations use your product.

5. HogQL — Custom Analytics Queries

Full SQL over your analytics data. Build custom dashboards and reports without data warehouses.

Getting Started

npm install posthog-js
Enter fullscreen mode Exit fullscreen mode

Free tier: 1M events/month, unlimited feature flags.


Need data from any website delivered as clean JSON? I build production web scrapers that handle anti-bot, proxies, and rate limits. 77 scrapers running in production. Email me: Spinov001@gmail.com

Check out my awesome-web-scraping list for the best scraping tools and resources.

Top comments (0)