HogQL Parser
JSON →HogQL parser is an ANTLR4-based parser for HogQL and Hog, primarily developed for internal use within the PostHog analytics platform. HogQL itself is a SQL-like query language for PostHog, acting as a translation layer over ClickHouse SQL with custom enhancements for event and person data. The `hogql-parser` package provides a Python C++ extension to convert HogQL strings into Abstract Syntax Tree (AST) nodes. While available on PyPI at version 1.3.37, its development is tightly coupled with PostHog's rapid, often bi-weekly, release cadence, meaning its API can evolve with PostHog's internal needs.
Traffic · last 30 days ↓80% vs prev 7d
total hits 10
actors 5 distinct systems
last hit 5d ago Script
top countries 🇫🇷 France · 🇺🇸 United States · 🇩🇪 Germany · 🇨🇦 Canada · 🇳🇴 Norway
Resources
homepageposthog.com ↗
API endpoints
full doc /v1/registry/hogql-parser
compatibility /v1/registry/hogql-parser/compatibility