What problem does it solve?
PostHog is primarily used through its UI; this skill provides programmatic access via REST API to run HogQL queries, manage feature flags, fetch insights, and retrieve cohorts and session recordings without opening the UI.
Core Features & Use Cases
- HogQL queries: execute SQL-like queries against events to generate charts and dashboards.
- Flag and insight management: inspect, read, and fetch flag definitions and insights programmatically.
- Cohorts and sessions: retrieve user cohorts and session recording metadata for analyses and experiments.
- Deployment flexibility: works with US cloud, EU cloud, or self-hosted PostHog deployments.
Quick Start
Run a HogQL query against a PostHog project using your API key to fetch the top events for today.